/* Home hero — DESIGN.md, section 7.2. Shared tokens live in app.css. */
.hero-section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 56rem);
  padding-block: clamp(10rem, 13.5vw, 13rem) clamp(3rem, 5vw, 5rem);
  background: var(--tint);
}

.hero-backdrop,
.hero-section::before,
.hero-section::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.hero-backdrop { object-fit: cover; object-position: center; }
.hero-section::before { content: ''; background: var(--grad-hero-light); }
.hero-section::after { content: ''; background: var(--grad-hero-dark); mask-image: linear-gradient(90deg, #000 36%, transparent 80%); }
.hero-content { width: 100%; text-align: left; }
.hero-kicker { margin-bottom: 1.25rem; color: var(--primary); }
.hero-kicker::before { width: 3.25rem; background: var(--secondary); }

.hero-title {
  margin: 0;
  color: var(--primary);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.hero-title-highlight { color: var(--secondary); }
.hero-subtitle {
  max-width: 29rem;
  margin: 1.5rem 0 3rem;
  color: var(--body);
  font-size: var(--fs-lg);
  line-height: 1.65;
}

.hero-search-wrapper { position: relative; z-index: 2; width: 100%; max-width: 55rem; scroll-margin-top: 8rem; }
.hero-search-form { width: 100%; margin: 0; }
.hero-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding: .75rem .85rem .75rem 1.5rem;
  border: 1px solid var(--surface);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-card), 0 0 0 .5rem rgb(255 255 255 / .22);
}
.hero-search-group { position: relative; display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.hero-group-query { flex: 1.4; }
.hero-icon-wrap { display: grid; place-items: center; flex: none; }
.hero-field-icon { width: 1.65rem; height: 1.65rem; color: var(--primary); }
.hero-field-content { flex: 1; min-width: 0; }
.hero-field-label { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; cursor: pointer; }
.hero-select-wrap,
.hero-input-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.hero-field-select,
.hero-field-input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin-block: -.35rem;
  padding: .35rem 1.2rem .35rem 0;
  border: 0;
  border-radius: .25rem;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.hero-field-input { cursor: text; }
.hero-field-input::placeholder { color: var(--primary); opacity: 1; }
.hero-field-select:focus-visible,
.hero-field-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-chevron { position: absolute; right: 0; width: .9rem; height: .9rem; color: var(--muted); pointer-events: none; }
.hero-input-spinner { position: absolute; right: 1.2rem; color: var(--secondary); }
.hero-input-spinner svg { width: .9rem; height: .9rem; animation: hero-spin .8s linear infinite; }
@keyframes hero-spin { to { transform: rotate(360deg); } }
.hero-search-divider { flex: none; width: 1px; height: 3rem; margin-inline: 1rem; background: var(--line); }
/* The CTA inherits the shared .btn appearance without a separate variant. */
.hero-search-submit { flex: none; }
.hero-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 1.25rem);
  left: 0;
  z-index: 3;
  width: min(28rem, 100% + 14rem);
  max-height: 20rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.hero-sugg-header { padding: .5rem 1rem; background: var(--bg); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.hero-sugg-item { display: flex; align-items: center; min-height: 2.75rem; padding: .6rem 1rem; color: var(--primary); font-size: var(--fs-sm); cursor: pointer; }
.hero-sugg-item:hover,
.hero-sugg-item.active { background: var(--tint); color: var(--secondary); }
.hero-search-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-trust-badges { display: flex; align-items: center; width: fit-content; margin-top: clamp(3rem, 6.5vw, 6.25rem); }
.hero-trust-item { display: flex; align-items: center; gap: .7rem; }
.hero-trust-item + .hero-trust-item { margin-left: 1.5rem; padding-left: 1.5rem; border-left: 1px solid rgb(255 255 255 / .3); }
.hero-trust-icon-box { display: grid; place-items: center; flex: none; }
.hero-trust-icon { width: 2.5rem; height: 2.5rem; color: var(--accent); }
.hero-trust-title { color: var(--surface); font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; }
.hero-trust-desc { margin-top: .15rem; color: rgb(255 255 255 / .8); font-size: var(--fs-xs); line-height: 1.5; }

@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-backdrop { object-position: 60% center; }
  .hero-search-bar { padding-inline: 1rem; }
  .hero-search-divider { margin-inline: .65rem; }
  .hero-search-group { gap: .5rem; }
}
@media (max-width: 767.98px) {
  .hero-section { padding-block: 9rem 3rem; }
  .hero-backdrop { object-position: 58% center; }
  .hero-section::before { background: var(--grad-hero-mobile); }
  .hero-section::after { mask-image: none; }
  .hero-subtitle { margin-block: 1.25rem 2rem; }
  .hero-search-bar { flex-direction: column; align-items: stretch; gap: .85rem; padding: 1.25rem; border-radius: var(--r-card); }
  .hero-search-group { flex: auto; width: 100%; }
  .hero-search-divider { width: 100%; height: 1px; margin: 0; }
  .hero-search-submit { width: 100%; }
  .hero-suggestions-dropdown { top: calc(100% + .5rem); width: 100%; }
  .hero-trust-badges { flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-top: 2.5rem; }
  .hero-trust-item + .hero-trust-item { margin-left: 0; padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-input-spinner svg { animation: none; }
  .places-card,
  .places-nav-btn { transition: none !important; }
}

/* ============ 5. POPULAR PLACES 3D COVERFLOW (DESIGN.md) ============ */
.places-section {
  position: relative;
  background-color: var(--bg);
  background-image: radial-gradient(75rem 38rem at 50% 12%, #E8F2FE 0%, transparent 65%);
  overflow: hidden;
  padding-block: var(--space-section);
}

.places-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.places-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--secondary);
}
.places-eyebrow::before,
.places-eyebrow::after {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--secondary);
  border-radius: var(--r-pill);
}

