/* ═══════════════════════════════════════════════════
   SEARCH.CSS — Flight search homepage layout & styles
   Horizon Travel System
   ═══════════════════════════════════════════════════ */

@keyframes paxSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Navigation ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 8px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 16px;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.nav__links {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav__link {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s, background 0.15s;
}
.nav__link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav__link--active {
  color: white;
  background: rgba(255,255,255,0.14);
  font-weight: 600;
}

.nav__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(140deg, var(--color-primary) 0%, var(--color-primary-container) 100%);
  padding: 72px 0 132px;
  overflow: hidden;
}

/* Radial teal glow — decorative */
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 75% 45%, rgba(0,176,253,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary-container);
  margin-bottom: 14px;
}
.hero__headline {
  color: white;
  max-width: 580px;
}
.hero__subline {
  color: rgba(255,255,255,0.66);
  margin-top: 18px;
  max-width: 440px;
}

/* ── Search widget ────────────────────────────────── */
.search-widget-wrap {
  margin-top: -80px;   /* pulls widget up into the hero */
  position: relative;
  z-index: 20;
  padding-bottom: 8px; /* prevents shadow clip */
}

.search-widget {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 28px 32px 22px;
}

/* Trip-type tabs */
.trip-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 22px;
  border-bottom: 1.5px solid var(--color-outline-variant);
}
.trip-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: color 0.15s, border-color 0.15s;
}
.trip-tab:hover { color: var(--color-primary-container); }
.trip-tab--active {
  color: var(--color-primary-container);
  border-bottom-color: var(--color-secondary-container);
  font-weight: 600;
}
.trip-tab--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.coming-soon-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-surface-container);
  color: var(--color-on-surface-variant);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* Search row — 6-column grid */
.search-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 150px 180px auto;
  align-items: end;
  gap: 0 12px;
  margin-bottom: 14px;
}
.search-row--round {
  grid-template-columns: 1fr 40px 1fr 130px 130px 160px auto;
}

/* Swap button */
.swap-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-outline-variant);
  background: white;
  color: var(--color-primary-container);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 2px;
  position: relative;
  z-index: 501; /* above .autocomplete-list (500) so open dropdowns don't swallow clicks */
  transition: border-color 0.15s, background 0.15s, transform 0.25s var(--ease-out);
}
.swap-btn:hover {
  border-color: var(--color-secondary-container);
  background: var(--color-surface-low);
}

/* Search submit button */
.btn--search {
  background: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  border-radius: var(--radius);
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn--search:hover {
  background: #00a1e8;
  box-shadow: 0 4px 16px rgba(0,176,253,0.38);
}

/* Passenger dropdown */
.pax-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  background: white;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-high);
  padding: 20px;
  z-index: 400;
}
.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-surface-high);
}
.pax-row:first-child { padding-top: 0; }
.pax-info { display: flex; flex-direction: column; gap: 3px; }
.pax-type { font-weight: 600; font-size: 14px; }
.pax-note { font-size: 12px; color: var(--color-on-surface-variant); }
.pax-divider { height: 1px; background: var(--color-outline-variant); margin: 14px 0 12px; }

.cabin-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cabin-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-outline-variant);
  background: white;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  transition: all 0.15s;
}
.cabin-chip:hover { border-color: var(--color-secondary-container); color: var(--color-primary-container); }
.cabin-chip--active {
  background: var(--color-primary-container);
  border-color: var(--color-primary-container);
  color: white;
}
.pax-done { width: 100%; margin-top: 16px; justify-content: center; }

/* Fare chips row */
.fare-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.options-label {
  color: var(--color-on-surface-variant);
  margin-right: 2px;
}
.fare-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  background: #fff;
  color: var(--color-on-surface);
  border: 1.5px solid var(--color-primary-fixed);
  cursor: pointer;
  transition: all 0.15s;
}
.fare-chip:hover { background: var(--color-surface-high); }
.fare-chip--active {
  background: var(--color-primary-fixed);
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}
.direct-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  margin-left: auto;
  user-select: none;
}
.direct-toggle input[type="checkbox"] { accent-color: var(--color-secondary-container); }

/* ── Price Calendar ────────────────────────────────── */
.calendar-section {
  background: var(--color-surface-low);
  border-top: 1px solid var(--color-outline-variant);
  padding: 32px 0;
  margin-top: 40px;
}
.calendar-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.calendar-note { color: var(--color-on-surface-variant); }

