/* ============================================================
   TIKET.top — responsive stylesheet (mobile-first)
   Teal design system matching the original site's look:
   primary hsl(174 78% 46%) ≈ #14b3ba, soft mint background,
   white cards, 12px radii, subtle borders & shadows.
   ============================================================ */

:root {
    --primary: #0da2ae;
    --primary-strong: #088a95;
    --primary-deep: #05666f;
    --primary-soft: rgba(13, 162, 174, 0.10);
    --primary-softer: rgba(13, 162, 174, 0.06);
    --bg: #f6fbfb;
    --surface: #ffffff;
    --surface-2: #eef7f7;
    --text: #0c2327;
    --text-muted: #54707a;
    --text-faint: #7d949c;
    --border: #dcebeb;
    --amber: #e8930c;
    --amber-soft: rgba(232, 147, 12, 0.12);
    --danger: #dc2626;
    --shadow: 0 1px 2px rgba(12, 60, 66, 0.05), 0 8px 24px rgba(12, 60, 66, 0.07);
    --shadow-lg: 0 12px 40px rgba(12, 60, 66, 0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --header-h: 60px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html[data-theme="dark"] {
    --primary: #1fc3cf;
    --primary-strong: #35d0db;
    --primary-deep: #0a8f9b;
    --primary-soft: rgba(31, 195, 207, 0.14);
    --primary-softer: rgba(31, 195, 207, 0.08);
    --bg: #07181c;
    --surface: #0d2228;
    --surface-2: #10292f;
    --text: #e6f4f5;
    --text-muted: #9fb9be;
    --text-faint: #74909a;
    --border: #1b3a41;
    --amber: #f2a93b;
    --amber-soft: rgba(242, 169, 59, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* the hidden attribute must always win, even over author display rules */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 66px; /* room for mobile bottom tabs */
}
img { max-width: 100%; display: block; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 16px; color: var(--text); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.ic { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 90;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none !important; letter-spacing: -0.02em; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff; box-shadow: 0 4px 12px rgba(8, 138, 149, 0.35);
}
.brand-mark .ic { width: 19px; height: 19px; }
.brand-text b { color: var(--primary-strong); font-weight: 800; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
    color: var(--text-muted); font-weight: 600; font-size: 14.5px; text-decoration: none !important;
}
.nav-link .ic { width: 17px; height: 17px; }
.nav-link:hover { color: var(--primary-strong); background: var(--primary-softer); }
.nav-link.active { color: var(--primary-strong); background: var(--primary-soft); }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown .nav-link { padding-right: 7px; }
.nav-dropdown-toggle {
    display: inline-grid; place-items: center; width: 27px; height: 34px; margin-left: -4px;
    border: 0; border-radius: 0 999px 999px 0; background: transparent; color: var(--text-muted);
}
.nav-dropdown-toggle .ic { width: 15px; height: 15px; transition: transform .15s ease; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--primary-strong); background: var(--primary-softer); }
.nav-dropdown.open .nav-dropdown-toggle .ic { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 100; min-width: 188px;
    display: none; padding: 7px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); box-shadow: var(--shadow-lg);
}
/* Deliberately click-controlled: hover/focus rules made the menu close while a pointer crossed the gap. */
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none !important; }
.nav-dropdown-item .ic { width: 17px; height: 17px; color: var(--primary-strong); }
.nav-dropdown-item:hover, .nav-dropdown-item.active { color: var(--primary-strong); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav ~ .header-actions { margin-left: 0; }
.currency-menu-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.currency-menu {
    width: 76px; height: 38px; padding: 0 7px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--primary-strong); font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.currency-menu:hover, .currency-menu:focus { outline: none; border-color: var(--primary); }
@media (max-width: 479px) {
    .header-actions { gap: 4px; }
    .header-actions .search-open { display: none; }
    .currency-menu { width: 70px; padding-left: 5px; padding-right: 3px; }
}
@media (max-width: 359px) { .header-actions #themeToggle { display: none; } }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; min-width: 38px; padding: 0 9px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
}
.icon-btn:hover { color: var(--primary-strong); border-color: var(--primary); }
.kbd-hint { display: none; font-size: 11.5px; border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text-faint); }
.menu-btn { display: inline-flex; }

/* ---------- mobile nav sheet ---------- */
.mobile-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 85;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 16px 14px; box-shadow: var(--shadow);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px;
    color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none !important;
    border-bottom: 1px solid var(--border);
}
.mobile-link:last-child { border-bottom: 0; }
.mobile-link .ic { color: var(--primary-strong); }
.mobile-link.active { background: var(--primary-soft); color: var(--primary-strong); }
.mobile-nav-group { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.mobile-nav-group .mobile-link { border-bottom: 0; }
.mobile-sublink { display: flex; align-items: center; gap: 11px; margin: 0 0 0 22px; padding: 9px 10px; border-radius: 9px; color: var(--text-muted); font-size: 14px; font-weight: 700; text-decoration: none !important; }
.mobile-sublink .ic { width: 16px; height: 16px; color: var(--primary-strong); }
.mobile-sublink:hover, .mobile-sublink.active { background: var(--primary-softer); color: var(--primary-strong); }
.mobile-search-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px;
    padding: 12px; border-radius: 10px; border: 1px dashed var(--primary);
    background: var(--primary-softer); color: var(--primary-strong); font-weight: 600; font-size: 15px;
}

