/* ====================== Design Tokens ====================== */
:root{
  --bg:#F7F2E8;               /* Yuzu Warm Sand */
  --surface:#fff;             /* Yuzu Cloud White */
  --text:#0B1F44;              /* Yuzu Navy */
  --muted:#6b7280;            /* gray-500 */
  --muted-2:#94a3b8;          /* slate-400 */
  --border:#e7e2d4;           /* warm-tinted neutral */
  --primary:#0B1F44;           /* Yuzu Navy */
  --primary-700:#081530;      /* Yuzu Navy, darker */
  --yellow:#F7C83E;           /* Yuzu Yellow */
  --yellow-dark:#e9b32c;      /* Yuzu Yellow, darker (hover) */
  --sky-mist:#DCEBFA;         /* Yuzu supporting */
  --warm-sand:#F7F2E8;        /* Yuzu supporting */
  --soft-gray:#EEF2F7;        /* Yuzu supporting */
  --chip:#0B1F44cc;
  --shadow-sm:0 1px 2px rgba(2,6,23,.07);
  --shadow-md:0 10px 18px rgba(2,6,23,.10);
  --radius:16px;
}

/* ====================== Base / Reset ====================== */
* { box-sizing: border-box; }

a { text-decoration:none}

html, body { height: 100%; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Manrope, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

a{ color:inherit }

button, input, select, textarea, .page-btn { font: inherit; }

/* ====================== Layout ====================== */
.container{ min-width:min(1200px,100%); margin:0 auto; padding:0 20px }

/* Make the results area fill the remaining height */
main.results{ flex:1; display:flex }
.results .container{ flex:1; display:flex; flex-direction:column }

/* ====================== Header ====================== */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(246,248,251,.9);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border)
}
.site-header .bar{ height:64px; display:flex; align-items:center; justify-content:space-between; gap:12px }

.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.3px; text-decoration:none }
.brand-logo{ height:44px; width:auto; display:block; }
#open-filters { background:var(--yellow); border-color:var(--yellow); color:var(--primary); }
#open-filters svg { color:var(--primary); }
#open-filters:hover { background:var(--yellow-dark); border-color:var(--yellow-dark); }

.actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px }

/* ---------- Actions menu (hamburger) — same collapsed-menu chrome on
   desktop and mobile; there is no separate "flat inline buttons" layout
   anymore, so this isn't gated behind a breakpoint. ---------- */
.menu-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:12px; flex:0 0 auto;
  border:1px solid var(--border); background:#fff; color:var(--text);
  cursor:pointer; box-shadow:var(--shadow-sm);
}
.menu-toggle svg{ width:18px; height:18px; }
.menu-toggle:hover{ background:var(--soft-gray); }

.actions-menu{
  display:none;
  position:absolute; top:64px; right:20px; margin-top:8px;
  width:min(360px, calc(100vw - 40px));
  flex-direction:column; align-items:stretch; gap:8px; padding:14px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow-md);
  z-index:50;
}
.actions-menu.is-open{ display:flex; }

/* ====================== Buttons ====================== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  height:36px; padding:0 12px; border-radius:12px;
  border:1px solid var(--border); background:#fff;
  font-weight:600; font-size:14px; cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow-md) }
.btn svg{ width:16px; height:16px; color:var(--text) }
.btn--ghost{ background:#fff }
.btn--primary{ background:var(--yellow); border-color:var(--yellow); color:var(--primary) }
.btn--primary:hover{ background:var(--yellow-dark); border-color:var(--yellow-dark) }

/* Pagination buttons */
.pagination{ display:flex; justify-content:center; gap:8px; margin-top:20px }
.page-list{ display:inline-flex; gap:8px }
.page-btn{
  display:grid; place-items:center; min-width:32px; height:32px;
  border-radius:10px; border:1px solid var(--border);
  background:#fff; font-weight:400; cursor:pointer;
}
.page-btn[aria-current="page"]{ background:var(--yellow); border-color:var(--yellow); color:var(--primary) }

/* ====================== Cards / Results ====================== */
.results{ padding:24px 0 32px }

.cards-grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  align-items:stretch; /* equal heights */
  position:relative; /* anchors .paywall-overlay */
}
@media(min-width:1280px){ .cards-grid{ grid-template-columns:repeat(4,1fr) } }
@media(min-width:900px) and (max-width:1279px){ .cards-grid{ grid-template-columns:repeat(3,1fr) } }
@media(min-width:640px) and (max-width:899px){ .cards-grid{ grid-template-columns:repeat(2,1fr) } }

/* CSS-only empty state when there are no cards */
.cards-grid:empty{
  display:grid; place-items:center; padding:32px 16px;
}
.cards-grid:empty::before{
  color:var(--muted); text-align:center; max-width:40ch; line-height:1.5; font-size:16px;
}