.calendar-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-outline-variant) transparent;
}
.cal-day {
  flex-shrink: 0;
  width: 88px;
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-outline-variant);
  background: white;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.cal-day:hover {
  border-color: var(--color-secondary-container);
  box-shadow: var(--shadow-low);
  transform: translateY(-2px);
}
.cal-day--cheapest { border-color: var(--color-success); background: var(--color-success-container); }
.cal-day--selected { border-color: var(--color-secondary-container); background: #e3f7ff; }
.cal-day--unavailable { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

.cal-day__date  { font-size: 11px; font-weight: 600; color: var(--color-on-surface-variant); text-transform: uppercase; }
.cal-day__price { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--color-primary-container); margin-top: 5px; }
.cal-day__code  { font-size: 10px; color: var(--color-on-surface-variant); margin-top: 3px; }

/* ── Trust bar ────────────────────────────────────── */
.trust-bar {
  background: white;
  border-top: 1px solid var(--color-outline-variant);
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 30px 0;
  margin-top: 40px;
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-icon-wrap {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: #e3f7ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon-wrap svg {
  width: 20px; height: 20px;
  stroke: var(--color-secondary-container);
}

/* ── Popular routes ───────────────────────────────── */
.popular-routes {
  padding: var(--sp-8) 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.route-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-low);
  cursor: pointer;
  text-align: left;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s;
}
.route-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-high);
  border-color: var(--color-primary-fixed-dim);
}
.route-card__visual {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}
.route-card__code {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}
.route-card__info {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.route-card__cities { font-size: 14px; font-weight: 600; color: var(--color-on-surface); }
.route-card__price  { text-align: right; }
.route-card__label  { font-size: 11px; color: var(--color-on-surface-variant); display: block; margin-top: 1px; }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--color-inverse-surface);
  padding: 56px 0 0;
  margin-top: var(--sp-8);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col__heading {
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  margin-bottom: 11px;
  transition: color 0.15s;
}
.footer-link:hover { color: white; }
.footer-link--soon { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.footer-bottom { padding: 20px 0; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .search-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px 20px;
  }
  /* Hide the visual swap button; swap via JS still works */
  .swap-btn { display: none; }
  #depart-wrap { grid-column: 1; }
  #return-wrap { grid-column: 2; }
  #pax-wrap    { grid-column: 2; }
  .search-row--round #pax-wrap { grid-column: 1 / -1; }
  .btn--search { grid-column: 1 / -1; justify-content: center; }
  .pax-dropdown { right: auto; left: 0; }

  /* Links need full header width at tablet; auth would squeeze them into 2 rows */
  .nav__auth { display: none; }
  /* Full nav + logo doesn't fit 768px: compact to text-only, never stack icon over label */
  .nav__icon { display: none; }
  .nav__link { white-space: nowrap; }

  .hero { padding: 48px 0 110px; }
}

@media (max-width: 767px) {
  /* Bottom nav replaces hamburger on mobile */
  .nav__hamburger { display: none; }
}

@media (max-width: 600px) {
  :root { --margin-x: 16px; }
  .search-row { grid-template-columns: 1fr; }
  #return-wrap, #pax-wrap { grid-column: 1; }
  .search-widget { padding: 20px 16px 16px; }
  .routes-grid { grid-template-columns: 1fr; }
  .trust-bar__inner { grid-template-columns: 1fr; gap: 20px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 0; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .pax-dropdown {
    position: fixed;
    bottom: 76px;
    left: 20px;
    right: 20px;
    top: auto;
    width: auto;
    border-radius: 24px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 0 20px 24px;
    z-index: 600;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
    animation: paxSlideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1) both;
  }
  .pax-dropdown::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--color-outline-variant);
    border-radius: 2px;
    margin: 12px auto 20px;
  }
  .calendar-header { flex-direction: column; gap: 4px; }
  .promo-strip__inner { flex-wrap: wrap; }
}

/* ── Promo strip ─────────────────────────────────── */
.promo-strip {
  background: linear-gradient(90deg, #002155 0%, #003580 100%);
  padding: 14px 0;
}
.promo-strip__inner {
  display: flex; align-items: center; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
}
.promo-strip__inner::-webkit-scrollbar { display: none; }
.promo-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  white-space: nowrap; flex-shrink: 0;
}
.promo-banner__badge {
  font-size: 12px; font-weight: 800; padding: 3px 10px;
  border-radius: 999px;
  background: #facc15; color: #1a1a1a;
  letter-spacing: 0.04em;
}
.promo-banner__body { display: flex; flex-direction: column; gap: 1px; }
.promo-banner__body strong { font-size: 13px; font-weight: 700; color: white; }
.promo-banner__body span  { font-size: 12px; color: rgba(255,255,255,0.65); }
.promo-banner__cap { font-size: 11px; font-weight: 600; color: #86efac; }

/* ── Offers Section ──────────────────────────────── */
.offers-section {
  padding: 52px 0 64px;
  background: linear-gradient(160deg, #dce6f5 0%, #edf2fb 50%, #d8e4f2 100%);
}
/* Outer 3D card */
.offers-section > .container {
  background: white;
  border-radius: 20px;
  padding: 36px 40px 40px;
  position: relative;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.07),
    0 16px 40px rgba(0,0,0,0.08),
    0 40px 80px rgba(0,0,0,0.05);
  border: 1px solid rgba(220,230,245,0.7);
}
/* Ground shadow for the 3D "lifted" feel */
.offers-section > .container::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  right: 20px;
  height: 20px;
  background: rgba(0,40,120,0.12);
  border-radius: 50%;
  filter: blur(14px);
  z-index: -1;
}
.offers-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.offers-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  flex-shrink: 0;
  margin-right: 28px;
}
.offers-tabs {
  display: flex;
  flex: 1;
  border-bottom: 2px solid #e8ecf2;
  gap: 0;
}
.offers-tab {
  padding: 6px 20px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #777;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.offers-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.offers-tab:hover:not(.offers-tab--active) { color: #333; }
.offers-nav-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 20px;
}
.offers-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #d0d8e8;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.offers-nav-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,53,128,0.15);
}
.offers-nav-btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
/* 3D perspective context for the grid */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  perspective: 1400px;
}
/* Individual offer card with 3D hover */
.offer-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #e4eaf4;
  overflow: visible;        /* allow shadow to bleed out */
  display: flex;
  cursor: pointer;
  min-height: 152px;
  text-decoration: none;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
  will-change: transform;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.05),
    0 4px 12px rgba(0,0,0,0.06);
}
/* Clip the inner content (image corners etc) while the outer card has visible overflow */
.offer-card > * { border-radius: inherit; }
.offer-card__img {
  border-radius: 14px 0 0 14px !important;
  overflow: hidden;
}
.offer-card__body { border-radius: 0 14px 14px 0 !important; overflow: hidden; }