/* ---------- bottom tab bar (app feel) ---------- */
.bottom-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 88;
    display: flex; justify-content: center;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-tabs ul {
    display: flex; justify-content: center; align-items: center;
    width: 100%; list-style: none; margin: 0 auto; padding: 0;
}
.bottom-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; flex: 1 1 0; min-width: 0; text-align: center;
    padding: 8px 2px 7px; color: var(--text-faint); font-size: 10.5px; font-weight: 600;
    text-decoration: none !important;
}
.bottom-link .ic { width: 21px; height: 21px; }
.bottom-link.active { color: var(--primary-strong); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 700; font-size: 15px; text-decoration: none !important;
    transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; box-shadow: 0 6px 18px rgba(8, 138, 149, 0.35); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(8, 138, 149, 0.45); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(160deg, #063a41 0%, #07545e 38%, #0a7d8a 72%, #14b3ba 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(620px 300px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 65%),
      radial-gradient(500px 340px at 8% 108%, rgba(4, 34, 40, 0.55), transparent 70%);
    pointer-events: none;
}
html[data-theme="dark"] .hero { background: linear-gradient(160deg, #04262b 0%, #05444d 45%, #076672 100%); }
.hero-inner { position: relative; z-index: 1; padding: 46px 0 42px; }
.hero h1 { color: #fff; font-size: clamp(26px, 5.4vw, 44px); max-width: 15ch; }
.hero-search { position: relative; z-index: 2; margin-top: 24px; }
.hero-search .search-card { margin: 0; max-width: none; }
.hero-search .search-submit { padding-bottom: 0; }
.hero .sub { color: rgba(255, 255, 255, 0.85); font-size: clamp(15px, 2.4vw, 17.5px); max-width: 52ch; margin-bottom: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.22);
    color: #eafcff; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px);
}
.hero-badge .ic { width: 15px; height: 15px; }

/* ---------- search widget ---------- */
.search-card {
    position: relative; z-index: 2; margin: -34px auto 0; max-width: 920px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 8px; margin-bottom: 0;
}
.search-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 4px 4px 10px; overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 10px; border-radius: 9px; border: 0; background: transparent;
    color: var(--text-muted); font-weight: 700; font-size: 13.5px; white-space: nowrap;
}
.search-tab .ic { width: 16px; height: 16px; }
.search-tab.active { background: var(--surface); color: var(--primary-strong); box-shadow: var(--shadow); }
.search-fields { display: grid; gap: 10px; padding: 6px 8px 10px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 0 0 5px 2px; }
.field input, .field select {
    width: 100%; padding: 11px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg); min-height: 46px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.search-submit { padding: 0 8px 8px; }

/* ---------- sections ---------- */
.section { padding: 42px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(20px, 3.6vw, 27px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 14.5px; }
.section-link { white-space: nowrap; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.section-link .ic { width: 16px; height: 16px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.dest-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none !important;
    display: block; color: var(--text);
}
.dest-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.dest-card:hover img { transform: scale(1.05); }
.dest-body { padding: 13px 15px 15px; }
.dest-body h3 { font-size: 17px; margin: 0 0 2px; }
.dest-body .country { color: var(--text-muted); font-size: 13px; margin: 0 0 8px; }
.dest-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-strong); background: var(--primary-soft); border-radius: 999px; padding: 4px 11px; }
.dest-iata {
    position: absolute; top: 11px; left: 11px; background: rgba(6, 32, 36, 0.66); color: #fff;
    font-size: 11.5px; font-weight: 800; letter-spacing: .08em; border-radius: 7px; padding: 3px 8px;
    backdrop-filter: blur(4px);
}

.route-card {
    display: flex; align-items: center; gap: 12px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow); text-decoration: none !important; color: var(--text);
    transition: border-color .15s ease;
}
.route-card:hover { border-color: var(--primary); }
.route-path { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15.5px; }
.route-path .ic { color: var(--primary); width: 17px; height: 17px; }
.route-city { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.route-arrow { color: var(--text-faint) !important; width: 15px !important; height: 15px !important; }
.route-price { margin-left: auto; text-align: right; }
.route-price .from { font-size: 11px; color: var(--text-faint); display: block; }
.route-price .amt { font-weight: 800; color: var(--primary-strong); font-size: 17px; }

/* feature / why cards */
.feat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.feat-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); margin-bottom: 12px; }
.feat-card h3 { font-size: 16px; margin-bottom: 6px; }
.feat-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- app promo ---------- */
.app-promo {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-strong));
    border-radius: var(--radius-lg); color: #fff; padding: 26px 22px;
    display: grid; gap: 18px; box-shadow: var(--shadow-lg);
}
.app-promo h2 { color: #fff; font-size: clamp(19px, 3.4vw, 25px); }
.app-promo p { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; margin: 0; }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.app-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.app-steps .ic { color: #9ff0f5; width: 18px; height: 18px; margin-top: 2px; }
.app-phone { display: none; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow); }
.newsletter h2 { font-size: clamp(18px, 3vw, 23px); }
.newsletter p { color: var(--text-muted); font-size: 14.5px; }
.news-form { display: flex; flex-direction: column; gap: 10px; }
.news-form input { padding: 13px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); min-height: 48px; }
.news-form input:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.news-note { font-size: 12.5px; color: var(--text-faint); margin: 10px 0 0; }
.news-ok { display: flex; align-items: center; gap: 9px; color: var(--primary-strong); font-weight: 700; }
.news-ok .ic { color: var(--primary-strong); }

