:root {
  --accent: #0066FF;
  --accent-dark: #0052CC;
  --dark: #111111;
  --dark-2: #141414;
  --gray-bg: #F5F5F5;
  --text-dark: #111111;
  --text-body: #555555;
  --text-muted: #777777;
  --white: #FFFFFF;
  --border: #F0F0F0;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

a { color: inherit; }

::selection { background: var(--accent); color: var(--white); }

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 84px;
  background: transparent;
  transition: background 300ms ease, box-shadow 300ms ease;
}

#navbar.scrolled,
#navbar.navbar-light {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(17,17,17,0.08), 0 8px 24px rgba(17,17,17,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 132px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(17,17,17,0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: color 300ms ease, opacity 200ms ease;
}

#navbar.scrolled .nav-links a,
#navbar.navbar-light .nav-links a { color: var(--text-dark); }

.nav-links a:hover { opacity: 0.65; }

.nav-cta {
  padding: 11px 24px !important;
  border-radius: 100px;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 700 !important;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 0ms !important;
}

.nav-cta:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,102,255,0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
}

.nav-toggle span:last-child {
  width: 70%;
  margin-left: auto;
}

#navbar.scrolled .nav-toggle span,
#navbar.navbar-light .nav-toggle span { background: var(--text-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-end-frame {
  opacity: 0;
  transition: opacity 400ms ease;
}

.hero-end-frame.visible {
  opacity: 1;
}

.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.72) 20%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 64px) 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.06;
  color: var(--white);
  margin: 0 0 24px;
  max-width: 820px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 0 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  text-decoration: none;
  padding: 17px 34px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255,75,31,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