.offer-card:hover {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateY(-6px) scale(1.01);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 20px rgba(0,0,0,0.09),
    14px 28px 48px rgba(0,40,120,0.10),
    -4px 6px 12px rgba(0,0,0,0.04);
}
/* Gloss overlay on the image panel */
.offer-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.28) 0%,
    rgba(255,255,255,0.05) 45%,
    rgba(0,0,0,0.12) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.offer-card--hidden { display: none !important; }
.offer-card__img {
  width: 156px;
  flex-shrink: 0;
  position: relative;
}
.offer-card__img--hotel  { background: linear-gradient(135deg, #e65c00 0%, #f9a825 100%); }
.offer-card__img--flight { background: linear-gradient(135deg, #002155 0%, #1565c0 60%, #42a5f5 100%); }
.offer-card__img--addon  { background: linear-gradient(135deg, #003d5e 0%, #0077b6 60%, #00b4d8 100%); }
.offer-card__img-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.22;
  z-index: 0;
}
.offer-card__img-icon svg { width: 80px; height: 80px; color: white; }
.offer-card__pct-badge {
  position: absolute;
  bottom: 14px;
  left: 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 17px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: -0.01em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.offer-card__body {
  flex: 1;
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: white;
}
.offer-card__tc {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.offer-card__label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2px;
  margin-right: 64px;
  line-height: 1.35;
}
.offer-card__sep {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  margin: 8px 0 6px;
}
.offer-card__sep--hotel  { background: #e65c00; }
.offer-card__sep--flight { background: var(--color-primary); }
.offer-card__sep--addon  { background: #0077b6; }
.offer-card__desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  flex: 1;
}
.offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.offer-card__code {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  border: 1px dashed var(--color-primary);
  white-space: nowrap;
}
.offer-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.offer-card__cta:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .offers-grid { grid-template-columns: 1fr; perspective: none; }
  .offers-tabs { display: none; }
  .offers-title { font-size: 22px; }
  .offers-section > .container { padding: 28px 24px 32px; }
}
@media (max-width: 600px) {
  .offers-section { padding: 28px 0 36px; }
  .offers-section > .container { border-radius: 14px; padding: 20px 16px 24px; }
  .offer-card__img { width: 110px; }
  .offer-card__pct-badge { font-size: 14px; }
  .offer-card:hover { transform: none; }
}

/* ── Mobile city-search full-screen overlay ─────────────────────────────── */

.cso {
  position: fixed;
  left: 14px;
  right: 14px;
  top: 0;
  bottom: 0;
  z-index: 1500;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.cso--open {
  transform: translateY(0);
  pointer-events: auto;
}

.cso__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.cso__back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #0f172a;
  display: flex;
  align-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.cso__back:active { background: #f1f5f9; }

.cso__input {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  border: none;
  outline: none;
  color: #0f172a;
  background: transparent;
  padding: 8px 4px;
  min-width: 0;
}
.cso__input::placeholder { color: #94a3b8; font-weight: 400; }

.cso__list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}
.cso__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.cso__icon--pin   { color: #1d4ed8; }
.cso__icon--plane { color: #64748b; }

/* City row (pin icon + chevron) */
.cso__city-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cso__city-row:active { background: #eef2ff; }
.cso__city-label { font-size: 15px; font-weight: 700; color: #0f172a; flex: 1; }

.cso__chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.cso__city-row--expanded .cso__chevron { transform: rotate(180deg); }

/* Airport rows */
.cso__ap-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cso__ap-row--nested { padding-left: 48px; background: #fff; }
.cso__ap-row:active  { background: #f8fafc; }

.cso__info    { display: flex; flex-direction: column; min-width: 0; }
.cso__ap-city { font-size: 15px; font-weight: 600; color: #0f172a; }
.cso__ap-name {
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cso__ap-meta { font-size: 12px; font-weight: 700; color: #1d4ed8; margin-top: 1px; }

.cso__empty {
  padding: 32px 20px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
  list-style: none;
}

@media (min-width: 768px) { .cso { display: none; } }