.results-loader{
  grid-column:1 / -1;
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:var(--muted);
}
.results-loader__spinner{
  width:44px;
  height:44px;
  border-radius:50%;
  border:4px solid var(--border);
  border-top-color:var(--primary);
  animation:results-loader-spin .8s linear infinite;
}
.results-loader__text{
  font-size:15px;
  font-weight:600;
}
@keyframes results-loader-spin{
  to{ transform:rotate(360deg); }
}

.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:clip; box-shadow:var(--shadow-md);
  display:flex; flex-direction:column; cursor:pointer; height:100%;
}
.card__media{
  position:relative; width:100%; aspect-ratio:16/10; overflow:hidden; background:var(--sky-mist);
}
.card__media img{
  width:100%; height:100%; object-fit:cover; object-position:center; display:block;
}
.card__tags{ position:absolute; top:10px; right:10px; display:flex; gap:6px }

.card__save{
  position:absolute; top:10px; left:10px; z-index:2;
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.92); border:1px solid rgba(255,255,255,.6);
  color:var(--primary); cursor:pointer; box-shadow:var(--shadow-sm);
}
.card__save svg{ width:16px; height:16px; }
.card__save:hover{ background:#fff; }
.card__save:disabled{ opacity:.6; cursor:default; }
.card__save.is-saved{ background:var(--yellow); border-color:var(--yellow); color:var(--primary); }
.card__save.is-saved svg{ fill:var(--primary); }

.chip{
  color:#fff; background:var(--chip); backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.25); padding:4px 10px;
  border-radius:999px; font-size:12px; font-weight:600
}

.card__body{
  padding:14px 16px 16px;
  display:flex; flex-direction:column; gap:8px;
  flex:1; justify-content:space-between; /* keep price at bottom */
}
.card__title{ margin:0; font-size:16px; font-weight:600 }
.meta{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--muted) }
.meta svg{ width:16px; height:16px; color:#64748b }
.price{ font-weight:600; font-size:15px; }

/* ---------- Locked / teaser cards (free-tier paywall) ---------- */
.card--locked{ cursor:default; user-select:none; }
.card--locked .card__media,
.card--locked .card__body{ filter:blur(6px); }
.card--locked .card__tags .chip{ background:var(--muted-2); }

/* The boarding pass stays below the free results as the grid reflows. */
.paywall-overlay{
  position:absolute; left:0; right:0; z-index:3;
  display:flex; align-items:flex-start; justify-content:center;
  pointer-events:none;
}
.paywall-overlay__panel{
  width:min(560px,100%); overflow:hidden;
  background:#fff; border:1px solid #e4e4e8; border-radius:26px;
  box-shadow:0 20px 48px rgba(11,31,68,.22);
  pointer-events:auto;
}
.pro-ticket__main{ padding:22px 24px 20px; }
.pro-ticket__header{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.pro-ticket__brand{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:800; letter-spacing:.06em; white-space:nowrap; }
.pro-ticket__lemon{ font-size:22px; line-height:1; }
.pro-ticket__boarding{ color:#8c919d; font-size:10px; font-weight:700; letter-spacing:.16em; text-align:right; text-transform:uppercase; }
.pro-ticket__title{ margin:0 0 8px; font-size:28px; font-weight:800; line-height:1.15; letter-spacing:-.03em; }
.pro-ticket__description{ margin:0; color:#5d6270; font-size:15px; line-height:1.4; }
.pro-ticket__description strong{ color:var(--text); font-weight:700; }
.pro-ticket__comparison{ display:grid; grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr); align-items:center; gap:12px; margin-top:20px; text-align:center; }
.pro-ticket__plan{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.pro-ticket__plan-name{ color:#757b88; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.pro-ticket__plan-value{ font-size:20px; line-height:1.25; font-weight:700; overflow-wrap:anywhere; }
.pro-ticket__plan--free .pro-ticket__plan-name,
.pro-ticket__plan--free .pro-ticket__plan-value{ color:#969aa5; }
.pro-ticket__plane{ display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--primary); color:var(--yellow); }
.pro-ticket__plane svg{ width:19px; height:19px; }
.pro-ticket__stub{ position:relative; padding:16px 20px 18px; border-top:2px solid transparent; background:#f5f5f9; }
/* Draw the perforation above the side cutouts so it reaches both edges. */
.pro-ticket__stub::before{ content:""; position:absolute; top:-2px; left:0; right:0; z-index:1; border-top:2px dashed #d5d7dc; pointer-events:none; }
.pro-ticket__stub::after{
  content:""; position:absolute; top:-12px; left:0; right:0; height:20px; pointer-events:none;
  background:radial-gradient(circle at left center,var(--bg) 10px,transparent 10.5px),radial-gradient(circle at right center,var(--bg) 10px,transparent 10.5px);
}
.pro-ticket__features{ display:flex; justify-content:center; align-items:flex-start; gap:10px; margin:0 0 16px; padding:0; list-style:none; }
.pro-ticket__features li{ display:flex; align-items:center; gap:5px; font-size:12px; font-weight:600; line-height:1.4; }
.pro-ticket__check{ display:grid; place-items:center; flex:none; width:16px; height:16px; border-radius:50%; background:#ffda66; font-size:11px; }
.pro-ticket__upgrade{
  display:flex; align-items:center; justify-content:center; gap:12px;
  min-height:52px; padding:12px 16px; border-radius:20px;
  background:var(--yellow); color:var(--primary); font-size:19px; font-weight:700; text-align:center;
  transition:background .15s ease;
}
.pro-ticket__upgrade:hover{ background:var(--yellow-dark); }
.pro-ticket__upgrade:focus-visible{ outline:3px solid var(--primary); outline-offset:4px; }
.pro-ticket__upgrade svg{ flex:none; width:20px; height:20px; }
.pro-ticket__trial{ margin:10px 0 0; color:#858b99; font-size:13px; font-weight:500; text-align:center; }
@media(min-width:640px){
  .paywall-overlay__panel{ width:min(465px,100%); border-radius:22px; }
  .pro-ticket__main{ padding:16px 20px; }
  .pro-ticket__header{ gap:10px; margin-bottom:12px; }
  .pro-ticket__brand{ gap:6px; font-size:12px; }
  .pro-ticket__lemon{ font-size:18px; }
  .pro-ticket__boarding{ font-size:9px; }
  .pro-ticket__title{ margin-bottom:6px; font-size:24px; }
  .pro-ticket__description{ font-size:13px; }
  .pro-ticket__comparison{ grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr); gap:10px; margin-top:14px; }
  .pro-ticket__plan-name{ font-size:10px; }
  .pro-ticket__plan-value{ font-size:17px; }
  .pro-ticket__plane{ width:30px; height:30px; }
  .pro-ticket__plane svg{ width:17px; height:17px; }
  .pro-ticket__stub{ padding:12px 16px 14px; }
  .pro-ticket__features{ gap:8px; margin-bottom:12px; }
  .pro-ticket__features li{ gap:4px; font-size:10px; }
  .pro-ticket__check{ width:14px; height:14px; font-size:10px; }
  .pro-ticket__upgrade{ gap:10px; min-height:44px; padding:10px 12px; border-radius:16px; font-size:16px; }
  .pro-ticket__upgrade svg{ width:18px; height:18px; }
  .pro-ticket__trial{ margin-top:8px; font-size:12px; }
}
@media(max-width:639px){
  .paywall-overlay__panel{ border-radius:24px; }
  .pro-ticket__main{ padding:20px 20px 18px; }
  .pro-ticket__header{ gap:10px; margin-bottom:16px; }
  .pro-ticket__brand{ gap:6px; font-size:13px; }
  .pro-ticket__lemon{ font-size:20px; }
  .pro-ticket__boarding{ max-width:48%; font-size:9px; letter-spacing:.14em; }
  .pro-ticket__title{ font-size:clamp(20px,5vw,24px); }
  .pro-ticket__description{ font-size:14px; }
  .pro-ticket__comparison{ grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr); gap:10px; margin-top:20px; }
  .pro-ticket__plan-name{ font-size:9px; }
  .pro-ticket__plan-value{ font-size:clamp(14px,3.6vw,16px); }
  .pro-ticket__plane{ width:30px; height:30px; }
  .pro-ticket__plane svg{ width:17px; height:17px; }
  .pro-ticket__stub{ padding:14px 16px 16px; }
  .pro-ticket__features{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
  .pro-ticket__features li{ gap:4px; font-size:10px; overflow-wrap:anywhere; }
  .pro-ticket__features li > span:last-child{ min-width:0; }
  .pro-ticket__check{ width:13px; height:13px; font-size:9px; }
  .pro-ticket__upgrade{ gap:10px; min-height:48px; padding:12px; border-radius:20px; font-size:18px; }
  .pro-ticket__upgrade svg{ width:20px; height:20px; }
  .pro-ticket__trial{ margin-top:10px; font-size:13px; }
}

/* ====================== Footer ====================== */
.site-footer{ background:var(--primary); color:#cbd5e1; font-size:13px }
.site-footer .inner{ padding:18px 20px; display:flex; align-items:center; justify-content:space-between }
.site-footer a{ color:#cbd5e1 }
.site-footer p{ padding-right:10px }

/* ====================== Filters Modal ====================== */
.modal{ position:fixed; inset:0; z-index:1000; display:none }
.modal.is-open{ display:block }
.modal__overlay{
  position:absolute; inset:0; background:rgba(3,7,18,.6); backdrop-filter:blur(2px);
  opacity:0; transition:opacity .25s ease
}
.modal.is-open .modal__overlay{ opacity:1 }

.modal__panel{
  position:relative; margin:24px auto; background:#fff; border:1px solid var(--border);
  border-radius:20px; width:min(760px,96vw); max-height:calc(100vh - 48px);
  overflow:auto; padding:0; box-shadow:0 40px 60px rgba(2,6,23,.28);
  transform:translateY(8px) scale(.98); opacity:0;
  transition:transform .25s ease, opacity .25s ease
}
.modal.is-open .modal__panel{ transform:none; opacity:1 }

.filters-header{
  display:flex; align-items:flex-start; justify-content:space-between;
  padding:18px 20px 16px; border-bottom:1px solid var(--border)
}
.filters-title-wrap{ display:flex; gap:12px; align-items:flex-start }
.sparkle{ display:grid; place-items:center; width:36px; height:36px; border-radius:12px; box-shadow:0 8px 16px rgba(11,31,68,.25) }
.filters-title{ margin:0; font-size:20px; line-height:1.2; font-weight:600 }
.filters-sub{ margin:4px 0 0; color:var(--muted); font-size:14px }
.icon-btn{
  display:grid; place-items:center; width:36px; height:36px; border-radius:10px;
  border:1px solid var(--border); background:#fff; cursor:pointer
}

.filters-body{ padding:18px 20px }
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px }
.col-span-2{ grid-column:1 / -1 }

.field label{ display:block; font-weight:500; font-size:14px; margin:0 0 8px }
.field label small{ color:var(--muted); font-weight:500 }

/* Controls */
.control{ position:relative }
.control .input, .stepper, .pill, .select{
  height:38px; border-radius:12px; border:1px solid var(--border); background:#fff;
  display:flex; align-items:center; gap:10px; padding:0 12px; font-weight:300; color:var(--text);
  box-shadow:var(--shadow-sm)
}
.control svg{ width:18px; height:18px; color:#64748b }
.control input[type="text"]{ border:0; outline:none; width:100%; background:transparent; font:inherit; color:inherit }
.chev{ margin-left:auto }

/* Accessible multi-select */
.styled-multi{ position:absolute; opacity:0; pointer-events:none }
.multi-display{
  flex:1; display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  min-height:20px; padding:6px 0; cursor:pointer; background:transparent;
}
.multi-display .tag{
  background:rgba(11,31,68,.08); border-radius:999px; padding:2px 8px;
  font-size:.875rem; line-height:1.2; display:flex; align-items:center; gap:4px;
}
.multi-display .tag button{
  border:none; background:transparent; cursor:pointer; font-size:14px; line-height:1; opacity:.7;
}
.multi-display .tag button:hover{ opacity:1 }
.multi-display .placeholder{ opacity:.6 }

.multi-dropdown{
  position:absolute; top:100%; left:0; right:0; z-index:999; background:#fff;
  border:1px solid var(--border); border-radius:12px; box-shadow:0 8px 20px rgba(0,0,0,.1);
  max-height:240px; overflow-y:auto; display:none;
}
.multi-dropdown.is-open{ display:block }
.multi-dropdown label{ display:flex; align-items:center; gap:8px; padding:6px 12px; cursor:pointer }
.multi-dropdown label:hover{ background:#f1f5f9 }
.multi-dropdown input{ accent-color:var(--primary) }

/* Stepper */
.stepper{ justify-content:space-between }
.stepper .left{ display:flex; align-items:center; gap:10px }
.stepper .actions{ margin-left:auto; display:flex; gap:10px; padding-left:12px; border-left:1px solid var(--border) }
.stepper button{ width:32px; height:32px; border-radius:10px; border:1px solid var(--border); background:#fff; font-weight:600; cursor:pointer }

.info-dot{
  display:inline-grid; place-items:center; width:18px; height:18px; border-radius:999px;
  background:var(--sky-mist); border:1px solid #c9dff2; color:var(--primary-700); font-size:12px; font-weight:600
}

/* Months & pills */
.date-mode{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  padding:4px;
  margin:4px 0 12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f8fafc;
}
.date-mode-btn{
  height:36px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font-weight:600;
  cursor:pointer;
}
.date-mode-btn.is-active{
  background:#fff;
  color:var(--primary);
  box-shadow:var(--shadow-sm);
}
.months{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px }
.months[hidden]{ display:none }
.month-btn{
  height:44px; border-radius:12px; border:1px solid transparent; background:#f3f4f6;
  font-weight:300; cursor:pointer; box-shadow:var(--shadow-sm);
}
.month-btn:hover{ filter:brightness(.98) }
.month-btn.is-active{ border-color:var(--yellow); background:var(--yellow); color:var(--primary); box-shadow:0 10px 20px rgba(11,31,68,.18) }
.date-range-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.date-range-fields[hidden]{ display:none }
.date-range-field{
  display:grid;
  gap:6px;
  margin:0;
}
.date-range-field span{
  color:var(--muted-2);
  font-size:13px;
  font-weight:600;
}
.date-range-field input{
  width:100%;
  height:44px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font:inherit;
  padding:0 12px;
  box-shadow:var(--shadow-sm);
}

.range-wrap{ margin-top:6px }
.dual-range{ position:relative; height:36px }
.dual-range .track{
  position:absolute; top:50%; transform:translateY(-50%); height:4px; width:100%;
  border-radius:999px; background:#e5e7eb;
}
.dual-range input[type="range"]{
  position:absolute; inset:0; width:100%; pointer-events:none; -webkit-appearance:none; background:transparent;
}
.dual-range input[type="range"]::-webkit-slider-thumb{
  pointer-events:auto; -webkit-appearance:none; width:18px; height:18px; border-radius:50%;
  background:#fff; border:1px solid var(--border); box-shadow:0 1px 4px rgba(2,6,23,.2);
}
.dual-range input[type="range"]::-moz-range-thumb{
  pointer-events:auto; width:18px; height:18px; border-radius:50%; background:#fff;
  border:1px solid var(--border); box-shadow:0 1px 4px rgba(2,6,23,.2);
}

.pill-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:8px }
.pill{ justify-content:space-between; color:#111827 }
.pill span:first-child{ color:var(--muted-2); font-weight:600 }
.field label.stay-pill{ display:flex; margin-bottom:0; font-size:inherit; letter-spacing:normal; text-transform:none }
.stay-value{ display:flex; align-items:center; gap:6px; white-space:nowrap }
.stay-value input{ width:3.5em; min-width:0; padding:3px; border:1px solid var(--border); border-radius:5px; background:#fff; font:inherit; color:inherit; text-align:center }
.stay-value input:focus-visible{ outline:2px solid var(--primary); outline-offset:2px }

/* Filters footer */
.filters-footer{
  position:sticky; bottom:0; background:#fff; border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; padding:14px 20px;
}
.link-btn{ background:transparent; border:0; color:var(--muted); font-weight:600; text-decoration:underline; cursor:pointer; padding:6px 0 }

/* ====================== Focus Styles ====================== */
:where(.btn,.page-btn,button){ outline:none }
:where(.btn,.page-btn,button):focus-visible{ box-shadow:0 0 0 3px rgba(11,31,68,.35) }

/* ====================== Utilities ====================== */
#empty-message { display:none; }
.search-empty-state {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  font-size: 18px;
}
.search-empty-state p{ margin:0; margin-top:10px; }

/* ====================== Responsive ====================== */
@media(max-width:640px){
  /* Centered modal with equal side insets; never wider than the screen */
  .modal__panel{
    margin:12px auto;
    width:calc(100dvw - 24px);
    max-width:100dvw;
    height:auto;
    max-height:calc(100dvh - 24px);
    border-radius:18px;
    display:flex;
    flex-direction:column;
  }
  .filters-body{ padding:16px }
  .grid{ grid-template-columns:1fr }
  .months{ grid-template-columns:1fr 1fr }
  .site-footer .container{ display:block } /* fixed invalid value */
  .search-empty-state {font-size: 14px;}
}

@media(max-width:540px){
  .brand-logo{ height:34px }
  .pill-row{ display:block }
  .pill-row .pill{ margin-bottom:5px }
}

/* ---------- Tier switch (Free/Pro demo toggle) + account chrome ---------- */
.tier-switch{
  display:inline-flex; align-items:center; gap:4px;
  padding:4px; border-radius:999px; background:var(--soft-gray,#EEF2F7);
  border:1px solid var(--border);
}
.tier-switch__label{
  font-size:12px; font-weight:600; color:var(--muted); padding:0 6px;
}
.tier-switch__btn{
  border:0; background:transparent; padding:6px 12px; border-radius:999px;
  font-size:13px; font-weight:700; color:var(--muted); cursor:pointer;
}
.tier-switch__btn:hover{ color:var(--text); }
.tier-switch__btn.is-active{
  background:var(--yellow); color:var(--primary);
}
.account-area{ display:flex; align-items:center; }
.account-chip{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  padding:4px 12px 4px 4px; border-radius:999px; border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-size:14px; font-weight:600;
}
.account-chip__avatar{
  width:28px; height:28px; border-radius:50%; object-fit:cover; display:block;
  background:var(--soft-gray,#EEF2F7);
}
.account-signin{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%; flex:0 0 auto;
  border:1px solid var(--border); background:#fff; color:var(--muted);
  text-decoration:none; box-shadow:var(--shadow-sm);
}
.account-signin svg{ width:18px; height:18px; }
.account-signin:hover{ color:var(--text); transform:translateY(-1px); }
.account-signin__label{ display:none; }

/* ---------- Actions menu: hamburger/close icon swap ---------- */
.menu-toggle .icon-close{ display:none; }
.menu-toggle.is-open .icon-hamburger{ display:none; }
.menu-toggle.is-open .icon-close{ display:block; }

/* ---------- Actions menu: redesigned panel (account row, big tier
   toggle, grouped nav, Go Pro banner) — same on desktop and mobile.
   The plain old nav links/account chip inside .actions-menu are
   replaced by these elements everywhere. ---------- */
#actions-menu .actions-menu__desktop-item,
#account-area{ display:none; }

.actions-menu .tier-switch{ width:100%; height:48px; padding:4px; margin-bottom:14px; order:1; }
.actions-menu .tier-switch__label{ display:none; }
.actions-menu .tier-switch__btn{ flex:1; height:100%; font-size:15px; border-radius:999px; }

.menu-account{
  display:flex; align-items:center; gap:14px;
  padding:6px 6px 16px; margin-bottom:12px; order:0;
  border-bottom:1px solid var(--border);
  text-decoration:none; color:inherit;
}
.menu-account__avatar{
  width:44px; height:44px; border-radius:50%; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  background:var(--yellow); color:var(--primary);
  font-weight:800; font-size:18px; overflow:hidden;
}
.menu-account__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.menu-account__avatar--icon{ background:var(--soft-gray); color:var(--muted); }
.menu-account__avatar--icon svg{ width:20px; height:20px; }
.menu-account__body{ flex:1; min-width:0; }
.menu-account__name{ display:block; font-weight:700; font-size:15px; color:var(--text); }
.menu-account__sub{ display:block; font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.menu-account__chevron{ flex:0 0 auto; width:18px; height:18px; color:var(--muted-2); }

.menu-group{
  display:flex; flex-direction:column;
  border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; margin-bottom:12px; background:var(--surface);
}
.menu-item{
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; text-decoration:none; color:var(--text);
  font-weight:700; font-size:15px;
  border-bottom:1px solid var(--border);
}
.menu-item:last-child{ border-bottom:0; }
.menu-item:hover{ background:var(--soft-gray); }
.menu-item__icon{
  width:36px; height:36px; border-radius:50%; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  background:var(--soft-gray); color:var(--text);
}
.menu-item__icon svg{ width:18px; height:18px; }
.menu-item__label{ flex:1; min-width:0; }
.menu-item__chevron{ flex:0 0 auto; width:18px; height:18px; color:var(--muted-2); }

.menu-go-pro{
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; border-radius:var(--radius);
  background:#FFF3D6; text-decoration:none;
}
.menu-go-pro.is-hidden{ display:none; }
.menu-go-pro__icon{ font-size:20px; flex:0 0 auto; }
.menu-go-pro__body{ flex:1; min-width:0; }
.menu-go-pro__title{ display:block; font-weight:800; font-size:15px; color:var(--text); }
.menu-go-pro__sub{ display:block; font-size:12px; color:var(--muted); }
.menu-go-pro__arrow{
  flex:0 0 auto; width:32px; height:32px; border-radius:50%;
  background:var(--yellow); color:var(--primary);
  display:flex; align-items:center; justify-content:center;
}
.menu-go-pro__arrow svg{ width:16px; height:16px; }

.saved-trips-btn{
  display:inline-flex; align-items:center; gap:8px;
  height:36px; padding:0 14px; border-radius:999px;
  background:#fff; border:1px solid var(--border); color:var(--primary);
  font-weight:700; font-size:14px; text-decoration:none; white-space:nowrap;
  box-shadow:var(--shadow-sm);
}
.saved-trips-btn svg{ width:18px; height:18px; }
.saved-trips-btn:hover, .saved-trips-btn.is-active{ background:var(--yellow); }

@media(max-width:480px){
  .tier-switch__label{ display:none; }
  .saved-trips-btn{ padding:0 10px; }
}

/* City cards link to a dedicated page of dated trip options. */
.destination-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.destination-card__link:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.destination-heading { margin: 0 0 24px; }
.destination-heading h1 { margin: 16px 0; }

/* Destination itinerary page, shared by single- and multi-city search. */
.results:has(.destination-options) > .container { width: 100%; min-width: 0; max-width: 1040px; }
.cards-grid.destination-options { display: block; width: 100%; min-width: 0; }
.destination-back { border: 1px solid var(--border); border-radius: 999px; background: #fff; margin-bottom: 20px; padding: 10px 20px; }
.destination-hero { position: relative; min-height: 340px; height: clamp(270px, 28vw, 400px); border-radius: 24px; overflow: hidden; background: var(--primary); box-shadow: 0 12px 30px #0b1f4410; }
.destination-hero__images { display: flex; position: absolute; inset: 0; }
.destination-hero__images img { flex: 1; min-width: 0; width: 0; height: 100%; object-fit: cover; }
.destination-hero::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #061a31d9); pointer-events: none; }
.destination-hero__caption { position: absolute; left: 30px; right: 30px; bottom: 28px; z-index: 1; color: #fff; }
.destination-hero__caption h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 12px; max-width: 75%; }
.destination-hero__caption p { margin: 0; font-size: 19px; font-weight: 600; }
.destination-hero__count { position: absolute; bottom: 30px; right: 28px; z-index: 2; background: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 800; font-size: 15px; }
.destination-options__title { margin: 32px 0 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.destination-options__hint { margin: 0 0 28px; color: #53677f; font-size: 18px; line-height: 1.5; }
.destination-options__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.destination-option { display: grid; grid-template-columns: minmax(0, 1fr) 240px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 8px 24px #0b1f440a; overflow: hidden; }
.destination-option__itinerary { padding: 22px; min-width: 0; }
.destination-option__dates { margin: 0 0 14px; font-size: 20px; line-height: 1.4; letter-spacing: -.015em; }
.destination-leg__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; color: #53677f; }
.destination-leg__badge { background: #e2ecf5; border-radius: 999px; padding: 3px 9px; color: var(--primary); text-transform: uppercase; font-size: 12px; font-weight: 800; }
.destination-leg__flight { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(60px, 3fr) minmax(80px, 1fr); align-items: center; gap: 12px; }
.destination-leg__airport { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.destination-leg__airport--arrival { text-align: right; }
.destination-leg__time { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.destination-leg__city { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.destination-leg__code { font-size: 14px; color: #53677f; }
.destination-leg__path { display: grid; text-align: center; gap: 3px; color: #53677f; font-size: 13px; }
.destination-leg__line { position: relative; display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 22px; line-height: 1; }
.destination-leg__line::before, .destination-leg__line::after { content: ''; flex: 1; border-top: 3px dotted #94a3b8; }
.destination-option__stop { display: flex; align-items: center; gap: 0; margin: 14px 0; text-align: center; }
.destination-option__stop::before, .destination-option__stop::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.destination-option__stop span { padding: 6px 14px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 700; }
.destination-option__price { padding: 20px; border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.destination-option__price .price { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.destination-option__cta { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 12px; min-height: 48px; background: #ffbf00; color: var(--primary); border-radius: 14px; font-weight: 800; text-decoration: none; text-align: center; }
.destination-option__cta:hover { background: var(--yellow); }
.destination-option__cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.destination-option__price .destination-option__compare { width: 100%; min-height: 44px; justify-content: center; border-radius: 14px; font-weight: 700; }
.destination-option__actions { display: flex; gap: 8px; justify-content: center; }
.destination-option__actions .card__save { position: static; }
.destination-option__actions button { min-width: 44px; min-height: 44px; }
.destination-options__message { padding: 24px 0; }
/* Match the reference's compact, centered desktop column. */
@media (min-width: 701px) {
  .destination-hero { min-height: 0; height: 280px; border-radius: 20px; }
  .destination-hero__caption { left: 24px; bottom: 24px; }
  .destination-hero__caption h1 { font-size: 42px; }
  .destination-hero__caption p { font-size: 16px; }
  .destination-hero__count { bottom: 24px; right: 24px; padding: 10px 14px; font-size: 13px; }
  .destination-options__title { font-size: 28px; margin-top: 26px; }
  .destination-options__hint { font-size: 15px; margin-bottom: 22px; }
  .destination-options__list { gap: 12px; }
  .destination-option { grid-template-columns: minmax(0, 1fr) 184px; border-radius: 18px; }
  .destination-option__itinerary { padding: 16px; }
  .destination-option__dates { font-size: 17px; margin-bottom: 10px; }
  .destination-leg__heading { font-size: 13px; gap: 8px; }
  .destination-leg__badge { font-size: 10px; padding: 3px 7px; }
  .destination-leg__time { font-size: 20px; }
  .destination-leg__city { font-size: 14px; }
  .destination-leg__code, .destination-leg__path { font-size: 12px; }
  .destination-option__stop { margin: 10px 0; }
  .destination-option__stop span { padding: 4px 10px; font-size: 12px; }
  .destination-option__price { padding: 14px; gap: 8px; }
  .destination-option__price .price { font-size: 24px; }
  .destination-option__cta { font-size: 13px; min-height: 44px; padding: 10px 8px; border-radius: 12px; }
  .destination-option__price .destination-option__compare { font-size: 13px; border-radius: 12px; }
}
@media (max-width: 700px) {
  .results:has(.destination-options) > .container { padding-inline: 16px; }
  .destination-hero { min-height: 280px; height: 280px; border-radius: 20px; }
  .destination-hero__caption { left: 20px; right: 20px; bottom: 68px; }
  .destination-hero__caption h1 { max-width: 100%; font-size: 34px; }
  .destination-hero__caption p { font-size: 15px; }
  .destination-hero__count { left: 20px; right: auto; bottom: 18px; font-size: 12px; padding: 9px 13px; }
  .destination-options__title { margin-top: 26px; }
  .destination-options__hint { font-size: 14px; margin-bottom: 20px; }
  .destination-option { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .destination-option__itinerary { padding: 16px; }
  .destination-option__dates { font-size: 15px; }
  .destination-leg__heading { font-size: 12px; }
  .destination-leg__badge { font-size: 10px; }
  .destination-leg__flight { grid-template-columns: minmax(70px, 1fr) minmax(45px, 1fr) minmax(70px, 1fr); gap: 8px; margin-top: 8px; }
  .destination-leg__time { font-size: 24px; }
  .destination-leg__city { font-size: 14px; }
  .destination-leg__code, .destination-leg__path { font-size: 12px; }
  .destination-option__stop span { padding: 6px 10px; font-size: 12px; }
  .destination-option__price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-left: 0; border-top: 1px solid var(--border); padding: 16px; gap: 12px; align-items: center; }
  .destination-option__price .price { font-size: 26px; }
  .destination-option__cta { font-size: 13px; }
  .destination-option__actions { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .destination-option__price .destination-option__compare { grid-column: 2; grid-row: 2; }
}

/* Itinerary card footer: price and comparison above a full-width mobile CTA. */
.destination-option__stop .destination-option__stay { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px 10px; max-width: 100%; }
.destination-option__stop .destination-option__stay > span { padding: 0; border-radius: 0; background: transparent; }
.destination-option__stay .destination-option__elapsed { border-left: 1px solid var(--border); padding-left: 10px; font-weight: 500; }
.destination-leg__path { position: relative; }
.destination-leg__line { background: radial-gradient(circle at 4px 50%, #ffbf00 3px, transparent 4px), radial-gradient(circle at calc(100% - 4px) 50%, #ffbf00 3px, transparent 4px); padding-inline: 4px; }
.destination-option__price .destination-option__compare { order: 2; }
.destination-option__cta { order: 1; }
@media (max-width: 700px) {
  .destination-option__price { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .destination-option__price .price { grid-column: 1; grid-row: 1; font-size: 24px; }
  .destination-option__price .destination-option__compare { grid-column: 2; grid-row: 1; width: auto; min-width: 110px; padding-inline: 14px; }
  .destination-option__cta { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 46px; font-size: 14px; }
  .destination-option__dates { font-size: 14px; }
  .destination-option__stop { margin: 12px 0; }
  .destination-option__stay .destination-option__elapsed { font-size: 11px; }
}

/* Keep itinerary proportions readable on narrow phones without oversized rows. */
@media (max-width: 700px) {
  .results:has(.destination-options) > .container { padding-inline: 12px; }
  .destination-option { border-radius: 16px; }
  .destination-option__itinerary { padding: 14px; }
  .destination-option__dates { display: none; }
  .destination-leg__heading { gap: 8px; font-size: 12px; line-height: 1.35; }
  .destination-leg__badge { padding: 3px 7px; font-size: 10px; }
  .destination-leg__flight { grid-template-columns: minmax(0, 1fr) minmax(48px, 1.25fr) minmax(0, 1fr); gap: 8px; margin-top: 5px; }
  .destination-leg__time { font-size: 16px; line-height: 1.2; }
  .destination-leg__city { font-size: 12px; line-height: 1.35; }
  .destination-leg__code, .destination-leg__path { font-size: 11px; line-height: 1.35; }
  .destination-leg__line { font-size: 18px; }
  .destination-option__stop { margin: 10px 0; }
  .destination-option__stop .destination-option__stay { padding: 5px 9px; gap: 4px 8px; font-size: 11px; line-height: 1.4; }
  .destination-option__stop .destination-option__stay > span { font-size: inherit; }
  .destination-option__price { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); padding: 12px; gap: 8px; align-items: center; }
  .destination-option__price .price { grid-column: 1; grid-row: 1; font-size: 16px; line-height: 1.3; white-space: nowrap; }
  .destination-option__price .destination-option__compare { grid-column: 2; grid-row: 1; width: 100%; min-height: 42px; min-width: 0; padding: 8px; font-size: 12px; border-radius: 10px; white-space: normal; }
  .destination-option__cta { grid-column: 3; grid-row: 1; min-height: 42px; padding: 8px; font-size: 12px; line-height: 1.4; border-radius: 10px; }
}

.destination-option__open-mobile { display: none; }
@media (max-width: 700px) {
  .destination-option__open-desktop { display: none; }
  .destination-option__open-mobile { display: inline; }
}

/* Join both destination photos into one multi-city card cover. */
.card__media--multi { display: flex; gap: 0; }
.card__media--multi > img { flex: 1 1 0; width: 0; min-width: 0; object-fit: cover; }

.card__tags.destination-card__tags { left: 10px; flex-wrap: wrap; justify-content: flex-end; }
.destination-card__tags .destination-card__count { display: inline-flex; align-items: center; gap: 6px; background: var(--warm-sand); color: var(--primary); font-weight: 700; }

/* The same diagonal photo join on multi-city covers and destination banners. */
.destination-photo-pair { display: block; overflow: hidden; background: #fff; }
.destination-photo-pair > img { position: absolute; top: 0; width: 60%; height: 100%; object-fit: cover; }
.destination-photo-pair > img:first-child { left: 0; clip-path: polygon(0 0, 95% 0, 75% 100%, 0 100%); object-position: 45% center; }
.destination-photo-pair > img:nth-child(2) { right: 0; clip-path: polygon(30% 0, 100% 0, 100% 100%, 10% 100%); object-position: 55% center; }
.destination-photo-pair > .card__tags { z-index: 1; }