.places-title {
  margin: 0;
  color: var(--primary);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.places-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  max-width: 44rem;
  line-height: 1.55;
}
.places-subtitle-highlight {
  color: var(--secondary);
  font-weight: 600;
}

/* Filter Tab Pills */
.places-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.places-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.5rem 1.65rem;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid rgba(5, 99, 206, 0.45);
  user-select: none;
}
.places-tab-btn:hover {
  background: var(--tint);
  border-color: var(--secondary);
  color: var(--secondary);
}
.places-tab-btn.is-active {
  background: var(--secondary);
  background-image: var(--grad-btn);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(5, 99, 206, 0.28);
}
.places-tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 3D Coverflow Stage */
.places-stage {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  height: clamp(380px, 36vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.places-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(260px, 24vw, 360px);
  height: clamp(260px, 24vw, 360px);
  border-radius: 1.5rem;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.5s ease;
  will-change: transform, opacity;
  box-shadow: 0 10px 25px rgba(2, 35, 86, 0.14);
  text-decoration: none;
}

.places-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.6s ease;
}

.places-card:hover img {
  transform: scale(1.04);
}

.places-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 35, 86, 0.88) 100%);
  pointer-events: none;
}

.places-card-content {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
  pointer-events: none;
}

/* Adjust text placement on right-flanking cards so it's fully visible past center overlap */
.places-card[data-offset="1"] .places-card-content {
  left: clamp(3rem, 4vw, 4.5rem);
}
.places-card[data-offset="2"] .places-card-content {
  left: clamp(2rem, 3vw, 3.25rem);
}