/* ---------- Brands ---------- */
.brands {
  padding: 56px clamp(20px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.brands-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.brand-logo {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.brand-logo-lg {
  height: 76px;
  max-width: 210px;
}

/* ---------- Sections ---------- */
.section {
  scroll-margin-top: 84px;
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.section-alt {
  background: var(--gray-bg);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-alt > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 60px;
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2, .split h2 {
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin: 0 0 16px;
  color: var(--text-dark);
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Cards / grid-4 ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 20px;
  padding: 38px 32px 34px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(17,17,17,0.05);
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

/* Soft tinted glow in the corner, colored per card via --card-accent */
.card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: 0.1;
  transition: opacity 320ms ease, transform 320ms ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--card-accent);
  box-shadow: 0 20px 44px rgba(17,17,17,0.12);
}

.card:hover::before {
  opacity: 0.2;
  transform: scale(1.15);
}

.grid-4 .card:nth-child(1) { --card-accent: #3E8E7E; }
.grid-4 .card:nth-child(2) { --card-accent: #7FC4F2; }
.grid-4 .card:nth-child(3) { --card-accent: #3E8FD6; }
.grid-4 .card:nth-child(4) { --card-accent: #1E5A9C; }

.card-accent-bar {
  position: relative;
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 100px;
  background: var(--card-accent);
  margin-bottom: 22px;
}

.card h3 {
  position: relative;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.card p {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.accordion-item {
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.check {
  flex-shrink: 0;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.accordion-title {
  flex: 1;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text-dark);
}

.accordion-icon {
  flex-shrink: 0;
  position: relative;
  width: 18px;
  height: 18px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text-muted);
  transform: translate(-50%, -50%);
  transition: transform 250ms ease, opacity 250ms ease;
}

.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after { width: 2px; height: 14px; }

.accordion-item.open .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.accordion-panel-inner { overflow: hidden; }

.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }

.accordion-panel-inner p {
  margin: 0;
  padding: 0 18px 20px 61px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 26px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.gallery-item:hover .gallery-image { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 64px);
  background: rgba(17,17,17,0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: clamp(20px, 5vw, 64px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 2px 24px rgba(17,17,17,0.05);
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.quote {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  font-style: italic;
  margin: 0 0 26px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
}

.author-name { font-weight: 700; font-size: 0.95rem; }
.author-role { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Locations ---------- */
.locations-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(17,17,17,0.06);
  border: 1px solid var(--border);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(17,17,17,0.12);
}

.location-image {
  flex-shrink: 0;
  width: 420px;
  height: auto;
  object-fit: cover;
  display: block;
}

.location-body {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.location-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.location-icon svg {
  width: 18px;
  height: 18px;
}

.location-title h3 {
  flex: 1;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  color: var(--text-dark);
}

.location-brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-brands-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.location-brands-group:first-child {
  padding-top: 0;
  border-top: none;
}

.location-brands-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-right: 2px;
}

.brand-tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.brand-tag-ducati {
  background: #cc0000;
  border-color: #cc0000;
  color: #fff;
}

.location-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.location-text.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.read-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.address-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.address-text a {
  color: inherit;
  text-decoration: none;
}

.address-text a:hover {
  color: var(--accent);
}

.address-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--accent);
  transition: background 200ms ease, color 200ms ease;
}

.maps-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.locations-grid .location-card:nth-child(1) .location-icon { background: #F26522; }
.locations-grid .location-card:nth-child(2) .location-icon { background: #E53935; }
.locations-grid .location-card:nth-child(3) .location-icon { background: #4A90D9; }
.locations-grid .location-card:nth-child(4) .location-icon { background: #111111; }

/* ---------- Footer ---------- */
.footer {
  background: var(--accent);
  color: var(--white);
  padding: clamp(60px, 8vw, 90px) clamp(20px, 5vw, 64px) 32px;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.footer-logo-img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 260px;
  margin: 0 0 20px;
}

.footer-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.75);
}

.footer-col a, .footer-col span {
  display: block;
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ---------- Legal page ---------- */
.legal-page {
  padding-top: clamp(140px, 16vw, 180px);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--text-dark);
}

.legal-content h3:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 4px;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Nav panel (sidebar) ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 80vw);
  background: var(--dark);
  z-index: 151;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  border-left: 2px solid var(--accent);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .35);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.16, 1, .3, 1);
}

.nav-panel.is-open {
  transform: translateX(0);
}

.nav-panel-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  margin-bottom: 32px;
}

.nav-panel-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--white);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

@media (min-width: 861px) {
  .nav-backdrop,
  .nav-panel {
    display: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
}

/* ---------- Boot loader ---------- */
@keyframes bl-spin {
  to { transform: rotate(360deg); }
}

@keyframes bl-slide-up {
  to { transform: translateY(-100%); }
}

@keyframes bl-slide-down {
  to { transform: translateY(100%); }
}

@keyframes bl-fade-out {
  to { opacity: 0; }
}

.boot-loader-panel {
  position: fixed;
  left: 0;
  right: 0;
  height: 50vh;
  background: var(--white);
  z-index: 9998;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  animation-delay: 0.7s;
  animation-fill-mode: forwards;
}

.boot-loader-panel--top {
  top: 0;
  animation-name: bl-slide-up;
}

.boot-loader-panel--bottom {
  bottom: 0;
  animation-name: bl-slide-down;
}

.boot-loader-spinner-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  animation: bl-fade-out 0.25s ease 0.7s forwards;
}

.boot-loader-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(0, 102, 255, 0.15);
  border-top-color: var(--accent);
  animation: bl-spin 0.9s linear infinite;
}

@media (max-width: 700px) {
  .location-card {
    flex-direction: column;
  }

  .location-image {
    width: 100%;
    aspect-ratio: 16/10;
  }
}

@media (min-width: 701px) {
  .location-title {
    align-items: center;
  }
}

/* ---------- Asistente de consulta ---------- */
.assistant-sticky {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 220;
}

.assistant-trigger {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  border-radius: 100px;
  background: var(--dark);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(17,17,17,0.25);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.assistant-trigger:hover,
.assistant-trigger:focus-visible {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,102,255,0.35);
}

.assistant-trigger-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.assistant-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 40px);
}

.assistant-overlay[hidden] { display: none; }

.assistant-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 250ms ease;
}

.assistant-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 40px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 250ms ease, transform 250ms ease;
}

.assistant-overlay.is-open .assistant-backdrop { opacity: 1; }

.assistant-overlay.is-open .assistant-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.assistant-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gray-bg);
  color: var(--text-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}

.assistant-close:hover,
.assistant-close:focus-visible {
  background: var(--accent);
  color: var(--white);
}

.assistant-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.assistant-title {
  margin: 0 0 24px;
  padding-right: 32px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.assistant-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assistant-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--gray-bg);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.assistant-option:hover,
.assistant-option:focus-visible {
  border-color: var(--accent);
  background: var(--white);
  transform: translateY(-2px);
}

.assistant-option.is-selected {
  border-color: var(--accent);
  background: rgba(0,102,255,0.06);
}

.assistant-option-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.assistant-option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.assistant-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.assistant-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.assistant-field select {
  appearance: none;
  padding: 14px 40px 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--gray-bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23555555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 14px center / 18px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 200ms ease;
}

.assistant-field select:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.assistant-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.assistant-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.assistant-btn-primary {
  border: none;
  background: var(--accent);
  color: var(--white);
}

.assistant-btn-primary:hover:not(:disabled),
.assistant-btn-primary:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,102,255,0.3);
}

.assistant-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.assistant-btn-outline {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-dark);
}

.assistant-btn-outline:hover,
.assistant-btn-outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.assistant-result-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 28px;
}

.assistant-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.assistant-result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.assistant-maps-link {
  align-self: flex-start;
  margin-top: 4px;
}

.assistant-result-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.assistant-result-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.assistant-result-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.assistant-result-item dd a {
  color: var(--text-dark);
  text-decoration: none;
}

.assistant-result-item dd a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .assistant-trigger span {
    font-size: 0.9rem;
  }
}