/* ---------- footer ---------- */
.site-footer { margin-top: 52px; background: var(--surface); border-top: 1px solid var(--border); padding: 34px 0 0; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; padding-bottom: 26px; }
.footer-note { color: var(--text-muted); font-size: 14px; margin: 14px 0 16px; max-width: 40ch; }
.partner-row { display: flex; flex-wrap: wrap; gap: 7px; }
.partner-chip { font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--primary-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 84px; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--text-faint); }

/* ---------- search results pages ---------- */
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-size: clamp(22px, 4.4vw, 32px); }
.page-head .sub { color: var(--text-muted); font-size: 15px; max-width: 60ch; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 12px; }
.pill .ic { width: 14px; height: 14px; }

.flight-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px; display: grid; gap: 13px; }
.flight-top { display: flex; align-items: center; gap: 10px; }
.airline-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-strong); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.airline-name { font-weight: 700; font-size: 14.5px; }
.airline-sub { font-size: 12px; color: var(--text-faint); }
.badge { font-size: 11px; font-weight: 800; border-radius: 7px; padding: 3px 9px; letter-spacing: .03em; }
.badge-best { background: var(--primary-soft); color: var(--primary-strong); }
.badge-cheap { background: var(--amber-soft); color: var(--amber); }
.badge-fast { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
html[data-theme="dark"] .badge-fast { color: #b79bff; }
.flight-times { display: flex; align-items: center; gap: 12px; }
.time-big { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.time-small { font-size: 12px; color: var(--text-faint); font-weight: 700; }
.leg-line { flex: 1; text-align: center; position: relative; }
.leg-line::before { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--border); margin-bottom: 4px; }
.leg-dur { font-size: 11.5px; color: var(--text-faint); font-weight: 700; position: relative; background: var(--surface); padding: 0 6px; }
.stops-0 { color: var(--primary-strong); }
.flight-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px dashed var(--border); padding-top: 12px; }
.flight-price { font-size: 22px; font-weight: 800; color: var(--primary-strong); }
.flight-price .cur { font-size: 13px; color: var(--text-faint); font-weight: 700; margin-right: 2px; }
.partner-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.partner-btn {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
    border: 1px solid var(--border); color: var(--text); background: var(--surface-2);
    padding: 8px 13px; border-radius: 9px; text-decoration: none !important;
}
.partner-btn:hover { border-color: var(--primary); color: var(--primary-strong); }
.partner-btn .ic { width: 13px; height: 13px; color: var(--text-faint); }

/* Hotel results — one polished result row per property */
.hotel-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hotel-card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden; display: grid; isolation: isolate;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hotel-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.hotel-card img { width: 100%; height: 220px; object-fit: cover; background: var(--surface-2); }
.hotel-image-overlay { position: absolute; top: 12px; left: 12px; z-index: 1; }
.hotel-image-overlay span { display: inline-block; padding: 4px 10px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; background: rgba(5, 42, 47, .66); color: #fff; font-size: 11.5px; font-weight: 800; backdrop-filter: blur(5px); }
.hotel-body { min-width: 0; padding: 18px; display: flex; flex-direction: column; }
.hotel-stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; line-height: 1; }
.hotel-body h3 { font-size: clamp(18px, 2.5vw, 21px); margin: 7px 0 3px; }
.hotel-city { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }
.hotel-blurb { font-size: 14px; color: var(--text-muted); margin: 0 0 13px; max-width: 70ch; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.amenity { font-size: 11.5px; font-weight: 700; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.hotel-foot { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px; }
.score { display: inline-flex; flex-direction: column; gap: 2px; }
.score .val { background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; border-radius: 8px 8px 8px 2px; padding: 4px 9px; display: inline-block; }
.score .n { font-size: 11px; color: var(--text-faint); }
.hotel-price { margin-left: auto; text-align: right; }
.hotel-price .from { font-size: 11px; color: var(--text-faint); display: block; }
.hotel-price .amt { font-size: 23px; font-weight: 800; color: var(--primary-strong); letter-spacing: -.02em; }
.hotel-price .per { font-size: 11.5px; color: var(--text-faint); }
.hotel-results .partner-btns { margin-top: 14px !important; margin-left: 0; }
.hotel-results .partner-btn { min-height: 38px; }
.hotel-booking-action { justify-content: flex-start; }
.partner-btn-zen { border-color: #2f9e73; color: #fff; background: linear-gradient(135deg, #238b62, #39ad7e); box-shadow: 0 4px 12px rgba(35, 139, 98, .24); }
.partner-btn-zen:hover { border-color: #19724e; color: #fff; background: linear-gradient(135deg, #19724e, #2d996e); text-decoration: none !important; }
.zenhotels-panel { margin-top: 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.zenhotels-panel-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.zenhotels-mark { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; background: rgba(35, 139, 98, .12); color: #238b62; }
.zenhotels-mark .ic { width: 20px; height: 20px; }
.zenhotels-panel h2 { margin: 0 0 4px; font-size: 19px; }
.zenhotels-panel p { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.zenhotels-widget-host { min-height: 94px; padding: 4px; border-radius: 12px; background: var(--surface-2); }

.transfer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
.transfer-head { display: flex; align-items: center; gap: 11px; }
.transfer-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-strong); display: grid; place-items: center; }
.transfer-head h3 { margin: 0; font-size: 16px; }
.transfer-head .sub { margin: 1px 0 0; font-size: 12.5px; color: var(--text-faint); }
.spec-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- destination detail ---------- */
.dest-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.dest-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-hero .overlay { position: relative; z-index: 1; width: 100%; padding: 22px 20px; background: linear-gradient(180deg, transparent, rgba(4, 30, 34, 0.86)); color: #fff; }
.dest-hero h1 { color: #fff; font-size: clamp(24px, 5vw, 38px); margin: 0; }
.dest-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dest-hero .meta span { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }
.hl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hl-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 14px; }
.hl-list .ic { color: var(--primary-strong); width: 17px; height: 17px; margin-top: 2px; }
.airline-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.airline-tag { font-size: 12px; font-weight: 700; border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 4px 11px; background: var(--surface); }
.prose { color: var(--text-muted); font-size: 15px; max-width: 70ch; }

/* ---------- palette (command search) ---------- */
.palette-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(4, 26, 30, 0.55); backdrop-filter: blur(3px); }
.palette {
    position: fixed; z-index: 121; left: 50%; top: 12vh; transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px)); background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.palette-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--border); }
.palette-icon { color: var(--primary-strong); display: grid; place-items: center; }
.palette-head input { flex: 1; border: 0; background: transparent; font-size: 15.5px; outline: none; }
.palette-tabs { display: flex; gap: 4px; padding: 8px 10px 0; }
.palette-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--surface-2); color: var(--text-muted); font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 7px 12px; }
.palette-tab .ic { width: 14px; height: 14px; }
.palette-tab.active { background: var(--primary-soft); color: var(--primary-strong); }
.palette-results { max-height: 46vh; overflow-y: auto; padding: 8px; }
.palette-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 10px 11px; color: var(--text); }
.palette-item:hover { background: var(--primary-softer); }
.palette-item .p-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); flex: none; }
.palette-item .p-name { font-weight: 700; font-size: 14.5px; }
.palette-item .p-sub { font-size: 12px; color: var(--text-faint); }
.palette-item .p-ic .ic { width: 17px; height: 17px; }
.palette-empty { padding: 22px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ---------- pick up & drop off taxi booking ---------- */
.taxi-page-head { padding-bottom: 4px; }.taxi-eyebrow { color: var(--primary-strong); border-color: var(--primary-soft); background: var(--primary-softer); }.taxi-eyebrow .ic { color: var(--primary-strong); }
.taxi-search-card { margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.taxi-search-fields { display: grid; gap: 10px; }.taxi-search-submit { padding: 0; }.taxi-search-submit .btn { min-height: 46px; }
.taxi-results { margin-top: 20px; }.taxi-results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 13px; }.taxi-results-head h2 { margin: 0 0 3px; font-size: 22px; }.taxi-results-head p { margin: 0; color: var(--text-muted); font-size: 13.5px; }.taxi-request-note { padding: 5px 10px; border-radius: 999px; color: var(--primary-strong); background: var(--primary-soft); font-size: 11.5px; font-weight: 800; }
.taxi-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }.taxi-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.taxi-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft), var(--shadow); }
.taxi-card-top { display: flex; align-items: center; gap: 11px; }.taxi-card-top h3 { margin: 0; font-size: 17px; }.taxi-card-top p { margin: 2px 0 0; color: var(--text-faint); font-size: 12.5px; }.taxi-price { margin-left: auto; text-align: right; }.taxi-price span, .taxi-price small { display: block; color: var(--text-faint); font-size: 11px; font-weight: 700; }.taxi-price b { display: block; color: var(--primary-strong); font-size: 21px; letter-spacing: -.02em; }
.taxi-actions { display: grid; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--border); }.taxi-actions .partner-btns { margin-left: 0; }
.taxi-booking-panel { margin-top: 24px; padding: 20px; border: 1px solid var(--primary-soft); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface), var(--primary-softer)); box-shadow: var(--shadow); }.taxi-booking-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }.taxi-booking-summary h2 { margin: 0 0 3px; font-size: 19px; }.taxi-booking-summary p { margin: 0; color: var(--text-muted); font-size: 13px; }.taxi-booking-form { display: grid; gap: 11px; }.taxi-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }.taxi-form-actions span { color: var(--text-faint); font-size: 12px; }
.taxi-confirmation { padding: 28px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); text-align: center; }.taxi-confirmation h2 { margin: 0 0 7px; }.taxi-confirmation > p { max-width: 52ch; margin: 0 auto; color: var(--text-muted); }.taxi-confirm-icon { margin: 0 auto 13px; background: rgba(16,185,129,.12); color: #059669; }.taxi-confirm-details { display: grid; gap: 8px; max-width: 650px; margin: 19px auto; text-align: left; }.taxi-confirm-details > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); font-size: 13px; }.taxi-confirm-details span { color: var(--text-faint); }.taxi-confirm-details b { text-align: right; }.taxi-confirmation .notice { max-width: 650px; margin: 15px auto; text-align: left; }.taxi-confirm-actions { justify-content: center; margin: 16px 0 0; }

/* ---------- flight status ---------- */
.status-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #073b44, #087584 62%, #0ba7b2); }
.status-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 210px at 88% 0%, rgba(255,255,255,.18), transparent 70%); }
.status-hero-inner { position: relative; z-index: 1; padding: 40px 0 74px; }
.status-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 800; }
.status-eyebrow .ic { width: 15px; height: 15px; }
.status-hero h1 { margin: 0 0 8px; color: #fff; font-size: clamp(28px, 5vw, 42px); }
.status-hero p { max-width: 56ch; margin: 0; color: rgba(255,255,255,.84); font-size: 16px; }
.status-page { padding-top: 0; }
.status-search-card { position: relative; z-index: 2; margin-top: -36px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.status-mode-tabs { display: flex; gap: 4px; padding: 4px; margin: 4px 4px 10px; border-radius: 12px; background: var(--surface-2); }
.status-mode { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 7px; padding: 9px; border-radius: 9px; color: var(--text-muted); font-size: 13.5px; font-weight: 800; text-decoration: none !important; }
.status-mode .ic { width: 16px; height: 16px; }
.status-mode:hover { color: var(--primary-strong); }
.status-mode.active { color: var(--primary-strong); background: var(--surface); box-shadow: var(--shadow); }
.status-search-fields { display: grid; gap: 10px; padding: 6px 8px 8px; }
.status-search-submit { padding: 0; }
.status-example { margin: 3px 12px 7px; color: var(--text-faint); font-size: 12px; }
.status-example a { font-weight: 800; }
.status-results, .status-guide { padding: 30px 0 0; }
.status-result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.status-kicker { display: block; margin-bottom: 4px; color: var(--text-faint); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-result-head h2 { margin: 0; font-size: clamp(21px, 4vw, 28px); }
.status-result-head h2 span { color: var(--primary-strong); }
.status-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.status-badge.scheduled { color: var(--primary-strong); background: var(--primary-soft); }
.status-badge.directory { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); }
.status-flight-card { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 19px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.status-place { display: grid; gap: 1px; }
.status-place.align-right { text-align: right; justify-items: end; }
.status-place strong { font-size: clamp(21px, 4vw, 29px); letter-spacing: .04em; }
.status-place > span:last-child { color: var(--text-muted); font-size: 13px; }
.status-time { color: var(--primary-strong) !important; font-size: 17px !important; font-weight: 800; }
.status-route { display: grid; min-width: 78px; justify-items: center; color: var(--text-faint); font-size: 11px; font-weight: 700; text-align: center; }
.status-route i { width: 100%; height: 2px; margin: 5px 0 3px; background: var(--border); }
.status-route .ic { width: 18px; height: 18px; color: var(--primary-strong); transform: rotate(45deg); }
.status-results .notice { margin-top: 14px; }
.status-board { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.status-board-row { display: grid; grid-template-columns: 1.25fr 1.15fr .75fr 1fr; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.status-board-row:last-child { border-bottom: 0; }
.status-board-heading { padding-top: 10px; padding-bottom: 10px; background: var(--surface-2); color: var(--text-faint); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-board-row span { min-width: 0; }
.status-board-row b, .status-board-row small { display: block; }
.status-board-row b { font-size: 14px; }
.status-board-row small { overflow: hidden; color: var(--text-faint); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.status-empty { margin-top: 0; }
.status-guide-grid { grid-template-columns: 1fr; }

/* ---------- flights results sidebar ---------- */
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.results-sidebar { display: grid; gap: 12px; min-width: 0; }
.results-main { min-width: 0; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.side-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--border); font-size: 14px; }
.side-title .ic { width: 16px; height: 16px; color: var(--primary-strong); }
.side-list { margin: 0; padding: 6px 15px 12px; }
.side-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.side-list > div:last-child { border-bottom: 0; }
.side-list dt { color: var(--text-faint); font-size: 12px; font-weight: 700; }
.side-list dd { margin: 0; text-align: right; color: var(--text); font-size: 13px; font-weight: 800; }
.side-list dd small { display: block; color: var(--text-faint); font-weight: 600; font-size: 10.5px; }
.side-filters summary { display: flex; align-items: center; gap: 8px; padding: 13px 15px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: var(--text); }
.side-filters summary::-webkit-details-marker { display: none; }
.side-filters summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); transform: rotate(45deg); transition: transform .15s ease; }
.side-filters[open] summary::after { transform: rotate(225deg); }
.side-filters summary .ic { width: 16px; height: 16px; color: var(--primary-strong); }
.side-filters form { display: grid; gap: 15px; padding: 4px 15px 15px; }
.side-group { display: grid; gap: 2px; }
.side-group + .side-group { border-top: 1px solid var(--border); padding-top: 12px; }
.side-group h4 { margin: 0 0 5px; color: var(--text-faint); font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.side-option { display: flex; align-items: center; gap: 9px; padding: 6px 2px; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.side-option:hover { color: var(--primary-strong); }
.side-option.off { opacity: .45; pointer-events: none; }
.side-option input { accent-color: var(--primary-strong); width: 15px; height: 15px; flex: none; }
.side-option .side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.side-option span:first-of-type { flex: 1; min-width: 0; }
.side-count { color: var(--text-faint); font-size: 11.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.side-reset { display: block; padding: 8px 0 2px; text-align: center; color: var(--text-faint); font-size: 12px; font-weight: 800; }
.side-reset:hover { color: var(--primary-strong); }
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.sort-label { color: var(--text-faint); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sort-options { display: flex; gap: 4px; }
.sort-options a { padding: 6px 11px; border-radius: 8px; color: var(--text-muted); font-size: 12.5px; font-weight: 800; text-decoration: none !important; }
.sort-options a:hover { color: var(--primary-strong); background: var(--primary-softer); }
.sort-options a.active { color: var(--primary-strong); background: var(--primary-soft); }

@media (min-width: 900px) {
    .results-layout { grid-template-columns: 276px minmax(0, 1fr); align-items: start; }
    .results-sidebar { position: sticky; top: calc(var(--header-h) + 14px); }
    .side-filters summary { pointer-events: none; }
    .side-filters summary::after { display: none; }
    .side-filters[open] > form, .side-filters > form { display: grid; }
}

/* ---------- booking preferences ---------- */
.flight-preference-panel, .checkout-preferences { padding: 17px; border: 1px solid var(--primary-soft); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface), var(--primary-softer)); box-shadow: var(--shadow); }
.flight-preference-panel { margin: 0 0 12px; }.checkout-preferences { margin-bottom: 16px; }.checkout-passenger-section { display: grid; gap: 14px; }
.flight-preference-head, .checkout-preferences-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }.flight-preference-head h2, .checkout-preferences-head h2 { margin: 0 0 3px; font-size: 19px; }.flight-preference-head p, .checkout-preferences-head p { max-width: 68ch; margin: 0; color: var(--text-muted); font-size: 13px; }.preference-note { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: var(--surface); color: var(--primary-strong); font-size: 11px; font-weight: 800; box-shadow: var(--shadow); }.preference-note .ic { width: 14px; height: 14px; }
.flight-preference-fields, .checkout-preference-grid { display: grid; gap: 10px; }.checkout-preference-grid { grid-template-columns: 1fr; }

/* ---------- live airline ancillaries ---------- */
.live-ancillaries { margin-top: 15px; padding-top: 14px; border-top: 1px dashed var(--border); }.live-ancillaries h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 15px; }.live-ancillaries h3 .ic { width: 16px; height: 16px; color: var(--primary-strong); }.live-ancillaries > p { margin: 0 0 10px; color: var(--text-muted); font-size: 12.5px; }.ancillary-list { display: grid; gap: 7px; }.ancillary-option { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; }.ancillary-option:hover { border-color: var(--primary); background: var(--primary-softer); }.ancillary-option input { width: 16px; height: 16px; accent-color: var(--primary-strong); }.ancillary-option span { flex: 1; min-width: 0; }.ancillary-option b, .ancillary-option small { display: block; }.ancillary-option b { font-size: 13px; }.ancillary-option small { margin-top: 1px; color: var(--text-faint); font-size: 11px; }.ancillary-option strong { color: var(--primary-strong); font-size: 13px; white-space: nowrap; }.ancillary-empty { margin-bottom: 0 !important; }

/* ---------- interactive route map ----------
.route-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #063a41, #075d6a 58%, #0994a0); }
.route-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(540px 240px at 90% 0%, rgba(255,255,255,.16), transparent 70%); }
.route-hero-inner { position: relative; z-index: 1; padding: 40px 0 74px; }
.route-hero h1 { margin: 0 0 8px; color: #fff; font-size: clamp(28px, 5vw, 42px); }
.route-hero p { max-width: 62ch; margin: 0; color: rgba(255,255,255,.84); font-size: 16px; }
.route-page { padding-top: 0; }
.route-map-card {
    --route-blue: #2a78d6; --route-orange: #eb6834; --route-aqua: #1baf7a;
    position: relative; z-index: 2; margin-top: -36px; padding: 18px; border: 1px solid var(--border);
    border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .route-map-card { --route-blue: #3987e5; --route-orange: #d95926; --route-aqua: #199e70; }
.route-map-head { display: flex; flex-direction: column; gap: 14px; margin: 0 2px 15px; }
.route-map-head h2 { margin: 0; font-size: clamp(21px, 4vw, 27px); }
.route-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.route-filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: 12px; font-weight: 800; }
.route-filter:hover, .route-filter.active { border-color: var(--primary); color: var(--primary-strong); background: var(--primary-softer); }
.route-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.route-dot.melanesia { background: var(--route-blue); }.route-dot.pacific { background: var(--route-orange); }.route-dot.international { background: var(--route-aqua); }
.route-map-wrap { position: relative; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.route-map { display: block; width: 100%; min-width: 620px; height: auto; color: var(--text); }
.route-map-bg { fill: var(--surface-2); }
.route-region-labels text { fill: var(--text-faint); font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .65; }
.route-entry .route-visual { stroke-width: 2.5px; stroke-linecap: round; opacity: .7; transition: stroke-width .16s ease, opacity .16s ease; }
.route-entry.route-melanesia .route-visual { stroke: var(--route-blue); }.route-entry.route-pacific .route-visual { stroke: var(--route-orange); }.route-entry.route-international .route-visual { stroke: var(--route-aqua); }
.route-entry .route-hit { stroke: transparent; stroke-width: 18px; cursor: pointer; }
.route-entry:hover .route-visual, .route-entry.hovered .route-visual, .route-entry.selected .route-visual { stroke-width: 5px; opacity: 1; filter: url(#routeGlow); }
.route-entry.selected .route-visual { stroke-dasharray: none; }
.route-node circle { fill: var(--surface); stroke: var(--primary-strong); stroke-width: 3px; }
.route-node text { fill: var(--text); font-size: 12px; font-weight: 900; letter-spacing: .05em; paint-order: stroke; stroke: var(--surface-2); stroke-width: 4px; stroke-linejoin: round; }
.route-node .route-node-city { fill: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.route-tooltip { position: absolute; z-index: 3; max-width: 230px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; pointer-events: none; }
.route-map-footer { display: grid; gap: 10px; margin: 13px 2px 2px; }
.route-map-footer p { margin: 0; color: var(--text-faint); font-size: 12px; }
.route-legend { display: flex; flex-wrap: wrap; gap: 10px 17px; }
.route-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.route-line { display: inline-block; width: 22px; height: 3px; border-radius: 3px; }.route-line.melanesia { background: var(--route-blue); }.route-line.pacific { background: var(--route-orange); }.route-line.international { background: var(--route-aqua); }
.route-selection { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; margin: 22px 0 0; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.route-selection-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary-strong); }.route-selection-icon .ic { width: 21px; height: 21px; }
.route-selection h2 { margin: 0 0 3px; font-size: 18px; }.route-selection p { margin: 0; color: var(--text-muted); font-size: 13.5px; }.route-selection .btn { grid-column: 1 / -1; }
.route-table-section { padding: 35px 0 0; }.route-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.route-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.route-table th { padding: 11px 15px; background: var(--surface-2); color: var(--text-faint); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.route-table td { padding: 12px 15px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }.route-table tr.selected { background: var(--primary-softer); }.route-table tr[hidden] { display: none; }
.route-table td b, .route-table td small { display: block; }.route-table td b { color: var(--text); font-size: 14px; }.route-table td small { color: var(--text-faint); font-size: 11.5px; }.route-table td:nth-child(2) { max-width: 260px; }
.route-category { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }.route-category.melanesia { color: var(--route-blue); background: color-mix(in srgb, var(--route-blue) 12%, transparent); }.route-category.pacific { color: var(--route-orange); background: color-mix(in srgb, var(--route-orange) 13%, transparent); }.route-category.international { color: var(--route-aqua); background: color-mix(in srgb, var(--route-aqua) 13%, transparent); }
.route-select-button { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--primary-strong); font-size: 12px; font-weight: 800; white-space: nowrap; }.route-select-button:hover { border-color: var(--primary); background: var(--primary-softer); }
.imported-route-directory { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.imported-route-directory summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 17px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 800; list-style: none; }
.imported-route-directory summary::-webkit-details-marker { display: none; }
.imported-route-directory summary span { display: inline-flex; align-items: center; gap: 8px; }.imported-route-directory summary .ic { width: 17px; height: 17px; color: var(--primary-strong); }.imported-route-directory summary small { color: var(--text-faint); font-size: 11px; font-weight: 700; }
.imported-route-directory > p { margin: 0; padding: 0 17px 14px; color: var(--text-muted); font-size: 13px; }.imported-route-directory .route-table-wrap { border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; box-shadow: none; }
.nav-dropdown-separator { height: 1px; margin: 6px 4px; background: var(--border); }.nav-dropdown-label { display: block; padding: 5px 10px 3px; color: var(--text-faint); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.mobile-sublink-label { display: block; margin: 7px 10px 1px 32px; color: var(--text-faint); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- misc ---------- */
.empty-state { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--text-muted); }
.empty-state .ic { width: 34px; height: 34px; color: var(--text-faint); margin-bottom: 10px; }
.notice { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px; }
.notice .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.notice-info { background: var(--primary-softer); border: 1px solid var(--primary-soft); color: var(--text-muted); }
.notice-setup { background: var(--amber-soft); border: 1px solid rgba(232, 147, 12, 0.35); color: var(--text-muted); }
.notice-setup code, .notice code { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 12px; }

/* live-fare badges & Duffel booking button */
.badge-live { background: rgba(16, 185, 129, 0.12); color: #059669; text-transform: uppercase; }
html[data-theme="dark"] .badge-live { color: #34d399; }
.pill-live { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.35); color: #059669; }
html[data-theme="dark"] .pill-live { color: #34d399; }
.partner-btn-duffel { border-color: rgba(124, 58, 237, 0.35); color: #6d28d9; background: rgba(124, 58, 237, 0.07); }
html[data-theme="dark"] .partner-btn-duffel { color: #b79bff; }
.partner-btn-duffel:hover { border-color: #7c3aed; color: #5b21b6; }
.partner-btn-aviasales { border-color: rgba(0, 172, 220, 0.4); color: #0369a1; background: rgba(0, 172, 220, 0.08); }
html[data-theme="dark"] .partner-btn-aviasales { color: #7dd3fc; }
.partner-btn-aviasales:hover { border-color: #00acdc; color: #075985; }
.partner-btn-book { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); box-shadow: 0 4px 14px rgba(8, 138, 149, 0.32); }
.partner-btn-book:hover { color: #fff; border-color: transparent; text-decoration: none !important; }

/* branded booking buttons — solid fills, white text */
.partner-btn-trip {
    background: #287DFA; border-color: #287DFA; color: #fff;
    box-shadow: 0 4px 12px rgba(40, 125, 250, 0.28);
}
.partner-btn-trip:hover { background: #1f6ce0; border-color: #1f6ce0; color: #fff; text-decoration: none !important; }
.partner-btn-partners {
    background: #DC2626; border-color: #DC2626; color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}
.partner-btn-partners:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; text-decoration: none !important; }

.notice-danger { background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.3); color: var(--danger); }

/* on-site booking flow */
.book-form { display: grid; gap: 16px; }
.pax-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.pax-block h3 { font-size: 15px; margin: 0; color: var(--primary-strong); }
.pax-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.confirm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 22px; text-align: center; }
.confirm-ref { font-size: clamp(24px, 6vw, 34px); font-weight: 800; letter-spacing: 0.08em; color: var(--primary-strong); background: var(--primary-soft); border-radius: 12px; padding: 10px 20px; display: inline-block; margin: 10px 0 4px; }
.confirm-rows { display: grid; gap: 8px; text-align: left; max-width: 560px; margin: 18px auto 0; }
.confirm-rows > div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--border); padding-bottom: 7px; font-size: 14px; }
.confirm-rows span:last-child { font-weight: 700; text-align: right; }

@media (min-width: 640px) {
    .pax-grid { grid-template-columns: repeat(2, 1fr); }
    .pax-grid .span2 { grid-column: 1 / -1; }
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */

/* Large phones & small tablets */
@media (min-width: 480px) {
    .search-fields.cols-2 { grid-template-columns: 1fr 1fr; }
    .partner-btns { margin-left: auto; }
}

/* Tablets */
@media (min-width: 640px) {
    body { padding-bottom: 0; }
    .bottom-tabs { display: none; }
    .footer-bottom { padding-bottom: 16px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .flight-card { grid-template-columns: 1fr auto; align-items: center; }
    .flight-main { min-width: 0; }
    .flight-bottom { border-top: 0; padding-top: 0; margin-left: auto; flex-direction: column; align-items: flex-end; }
    .hotel-card { grid-template-columns: minmax(220px, 31%) minmax(0, 1fr); }
    .hotel-card img { min-height: 100%; height: 100%; }
    .hotel-image-overlay { top: 14px; left: 14px; }
    .app-promo { grid-template-columns: 1fr; padding: 30px; }
    .taxi-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flight-preference-fields, .checkout-preference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .taxi-booking-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }.taxi-form-actions { grid-column: 1 / -1; }
    .status-search-fields { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(160px, .9fr); align-items: end; }
    .status-search-fields.board { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(160px, .9fr); }
    .status-search-submit .btn { min-height: 46px; }
    .route-map-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .route-selection { grid-template-columns: auto minmax(0, 1fr) auto; }
    .route-selection .btn { grid-column: auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .hero-inner { padding: 58px 0 72px; }
}

/* Split the home hero into a copy column and a compact search column. */
@media (min-width: 768px) {
    .hero-inner {
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
        gap: 28px;
        align-items: center;
        padding-top: 58px;
        padding-bottom: 58px;
    }
    .hero-search { margin-top: 0; }
    .hero-search .search-fields,
    .hero-search .search-fields.hotels,
    .hero-search .search-fields.transfers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-search .search-submit { grid-column: 1 / -1; max-width: none; }
}

/* Desktop */
@media (min-width: 900px) {
    .main-nav { display: block; }
    .menu-btn { display: none; }
    .kbd-hint { display: inline-block; }
    .container { padding: 0 24px; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .feat-grid { grid-template-columns: repeat(4, 1fr); }
    .status-guide-grid { grid-template-columns: repeat(4, 1fr); }
    .taxi-search-fields { grid-template-columns: 1.25fr 1.5fr 1.5fr .9fr .75fr .75fr .65fr .9fr 1.15fr; align-items: end; }.flight-preference-fields, .checkout-preference-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }.taxi-search-submit { padding: 0; }.taxi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-fields { grid-template-columns: 2fr 2fr 1.4fr 1fr; }
    .search-fields.hotels { grid-template-columns: 2fr 1.3fr 1.3fr 1fr; }
    .hotel-search-fields { grid-template-columns: 2fr 1.15fr 1.15fr .7fr 1.05fr 1.2fr !important; align-items: end; }
    .hotel-search-fields .search-submit { grid-column: auto; max-width: none; padding: 0; }
    .hotel-search-fields .search-submit .btn { min-height: 46px; }
    .search-fields.transfers { grid-template-columns: 1.6fr 1.6fr 1.3fr; }
    .search-submit { grid-column: 1 / -1; max-width: 260px; }
    .hero-inner { grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr); gap: 34px; padding: 74px 0; }
    .app-promo { grid-template-columns: 1.4fr 1fr; align-items: center; }
    .footer-grid { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); }
    .footer-brand { grid-column: auto; }
    .dest-hero { min-height: 380px; }
    .section { padding: 54px 0 8px; }
}

/* Large desktop */
@media (min-width: 1160px) {
    .grid { gap: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
    .site-header, .bottom-tabs, .mobile-nav, .palette, .palette-backdrop, .site-footer, .search-open { display: none !important; }
    body { padding: 0; }
}
