/* ===== offlinebooking — shared styles ===== */
:root {
  --brand: #0a66ff;
  --brand-dark: #0747b3;
  --accent: #ff6b35;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #6b7689;
  --border: #e3e8f0;
  --success: #15a36a;
  --danger: #e23b54;
  --warning: #e9a200;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(18, 38, 70, 0.08);
  --shadow-lg: 0 12px 40px rgba(18, 38, 70, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header / nav ---- */
.topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.4px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  padding: 8px 12px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--brand); background: rgba(37,99,235,.07); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: rgba(37,99,235,.10); }
.nav-spacer { flex: 1; }

.user-menu { display: flex; align-items: center; gap: 12px; }

/* Login dropdown (logged-out header) */
.login-dd { position: relative; }
.login-dd-btn { display: inline-flex; align-items: center; gap: 6px; }
.login-dd-caret { font-size: 11px; transition: transform .18s; }
.login-dd.open .login-dd-caret { transform: rotate(180deg); }
.login-dd-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 268px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.16);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60;
}
.login-dd.open .login-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.login-dd-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text, #111827); }
.login-dd-item:hover { background: rgba(37,99,235,.08); text-decoration: none; }
.login-dd-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 18px; background: rgba(37,99,235,.10); border-radius: 10px; }
.login-dd-item b { display: block; font-size: 14.5px; font-weight: 700; color: var(--brand); }
.login-dd-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