.places-card-pin {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.places-card-pin svg {
  width: 1.15rem;
  height: 1.15rem;
}

.places-card-title {
  color: #ffffff;
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

/* Card States by offset */
.places-card[data-offset="0"] {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 10;
  opacity: 1;
  box-shadow: 0 24px 48px -10px rgba(2, 35, 86, 0.32);
}
.places-card[data-offset="-1"] {
  transform: translate(calc(-50% - clamp(210px, 22vw, 290px)), -50%) scale(0.88);
  z-index: 6;
  opacity: 0.94;
}
.places-card[data-offset="1"] {
  transform: translate(calc(-50% + clamp(210px, 22vw, 290px)), -50%) scale(0.88);
  z-index: 6;
  opacity: 0.94;
}
.places-card[data-offset="-2"] {
  transform: translate(calc(-50% - clamp(400px, 42vw, 540px)), -50%) scale(0.72);
  z-index: 3;
  opacity: 0.85;
}
.places-card[data-offset="2"] {
  transform: translate(calc(-50% + clamp(400px, 42vw, 540px)), -50%) scale(0.72);
  z-index: 3;
  opacity: 0.85;
}

/* Bottom circular navigation buttons */
.places-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

.places-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid rgba(5, 99, 206, 0.5);
  color: var(--secondary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 99, 206, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.places-nav-btn:hover {
  background: var(--tint);
  border-color: var(--secondary);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(5, 99, 206, 0.16);
}
.places-nav-btn:active {
  transform: scale(0.96);
}
.places-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.places-nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive Breakpoints */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .places-stage {
    height: clamp(300px, 45vw, 380px);
  }
  .places-card {
    width: clamp(220px, 32vw, 280px);
    height: clamp(220px, 32vw, 280px);
  }
  .places-card[data-offset="0"] {
    transform: translate(-50%, -50%) scale(1.08);
  }
  .places-card[data-offset="-1"] {
    transform: translate(calc(-50% - clamp(130px, 20vw, 180px)), -50%) scale(0.85);
  }
  .places-card[data-offset="1"] {
    transform: translate(calc(-50% + clamp(130px, 20vw, 180px)), -50%) scale(0.85);
  }
  .places-card[data-offset="-2"] {
    transform: translate(calc(-50% - clamp(230px, 36vw, 320px)), -50%) scale(0.68);
    opacity: 0.7;
  }
  .places-card[data-offset="2"] {
    transform: translate(calc(-50% + clamp(230px, 36vw, 320px)), -50%) scale(0.68);
    opacity: 0.7;
  }
}

@media (max-width: 767.98px) {
  .places-stage {
    height: 310px;
    perspective: 800px;
  }
  .places-card {
    width: min(72vw, 260px);
    height: min(72vw, 260px);
  }
  .places-card[data-offset="0"] {
    transform: translate(-50%, -50%) scale(1.02);
  }
  .places-card[data-offset="-1"] {
    transform: translate(calc(-50% - 65%), -50%) scale(0.8);
    opacity: 0.7;
  }
  .places-card[data-offset="1"] {
    transform: translate(calc(-50% + 65%), -50%) scale(0.8);
    opacity: 0.7;
  }
  .places-card[data-offset="-2"],
  .places-card[data-offset="2"] {
    opacity: 0;
    pointer-events: none;
    transform: translate(calc(-50% + (var(--offset-sign, 1) * 110%)), -50%) scale(0.6);
  }
  .places-card-title {
    font-size: var(--fs-lg);
  }
}

/* CTA Strip styles */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: clamp(1.25rem, 2.5vw, 1.85rem) clamp(1.5rem, 3.5vw, 3rem);
  border-radius: var(--r-band);
  background: var(--grad-dark);
  box-shadow: 0 14px 36px rgba(1, 20, 56, 0.25);
  border: 1px solid rgba(43, 160, 250, 0.22);
  position: relative;
  overflow: hidden;
}
.cta-icon-badge {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--grad-icon);
  box-shadow: 0 0 20px rgba(43, 160, 250, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cta-icon-badge svg {
  width: 2.35rem;
  height: 2.35rem;
}
.cta-content {
  flex: 1 1 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cta-eyebrow {
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.cta-title {
  color: #ffffff;
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: 1.5;
}
.cta-action {
  flex-shrink: 0;
}
.cta-btn {
  min-height: 2.85rem;
  padding: 0.75rem 2.2rem;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.cta-arrow {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s ease;
}
.cta-btn:hover .cta-arrow {
  transform: translateX(3px);
}
@media (max-width: 767.98px) {
  .cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }
  .cta-content {
    align-items: center;
  }
  .cta-action {
    width: 100%;
  }
  .cta-btn {
    width: 100%;
  }
}