/* Website enquiry band */
.enquiry-band { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 32px 20px; }
.enquiry-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.enquiry-copy { flex: 1; min-width: 240px; }
.enquiry-copy h2 { margin: 0 0 6px; font-size: 24px; }
.enquiry-copy p { margin: 0; color: #c7d6f5; font-size: 14.5px; }
.enquiry-form { flex: 2; min-width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { padding: 11px 12px; border-radius: 9px; border: none; font-size: 14px; }
.enquiry-form textarea { grid-column: 1 / -1; resize: vertical; }
.enquiry-form .btn { grid-column: 1 / -1; }
.enquiry-out { grid-column: 1 / -1; font-size: 13px; min-height: 16px; }
.enquiry-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.enquiry-fields label { display: block; font-size: 11px; color: #c7d6f5; margin-bottom: 2px; }
.enquiry-fields .enq-field { width: 100%; padding: 9px 10px; border-radius: 8px; border: none; font-size: 13px; }
@media (max-width: 640px) { .enquiry-form { grid-template-columns: 1fr; } }

/* Header notification bell (logged-in) */
.notif-wrap { position: relative; }
.notif-bell { position: relative; background: transparent; border: none; cursor: pointer; font-size: 19px; line-height: 1; padding: 7px 8px; border-radius: 9px; }
.notif-bell:hover { background: rgba(37,99,235,.08); }
.notif-dot { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; display: grid; place-items: center; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-height: 420px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.18); z-index: 60; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.notif-head button { background: none; border: none; color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; }
.notif-item { display: block; padding: 11px 14px; border-bottom: 1px solid #f1f3f7; color: var(--text, #111827); }
.notif-item:hover { background: rgba(37,99,235,.06); text-decoration: none; cursor: pointer; }
.notif-item.unread { background: #eff6ff; }
.notif-title { font-size: 13.5px; font-weight: 700; }
.notif-body { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.notif-time { font-size: 10.5px; color: #9aa3b2; margin-top: 3px; }
.notif-empty { padding: 28px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.user-name { font-weight: 600; font-size: 14px; }
.user-role {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 11px 18px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--border); }
.btn-ghost:hover { background: #eef3ff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Layout helpers ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px; }
.grid { display: grid; gap: 18px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }

/* ---- Hero / search ---- */
.hero {
  background: linear-gradient(135deg, #0a66ff 0%, #0747b3 60%, #5b2bd4 100%);
  color: #fff;
  padding: 56px 20px 90px;
}
.hero h1 { font-size: 38px; margin: 0 0 8px; font-weight: 800; }
.hero p { font-size: 18px; opacity: .92; margin: 0; }
.hero-inner { max-width: 1180px; margin: 0 auto; }

/* ---- Whitelabel B2C homepage design themes ---- */
/* Modern: dark gradient hero, rounded glassy search card */
body.wl-design-modern .hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%); padding: 64px 20px 100px; }
body.wl-design-modern .search-card { border-radius: 22px; box-shadow: 0 20px 50px rgba(2, 6, 23, .18); }
body.wl-design-modern .best-card, body.wl-design-modern .card { border-radius: 16px; }
/* Minimal: light, flat, airy */
body.wl-design-minimal .hero { background: #eef2f7; color: #0f172a; padding: 48px 20px 90px; }
body.wl-design-minimal .hero p { opacity: .7; }
body.wl-design-minimal .search-card { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(15, 23, 42, .06); border: 1px solid var(--border); }
body.wl-design-minimal .trust-strip, body.wl-design-minimal .best-card { box-shadow: none; border: 1px solid var(--border); }
/* Bold: vibrant gradient, oversized headline */
body.wl-design-bold .hero { background: linear-gradient(120deg, var(--brand), var(--accent)); padding: 70px 20px 110px; }
body.wl-design-bold .hero h1 { font-size: 52px; letter-spacing: -1px; }
body.wl-design-bold .hero p { font-size: 20px; }
body.wl-design-bold .btn-accent { border-radius: 999px; }
body.wl-design-bold .sec-title { font-size: 28px; }

.search-card {
  max-width: 1100px;
  margin: -60px auto 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  z-index: 10;
}
.trip-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.trip-tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-weight: 600; color: var(--muted);
}
.trip-tab.active { background: #eef3ff; color: var(--brand); border-color: var(--brand); }

.search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}
.search-fields .field { flex: 1 1 140px; min-width: 130px; }
.search-fields .field-ap { flex: 1.6 1 190px; min-width: 180px; }   /* From / To — wider so the full "City (CODE)" fits */
.search-fields .field-date { flex: 0.7 1 124px; min-width: 116px; } /* Departure / Return — a bit narrower */
.search-fields > button[type="submit"] { flex: 0 0 auto; min-width: 120px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%; padding: 12px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; background: #fff; color: var(--text); height: 46px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
/* Swap From/To button + travellers popup trigger */
.swap-btn {
  flex: 0 0 auto; align-self: flex-end; width: 42px; height: 46px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 18px; color: var(--muted); transition: .12s;
}
.swap-btn:hover { border-color: var(--brand); color: var(--brand); background: #eef3ff; }
.pax-trigger {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text); font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.pax-trigger:hover { border-color: var(--brand); }
/* Group booking CTA banner (shown when SITE_FOCUS=group) */
.group-cta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(100deg, #eef3ff, #fff7ed); border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow); }
.group-cta .gc-title { font-size: 18px; font-weight: 800; color: var(--text); }
.group-cta .gc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; max-width: 640px; }
.group-cta .gc-btn { white-space: nowrap; font-weight: 800; padding: 12px 22px; }

/* ---- Flight results ---- */
.results-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.filters .card-pad h3 { margin-top: 0; }
.filter-group { margin-bottom: 18px; }
.filter-group h4 { margin: 0 0 8px; font-size: 14px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0; cursor: pointer; }
.fg-ctrl { font-weight: 400; font-size: 11px; white-space: nowrap; }
.fg-ctrl a { color: var(--accent); text-decoration: none; cursor: pointer; }
.fg-ctrl a:hover { text-decoration: underline; }

.flight-card {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.airline { display: flex; align-items: center; gap: 12px; }
.airline-badge {
  width: 44px; height: 44px; border-radius: 10px; background: #eef3ff;
  color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.airline .name { font-weight: 700; }
.airline .fno { font-size: 12px; color: var(--muted); }

.timeline { display: flex; align-items: center; gap: 14px; }
.timeline .time { font-size: 20px; font-weight: 800; }
.timeline .code { font-size: 13px; color: var(--muted); font-weight: 600; }
.timeline .leg { text-align: center; flex: 1; }
.timeline .bar {
  flex: 1; height: 2px; background: var(--border); position: relative;
}
.timeline .bar::after {
  content: '✈'; position: absolute; right: -4px; top: -10px; color: var(--brand);
}
.stops { font-size: 12px; color: var(--muted); text-align: center; }
.stops.nonstop { color: var(--success); font-weight: 700; }

.price-col { text-align: right; }
.price { font-size: 24px; font-weight: 800; color: var(--text); }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .3px;
}
.badge-green { background: #e3f7ee; color: var(--success); }
.badge-red { background: #fde7eb; color: var(--danger); }
.badge-amber { background: #fcf3da; color: #9a6c00; }
.badge-blue { background: #e8f0ff; color: var(--brand); }
.badge-grey { background: #eef1f6; color: var(--muted); }

/* ---- Country / language control ---- */
.geo-ctl { display: flex; gap: 6px; align-items: center; margin-right: 10px; }
.geo-ctl select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; background: #fff; color: var(--text); cursor: pointer; }
html[dir="rtl"] .topbar-inner, html[dir="rtl"] .hero-inner { direction: rtl; }

/* ---- Recent searches ---- */
.recent-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.recent-title { font-weight: 700; color: var(--muted); font-size: 13px; }
.recent-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text);
}
.recent-chip:hover { border-color: var(--brand); color: var(--brand); }
.recent-clear { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }

/* ---- Multi-leg results (round trip = 2 cols, multi-city = N cols) ---- */
#legColumns.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
#mcColumns { display: grid; gap: 16px; align-items: start; }
.leg-head {
  font-weight: 800; color: var(--brand); margin: 2px 0 10px;
  background: #eef3ff; border: 1px solid #d9e4ff; border-radius: 10px; padding: 10px 14px;
}
.leg-head .lh-sub { font-weight: 500; color: var(--muted); font-size: 13px; }
.mc-leg { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.mc-leg .rm { background: #fde7eb; color: var(--danger); border: none; border-radius: 8px; width: 40px; height: 40px; cursor: pointer; font-size: 18px; }

/* ---- Frozen bottom selection bar (round trip / multi-city) ---- */
#selBar:empty { display: none; }
#selBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #0f172a; color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.25);
}
.selbar-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; flex-wrap: wrap;
}
.selbar-legs { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; min-width: 0; }
.selbar-leg { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.selbar-leg .sl-logo { width: 30px; height: 30px; border-radius: 6px; background: #1e293b; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.selbar-leg .sl-r { color: #93a4bf; font-size: 12px; }
.selbar-leg.empty { color: #93a4bf; font-style: italic; }
.selbar-total { font-size: 22px; font-weight: 800; }
#selBar .btn-accent { height: 46px; padding: 0 28px; }
body.has-selbar { padding-bottom: 86px; }

/* ---- Tables ---- */
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px;
}
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
table.data tr:hover td { background: #f9fbff; }

/* ---- Stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { padding: 20px; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---- Forms / auth ---- */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-wrap .card-pad { padding: 32px; }
.auth-wrap h2 { margin: 0 0 4px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px;
}
.tabswitch { display: flex; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tabswitch button {
  flex: 1; padding: 11px; border: none; background: #fff; font-weight: 700; cursor: pointer; color: var(--muted);
}
.tabswitch button.active { background: var(--brand); color: #fff; }

/* ---- Sidebar layout for dashboards ---- */
.dash { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 22px 14px; }
.sidebar a {
  display: block; padding: 11px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; margin-bottom: 4px; cursor: pointer;
}
.sidebar a:hover { background: #f1f5ff; text-decoration: none; }
.sidebar a.active { background: #eef3ff; color: var(--brand); }
.dash-main { padding: 28px; overflow: auto; }

/* ---- Toast / alert ---- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-error { background: #fde7eb; color: var(--danger); }
.alert-success { background: #e3f7ee; color: var(--success); }
.alert-info { background: #e8f0ff; color: var(--brand); }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 25, 45, .55);
  display: grid; place-items: center; z-index: 100; padding: 20px;
}
.modal { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; box-shadow: var(--shadow-lg); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 24px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }

/* ---- Footer ---- */
.footer { text-align: center; padding: 30px; color: var(--muted); font-size: 14px; }

.spinner {
  width: 22px; height: 22px; border: 3px solid #cdd7ea; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; padding: 50px; gap: 12px; color: var(--muted); }

/* ===== Autosuggest ===== */
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); margin-top: 4px; min-width: 240px; overflow: visible;
}
.ac-item { display: grid; grid-template-columns: 48px 1fr; gap: 4px 10px; padding: 9px 12px; cursor: pointer; align-items: baseline; }
.ac-item:hover, .ac-item.active { background: #eef3ff; }
.ac-code { grid-row: span 2; font-weight: 800; color: var(--brand); align-self: center; }
.ac-city { font-weight: 600; font-size: 14px; }
.ac-name { grid-column: 2; font-size: 12px; color: var(--muted); }

/* ===== Modify-search bar ===== */
.modbar { background: #1c2433; color: #fff; }
.modbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.modbar .route { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.modbar .meta { font-size: 12px; }
.modbar .meta b { display: block; font-size: 14px; }
.modbar .meta .lbl { color: #9fb0c9; text-transform: uppercase; letter-spacing: .4px; font-size: 10px; }

/* ===== Date strip ===== */
.datestrip { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.datestrip .d { flex: 1; text-align: center; padding: 10px 6px; cursor: pointer; border-right: 1px solid var(--border); }
.datestrip .d:last-child { border-right: none; }
.datestrip .d:hover { background: #f1f5ff; }
.datestrip .d.active { background: #fff4ec; border-bottom: 3px solid var(--accent); }
.datestrip .d .dow { font-size: 12px; color: var(--muted); }
.datestrip .d .pr { font-weight: 700; font-size: 14px; }

/* ===== Result rows ===== */
.fl-row { padding: 0; margin-bottom: 12px; overflow: hidden; }
/* Flex row that wraps instead of overlapping when space is tight */
.fl-main { display: flex; align-items: center; gap: 18px; padding: 16px 18px; flex-wrap: wrap; }
.fl-check { flex: none; align-self: flex-start; margin-top: 4px; }
.fl-check { display: none; }
.sharing .fl-check { display: block; }
.fl-air { display: flex; align-items: center; gap: 10px; flex: 1 1 180px; min-width: 0; }
.fl-air > div { min-width: 0; }
.fl-air .logo { width: 40px; height: 40px; border-radius: 9px; background: #eef3ff; color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }
.fl-air .nm { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-air .fn { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fl-time { display: flex; align-items: center; gap: 12px; flex: 2 1 220px; min-width: 0; }
.fl-time .t { font-size: 19px; font-weight: 800; }
.fl-time .c { font-size: 12px; color: var(--muted); }
.fl-time .mid { flex: 1; text-align: center; }
.fl-time .bar { height: 2px; background: var(--border); position: relative; margin: 6px 0; }
.fl-time .bar::after { content: '✈'; position: absolute; right: -2px; top: -9px; font-size: 12px; color: var(--brand); }
.fl-price { text-align: right; }
.fl-price .p { font-size: 22px; font-weight: 800; }
.fl-price .sup { font-size: 12px; color: var(--muted); }
.fl-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.fl-foot { display: flex; gap: 16px; padding: 8px 18px; border-top: 1px dashed var(--border); background: #fafbfe; font-size: 13px; }

/* Airline logo image (falls back to a lettered .logo badge) */
.logo-img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid #eef1f6; padding: 3px; flex: none; }
.fl-air .seats { font-size: 11px; color: var(--success); font-weight: 700; margin-top: 1px; }

/* Stacked fare options (top 3 + view more) */
.fl-fares { display: flex; flex-direction: column; gap: 8px; flex: 1 1 330px; min-width: 280px; }
/* Fixed two-column grid so the price column and BOOK button line up across every fare row */
.fare-line { display: grid; grid-template-columns: 1fr 92px; align-items: center; column-gap: 12px; border: 1px solid #e8edf3; border-radius: 10px; padding: 9px 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.fare-line:hover { border-color: #c7d6ea; background: #fafcff; }
.fare-line.active { border-color: var(--brand); background: #f4f8ff; box-shadow: inset 0 0 0 1px var(--brand); }
.fare-line-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fare-amt { font-size: 16px; font-weight: 800; color: var(--text); }
.fare-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; }
.fare-meta .muted { font-size: 11px; }
.fare-line .btn { width: 92px; justify-self: end; }
.offer-note { font-size: 11px; color: #8a6100; background: #fff8e6; border: 1px solid #f3e2b3; border-radius: 8px; padding: 7px 9px; line-height: 1.55; }
/* Offer note shown left-aligned under the flight info (not in the fare column) */
.fl-offer { padding: 0 18px 12px 18px; }
.fl-offer .offer-note { max-width: 560px; }
/* View Details — selected-fare summary bar + price breakup */
.detail-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 13px; }
.detail-price { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--text); }
.fare-breakup td { padding: 8px 12px; }
.fare-breakup tr:nth-child(odd) { background: #fafbfe; }
.more-fares { display: flex; flex-direction: column; gap: 6px; }
.viewmore { align-self: flex-start; font-size: 12px; }
/* Supplier tag — only shown to admins for identification */
.sup-tag { font-size: 10px; font-weight: 700; color: #7c3aed; background: #f3e8ff; padding: 1px 6px; border-radius: 6px; }
/* Non-blocking "still fetching more fares" banner above results */
.searching-banner { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sb-plane { display: inline-block; animation: sbFly 1.1s ease-in-out infinite; }
@keyframes sbFly { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.link-btn { background: none; border: none; color: var(--accent); font-weight: 700; cursor: pointer; padding: 4px 0; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* fare options + details panel */
.fl-expand { border-top: 1px solid var(--border); background: #fff; }
.tabs { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid var(--border); }
.tab { padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 3px solid transparent; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabpane { padding: 16px 18px; }
.fare-opt { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.fare-opt:hover { border-color: var(--brand); }
.fare-opt .ft { font-weight: 700; }
.seg { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 10px 0; }
.seg + .seg { border-top: 1px dashed var(--border); }
.layover { text-align: center; font-size: 12px; color: #9a6c00; background: #fcf3da; border-radius: 8px; padding: 4px; margin: 6px 0; }

/* ===== Share bar + modal ===== */
.sharebar { position: sticky; top: 64px; z-index: 40; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.sharebar .btn { background: #fff; color: var(--brand); }
.share-text { white-space: pre-wrap; font-family: 'Consolas', monospace; font-size: 13px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; padding: 16px; line-height: 1.6; }

/* ===== Hotels & Holidays ===== */
.hotel-card { display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; padding: 16px; margin-bottom: 14px; align-items: stretch; }
.hotel-thumb { border-radius: 10px; min-height: 150px; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 800; }
.stars { color: #f5a623; font-size: 14px; letter-spacing: 1px; }
.amenity { display: inline-block; font-size: 12px; background: #eef3ff; color: var(--brand); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.rating-pill { background: var(--success); color: #fff; font-weight: 700; border-radius: 8px; padding: 3px 8px; font-size: 13px; display: inline-block; }
.hotel-price { text-align: right; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.room-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pkg-card { overflow: hidden; cursor: pointer; transition: transform .1s ease, box-shadow .15s ease; }
.pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pkg-banner { height: 150px; display: grid; place-items: center; color: #fff; font-size: 40px; }
.pill { display:inline-block; font-size:12px; font-weight:700; background:#fff4ec; color:var(--accent); border-radius:999px; padding:3px 10px; }
.seg-tabs { display:flex; gap:6px; }
.seg-tabs a { padding:8px 16px; border-radius:999px; font-weight:700; color:var(--muted); }
.seg-tabs a.active { background:var(--brand); color:#fff; }

/* ===== B2C homepage marketing sections ===== */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 8px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.trust-item .ti-ic { font-size: 24px; }
.trust-item b { display: block; color: var(--brand); }
.trust-item span { font-size: 13px; color: var(--muted); }

.sec-title { text-align: center; color: var(--brand); font-weight: 800; font-size: 22px; margin: 36px 0 6px; }
.sec-title::after { content: ''; display: block; width: 54px; height: 3px; background: var(--accent); margin: 8px auto 0; border-radius: 2px; }

.best-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.best-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .1s, box-shadow .15s; }
.best-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.best-thumb { height: 110px; display: grid; place-items: center; color: #fff; font-size: 34px; }
.best-card .bc-body { padding: 12px; }
.best-card .bc-route { font-weight: 700; font-size: 15px; }
.best-card .bc-price { color: var(--accent, #0a66ff); font-weight: 800; font-size: 14px; margin: 3px 0 2px; }
.best-card .bc-btn { display: block; text-align: center; margin-top: 8px; background: #eef3ff; color: var(--brand); font-weight: 700; padding: 7px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.best-card .bc-btn:hover { background: var(--brand); color: #fff; }

.routes-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.routes-2col h3 { color: var(--accent); font-weight: 800; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.route-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-top: 10px; }
.route-row .rr-path { flex: 1; }
.route-row .rr-path b { color: var(--text); }
.rr-thumb { width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto; background: #e5edf7 center/cover no-repeat; }
.route-row .rr-btn { background: var(--accent); color: #fff; font-weight: 700; border: none; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.route-row .rr-btn:hover { filter: brightness(.95); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 18px; }
.why-item { text-align: center; padding: 18px; }
.why-item .wi-ic { font-size: 32px; }
.why-item h4 { color: var(--brand); margin: 8px 0 4px; }
.why-item p { color: var(--muted); font-size: 13px; margin: 0; }

.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #bfe3ff, #e8f3ff); border-radius: 14px; padding: 22px 26px; margin: 36px 0; }
.newsletter h3 { margin: 0; color: #0747b3; }
.newsletter .nl-form { display: flex; gap: 8px; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter input { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }

.site-footer { background: #142033; color: #cdd7ea; margin-top: 40px; }
.site-footer .sf-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; padding: 22px 20px; border-bottom: 1px solid #243049; }
.site-footer .sf-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 28px 20px; }
.site-footer h5 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer a { display: block; color: #aebbd2; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .sf-bottom { text-align: center; padding: 14px; border-top: 1px solid #243049; color: #8090ab; font-size: 13px; }
.sf-trust { display: flex; align-items: center; gap: 10px; font-size: 13px; }

@media (max-width: 900px) {
  .trust-strip, .best-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .routes-2col, .site-footer .sf-cols, .site-footer .sf-top { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
/* ---- Responsive ---- */
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .results-layout .filters { display: none; }   /* replaced by the landscape #mFilterBar on mobile */
  .flight-card { grid-template-columns: 1fr; text-align: left; }
  .price-col { text-align: left; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: 6px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  /* Header wraps; the menu becomes a horizontal swipeable strip so every item stays reachable */
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 8px 14px; gap: 8px 12px; }
  .nav-spacer { display: none; }
  .nav-links { order: 5; width: 100%; margin-left: 0; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .nav-links a { white-space: nowrap; padding: 6px 10px; }
}

/* Compact "modify search" summary bar — only rendered/visible on phones once a search has run. */
.search-summary { display: none; }

/* ---- Phones: stack the flight search so From / To / dates align full-width ---- */
@media (max-width: 720px) {
  .hero { padding: 30px 18px 64px; }
  .hero h1 { font-size: 26px; line-height: 1.18; }
  .hero p { font-size: 15px; }
  .search-card { margin: -44px 12px 0; padding: 16px; border-radius: 14px; }
  /* On the results page (after a search) drop the big purple hero and pull the card to the top. */
  body.searched .hero { display: none; }
  body.searched .search-card { margin: 0; }
  /* Collapsed search card = a slim header bar with route summary + Modify (full form hidden). */
  .search-card.collapsed { margin: 0; padding: 10px 12px; border-radius: 0;
    position: sticky; top: var(--ss-top, 0px); z-index: 45; box-shadow: 0 2px 10px rgba(2,6,23,.10); }
  .search-card.collapsed .trip-tabs,
  .search-card.collapsed .search-fields,
  .search-card.collapsed #mcFields { display: none !important; }
  .search-card.collapsed .search-summary { display: flex; align-items: center; gap: 10px; }
  .search-summary .ss-edit { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--border);
    border-radius: 10px; background: #fff; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
  .search-summary .ss-route { flex: 1 1 auto; min-width: 0; line-height: 1.22; }
  .search-summary .ss-cities { display: block; font-weight: 800; font-size: 16px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-summary .ss-meta { display: block; font-size: 12px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-summary .ss-modify { flex: 0 0 auto; padding: 9px 16px; border: 0; border-radius: 10px;
    background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
  .trip-tabs { flex-wrap: wrap; }
  .search-fields { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-fields .field,
  .search-fields .field-ap,
  .search-fields .field-date { flex: 1 1 auto; min-width: 0; width: 100%; }
  .search-fields > button[type="submit"] { width: 100%; min-width: 0; }
  /* Swap becomes a small circular control centered between From and To (arrows turn vertical) */
  .swap-btn { align-self: center; width: 40px; height: 40px; border-radius: 999px; transform: rotate(90deg); margin: -2px 0; box-shadow: 0 2px 8px rgba(16,24,40,.12); }
}

/* ---- Mobile airport picker (tap From/To -> full-screen list: Nearest, Recent, Popular, search) ---- */
.ac-mobile { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; flex-direction: column; }
.acm-top { padding: 14px 12px 12px; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 10px rgba(16,24,40,.06); }
.acm-back { border: 0; background: none; font-size: 32px; line-height: 1; color: #0f172a; width: 32px; cursor: pointer; }
.acm-field { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid #cdd4df; border-radius: 12px; padding: 7px 12px; }
.acm-ic { color: #94a3b8; font-size: 18px; }
.acm-fw { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.acm-fw label { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #64748b; }
.acm-fw .ac-msearch { border: 0; padding: 0; height: auto; font-size: 17px; outline: none; background: none; width: 100%; }
.acm-clear { border: 0; background: #111827; color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; cursor: pointer; flex: none; }
.acm-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.acm-near { display: flex; align-items: center; gap: 12px; margin: 14px 12px; padding: 18px 16px; background: #f4f6fb; border-radius: 12px; font-size: 16px; font-weight: 600; color: #0f172a; cursor: pointer; }
.acm-near-ic { color: #ef4444; font-size: 20px; }

/* ============================================================
   HOTELS — search bar, calendar, rooms/guests, results (grid/list), detail hero, review
   ============================================================ */
:root { --hb-orange: #ff6b00; --hb-line: #e6e9ef; }
.hb-hero { background: linear-gradient(120deg,#0b4aa2,#062a63); color:#fff; padding: 34px 16px 70px; text-align:left; }
.hb-hero .hero-inner { max-width: 1180px; margin: 0 auto; }
.hb-hero h1 { margin:0 0 6px; font-size: 30px; font-weight: 800; }
.hb-hero p { margin:0; opacity:.9; font-size: 15px; }
/* search bar */
.hb-searchbar { max-width: 1180px; margin: -44px auto 0; padding: 0 16px; position: relative; z-index: 20; }
.hb-bar { background:#fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(2,6,23,.16); display:flex; align-items:stretch; overflow: visible; }
.hb-field { position: relative; padding: 12px 16px; border-right: 1px solid var(--hb-line); display:flex; flex-direction: column; justify-content:center; cursor: pointer; min-width: 0; }
.hb-field:last-of-type { border-right: 0; }
.hb-field .hb-lbl { font-size: 11px; font-weight: 700; letter-spacing:.04em; color:#8a93a6; text-transform: uppercase; margin-bottom: 3px; display:flex; align-items:center; gap:5px; }
.hb-field .hb-val { font-size: 16px; font-weight: 700; color:#1f2433; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hb-field .hb-sub { font-size: 11px; color:#8a93a6; }
.hb-field.hb-city { flex: 1.6 1 220px; }
.hb-field.hb-city input { border:0; outline:0; font-size:16px; font-weight:700; color:#1f2433; width:100%; padding:0; background:none; }
.hb-field.hb-dates { flex: 1.2 1 150px; }
.hb-field.hb-nights { flex: .6 1 80px; }
.hb-field.hb-guests { flex: 1.1 1 150px; }
.hb-search-btn { flex: 0 0 auto; background: var(--hb-orange); color:#fff; border:0; font-weight:800; font-size:16px; padding: 0 34px; cursor:pointer; border-radius: 0 14px 14px 0; letter-spacing:.02em; }
.hb-search-btn:hover { filter: brightness(.95); }
.hb-more { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding: 10px 4px 0; color:#e8eefb; font-size: 13px; }
.hb-more .hb-chip { background: rgba(255,255,255,.14); color:#fff; border:0; padding:6px 12px; border-radius: 20px; font-size:13px; cursor:pointer; display:inline-flex; gap:6px; align-items:center; }
.hb-more select { background: rgba(255,255,255,.14); color:#fff; border:0; padding:6px 10px; border-radius: 20px; font-size:13px; }
.hb-more select option { color:#1f2433; }
/* popovers (calendar + guests) */
.hb-pop { position: absolute; top: calc(100% + 8px); background:#fff; border:1px solid var(--hb-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(2,6,23,.22); z-index: 60; padding: 14px; }
.hb-pop.hidden { display:none; }
/* calendar */
.hb-cal-wrap { display:flex; gap: 22px; }
@media(max-width:640px){ .hb-cal-wrap { flex-direction: column; gap:10px; } }
.hb-cal { width: 248px; }
.hb-cal-head { display:flex; align-items:center; justify-content:space-between; font-weight:800; color:#1f2433; margin-bottom:8px; }
.hb-cal-nav { border:1px solid var(--hb-line); background:#fff; width:30px;height:30px;border-radius:8px; cursor:pointer; font-size:16px; color:#475569; }
.hb-cal-grid { display:grid; grid-template-columns: repeat(7,1fr); gap:2px; }
.hb-cal-grid .dow { font-size:11px; color:#8a93a6; text-align:center; padding:4px 0; font-weight:700; }
.hb-day { text-align:center; padding:8px 0; font-size:13px; border-radius:8px; cursor:pointer; color:#1f2433; }
.hb-day:hover:not(.off):not(.disabled) { background:#fff1e8; }
.hb-day.off { visibility:hidden; }
.hb-day.disabled { color:#cbd2de; cursor:not-allowed; }
.hb-day.in-range { background:#fff1e8; border-radius:0; }
.hb-day.sel { background: var(--hb-orange); color:#fff; font-weight:800; }
/* guests popover */
.hb-guest-pop { width: 320px; }
.hb-room-blk { border-bottom:1px solid var(--hb-line); padding: 10px 0; }
.hb-room-blk:first-child { padding-top: 2px; }
.hb-room-h { font-weight:800; color: var(--hb-orange); margin-bottom:8px; font-size:14px; }
.hb-grow { display:flex; align-items:center; justify-content:space-between; margin: 7px 0; font-size:14px; color:#334155; }
.hb-step { display:flex; align-items:center; gap:10px; }
.hb-step button { width:30px;height:30px;border:1px solid #cdd4e0; background:#fff; border-radius:7px; font-size:17px; cursor:pointer; color:#334155; line-height:1; }
.hb-step button:disabled { opacity:.4; cursor:not-allowed; }
.hb-step span { min-width:18px; text-align:center; font-weight:700; }
.hb-guest-foot { display:flex; justify-content:space-between; align-items:center; padding-top:10px; }
.hb-link { background:none; border:0; color: var(--hb-orange); font-weight:700; cursor:pointer; font-size:14px; }
/* results top bar */
.hb-rtop { display:flex; align-items:center; gap:14px; flex-wrap:wrap; background:#fff; border:1px solid var(--hb-line); border-radius:12px; padding:10px 14px; margin: 16px 0; }
.hb-rtop .hb-count { font-weight:700; color:#1f2433; }
.hb-rtop .hb-bc { color:#8a93a6; font-size:13px; }
.hb-sortsel { border:1px solid var(--hb-line); border-radius:8px; padding:7px 10px; font-size:13px; color:#334155; background:#fff; }
.hb-viewtog { display:inline-flex; border:1px solid var(--hb-line); border-radius:8px; overflow:hidden; margin-left:auto; }
.hb-viewtog button { border:0; background:#fff; padding:7px 12px; font-size:13px; font-weight:700; color:#64748b; cursor:pointer; }
.hb-viewtog button.on { background: var(--hb-orange); color:#fff; }
/* results layout */
.hb-rlayout { display:grid; grid-template-columns: 250px 1fr; gap:18px; align-items:start; }
@media(max-width:900px){ .hb-rlayout { grid-template-columns: 1fr; } .hb-filtcol { display:none; } .hb-filtcol.open { display:block; position:fixed; inset:0; z-index:9000; overflow:auto; background:#fff; padding:16px; } }
.hb-filtcol .card { position: sticky; top: 78px; }
.hb-fgroup { border-top:1px solid var(--hb-line); padding:12px 0; }
.hb-fgroup:first-child { border-top:0; }
.hb-fgroup h4 { margin:0 0 8px; font-size:13px; color:#1f2433; }
.hb-fgroup label { display:flex; align-items:center; gap:8px; font-size:13px; color:#475569; padding:3px 0; cursor:pointer; }
.hb-fgroup .muted { font-size:12px; }
/* hotel card: grid + list */
.hb-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:16px; }
.hb-hcard { background:#fff; border:1px solid var(--hb-line); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; transition: box-shadow .15s; }
.hb-hcard:hover { box-shadow: 0 10px 30px rgba(2,6,23,.12); }
.hb-hphoto { position:relative; height:180px; background-size:cover; background-position:center; }
.hb-hphoto .hb-bestrate { position:absolute; top:10px; left:0; background: var(--hb-orange); color:#fff; font-size:11px; font-weight:800; padding:4px 10px 4px 8px; border-radius:0 6px 6px 0; }
.hb-hphoto .hb-fav { position:absolute; top:10px; right:10px; background:rgba(255,255,255,.9); border:0; width:32px;height:32px;border-radius:50%; cursor:pointer; font-size:15px; }
.hb-hphoto .hb-imgcount { position:absolute; bottom:10px; left:10px; background:rgba(0,0,0,.6); color:#fff; font-size:11px; padding:2px 8px; border-radius:6px; }
.hb-hbody { padding:12px 14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.hb-hname { font-size:16px; font-weight:800; color:#1f2433; line-height:1.2; }
.hb-stars { color:#f5a623; font-size:13px; }
.hb-hloc { color:#8a93a6; font-size:13px; }
.hb-amen { color:#64748b; font-size:12px; }
.hb-cxl { font-size:12px; font-weight:700; }
.hb-cxl.free { color:#16a34a; }
.hb-cxl.nonref { color:#9aa3b2; }
.hb-hfoot { margin-top:auto; display:flex; align-items:flex-end; justify-content:space-between; gap:8px; padding-top:8px; }
.hb-rate { display:inline-flex; align-items:center; gap:6px; }
.hb-ratepill { background:#1a7f37; color:#fff; font-size:12px; font-weight:800; padding:2px 7px; border-radius:6px; }
.hb-price-wrap { text-align:right; }
.hb-pn { color:#8a93a6; font-size:12px; }
.hb-total { font-size:20px; font-weight:800; color:#1f2433; }
.hb-tax { color:#8a93a6; font-size:11px; }
.hb-selbtn { background: var(--hb-orange); color:#fff; border:0; border-radius:8px; padding:9px 16px; font-weight:800; font-size:13px; cursor:pointer; }
.hb-selbtn.ghost { background:#fff; color: var(--hb-orange); border:1px solid var(--hb-orange); }
/* list view */
.hb-list .hb-hcard { flex-direction: row; }
.hb-list .hb-hphoto { width: 280px; flex:none; height:auto; min-height:200px; }
@media(max-width:640px){ .hb-list .hb-hcard { flex-direction: column; } .hb-list .hb-hphoto { width:100%; height:180px; } }
/* detail hero */
.hb-back { background:none; border:0; color: var(--hb-orange); font-weight:700; cursor:pointer; font-size:14px; margin:14px 0 8px; }
.hb-gallery { display:grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap:8px; height:360px; border-radius:14px; overflow:hidden; }
@media(max-width:760px){ .hb-gallery { grid-template-columns: 1fr 1fr; height:300px; } }
.hb-gallery .g-img { background-size:cover; background-position:center; }
.hb-gallery .g-main { grid-row: 1/3; grid-column: 1; }
.hb-dhead { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:16px 0 6px; }
.hb-dhead h1 { font-size:24px; margin:0; color:#1f2433; }
.hb-droom { border:1px solid var(--hb-line); border-radius:12px; padding:14px; margin-bottom:12px; display:grid; grid-template-columns: 130px 1fr auto; gap:14px; align-items:center; background:#fff; }
@media(max-width:640px){ .hb-droom { grid-template-columns: 1fr; } }
.hb-droom img { width:130px; height:96px; object-fit:cover; border-radius:8px; }
.hb-badge { display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:6px; }
.hb-badge.green { background:#e7f6ec; color:#1a7f37; }
.hb-badge.grey { background:#eef1f5; color:#64748b; }
/* review page */
.hb-rev { display:grid; grid-template-columns: 1fr 320px; gap:18px; align-items:start; margin-top:14px; }
@media(max-width:900px){ .hb-rev { grid-template-columns: 1fr; } }
.hb-card { background:#fff; border:1px solid var(--hb-line); border-radius:12px; padding:16px; margin-bottom:14px; }
.hb-card h3 { margin:0 0 12px; font-size:16px; color:#1f2433; }
.hb-summary { position: sticky; top: 78px; }
.hb-srow { display:flex; justify-content:space-between; font-size:14px; padding:6px 0; color:#475569; }
.hb-srow.tot { font-weight:800; color:#1f2433; border-top:1px solid var(--hb-line); padding-top:10px; margin-top:4px; font-size:16px; }
.hb-paybtn { width:100%; background: var(--hb-orange); color:#fff; border:0; border-radius:9px; padding:13px; font-weight:800; font-size:15px; cursor:pointer; margin-top:10px; }
.hb-finput { width:100%; border:1px solid #cdd4e0; border-radius:8px; padding:10px 12px; font-size:14px; }
.hb-fgrid { display:grid; grid-template-columns: 100px 1fr 1fr; gap:10px; }
@media(max-width:640px){ .hb-fgrid { grid-template-columns:1fr; } }
.hb-flbl { font-size:12px; color:#64748b; font-weight:600; margin-bottom:4px; display:block; }
.hb-policy { width:100%; border-collapse:collapse; font-size:13px; }
.hb-policy th, .hb-policy td { border:1px solid var(--hb-line); padding:8px 10px; text-align:left; }
.hb-policy th { background:#f7f9fc; color:#475569; font-weight:700; }
.hb-modebadge { display:inline-block; background:#eef3ff; color:#1d4ed8; font-size:11px; font-weight:700; padding:3px 9px; border-radius:6px; }
.acm-near .acm-chev { margin-left: auto; color: #94a3b8; font-size: 22px; }
.acm-sec { padding: 14px 16px 8px; font-size: 15px; font-weight: 700; color: #475569; }
.acm-chips { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 6px; -webkit-overflow-scrolling: touch; }
.acm-chip { flex: 0 0 auto; border: 1px solid #cdd4df; background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; color: #0f172a; cursor: pointer; white-space: nowrap; }
.ac-mobile .ac-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.ac-mobile .ac-info { flex: 1; min-width: 0; }
.ac-mobile .ac-city { font-size: 16px; color: #0f172a; } .ac-mobile .ac-city .ac-codei { color: #475569; }
.ac-mobile .ac-name { font-size: 13px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-mobile .ac-flag { font-size: 26px; line-height: 1; flex: none; }
.ac-mobile .ac-empty { padding: 20px 16px; color: #94a3b8; }

/* ---- Mobile search-result filters: bottom-sticky Filters/Sort bar + full filter sheet ---- */
#mFilterBar { display: none; }
@media (max-width: 900px) {
  #mFilterBar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -3px 14px rgba(16,24,40,.12); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 10px; }
  .mfb-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer; }
  .mfb-btn span { font-size: 17px; }
  .mfb-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
  .mfb-badge { background: #fff; color: var(--brand); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; font-style: normal; }
  .results-layout { margin-bottom: 78px; }
  /* filter / sort bottom sheet */
  .mf-sheet-ov { position: fixed; inset: 0; z-index: 9998; background: rgba(15,23,42,.45); display: flex; align-items: flex-end; }
  .mf-sheet { background: #f4f6fb; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: mfUp .2s ease; }
  @keyframes mfUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .mf-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--border); border-radius: 18px 18px 0 0; }
  .mf-sheet-h b { font-size: 17px; }
  .mf-x { border: 0; background: none; font-size: 17px; color: #334155; cursor: pointer; }
  .mf-reset { border: 0; background: none; color: #ef4444; font-weight: 700; font-size: 15px; cursor: pointer; min-width: 50px; text-align: right; }
  .mf-sheet-b { overflow-y: auto; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; }
  .mf-sheet-b h4 { font-size: 16px; font-weight: 800; margin: 18px 0 10px; }
  .mf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .mf-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
  .mf-chip.on { background: #fff1f1; color: #ef4444; border-color: #ef4444; }
  .mf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mf-card { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 12px 10px; text-align: center; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
  .mf-card b { font-size: 14px; color: var(--text); } .mf-card span { font-size: 12px; color: var(--muted); }
  .mf-card.on { border-color: #ef4444; background: #fff1f1; }
  .mf-opt { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; font-size: 14px; }
  .mf-sortopt { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px; margin: 8px 0 0; font-size: 15px; cursor: pointer; color: var(--text); }
  .mf-sortopt.on { border-color: #ef4444; color: #ef4444; font-weight: 700; }
  .mf-sheet-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); }
  .mf-apply { width: 100%; background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 800; font-size: 16px; cursor: pointer; }
}

/* ---- Mobile fit: never force horizontal zoom-out; fit content to the device width ---- */
html,body{max-width:100%;overflow-x:hidden}
img,table,iframe,video{max-width:100%}
@media(max-width:640px){.notif-panel{width:calc(100vw - 20px)!important;max-width:340px;right:0}.container{padding-left:14px;padding-right:14px}}

/* CLS mitigation: reserve space so async images / menus don't shift the layout */
.topbar-inner{min-height:56px}
.user-menu{min-height:38px;display:flex;align-items:center;justify-content:flex-end}
#annStrip:empty,#recentSearches:empty{display:none}
.best-card img,#bestGrid img,#holidayGrid img,.bg-card img,.why-item img,.hol-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
