/* ─────────────────────────────────────────────────────────────────────────────
   Hotel Price Intelligence — Design System
   Inter font · Modern card layout · Mobile-first
───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — Prism: soft violet + electric cyan (cool, modern, distinctive) */
  --primary:       #8B5CF6;
  --primary-dark:  #7C3AED;
  --primary-light: #F5F3FF;
  --primary-glow:  rgba(139,92,246,.18);
  --primary-rgb:   139,92,246;
  --accent:        #06B6D4;
  --accent-dark:   #0891B2;
  --accent-light:  #ECFEFF;
  --accent-rgb:    6,182,212;
  /* Semantic */
  --success:  #10B981;
  --success-bg: #ECFDF5;
  --danger:   #F43F5E;
  --danger-bg:#FEF2F4;
  --warning:  #F59E0B;
  --warning-bg:#FFFBEB;
  --info:     #6366F1;
  /* Neutrals — cool slate undertone (pairs with violet + cyan) */
  --gray-50:  #FAFAFF;
  --gray-100: #F3F4FA;
  --gray-200: #E4E6F0;
  --gray-300: #C7CAD8;
  --gray-400: #8B8FA3;
  --gray-500: #5B5F72;
  --gray-600: #43465A;
  --gray-700: #2E3040;
  --gray-900: #0E0F1A;
  --border:   #E4E6F0;
  /* Layout */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
.text-muted { color: var(--gray-400); font-size: .875rem; }
.text-sm    { font-size: .875rem; }
.text-xs    { font-size: .75rem; }
.font-bold  { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-h);
  padding: 0;
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  height: 100%;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-weight: 800; font-size: 1.1rem; text-decoration: none;
  color: var(--gray-900); display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav-brand-icon, .nav-brand .brand-icon { font-size: 1.4rem; }
.nav-brand-name { color: var(--primary); }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .brand-sub { font-size: .65rem; font-weight: 500; color: var(--gray-400); letter-spacing: .05em; text-transform: uppercase; }

/* Trip section tabs in the main nav */
.nav-trip-tabs {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; flex: 1; justify-content: center;
}
.nav-trip-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  color: var(--gray-500); text-decoration: none; border-radius: 999px;
  white-space: nowrap; transition: all .15s;
}
.nav-trip-link:hover { background: var(--primary-light, #ede9fe); color: var(--primary); }
[data-theme="dark"] .nav-trip-link { color: #a1a5c3; }
[data-theme="dark"] .nav-trip-link:hover { background: #363852; color: #a5b4fc; }
@media (max-width: 768px) {
  .nav-trip-tabs { display: none; }
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none; color: var(--gray-500); font-size: .875rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(139,92,246,.45) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 92% 110%, rgba(6,182,212,.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 55% 50%, rgba(30,58,138,.25) 0%, transparent 65%),
    linear-gradient(160deg, #0d1b3e 0%, #1a3160 45%, #0e2847 100%);
  padding: 28px 0 72px;
  position: relative; overflow: hidden;
}

/* Scenic-destination cross-fade layer — sits behind the gradient overlays. */
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transform: scale(1.06);
  animation: heroCycle 42s ease-in-out infinite;
  /* Subtle cool tint via filter — desaturates a touch and cools the whites. */
  filter: brightness(0.72) saturate(0.85) contrast(1.02);
  will-change: opacity, transform;
}
.hero-bg-img:nth-child(1) { animation-delay:  0s; }
.hero-bg-img:nth-child(2) { animation-delay:  8.4s; }
.hero-bg-img:nth-child(3) { animation-delay: 16.8s; }
.hero-bg-img:nth-child(4) { animation-delay: 25.2s; }
.hero-bg-img:nth-child(5) { animation-delay: 33.6s; }
@keyframes heroCycle {
  0%   { opacity: 0; transform: scale(1.08); }
  4%   { opacity: 1; }
  17%  { opacity: 1; transform: scale(1.02); }
  21%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-img { animation: none; opacity: 0.28; transform: none; }
  .hero-bg-img:nth-child(1) { opacity: 0.45; }
  .hero-bg-img:nth-child(n+2) { display: none; }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139,92,246,.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(6,182,212,.10) 0%, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.4 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none; mix-blend-mode: multiply;
}
.hero-content { position: relative; }
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; z-index: 2;
  gap: 18px;
}

/* Toolbar row: quality chips + pick-on-map, sits directly below the search bar */
.search-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  width: 100%;
}
.search-toolbar > .quality-picker,
.search-toolbar > .pick-map-wrap { margin-top: 0; }
.search-toolbar .quality-picker { justify-content: flex-start; }
.search-toolbar .quality-picker-label { color: rgba(255,255,255,.75); }
.search-toolbar .pick-map-btn {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.05);
}
.search-toolbar .pick-map-btn:hover {
  border-color: #67e8f9;
  color: #67e8f9;
  background: rgba(6,182,212,.12);
  border-style: solid;
}
@media (max-width: 700px) {
  .search-toolbar { justify-content: center; }
  .search-toolbar .quality-picker { justify-content: center; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,92,246,.22); color: #c4b5fd;
  font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(139,92,246,.35);
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.hero h1, .hero-title { color: #fff; max-width: 780px; margin: 24px auto 8px; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: #67e8f9; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 0.28em;
  background: linear-gradient(90deg, rgba(6,182,212,.35), rgba(6,182,212,.05));
  z-index: -1; border-radius: 4px;
}
.hero-sub {
  color: rgba(255,255,255,.75); max-width: 560px;
  margin: 20px auto 44px; font-size: 1.1rem; font-weight: 400; line-height: 1.6;
}

/* ── Search Form ─────────────────────────────────────────────────────────── */
.search-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 8px;
  box-shadow: 0 20px 40px -20px rgba(var(--primary-rgb),.25), 0 8px 24px -12px rgba(0,0,0,.08);
  width: 100%; position: relative;
}
.search-card::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.4) 0%, rgba(var(--accent-rgb),.4) 100%);
  border-radius: var(--radius-lg); z-index: -1; opacity: .5;
}
/* Search grid: origin | destination | check-in | check-out | guests | currency | [Search] */
.search-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.6fr 1fr 1fr 0.85fr 0.75fr auto;
  gap: 0;
  align-items: stretch;
}
.search-field {
  border-right: 1px solid var(--gray-200);
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: background .15s;
  min-width: 0;
}
.search-field:first-child { border-radius: calc(var(--radius-lg) - 8px) 0 0 calc(var(--radius-lg) - 8px); }
.search-field:last-of-type { border-right: none; }
.search-field:hover { background: var(--gray-50); }
.search-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--primary);
  white-space: nowrap;
  line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis;
}
.search-field input, .search-field select {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: .95rem; font-weight: 500;
  color: var(--gray-900); cursor: pointer;
  width: 100%; min-width: 0;
  appearance: none; -webkit-appearance: none;
  text-overflow: ellipsis;
  line-height: 1.4;
  padding: 0;
}
.search-field input::placeholder { color: var(--gray-400); font-weight: 400; }
.search-submit {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none; border-radius: var(--radius);
  padding: 16px 24px; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: transform .12s, box-shadow .15s, filter .15s;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; margin: 6px 6px 6px 8px;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb),.4), inset 0 1px 0 rgba(255,255,255,.2);
  letter-spacing: -0.01em;
  align-self: center;
}
.search-submit:hover { box-shadow: 0 6px 20px rgba(var(--accent-rgb),.55), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); filter: brightness(1.05); }
.search-submit:active { transform: translateY(0); }
.search-submit svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .search-grid { grid-template-columns: 1fr 1fr 1fr auto; }
  .search-field { border-right: none; border-bottom: 1px solid var(--gray-200); border-radius: 0; }
  .search-field.search-field-origin { grid-column: 1 / 2; }
  .search-field.search-field-dest   { grid-column: 2 / 4; }
  .search-submit { grid-column: 4; grid-row: 1; margin: 6px 6px 6px 4px; padding: 12px 16px; }
}

@media (max-width: 600px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-field.search-field-origin { grid-column: 1 / -1; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--gray-200); }
  .search-field.search-field-dest   { grid-column: 1 / -1; border-radius: 0; border-bottom: 1px solid var(--gray-200); }
  .search-submit { grid-column: 1 / -1; margin: 0; width: 100%; justify-content: center; border-radius: var(--radius); border-top: 1px solid var(--gray-200); padding: 14px; }
}

/* ── Destination Pills ───────────────────────────────────────────────────── */
.dest-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; justify-content: center; }
.dest-pill {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 999px; padding: 6px 14px;
  font-size: .8rem; font-weight: 500; color: var(--gray-700);
  cursor: pointer; transition: all .15s; text-decoration: none;
  box-shadow: var(--shadow-xs);
}
.dest-pill:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.dest-pill-icon { font-size: 1rem; }

/* ── AI Trip Planner (hero centerpiece — large glass panel) ────────────── */
.ai-plan-card {
  /* Translucent dark glass so the scenic hero image shows through */
  background:
    linear-gradient(135deg, rgba(139,92,246,.10) 0%, rgba(6,182,212,.08) 100%),
    rgba(15,23,42,.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 32px 36px;
  margin: 8px auto 0;
  max-width: 880px; width: 100%;
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,.55),
    0 8px 24px -12px rgba(139,92,246,.35),
    inset 0 1px 0 rgba(255,255,255,.12);
  position: relative;
  color: #fff;
}
.ai-plan-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6,182,212,.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(139,92,246,.16), transparent 60%);
  pointer-events: none;
}
.ai-plan-header {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}
.ai-plan-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(139,92,246,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.ai-plan-title {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  letter-spacing: -0.015em; line-height: 1.25;
}
.ai-plan-sub {
  font-size: .95rem; color: rgba(255,255,255,.72);
  margin-top: 4px; line-height: 1.5; font-weight: 400;
}
.ai-plan-sub em { color: #67e8f9; font-style: normal; font-weight: 500; }
.ai-plan-form {
  display: flex; gap: 12px;
  align-items: stretch;
  position: relative;
}
.ai-plan-input {
  flex: 1; min-width: 0;
  padding: 16px 18px;
  font-family: inherit; font-size: 1rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  resize: none; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s, background .15s;
  min-height: 96px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ai-plan-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.ai-plan-input:focus {
  outline: none;
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.28);
}
.ai-plan-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 28px; min-width: 180px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; border: none;
  font-family: inherit; font-size: 1.02rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6,182,212,.4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s, filter .15s, box-shadow .15s;
  letter-spacing: -0.01em;
}
.ai-plan-btn:hover:not(:disabled) {
  transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(6,182,212,.55), inset 0 1px 0 rgba(255,255,255,.3);
}
.ai-plan-btn:disabled { opacity: .7; cursor: default; }
@media (max-width: 640px) {
  .ai-plan-card { padding: 22px 20px; border-radius: 20px; }
  .ai-plan-title { font-size: 1.15rem; }
  .ai-plan-form { flex-direction: column; }
  .ai-plan-btn { padding: 14px 20px; min-width: 0; }
  .ai-plan-input { min-height: 84px; }
}
.ai-plan-examples {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; flex-wrap: wrap;
  font-size: .74rem; color: var(--gray-500);
}
.ai-plan-example {
  background: transparent; border: 1px dashed var(--gray-300);
  color: var(--gray-600); font-family: inherit;
  padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; cursor: pointer; font-weight: 500;
  transition: all .15s;
}
.ai-plan-example:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light); border-style: solid;
}
.ai-plan-status {
  margin-top: 12px;
  padding: 12px 14px; border-radius: 10px;
  font-size: .85rem;
}
.ai-plan-status.is-thinking {
  background: var(--gray-50); color: var(--gray-500);
  border: 1px solid var(--gray-200);
}
.ai-plan-status.is-err {
  background: rgba(244,63,94,.08); color: #be123c;
  border: 1px solid rgba(244,63,94,.22);
}
.ai-plan-status.is-ok {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: var(--gray-900);
  border: 1px solid rgba(var(--primary-rgb), .18);
}
.ai-plan-advice { line-height: 1.5; margin-bottom: 10px; font-size: .88rem; }

/* Trip-type pill shown above the plan summary (e.g. "Bachelor party") */
.ai-plan-trip-type {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(6,182,212,.14));
  border: 1px solid rgba(139,92,246,.35);
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  color: #e0d4ff;
  letter-spacing: .01em;
}
.ai-plan-trip-icon { font-size: 1rem; line-height: 1; }
.ai-plan-trip-label { color: #fff; }
.ai-plan-trip-partner {
  color: rgba(255,255,255,.65);
  font-weight: 400;
  font-size: .74rem;
}
.ai-plan-itinerary {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 6px 0;
}
.ai-plan-stop {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 6px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--gray-200);
  font-family: inherit; font-size: .78rem; text-align: left;
  cursor: pointer; transition: all .15s;
}
.ai-plan-stop:hover {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}
.ai-plan-stop.is-current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb),.3);
}
.ai-plan-stop strong { font-weight: 700; font-size: .82rem; }
.ai-plan-stop span   { opacity: .8; font-size: .7rem; }
.ai-plan-warnings {
  margin-top: 8px; font-size: .72rem; color: var(--gray-500);
  padding-top: 8px; border-top: 1px dashed var(--gray-200);
}

/* ── AI Clarifying Questions ─────────────────────────────────────────────── */
.ai-clarify-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(var(--primary-rgb), .2);
}
.ai-clarify-label {
  font-size: .78rem; font-weight: 600;
  color: var(--primary); margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px;
}
.ai-clarify-q {
  margin-bottom: 10px;
}
.ai-clarify-q-text {
  display: block;
  font-size: .82rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: 5px;
}
.ai-clarify-opts {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ai-clarify-opt {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 4px 13px;
  font-family: inherit; font-size: .78rem; font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .14s;
}
.ai-clarify-opt:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.ai-clarify-opt.is-selected {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), .3);
}
.ai-plan-show-results {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin: 20px auto 4px;
  padding: 12px 32px;
  font-size: 1rem; font-weight: 700;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), .35);
  transition: transform .15s, box-shadow .15s;
}
.ai-plan-show-results:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), .45);
}

/* ── AI Top Picks Section ────────────────────────────────────────────────── */
#aiPicksWrap {
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border: 1px solid rgba(var(--primary-rgb), .18);
  border-radius: var(--radius-lg);
  padding: 20px 20px 24px;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), .1);
}
.ai-picks-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.ai-picks-icon {
  font-size: 1.6rem; flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.ai-picks-title {
  font-size: 1.05rem; font-weight: 800;
  color: var(--gray-900); letter-spacing: -.02em;
}
.ai-picks-summary {
  font-size: .82rem; color: var(--gray-500);
  margin-top: 2px;
}
.ai-picks-refresh {
  margin-left: auto; flex-shrink: 0;
  background: transparent; border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 6px 8px;
  cursor: pointer; color: var(--gray-400);
  transition: color .14s, border-color .14s;
}
.ai-picks-refresh:hover { color: var(--primary); border-color: var(--primary); }
.ai-picks-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-pick-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 220px minmax(0, 1.4fr) minmax(0, 1fr);
  transition: box-shadow .18s, transform .18s;
}
.ai-pick-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
@media (max-width: 900px) {
  .ai-pick-card { grid-template-columns: 160px minmax(0, 1fr); }
  .ai-pick-card .ai-pick-reason {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
}
@media (max-width: 560px) {
  .ai-pick-card { grid-template-columns: 1fr; }
  .ai-pick-media { aspect-ratio: 16/9; }
}

.ai-pick-media {
  position: relative; overflow: hidden;
  min-height: 100%;
  background: var(--gray-100);
}
.ai-pick-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
  display: block;
}
.ai-pick-card:hover .ai-pick-img { transform: scale(1.04); }

.ai-pick-rank-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
  backdrop-filter: blur(6px);
  color: #fff;
  white-space: nowrap;
  z-index: 1;
}
.ai-pick-rank-badge[data-rank="1"] {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245,158,11,.5);
}
.ai-pick-rank-badge[data-rank="2"] {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: 0 2px 8px rgba(107,114,128,.4);
}
.ai-pick-rank-badge[data-rank="3"] {
  background: linear-gradient(135deg, #cd7c2d, #a0522d);
  box-shadow: 0 2px 8px rgba(205,124,45,.4);
}
.ai-pick-rank-badge[data-rank="4"],
.ai-pick-rank-badge[data-rank="5"] {
  background: linear-gradient(135deg, rgba(139,92,246,.9), rgba(124,58,237,.9));
  box-shadow: 0 2px 8px rgba(139,92,246,.35);
}

.ai-pick-main {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.ai-pick-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.ai-pick-name {
  font-size: 1.05rem; font-weight: 700;
  color: var(--gray-900); line-height: 1.3;
}
.ai-pick-stars-inline {
  font-size: .82rem; color: #f59e0b; letter-spacing: 1px;
  flex-shrink: 0;
}
.ai-pick-price {
  display: flex; align-items: baseline; gap: 4px;
}
.ai-pick-price-amount {
  font-size: 1.15rem; font-weight: 800;
  color: var(--primary);
}
.ai-pick-price-sub {
  font-size: .78rem; color: var(--gray-400);
}
.ai-pick-highlights {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.ai-pick-highlight {
  font-size: .72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), .18);
}
.ai-pick-promo {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 7px 11px;
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-sm);
  font-size: .78rem; color: #92400e;
  line-height: 1.4;
}
.ai-pick-promo-icon { flex-shrink: 0; }
.ai-pick-actions {
  display: flex; gap: 8px; margin-top: auto; padding-top: 4px;
}
.ai-pick-actions .btn { flex: 1; justify-content: center; }

.ai-pick-reason {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb),.04), rgba(var(--primary-rgb),.01));
  border-left: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.ai-pick-reason-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.ai-pick-reason-body {
  font-size: .88rem; line-height: 1.55; color: var(--gray-700);
}

.ai-pick-skeleton {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
}

/* ── Live-price verification badge inside booking modal ──────────────────── */
.bc-verify {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 12px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .82rem; color: var(--gray-600);
}
.bc-verify-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--gray-200); border-top-color: var(--primary);
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.bc-verify .bc-verify-ok {
  color: #047857; font-weight: 500;
}
.bc-verify .bc-verify-changed {
  color: #78350f; font-weight: 500;
}
.bc-verify .bc-verify-unavailable,
.bc-verify .bc-verify-skipped {
  color: var(--gray-500); font-style: italic;
}
.bc-verify:has(.bc-verify-ok) {
  background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.22);
}
.bc-verify:has(.bc-verify-changed) {
  background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.22);
}
.bc-verify:has(.bc-verify-ok) .bc-verify-spinner,
.bc-verify:has(.bc-verify-changed) .bc-verify-spinner,
.bc-verify:has(.bc-verify-unavailable) .bc-verify-spinner,
.bc-verify:has(.bc-verify-skipped) .bc-verify-spinner {
  display: none;
}

/* ── Quality picker (min star rating) ────────────────────────────────────── */
.quality-picker {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  margin-top: 14px;
}
.quality-picker-label {
  font-size: .78rem; font-weight: 600; color: var(--gray-500);
  letter-spacing: .02em; margin-right: 4px;
}
.quality-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff; color: var(--gray-700);
  font-family: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.quality-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.quality-chip.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(var(--primary-rgb),.35);
}

/* ── Pick-on-map (destination picker) ──────────────────────────────────── */
.pick-map-wrap { margin-top: 16px; text-align: center; }
.pick-map-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px dashed var(--gray-300);
  color: var(--gray-500); font-family: inherit;
  padding: 8px 18px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.pick-map-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  border-style: solid;
}
.pick-map-btn svg { flex-shrink: 0; }
.pick-map-panel {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(var(--primary-rgb),.2), var(--shadow-sm);
}
.pick-map-instructions {
  padding: 10px 16px; text-align: center;
  font-size: .82rem; color: var(--gray-500);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border-bottom: 1px solid var(--gray-200);
}
.pick-map {
  width: 100%; height: 360px;
}

/* ── Results Header ──────────────────────────────────────────────────────── */
.results-wrap { padding: 40px 0 64px; }
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-title { font-size: 1.3rem; font-weight: 700; }
.results-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-sort select {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 6px 10px;
  font-family: inherit; font-size: .85rem; cursor: pointer;
}
.info-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--primary-light);
  border-radius: var(--radius); border: 1px solid rgba(139,92,246,.2);
  font-size: .85rem; color: var(--primary); margin-bottom: 24px;
}

/* ── Hotel Grid ──────────────────────────────────────────────────────────── */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
@media (max-width: 720px) { .hotels-grid { grid-template-columns: 1fr; } }

/* ── Hotel Card ──────────────────────────────────────────────────────────── */
.hotel-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.hotel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Card image */
.hotel-img-wrap {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--gray-200);
}
.hotel-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.hotel-card:hover .hotel-img { transform: scale(1.04); }
.hotel-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}
.hotel-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 55%);
}
.hotel-stars-wrap {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 4px;
}
.hotel-star-badge {
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  color: #fbbf24; font-size: .75rem; padding: 3px 8px;
  border-radius: 999px; font-weight: 600;
}
.hotel-badge-wrap {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.hotel-name-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 12px;
  color: #fff;
}
.hotel-name-overlay h3 {
  font-size: 1rem; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  letter-spacing: -0.01em;
}
.hotel-loc {
  font-size: .78rem; color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}

/* Card body */
.hotel-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

/* Price block */
.price-block {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.price-main { display: flex; flex-direction: column; }
.price-label { font-size: .7rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.price-amount { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; line-height: 1.1; }
.price-sub { font-size: .78rem; color: var(--gray-500); margin-top: 2px; }
.price-provider { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.provider-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.provider-pill.best { background: linear-gradient(135deg, #059669, #0d9488); }

/* Provider list */
.provider-list { display: flex; flex-direction: column; gap: 6px; }
.provider-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--gray-50); border: 1px solid var(--gray-200);
  transition: background .1s;
}
.provider-row.cheapest {
  background: var(--success-bg);
  border-color: rgba(5,150,105,.25);
}
.provider-row:hover { background: var(--primary-light); border-color: rgba(139,92,246,.2); }
.prov-name { font-size: .82rem; font-weight: 600; color: var(--gray-700); text-transform: capitalize; }
.prov-total { font-size: .9rem; font-weight: 700; color: var(--gray-900); }
.prov-total.cheapest-price { color: var(--success); }
.prov-meta { font-size: .72rem; color: var(--gray-400); }
.prov-badges { display: flex; gap: 4px; }

/* Card actions */
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.badge-green  { background: var(--success-bg); color: var(--success); }
.badge-red    { background: var(--danger-bg);  color: var(--danger); }
.badge-yellow { background: var(--warning-bg); color: var(--warning); }
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-dark   { background: var(--gray-100); color: var(--gray-700); }
.badge-glass  { background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px); border-radius: 6px; font-size: .7rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: all .15s; text-decoration: none; white-space: nowrap;
  padding: 8px 16px; font-size: .85rem;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 4px rgba(139,92,246,.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 2px 8px rgba(139,92,246,.4); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--gray-500); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-sm { padding: 5px 12px; font-size: .8rem; }
.btn-xs { padding: 3px 8px; font-size: .72rem; }
.btn-lg { padding: 12px 28px; font-size: .95rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── Expanded Rate Table ─────────────────────────────────────────────────── */
.rate-expand-panel {
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.rate-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.rate-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.rate-table th {
  background: var(--gray-50); padding: 8px 10px;
  text-align: left; font-weight: 600; color: var(--gray-500);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--gray-200);
}
.rate-table td { padding: 8px 10px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table tr.row-best { background: var(--success-bg); }
.rate-table tr:hover { background: var(--gray-50); }

/* ── Deals Panel ─────────────────────────────────────────────────────────── */
.deals-panel {
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.deals-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.deals-heading { font-size: .82rem; font-weight: 700; color: var(--gray-700); }
.deals-scanning { color: var(--gray-400); font-size: .8rem; padding: 8px 0; }
.promo-code-item {
  background: linear-gradient(135deg, #fef9ee, #fffbf0);
  border: 1px solid rgba(217,119,6,.2);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 6px;
}
.promo-code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.promo-code-value {
  font-family: 'Courier New', monospace;
  font-size: .9rem; font-weight: 700;
  background: rgba(0,0,0,.06); padding: 2px 8px;
  border-radius: 4px; letter-spacing: .08em;
  cursor: pointer; user-select: all;
}
.promo-code-value:hover { background: rgba(139,92,246,.12); color: var(--primary); }
.promo-desc { font-size: .78rem; color: var(--gray-500); }
.promo-expiry { font-size: .72rem; color: var(--gray-400); }
.deal-obs-link {
  display: flex; align-items: flex-start; gap: 10px;
  text-decoration: none; color: inherit;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 5px; transition: background .1s;
}
.deal-obs-link:hover { background: var(--gray-50); }
.deal-obs-source {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray-400); white-space: nowrap;
  background: var(--gray-100); padding: 2px 6px; border-radius: 4px;
  margin-top: 1px;
}
.deal-obs-title { font-size: .82rem; font-weight: 500; color: var(--gray-700); line-height: 1.4; }
.deals-section-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400); margin: 10px 0 6px; }
.deals-empty-state { text-align: center; padding: 16px; color: var(--gray-400); font-size: .82rem; }

/* ── Skeleton Loading ────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 40%, var(--gray-200) 80%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.skeleton-img { aspect-ratio: 16/9; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; }
.skeleton-title { height: 20px; width: 70%; }
.skeleton-price { height: 48px; border-radius: var(--radius); }

/* ── Alerts / Banners ────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: .875rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-info    { background: var(--primary-light); color: var(--info); border: 1px solid rgba(2,132,199,.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(217,119,6,.2); }
.alert-danger  { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(220,38,38,.2); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(5,150,105,.2); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-md); max-width: 420px; width: 100%;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem; color: var(--gray-900);
  background: #fff; transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-hint { font-size: .75rem; color: var(--gray-400); }
.form-error { font-size: .78rem; color: var(--danger); font-weight: 500; }

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,92,246,.1) 0%, transparent 60%),
    var(--gray-50);
}
.auth-logo { margin-bottom: 28px; text-align: center; }
.auth-logo-icon { font-size: 2.5rem; }
.auth-logo-title { font-weight: 800; font-size: 1.4rem; margin-top: 8px; letter-spacing: -0.03em; }
.auth-logo-sub { font-size: .82rem; color: var(--gray-400); }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loading-center { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px; }
.loading-center p { color: var(--gray-400); font-size: .9rem; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 64px 24px;
  color: var(--gray-400);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 8px; }
.empty-state p  { font-size: .9rem; max-width: 320px; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: 40px 0 28px; margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-name { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.footer-brand-sub  { font-size: .82rem; line-height: 1.6; }
.footer-col h4 { color: var(--gray-300); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col a  { display: block; color: var(--gray-400); text-decoration: none; font-size: .85rem; margin-bottom: 6px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gray-100); color: var(--gray-700);
  border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 500;
}
.cached-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--gray-400); }

/* ── Additional classes for new HTML structure ── */

/* Nav brand updated selectors */
.nav-brand-icon { font-size: 1.4rem; }
.nav-brand-name { font-weight: 700; font-size: 1rem; color: var(--primary); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Features section */
.features-section { background: var(--gray-50); padding: 80px 16px; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  text-align: center; color: var(--gray-900); margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff; border-radius: 16px; padding: 28px;
  border: 1px solid var(--border); transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* Footer */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 40px 16px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1rem; }
.footer-brand-icon { font-size: 1.4rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-400); text-decoration: none; font-size: .85rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .75rem; color: var(--gray-500); max-width: 500px; }

/* search-field layout handled above */

/* Loading spinner */
.loading-status {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  font-size: .9rem; color: var(--gray-500); font-weight: 500;
}
.loading-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--primary);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hotel card additions */
.hotel-stars-wrap { position: absolute; top: 12px; left: 12px; z-index: 2; }
.hotel-star-badge { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #fbbf24; font-size: .7rem; padding: 3px 8px; border-radius: 6px; letter-spacing: .03em; }
.hotel-badge-wrap { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.badge-glass { background: rgba(0,0,0,.45) !important; backdrop-filter: blur(4px); color: #fff !important; font-size: .65rem; }
.hotel-loc { display: flex; align-items: center; gap: 4px; font-size: .75rem; opacity: .85; margin-top: 2px; }
.provider-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.provider-pill.best { background: rgba(139,92,246,.1); color: var(--primary); }
.prov-name { font-size: .8rem; font-weight: 600; color: var(--gray-900); }
.prov-meta { font-size: .72rem; color: var(--gray-400); }
.prov-total { font-size: .9rem; font-weight: 700; color: var(--gray-700); }
.cheapest-price { color: var(--success) !important; }

/* Rate table */
.rate-table-wrap { overflow-x: auto; margin-top: 8px; }
.rate-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.rate-table th { text-align: left; padding: 6px 10px; background: var(--gray-50); color: var(--gray-500); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rate-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rate-table .row-best td { background: rgba(5,150,105,.04); }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--gray-400); }
.text-sm { font-size: .8rem; }

/* Badge additions */
.badge-blue { background: rgba(139,92,246,.1); color: var(--primary); }
.badge-yellow { background: rgba(217,119,6,.12); color: #92400e; }
.badge-dark { background: var(--gray-100); color: var(--gray-600); }
.badge-green { background: rgba(5,150,105,.1); color: #065f46; }
.badge-red { background: rgba(220,38,38,.1); color: #991b1b; }
.btn-xs { padding: 3px 10px; font-size: .72rem; }

/* Deals additions */
.deals-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.deals-heading { font-size: .8rem; font-weight: 700; color: var(--gray-700); }
.deals-scanning { font-size: .8rem; color: var(--gray-400); padding: 12px 0; }
.deals-empty-state { font-size: .8rem; color: var(--gray-400); padding: 8px 0; }
.deals-section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin: 8px 0 4px; }
.promo-desc { font-size: .78rem; color: var(--gray-500); }
.promo-expiry { font-size: .72rem; color: var(--warning); }
.deal-obs-link { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.deal-obs-link:last-child { border-bottom: none; }
.deal-obs-source { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--primary); min-width: 56px; }
.deal-obs-title { font-size: .78rem; color: var(--gray-700); line-height: 1.4; }
.deal-obs-link:hover .deal-obs-title { color: var(--primary); }

/* Auth additions */
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { font-size: 2.5rem; margin-bottom: 8px; }
.auth-logo-title { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); }
.auth-logo-sub { font-size: .875rem; color: var(--gray-500); margin-top: 4px; }
.form-hint { font-size: .78rem; color: var(--gray-400); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; font-size: .875rem; }
.alert-danger { background: rgba(220,38,38,.08); color: #991b1b; border: 1px solid rgba(220,38,38,.2); }
.alert-warning { background: rgba(217,119,6,.08); color: #92400e; border: 1px solid rgba(217,119,6,.2); }

/* Section container */
.section-container { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }

/* Results */
.results-title { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin: 0; }
.results-meta { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }

/* Responsive tweaks */
@media (max-width: 600px) {
  .search-btn { width: 100%; }
  .card-actions { justify-content: flex-start; }
  .feature-card { padding: 20px; }
}

/* ── Accent / amber overrides ── */
.btn-accent {
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 10px 20px; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(6,182,212,.35);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-accent:hover { background: var(--accent-dark); }

/* Hero eyebrow pill — amber */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(6,182,212,.18); color: #67e8f9;
  font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(6,182,212,.35);
  margin-bottom: 20px; letter-spacing: .04em; text-transform: uppercase;
}

/* Primary badge text — teal */
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* Dest pill hover teal */
.dest-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Footer teal brand */
.footer-brand { color: var(--primary); }

/* Feature card accent icon bg — alternating primary/accent for visual rhythm */
.feature-icon {
  font-size: 1.7rem; margin-bottom: 14px;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(var(--primary-rgb),.06) 100%);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--primary-rgb),.1);
}
.feature-card:nth-child(even) .feature-icon {
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(var(--accent-rgb),.06) 100%);
  color: var(--accent-dark);
  border-color: rgba(var(--accent-rgb),.15);
}
.feature-card { transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature-card:hover { border-color: rgba(var(--primary-rgb),.2); transform: translateY(-3px); }

/* ── Autocomplete ────────────────────────────────────────────────────────── */
.autocomplete-wrap { position: relative; width: 100%; }
.autocomplete-list {
  position: absolute; top: calc(100% + 6px); left: -16px;
  min-width: 320px; max-width: 480px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  list-style: none; padding: 6px 0; z-index: 200;
  max-height: 280px; overflow-y: auto;
}
.autocomplete-list:empty { display: none; }
.autocomplete-section-label {
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-400);
  padding: 6px 14px 2px; margin-top: 4px;
}
.autocomplete-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer;
  transition: background .1s;
  font-size: .875rem;
}
.autocomplete-item:hover, .autocomplete-item.active {
  background: var(--primary-light); color: var(--primary);
}
.autocomplete-item-icon { font-size: 1rem; flex-shrink: 0; }
.autocomplete-item-main { font-weight: 600; }
.autocomplete-item-sub { font-size: .75rem; color: var(--gray-400); margin-top: 1px; }
.autocomplete-stars { color: #f59e0b; font-size: .7rem; }

/* ── View toggle ─────────────────────────────────────────────────────────── */
.view-toggle-bar {
  display: flex; gap: 6px; justify-content: center;
  margin: 20px 0 0;
}
.view-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff; color: var(--gray-600);
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.view-toggle-btn.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(139,92,246,.25);
}
.view-toggle-btn:not(.active):hover {
  border-color: var(--primary); color: var(--primary);
}

/* ── Map view (embedded above list) ─────────────────────────────────────── */
.map-wrap {
  position: relative;
  margin: 0 0 32px;
  transition: max-height .3s ease, opacity .2s ease, margin .3s ease;
  max-height: 640px;
  overflow: hidden;
}
.map-wrap.is-hidden {
  max-height: 0; opacity: 0; margin: 0;
  pointer-events: none;
}
.hotel-map {
  width: 100%; height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px -12px rgba(var(--primary-rgb),.25), var(--shadow-sm);
  overflow: hidden;
  position: relative; z-index: 1;
}
.map-caption {
  margin-top: 10px; text-align: center;
  font-size: .78rem; color: var(--gray-500);
  letter-spacing: .01em;
}

/* Popup — image + rating + book button */
.mp-popup .leaflet-popup-content-wrapper {
  border-radius: 14px; padding: 0; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  border: 1px solid var(--gray-200);
}
.mp-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.mp-popup .leaflet-popup-tip { background: #fff; }
.map-hotel-popup { min-width: 260px; max-width: 320px; }
.mp-img-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--gray-100); overflow: hidden; }
.mp-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-stars-wrap {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  padding: 3px 8px; border-radius: 999px;
}
.mp-stars { color: #FBBF24; font-size: .72rem; letter-spacing: .06em; }
.mp-body { padding: 12px 14px 14px; }
.mp-name {
  font-size: .95rem; font-weight: 700; color: var(--gray-900);
  margin: 0 0 6px; line-height: 1.25; letter-spacing: -0.01em;
}
.mp-meta-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.mp-review {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  color: var(--primary-dark);
  padding: 3px 9px; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.mp-review-lbl { font-weight: 500; opacity: .75; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.mp-badge {
  padding: 2px 8px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}
.mp-badge--ok   { background: rgba(16,185,129,.14); color: #047857; }
.mp-badge--warn { background: rgba(244,63,94,.12); color: #be123c; }
.mp-price-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; padding-top: 8px; border-top: 1px solid var(--gray-200);
}
.mp-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.mp-sub { font-size: .7rem; color: var(--gray-500); margin-top: 2px; }
.mp-book {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 10px;
  font-size: .82rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb),.35);
  transition: transform .12s, filter .15s;
  white-space: nowrap;
}
.mp-book:hover { transform: translateY(-1px); filter: brightness(1.08); }

.map-pin-search-btn {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 999px; padding: 6px 8px 6px 16px;
  font-size: .85rem; font-weight: 700; cursor: default;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  display: none;
  color: var(--primary);
  align-items: center; gap: 6px;
  max-width: calc(100% - 32px);
  flex-wrap: wrap; justify-content: center;
}
.map-pin-search-btn.visible { display: inline-flex; }
.pin-btn-main { padding: 4px 6px 4px 0; white-space: nowrap; }
.pin-btn-radius {
  padding: 6px 12px; border-radius: 999px;
  background: var(--gray-50); color: var(--gray-700);
  font-size: .78rem; font-weight: 700; cursor: pointer;
  border: 1px solid var(--gray-200);
  transition: all .12s;
}
.pin-btn-radius:hover {
  background: var(--primary-light); color: var(--primary);
  border-color: var(--primary);
}
.pin-btn-radius.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb),.35);
}

/* ── Clickable hotel card ───────────────────────────────────────────────── */
.hotel-card.is-clickable {
  cursor: pointer;
}
.hotel-card.is-clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.hotel-card.is-clickable:hover {
  border-color: rgba(var(--primary-rgb),.4);
  box-shadow: 0 12px 28px -8px rgba(var(--primary-rgb),.25), var(--shadow-md);
  transform: translateY(-3px);
}
.hotel-card.is-clickable:hover .hotel-img { transform: scale(1.05); }

/* ── Guest review badge on cards ────────────────────────────────────────── */
.hotel-review-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 0 0 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border: 1px solid rgba(var(--primary-rgb),.15);
  border-radius: 12px;
}
.hotel-review-score {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 1rem; font-weight: 800; letter-spacing: -0.02em;
  padding: 6px 10px; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb),.3);
  min-width: 42px; text-align: center;
}
.hotel-review-meta {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.hotel-review-label {
  font-size: .82rem; font-weight: 700; color: var(--gray-900);
  line-height: 1.2; letter-spacing: -0.01em;
}
.hotel-review-src {
  font-size: .68rem; color: var(--gray-500); font-weight: 500;
  letter-spacing: .02em;
}

/* ── Price disclaimer on hotel cards ───────────────────────────────────── */
.price-disclaimer {
  margin: 0 0 12px;
  padding: 6px 12px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: 8px;
  font-size: .72rem;
  color: #92400e;
  line-height: 1.4;
  font-weight: 500;
}

/* ── Booking confirmation modal ─────────────────────────────────────────── */
.book-confirm-modal {
  position: fixed; inset: 0; z-index: 3200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: hm-fade .18s ease-out;
}
.book-confirm-modal[hidden] { display: none !important; }
.book-confirm-backdrop {
  position: absolute; inset: 0;
  background: rgba(14,15,26,.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.book-confirm-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.4), 0 20px 40px -12px rgba(0,0,0,.25);
  border: 1px solid rgba(var(--primary-rgb), .1);
  animation: hm-pop .22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.book-confirm-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: all .15s;
}
.book-confirm-close:hover { color: var(--gray-900); transform: scale(1.05); }

.book-confirm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 8px;
}
.book-confirm-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.book-confirm-header h3 {
  margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--gray-900);
  letter-spacing: -0.02em;
}

.book-confirm-body {
  padding: 8px 24px 12px;
  overflow-y: auto;
  font-size: .9rem; color: var(--gray-700); line-height: 1.55;
}

.bc-hotel {
  font-size: 1rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: 12px; letter-spacing: -0.01em;
}

.bc-price-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border: 1px solid rgba(var(--primary-rgb), .12);
  border-radius: 12px;
}
.bc-price-num {
  font-size: 1.6rem; font-weight: 800;
  color: var(--primary); letter-spacing: -0.02em; line-height: 1;
}
.bc-price-sub {
  font-size: .78rem; color: var(--gray-600); margin-top: 4px;
}
.bc-provider {
  font-size: .82rem; color: var(--gray-700);
  text-align: right; text-transform: uppercase; letter-spacing: .04em;
}

.bc-callout {
  padding: 12px 14px;
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.28);
  border-radius: 10px;
  font-size: .85rem; color: #78350f; line-height: 1.5;
  margin-bottom: 14px;
}
.bc-callout strong { color: #92400e; }
.bc-callout em { font-style: normal; font-weight: 600; }

.bc-checklist {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.bc-checklist li {
  font-size: .82rem; color: var(--gray-700); line-height: 1.4;
  padding-left: 22px; position: relative;
}
.bc-checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 800;
}

.bc-promos {
  padding: 10px 14px; border-radius: 10px;
  background: rgba(var(--accent-rgb),.08);
  border: 1px solid rgba(var(--accent-rgb),.22);
}
.bc-promos-title { font-size: .82rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.bc-promos-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-promos-list li { display: flex; gap: 8px; align-items: baseline; font-size: .82rem; }
.bc-promo-code {
  background: #fff; border: 1px solid var(--gray-200);
  padding: 2px 8px; border-radius: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: .78rem; font-weight: 700; color: var(--primary-dark);
  cursor: pointer; user-select: all;
}
.bc-promo-desc { color: var(--gray-600); font-size: .78rem; }

.book-confirm-actions {
  display: flex; gap: 10px; align-items: center; justify-content: flex-end;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--gray-100);
  background: linear-gradient(180deg, #fff, var(--gray-50));
}
.book-confirm-cancel {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-family: inherit; font-size: .88rem; font-weight: 600;
  padding: 10px 18px; border-radius: 10px;
  cursor: pointer; transition: all .15s;
}
.book-confirm-cancel:hover { background: var(--gray-100); color: var(--gray-900); }
.book-confirm-continue {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff !important; text-decoration: none;
  padding: 11px 22px; border-radius: 10px;
  font-size: .92rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb),.35);
  transition: transform .12s, filter .15s;
}
.book-confirm-continue:hover { transform: translateY(-1px); filter: brightness(1.06); }

@media (max-width: 520px) {
  .book-confirm-modal { padding: 0; }
  .book-confirm-panel { max-height: 100vh; border-radius: 0; }
  .book-confirm-actions { flex-direction: column-reverse; align-items: stretch; }
  .book-confirm-continue, .book-confirm-cancel { text-align: center; width: 100%; }
}

/* ── Hotel Details Modal ────────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.hotel-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: hm-fade .18s ease-out;
}
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
.hotel-modal[hidden] { display: none !important; }

.hotel-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 15, 26, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.hotel-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 880px;
  max-height: calc(100vh - 48px);
  overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4), 0 20px 40px -12px rgba(0,0,0,0.25);
  border: 1px solid rgba(var(--primary-rgb), .1);
  animation: hm-pop .22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes hm-pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hotel-modal-close {
  position: sticky; top: 12px; float: right; margin-right: 12px; margin-top: 0;
  z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: all .15s;
}
.hotel-modal-close:hover { background: #fff; color: var(--gray-900); transform: scale(1.05); }

.hotel-modal-content { padding: 0 0 24px; }

/* Photo gallery hero */
.hm-hero {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.hm-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.hm-hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff;
  border: none; font-size: 1.4rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .15s, transform .12s;
  z-index: 2;
}
.hm-hero-nav:hover { background: rgba(0,0,0,.75); transform: translateY(-50%) scale(1.08); }
.hm-hero-prev { left: 16px; }
.hm-hero-next { right: 16px; }
.hm-hero-counter {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(0,0,0,.6); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(6px);
}

.hm-thumbs {
  display: flex; gap: 8px; padding: 12px 24px;
  overflow-x: auto; scrollbar-width: thin;
  border-bottom: 1px solid var(--gray-100);
}
.hm-thumbs::-webkit-scrollbar { height: 6px; }
.hm-thumbs::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.hm-thumb {
  flex-shrink: 0;
  width: 82px; height: 60px; padding: 0;
  border: 2px solid transparent; border-radius: 8px;
  background: var(--gray-100); cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, transform .12s;
}
.hm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-thumb:hover { transform: translateY(-2px); }
.hm-thumb.is-active { border-color: var(--primary); box-shadow: 0 4px 10px rgba(var(--primary-rgb),.3); }

/* Header — name + stars + address + review score */
.hm-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 20px 24px 12px;
  flex-wrap: wrap;
}
.hm-header-main { flex: 1 1 260px; min-width: 0; }
.hm-name {
  font-size: 1.6rem; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.03em; color: var(--gray-900);
  margin: 0 0 6px;
}
.hm-stars-row { color: #FBBF24; font-size: .95rem; letter-spacing: .04em; margin-bottom: 6px; }
.hm-address {
  display: flex; align-items: center; gap: 6px;
  color: var(--gray-500); font-size: .88rem; line-height: 1.4;
}
.hm-address svg { flex-shrink: 0; opacity: .7; }

.hm-review-block {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border: 1px solid rgba(var(--primary-rgb), .15);
  border-radius: 12px;
}
.hm-review-score {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  padding: 8px 12px; border-radius: 10px;
  box-shadow: 0 3px 8px rgba(var(--primary-rgb),.3);
  min-width: 54px; text-align: center; line-height: 1;
}
.hm-review-txt { display: flex; flex-direction: column; gap: 2px; }
.hm-review-label { font-weight: 700; font-size: .95rem; color: var(--gray-900); }
.hm-review-src { font-size: .72rem; color: var(--gray-500); }

/* Primary CTA bar */
.hm-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 4px 24px 8px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), .12);
}
.hm-cta-price-num {
  font-size: 1.7rem; font-weight: 800;
  color: var(--primary); letter-spacing: -0.02em; line-height: 1;
}
.hm-cta-price-sub {
  font-size: .8rem; color: var(--gray-500); margin-top: 4px;
}
.hm-cta-book {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 12px;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb),.4);
  transition: transform .12s, filter .15s;
  white-space: nowrap;
}
.hm-cta-book:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* Content sections */
.hm-section { padding: 16px 24px; border-top: 1px solid var(--gray-100); }
.hm-section-title {
  font-size: 1rem; font-weight: 700; color: var(--gray-900);
  margin: 0 0 12px; letter-spacing: -0.01em;
}
.hm-description { font-size: .92rem; color: var(--gray-700); line-height: 1.6; white-space: pre-wrap; }
.hm-facilities {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 12px;
}
.hm-facilities li {
  font-size: .85rem; color: var(--gray-700);
  padding: 4px 10px; background: var(--gray-50);
  border-radius: 6px; border: 1px solid var(--gray-100);
}

/* Rate list */
.hm-rates { display: flex; flex-direction: column; gap: 8px; }
.hm-rate {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.hm-rate:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(var(--primary-rgb),.12); }
.hm-rate.is-cheapest {
  background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(var(--accent-rgb),.04));
  border-color: rgba(16,185,129,.35);
}
.hm-rate-info { flex: 1; min-width: 0; }
.hm-rate-provider { font-size: .82rem; font-weight: 700; color: var(--gray-900); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.hm-rate-best { background: var(--success); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: .68rem; letter-spacing: .04em; }
.hm-rate-room { font-size: .88rem; color: var(--gray-700); margin-bottom: 6px; }
.hm-rate-policies { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-badge { padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.hm-badge--ok   { background: rgba(16,185,129,.14); color: #047857; }
.hm-badge--warn { background: rgba(244,63,94,.12); color: #be123c; }
.hm-badge--info { background: rgba(var(--primary-rgb),.1); color: var(--primary-dark); }
.hm-rate-price { text-align: right; flex-shrink: 0; }
.hm-rate-total { font-size: 1.1rem; font-weight: 800; color: var(--primary); line-height: 1; }
.hm-rate-per   { font-size: .72rem; color: var(--gray-500); margin: 4px 0 8px; }
.hm-rate-book {
  display: inline-block;
  background: var(--gray-900); color: #fff;
  text-decoration: none; padding: 6px 14px; border-radius: 8px;
  font-size: .78rem; font-weight: 700;
  transition: background .15s;
}
.hm-rate-book:hover { background: var(--primary); }

.hm-fine-print {
  padding: 12px 24px 4px;
  font-size: .72rem; color: var(--gray-400); text-align: center;
  border-top: 1px solid var(--gray-100);
}

/* Small-screen tuning */
@media (max-width: 640px) {
  .hotel-modal { padding: 0; }
  .hotel-modal-panel { border-radius: 0; max-height: 100vh; }
  .hm-hero { border-radius: 0; }
  .hm-header { flex-direction: column; padding: 16px 18px 8px; }
  .hm-review-block { align-self: stretch; }
  .hm-cta-row { margin: 4px 18px 8px; padding: 14px 16px; flex-wrap: wrap; }
  .hm-cta-book { width: 100%; justify-content: center; }
  .hm-section { padding: 14px 18px; }
  .hm-name { font-size: 1.35rem; }
  .hm-cta-price-num { font-size: 1.45rem; }
}

/* Enhanced map popup image with hover hint */
.mp-img-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--gray-100); overflow: hidden;
  border: none; padding: 0; cursor: zoom-in;
  display: block;
}
.mp-img-hint {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  color: #fff; padding: 20px 12px 8px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  text-align: center;
  opacity: 0; transition: opacity .15s;
}
.mp-img-wrap:hover .mp-img-hint { opacity: 1; }

/* ── AI Chat Widget ─────────────────────────────────────────────────────────── */
.ai-chat {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.ai-chat-toggle {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 130%);
  color: #fff;
  border: none; border-radius: 50px; padding: 14px 22px;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 28px rgba(var(--primary-rgb),.42), 0 2px 8px rgba(var(--accent-rgb),.2), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .18s, box-shadow .18s, filter .18s;
  letter-spacing: -0.01em;
}
.ai-chat-toggle:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 34px rgba(var(--primary-rgb),.5), 0 4px 14px rgba(var(--accent-rgb),.3); filter: brightness(1.08); }
.ai-chat-icon { font-size: 1.1rem; }
.ai-chat-panel {
  width: 360px; max-width: calc(100vw - 48px);
  background: #fff; border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
  overflow: hidden; display: flex; flex-direction: column;
}
.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--primary); color: #fff;
  font-weight: 700; font-size: .95rem;
}
.ai-chat-close {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 4px;
  opacity: .8; transition: opacity .15s;
}
.ai-chat-close:hover { opacity: 1; }
.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; min-height: 120px;
}
.ai-msg {
  padding: 10px 14px; border-radius: 12px;
  font-size: .875rem; line-height: 1.5; max-width: 88%;
}
.ai-msg--assistant {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  align-self: flex-start; border-radius: 4px 12px 12px 12px;
}
.ai-msg--user {
  background: var(--primary); color: #fff;
  align-self: flex-end; border-radius: 12px 4px 12px 12px;
}
.ai-chat-input-row {
  display: flex; gap: 0; border-top: 1px solid var(--gray-200); padding: 10px 12px; gap: 8px;
}
.ai-chat-input {
  flex: 1; border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 8px 12px; font-size: .875rem; outline: none;
  transition: border-color .15s;
}
.ai-chat-input:focus { border-color: var(--primary); }
.ai-chat-send {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 1rem; cursor: pointer; font-weight: 700;
  transition: background .15s;
}
.ai-chat-send:hover { background: var(--primary-dark); }
@media (max-width: 480px) {
  .ai-chat { bottom: 16px; right: 16px; }
  .ai-chat-label { display: none; }
  .ai-chat-panel { width: calc(100vw - 32px); }
}

/* ── Dark Mode Toggle ────────────────────────────────────────────────────── */
.dark-mode-toggle {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.dark-mode-toggle:hover { color: var(--primary); background: var(--primary-light); }
.dark-mode-toggle .icon-moon { display: none; }
.dark-mode-toggle .icon-sun  { display: block; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: block; }
[data-theme="dark"] .dark-mode-toggle .icon-sun  { display: none; }

/* ── Dark Mode Theme ─────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --gray-50:  #0E0F1A;
  --gray-100: #181926;
  --gray-200: #252738;
  --gray-300: #363852;
  --gray-400: #8B8FA3;
  --gray-500: #A8ABB8;
  --gray-600: #C7CAD8;
  --gray-700: #E4E6F0;
  --gray-900: #F3F4FA;
  --border:   #252738;
  --primary-light: rgba(139,92,246,.12);
  --primary-glow:  rgba(139,92,246,.25);
  --accent-light:  rgba(6,182,212,.12);
  --success-bg: rgba(16,185,129,.1);
  --danger-bg:  rgba(244,63,94,.1);
  --warning-bg: rgba(245,158,11,.1);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.4), 0 2px 4px -2px rgba(0,0,0,.3);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.4), 0 8px 10px -6px rgba(0,0,0,.3);
}
[data-theme="dark"] body {
  background: #0E0F1A;
  color: #F3F4FA;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(139,92,246,.55) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 92% 110%, rgba(6,182,212,.40) 0%, transparent 55%),
    linear-gradient(160deg, #07112b 0%, #0f2150 45%, #091e3a 100%);
}
[data-theme="dark"] .nav {
  background: rgba(14,15,26,.92);
  border-bottom-color: #252738;
}
[data-theme="dark"] .nav-brand { color: #F3F4FA; }
[data-theme="dark"] .dark-mode-toggle { color: #A8ABB8; }
[data-theme="dark"] .dark-mode-toggle:hover { color: var(--accent); background: var(--accent-light); }
[data-theme="dark"] .search-card {
  background: #181926;
  border-color: #252738;
}
/* .ai-plan-card intentionally keeps its light-tint glass background in dark
   mode — it sits over the hero image and should stay translucent. */
[data-theme="dark"] .search-field input,
[data-theme="dark"] .search-field select {
  background: #0E0F1A;
  border-color: #363852;
  color: #F3F4FA;
}
[data-theme="dark"] .search-field input::placeholder {
  color: #8B8FA3;
}
[data-theme="dark"] .hotel-card {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .ai-pick-card {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .feature-card {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .site-footer {
  background: #0A0B14;
  border-top-color: #252738;
}
[data-theme="dark"] .quality-chip {
  background: #181926;
  border-color: #363852;
  color: #A8ABB8;
}
[data-theme="dark"] .quality-chip.is-active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #F3F4FA;
}
[data-theme="dark"] .dest-pill {
  background: #181926;
  border-color: #363852;
  color: #A8ABB8;
}
[data-theme="dark"] .dest-pill:hover {
  border-color: var(--primary);
  color: #F3F4FA;
}
[data-theme="dark"] .ai-plan-example {
  background: #181926;
  border-color: #363852;
  color: #A8ABB8;
}
[data-theme="dark"] .ai-plan-status {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .ai-clarify-opt {
  background: #0E0F1A;
  border-color: #363852;
  color: #A8ABB8;
}
[data-theme="dark"] .ai-clarify-opt.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
[data-theme="dark"] .autocomplete-list {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .autocomplete-list li:hover,
[data-theme="dark"] .autocomplete-list li.is-active {
  background: #252738;
}
[data-theme="dark"] .modal-overlay .modal-content {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .alert-warning {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.3);
  color: #F59E0B;
}
[data-theme="dark"] .badge-blue {
  background: rgba(6,182,212,.15);
  color: var(--accent);
}
[data-theme="dark"] .btn-outline {
  border-color: #363852;
  color: #A8ABB8;
}
[data-theme="dark"] .btn-outline:hover {
  background: #252738;
  color: #F3F4FA;
}
[data-theme="dark"] .btn-ghost {
  color: #A8ABB8;
}
[data-theme="dark"] .btn-ghost:hover {
  background: #252738;
  color: #F3F4FA;
}
[data-theme="dark"] .ai-picks-header {
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.2);
}
[data-theme="dark"] .pick-map-btn {
  color: #A8ABB8;
}
[data-theme="dark"] .pick-map-panel {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .ai-chat-panel {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .ai-msg--assistant {
  background: #0E0F1A;
  border-color: #252738;
  color: #F3F4FA;
}
[data-theme="dark"] .ai-chat-input {
  background: #0E0F1A;
  border-color: #363852;
  color: #F3F4FA;
}
[data-theme="dark"] .skeleton {
  background: #252738;
}

/* ─────────────────────────────────────────────────────────────────────────
   Trip planner — tabbed section rendered below hotel results.
   Populated by public/js/trip-planner.js.
   ───────────────────────────────────────────────────────────────────────── */

.trip-planner {
  max-width: 1160px;
  margin: 32px auto 48px;
  padding: 0 24px;
}
.trip-planner[hidden] { display: none; }

.trip-planner-inner {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

.trip-planner-header {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 16px;
}
.trip-planner-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.trip-planner-sub {
  font-size: 14px;
  color: var(--muted, #6b7280);
}

/* Happening-during-your-stay hero strip */
.trip-highlights {
  background: linear-gradient(135deg, #fde68a 0%, #fca5a5 100%);
  color: #1f2937;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.trip-highlights-title { font-weight: 700; margin-bottom: 8px; }
.trip-highlights-list {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
}
.trip-highlight-card {
  min-width: 200px; background: rgba(255,255,255,0.9);
  border-radius: 8px; padding: 10px 12px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 4px;
}
.trip-highlight-card:hover { background: #fff; }
.trip-highlight-name { font-weight: 600; font-size: 14px; }
.trip-highlight-meta { font-size: 12px; color: #4b5563; }

/* Follow-up prompt chips */
.trip-followups {
  background: #f5f6fa; border-radius: 10px; padding: 12px 14px;
  margin-bottom: 16px;
}
.trip-followups-title {
  font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 8px;
}
.trip-followups-list { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-followup-chip {
  background: #fff; border: 1px solid #d1d5db; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.trip-followup-chip:hover { border-color: #6366f1; color: #4338ca; }

/* Tabs */
.trip-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb; margin-bottom: 16px;
}
.trip-tab {
  border: none; background: transparent;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: #4b5563; cursor: pointer; border-radius: 8px 8px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.trip-tab:hover { color: #111827; background: #f9fafb; }
.trip-tab.is-active { color: #4338ca; border-bottom: 2px solid #6366f1; }
.trip-tab.is-empty { opacity: 0.5; }
.trip-tab-count {
  background: #e5e7eb; color: #374151;
  border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700;
}
.trip-tab.is-active .trip-tab-count { background: #6366f1; color: #fff; }

/* Panels */
.trip-panel[hidden] { display: none; }
.trip-list { display: flex; flex-direction: column; gap: 12px; }
.trip-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.trip-card {
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  background: #fff;
}
.trip-card-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.trip-card-title { font-weight: 600; font-size: 15px; }
.trip-card-price { font-weight: 700; color: #059669; white-space: nowrap; }
.trip-card-sub   { color: #6b7280; font-size: 13px; }
.trip-card-cta   {
  align-self: flex-start; margin-top: 4px;
  color: #4338ca; font-weight: 600; text-decoration: none; font-size: 14px;
}
.trip-card-cta:hover { text-decoration: underline; }

.trip-tile {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
  background: #fff; transition: transform 0.15s, box-shadow 0.15s;
}
.trip-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.trip-tile.is-disabled { pointer-events: none; opacity: 0.85; }
.trip-tile-img {
  height: 130px; background-size: cover; background-position: center;
  background-color: #f3f4f6;
}
.trip-tile-img.is-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #9ca3af;
}
.trip-tile-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.trip-tile-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.trip-tile-meta  { font-size: 12px; color: #4b5563; }
.trip-tile-sub   { font-size: 12px; color: #6b7280; }

.trip-empty {
  padding: 32px 16px; text-align: center; color: #6b7280; font-size: 14px;
  border: 1px dashed #e5e7eb; border-radius: 10px; background: #f9fafb;
}

/* Dark theme */
[data-theme="dark"] .trip-planner-inner { background: #1a1c2b; }
[data-theme="dark"] .trip-planner-title { color: #f3f4fa; }
[data-theme="dark"] .trip-planner-sub,
[data-theme="dark"] .trip-card-sub,
[data-theme="dark"] .trip-tile-meta,
[data-theme="dark"] .trip-tile-sub { color: #a1a5c3; }
[data-theme="dark"] .trip-tabs { border-bottom-color: #363852; }
[data-theme="dark"] .trip-tab { color: #a1a5c3; }
[data-theme="dark"] .trip-tab:hover { background: #252738; color: #f3f4fa; }
[data-theme="dark"] .trip-tab.is-active { color: #a5b4fc; border-bottom-color: #6366f1; }
[data-theme="dark"] .trip-card,
[data-theme="dark"] .trip-tile { background: #252738; border-color: #363852; }
[data-theme="dark"] .trip-card-title,
[data-theme="dark"] .trip-tile-title { color: #f3f4fa; }
[data-theme="dark"] .trip-empty { background: #1a1c2b; border-color: #363852; color: #a1a5c3; }
[data-theme="dark"] .trip-followups { background: #252738; }
[data-theme="dark"] .trip-followup-chip { background: #1a1c2b; border-color: #363852; color: #f3f4fa; }

/* ═══════════════════════════════════════════════════════════════════════════
   Premium Trip Planner — Vertical components
   All new classes live here; they complement (not replace) the base trip
   section rules above. The existing .trip-card / .trip-tile classes remain
   in use for highlights, follow-ups, and tab chrome.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared: filter chip pills ──────────────────────────────────────────────── */
.trip-chip {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.trip-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.trip-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Shared: star rating ─────────────────────────────────────────────────────── */
.trip-stars {
  color: var(--warning);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ── Skeleton loading ────────────────────────────────────────────────────────── */
@keyframes trip-pulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1;  }
}
.trip-skeleton,
.trip-skeleton-card {
  border-radius: var(--radius);
  background: var(--gray-100);
  animation: trip-pulse 1.6s ease-in-out infinite;
}
.trip-skeleton-card { height: 120px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FLIGHTS
   ═══════════════════════════════════════════════════════════════════════════ */

.fl-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.fl-filter-bar::-webkit-scrollbar { display: none; }

.fl-sort-btn {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.fl-sort-btn:hover { border-color: var(--primary); color: var(--primary); }

.fl-list { display: flex; flex-direction: column; gap: 12px; }

.fl-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
}
.fl-card:hover { box-shadow: var(--shadow-md); }

/* ── Structured flight card (Amadeus / real API) ── */
.fl-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fl-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  flex-shrink: 0;
}
.fl-airline-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.fl-airline-detail {
  display: flex; flex-direction: column; gap: 4px;
}
.fl-card-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.fl-leg {
  display: flex; flex-direction: column; gap: 2px;
}
.fl-leg-label {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.fl-leg-route {
  display: flex; align-items: center; gap: 10px;
}
.fl-leg-time {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 48px;
}
.fl-leg-time--end { align-items: flex-end; }
.fl-time {
  font-size: 18px; font-weight: 700; color: var(--gray-900); line-height: 1;
}
.fl-iata {
  font-size: 12px; font-weight: 600; color: var(--gray-400); letter-spacing: 0.5px;
}
.fl-leg-line {
  flex: 1; display: flex; align-items: center; gap: 4px; min-width: 60px;
}
.fl-line {
  flex: 1; height: 2px; background: var(--gray-200); border-radius: 1px;
}
.fl-dur {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  white-space: nowrap; padding: 2px 8px;
  background: var(--gray-50); border-radius: 999px; border: 1px solid var(--border);
}
.fl-card-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  min-width: 100px; flex-shrink: 0;
}
.fl-price-big {
  font-size: 22px; font-weight: 800; color: var(--gray-900); line-height: 1;
}
.fl-price-note {
  font-size: 11px; color: var(--gray-400); font-weight: 500;
}
.fl-stops-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.fl-stops-badge--direct {
  background: rgba(16,185,129,.12); color: #059669;
}
.fl-stops-badge--stops {
  background: rgba(245,158,11,.12); color: #d97706;
}

@media (max-width: 768px) {
  .fl-card-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .fl-card-left { min-width: 0; }
  .fl-card-right { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
  .fl-price-big { font-size: 18px; }
}

.fl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fl-airline-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fl-airline-name { font-weight: 600; font-size: 15px; color: var(--gray-900); }

.fl-web-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.fl-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.fl-badge--stops { background: var(--success-bg); color: var(--success); }
.fl-price-badge  { font-weight: 700; font-size: 18px; color: var(--success); white-space: nowrap; }

.fl-route {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fl-airport-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 52px;
}
.fl-airport-block--right { align-items: flex-end; }
.fl-airport    { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--gray-900); }
.fl-times-row  { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.fl-route-mid  { flex: 1; display: flex; align-items: center; gap: 5px; min-width: 60px; }
.fl-route-line { flex: 1; height: 1px; background: var(--gray-300); }
.fl-route-dur  { font-size: 11px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }

.fl-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
}
.fl-snippet { color: var(--gray-500); line-height: 1.5; }
.fl-caveat  { color: var(--warning); font-size: 12px; font-weight: 500; }

.fl-cta {
  align-self: flex-start;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.fl-cta:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════════════════════
   CARS
   ═══════════════════════════════════════════════════════════════════════════ */

.car-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.car-filter-bar::-webkit-scrollbar { display: none; }

.car-list { display: flex; flex-direction: column; gap: 12px; }

.car-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
}
.car-card:hover { box-shadow: var(--shadow-md); }

.car-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.car-vendor-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.car-vendor { font-weight: 600; font-size: 15px; color: var(--gray-900); }
.car-badge  {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.car-price     { font-size: 18px; font-weight: 700; color: var(--success); white-space: nowrap; }
.car-price-sub { font-size: 12px; font-weight: 400; color: var(--gray-400); }

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
}
.car-specs span {
  background: var(--gray-50);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.car-route-row  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.car-route-item { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 140px; }
.car-route-label  { font-weight: 600; color: var(--gray-700); font-size: 12px; }
.car-route-detail { color: var(--gray-500); font-size: 13px; }
.car-route-arrow  { color: var(--gray-300); font-size: 18px; flex-shrink: 0; }

.car-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin: 0; }

.car-cta {
  align-self: flex-start;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.car-cta:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESTAURANTS
   ═══════════════════════════════════════════════════════════════════════════ */

.rest-sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  font-size: 13px;
  color: var(--gray-500);
}
.rest-sort-label { font-weight: 600; }
.rest-sort-sel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 13px;
  background: var(--card-bg, #fff);
  color: var(--gray-700);
  cursor: pointer;
}
.rest-sort-sel:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

.rest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .rest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rest-grid { grid-template-columns: 1fr; } }

.rest-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.rest-img {
  height: 160px;
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.rest-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rest-img--placeholder { font-size: 40px; color: var(--gray-300); background: var(--gray-50); }

.rest-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.rest-name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--gray-900); }

.rest-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rest-tag  { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.rest-tag--cuisine { background: var(--accent-light); color: var(--accent-dark); }
.rest-tag--price   { background: var(--success-bg);  color: var(--success); letter-spacing: 1px; }

.rest-rating       { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.rest-rating-num   { font-weight: 700; color: var(--gray-700); }
.rest-review-count { color: var(--gray-400); font-size: 12px; }

.rest-address {
  font-size: 12px; color: var(--gray-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rest-desc {
  font-size: 12px; color: var(--gray-500); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.rest-footer { margin-top: auto; padding-top: 8px; }
.rest-reserve-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rest-reserve-btn:hover { background: var(--primary); color: #fff; }
.rest-reserve-btn--available {
  background: var(--success); border-color: var(--success); color: #fff;
}
.rest-reserve-btn--available:hover { background: #059669; border-color: #059669; }
.rest-reserve-btn--disabled {
  border-color: var(--gray-200); color: var(--gray-300);
  cursor: default; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACTIVITIES
   ═══════════════════════════════════════════════════════════════════════════ */

.act-section       { margin-bottom: 24px; }
.act-section-title { font-weight: 700; font-size: 17px; margin-bottom: 12px; color: var(--gray-900); }

.act-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.act-filter-bar::-webkit-scrollbar { display: none; }

.act-featured-grid,
.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .act-featured-grid, .act-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .act-featured-grid, .act-grid { grid-template-columns: 1fr; }
}

.act-card,
.act-featured-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.act-card:hover         { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.act-featured-card      { box-shadow: var(--shadow-sm); }
.act-featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.act-img {
  height: 140px;
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.act-featured-card .act-img { height: 180px; }
.act-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-img--placeholder { font-size: 40px; color: var(--gray-300); background: var(--gray-50); }

.act-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.act-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.act-badge--green   { background: #dcfce7; color: #166534; }
.act-badge--purple  { background: #ede9fe; color: #5b21b6; }
.act-badge--pink    { background: #fce7f3; color: #831843; }
.act-badge--blue    { background: #dbeafe; color: #1e40af; }
.act-badge--red     { background: #fee2e2; color: #7f1d1d; }
.act-badge--orange  { background: #ffedd5; color: #7c2d12; }
.act-badge--teal    { background: #ccfbf1; color: #115e59; }
.act-badge--default { background: var(--primary-light); color: var(--primary-dark); }

.act-name  { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--gray-900); }
.act-meta  { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gray-400); }
.act-price { font-weight: 600; color: var(--success); }

.act-cta {
  display: inline-block;
  padding: 7px 16px;
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s;
}
.act-cta:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════════════════════
   EVENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.ev-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) { .ev-list { grid-template-columns: 1fr; } }

.ev-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ev-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ev-featured   { grid-column: 1 / -1; }

.ev-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ev-featured .ev-img-wrap { min-height: 280px; }
@media (max-width: 600px) {
  .ev-img-wrap               { min-height: 200px; }
  .ev-featured .ev-img-wrap  { min-height: 240px; }
}

/* Floating date badge — top-left */
.ev-date-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 50px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ev-date-day { display: block; font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--gray-500); }
.ev-date-num { display: block; font-size: 22px; font-weight: 800; line-height: 1; color: var(--gray-900); }
.ev-date-mon { display: block; font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--gray-500); }

/* Range date badge for multi-day events */
.ev-date-badge--range {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  min-width: auto;
}
.ev-date-badge--range .ev-date-day {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--gray-700);
}
.ev-date-range-sep {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
  line-height: 1;
}

/* Category badge — top-right */
.ev-cat-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.ev-cat-badge--green   { background: rgba(16,185,129,.85); color: #fff; }
.ev-cat-badge--purple  { background: rgba(124,58,237,.85); color: #fff; }
.ev-cat-badge--pink    { background: rgba(236,72,153,.85); color: #fff; }
.ev-cat-badge--blue    { background: rgba(59,130,246,.85); color: #fff; }
.ev-cat-badge--red     { background: rgba(239,68,68,.85);  color: #fff; }
.ev-cat-badge--orange  { background: rgba(245,158,11,.85); color: #fff; }
.ev-cat-badge--teal    { background: rgba(20,184,166,.85); color: #fff; }
.ev-cat-badge--default { background: rgba(99,102,241,.85); color: #fff; }

/* Dark gradient overlay across bottom half */
.ev-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.ev-bottom {
  position: relative;
  z-index: 2;
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-name    { font-size: 18px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ev-featured .ev-name { font-size: 22px; }
.ev-venue   { font-size: 13px; color: rgba(255,255,255,.8); }

.ev-price-cta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.ev-price {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ev-cta {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-weight: 600; font-size: 13px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.ev-cta:hover { background: #059669; }

/* ─── Events: clean list-style cards (no image fallback) ──────────────── */
.ev-card--list {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.ev-card--list:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ev-featured--list { grid-column: 1 / -1; }
.ev-card--list .ev-date-badge {
  position: static;
  flex-shrink: 0;
  box-shadow: none;
  border: 1px solid var(--border);
}
.ev-card--list .ev-date-badge--range {
  position: static;
  flex-shrink: 0;
  box-shadow: none;
  border: 1px solid var(--border);
  flex-direction: column;
  gap: 0;
  padding: 8px 10px;
  text-align: center;
  min-width: 54px;
}
.ev-card--list .ev-date-badge--range .ev-date-day { font-size: 10px; }
.ev-card--list .ev-date-badge--range .ev-date-range-sep { font-size: 10px; }
.ev-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ev-list-top { display: flex; flex-direction: column; gap: 4px; }
.ev-name--dark { color: var(--gray-900); font-size: 16px; font-weight: 700; line-height: 1.3; }
.ev-featured--list .ev-name--dark { font-size: 18px; }
.ev-venue--dark { color: var(--gray-500); font-size: 13px; }
.ev-snippet { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-cat-pill {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 2px;
}
.ev-cat-pill--green   { background: rgba(16,185,129,.12); color: #059669; }
.ev-cat-pill--purple  { background: rgba(124,58,237,.12); color: #7c3aed; }
.ev-cat-pill--pink    { background: rgba(236,72,153,.12); color: #db2777; }
.ev-cat-pill--blue    { background: rgba(59,130,246,.12); color: #2563eb; }
.ev-cat-pill--red     { background: rgba(239,68,68,.12);  color: #dc2626; }
.ev-cat-pill--orange  { background: rgba(245,158,11,.12); color: #d97706; }
.ev-cat-pill--teal    { background: rgba(20,184,166,.12); color: #0d9488; }
.ev-cat-pill--default { background: rgba(99,102,241,.12); color: #4f46e5; }
.ev-price-cta--dark { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ev-price--dark {
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--gray-700);
  font-size: 13px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ─── Flights: compare link cards ─────────────────────────────────────── */
.fl-compare-section, .fl-deals-section { margin-bottom: 20px; }
.fl-section-title {
  font-size: 15px; font-weight: 700; color: var(--gray-700);
  margin-bottom: 12px;
}
.fl-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.fl-compare-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.fl-compare-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.fl-compare-icon { font-size: 24px; flex-shrink: 0; }
.fl-compare-body { flex: 1; min-width: 0; }
.fl-compare-name { font-weight: 700; font-size: 14px; color: var(--gray-900); }
.fl-compare-desc { font-size: 12px; color: var(--gray-400); line-height: 1.4; margin-top: 2px; }
.fl-compare-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.fl-compare-btn:hover { background: var(--primary-dark); }

/* ─── Flights: web result card with price ─────────────────────────────── */
.fl-web-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.fl-web-left { flex: 1; min-width: 0; }
.fl-web-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; flex-shrink: 0; min-width: 100px;
}
.fl-web-source {
  font-size: 12px; color: var(--gray-400); font-weight: 500;
  margin-bottom: 2px;
}
.fl-web-title {
  font-size: 15px; font-weight: 600; color: var(--gray-900);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fl-web-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.fl-web-route {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #7c3aed);
  letter-spacing: 0.5px;
}
.fl-price-found {
  font-size: 20px; font-weight: 800; color: var(--success); line-height: 1;
}

@media (max-width: 600px) {
  .fl-compare-grid { grid-template-columns: 1fr; }
  .fl-web-inner { flex-direction: column; gap: 10px; }
  .fl-web-right { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-width: 0; }
}

/* ─── Flights: web result card variant ────────────────────────────────── */
.fl-card--web .fl-airline-name {
  font-size: 15px;
  line-height: 1.35;
}
.fl-web-icon { font-size: 20px; flex-shrink: 0; }
.fl-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fl-source { font-size: 12px; color: var(--gray-400); }
.fl-route-hint { font-size: 12px; color: var(--gray-400); font-weight: 600; }

/* ─── Cars: web result card variant ───────────────────────────────────── */
.car-card--web .car-vendor {
  font-size: 15px;
  line-height: 1.35;
}
.car-card-main {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.car-card-content {
  flex: 1;
  min-width: 0;
}
.car-card-illustration {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.08);
}
.car-illust-emoji {
  font-size: 36px;
  line-height: 1;
}
.car-cat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary, #7c3aed);
  white-space: nowrap;
}
.car-price-inline {
  font-size: 14px;
  font-weight: 700;
  color: var(--success, #10b981);
}
.car-icon { font-size: 20px; flex-shrink: 0; }
.car-meta-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.car-source { font-size: 12px; color: var(--gray-400); }

/* ─────────────────────────────────────────────────────────────────────────
   Dark mode — all new premium vertical components
   ───────────────────────────────────────────────────────────────────────── */

[data-theme="dark"] .trip-chip {
  background: #252738;
  border-color: #363852;
  color: #a1a5c3;
}
[data-theme="dark"] .trip-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139,92,246,.12);
}
[data-theme="dark"] .trip-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

[data-theme="dark"] .fl-sort-btn {
  background: #252738;
  border-color: #363852;
  color: #a1a5c3;
}
[data-theme="dark"] .fl-sort-btn:hover { border-color: var(--primary); color: var(--primary); }

[data-theme="dark"] .fl-card,
[data-theme="dark"] .car-card,
[data-theme="dark"] .rest-card,
[data-theme="dark"] .act-card,
[data-theme="dark"] .act-featured-card,
[data-theme="dark"] .ev-card--list,
[data-theme="dark"] .fl-compare-card {
  background: #252738;
  border-color: #363852;
}

[data-theme="dark"] .fl-compare-name,
[data-theme="dark"] .fl-web-title,

[data-theme="dark"] .fl-compare-name,
[data-theme="dark"] .fl-web-title,
[data-theme="dark"] .ev-name--dark { color: #f3f4fa; }
[data-theme="dark"] .fl-compare-desc,
[data-theme="dark"] .fl-web-source,
[data-theme="dark"] .ev-venue--dark,
[data-theme="dark"] .ev-snippet,
[data-theme="dark"] .fl-desc,
[data-theme="dark"] .car-desc { color: #a1a5c3; }
[data-theme="dark"] .ev-price--dark { background: #1e1b4b; border-color: #363852; color: #c4b5fd; }
[data-theme="dark"] .ev-card--list .ev-date-badge { background: #252738; border-color: #363852; }
[data-theme="dark"] .ev-date-num { color: #f3f4fa; }

[data-theme="dark"] .fl-airline-name,
[data-theme="dark"] .fl-airport,
[data-theme="dark"] .fl-time,
[data-theme="dark"] .fl-price-big,
[data-theme="dark"] .fl-section-title,
[data-theme="dark"] .car-vendor,
[data-theme="dark"] .rest-name,
[data-theme="dark"] .act-name,
[data-theme="dark"] .act-section-title { color: #f3f4fa; }

[data-theme="dark"] .fl-airline-logo { background: rgba(139,92,246,.2); color: #c4b5fd; }
[data-theme="dark"] .fl-dur { background: #1e1b4b; border-color: #363852; color: #a1a5c3; }
[data-theme="dark"] .fl-line { background: #363852; }
[data-theme="dark"] .fl-iata,
[data-theme="dark"] .fl-leg-label,
[data-theme="dark"] .fl-price-note { color: #7a7ea0; }

[data-theme="dark"] .fl-meta-row,
[data-theme="dark"] .fl-times-row,
[data-theme="dark"] .fl-route-dur,
[data-theme="dark"] .car-specs,
[data-theme="dark"] .car-route-detail,
[data-theme="dark"] .car-desc,
[data-theme="dark"] .rest-address,
[data-theme="dark"] .rest-review-count,
[data-theme="dark"] .rest-desc,
[data-theme="dark"] .act-meta { color: #a1a5c3; }

[data-theme="dark"] .fl-route-line { background: #363852; }

[data-theme="dark"] .car-specs span {
  background: #1a1c2b;
  border-color: #363852;
  color: #a1a5c3;
}
[data-theme="dark"] .car-route-label { color: #f3f4fa; }
[data-theme="dark"] .car-card-illustration { background: rgba(139, 92, 246, 0.12); }
[data-theme="dark"] .car-cat-badge { background: rgba(139, 92, 246, 0.18); color: #a78bfa; }
[data-theme="dark"] .car-price-inline { color: #34d399; }

[data-theme="dark"] .rest-sort-bar  { color: #a1a5c3; }
[data-theme="dark"] .rest-sort-sel  { background: #252738; border-color: #363852; color: #f3f4fa; }
[data-theme="dark"] .rest-img--placeholder { background: #1a1c2b; }
[data-theme="dark"] .rest-rating-num { color: #f3f4fa; }
[data-theme="dark"] .rest-reserve-btn {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
[data-theme="dark"] .rest-reserve-btn:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .rest-reserve-btn--disabled { border-color: #363852; color: #a1a5c3; }
[data-theme="dark"] .act-img--placeholder { background: #1a1c2b; }

[data-theme="dark"] .trip-skeleton,
[data-theme="dark"] .trip-skeleton-card { background: #252738; }

[data-theme="dark"] .ev-date-badge { background: rgba(37,39,56,.95); }
[data-theme="dark"] .ev-date-day,
[data-theme="dark"] .ev-date-mon   { color: #a1a5c3; }
[data-theme="dark"] .ev-date-num   { color: #f3f4fa; }
[data-theme="dark"] .ev-date-badge--range .ev-date-day { color: #c4c7e0; }
[data-theme="dark"] .ev-date-range-sep { color: #6b6f8e; }
[data-theme="dark"] .ev-date-badge--trip .ev-date-day,
[data-theme="dark"] .ev-date-badge--trip .ev-date-num { color: #a1a5c3; }

/* ── Hotel detail modal dark mode ─────────────────────────────────────────── */
[data-theme="dark"] .hotel-modal-panel {
  background: #181926;
  border-color: #252738;
}
[data-theme="dark"] .hotel-modal-close {
  background: rgba(24,25,38,.9);
  border-color: #363852;
  color: #A8ABB8;
}
[data-theme="dark"] .hotel-modal-close:hover {
  background: #252738;
  color: #F3F4FA;
}
[data-theme="dark"] .hm-thumbs {
  border-color: #252738;
}
[data-theme="dark"] .hm-thumb {
  background: #252738;
}
[data-theme="dark"] .hm-name {
  color: #F3F4FA;
}
[data-theme="dark"] .hm-address {
  color: #A8ABB8;
}
[data-theme="dark"] .hm-review-block {
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.2);
}
[data-theme="dark"] .hm-review-label {
  color: #F3F4FA;
}
[data-theme="dark"] .hm-review-src {
  color: #A8ABB8;
}
[data-theme="dark"] .hm-cta-row {
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.15);
}
[data-theme="dark"] .hm-cta-price-sub {
  color: #A8ABB8;
}
[data-theme="dark"] .hm-section {
  border-color: #252738;
}
[data-theme="dark"] .hm-section-title {
  color: #F3F4FA;
}
[data-theme="dark"] .hm-description {
  color: #A8ABB8;
}
[data-theme="dark"] .hm-facilities li {
  background: #0E0F1A;
  border-color: #363852;
  color: #A8ABB8;
}
[data-theme="dark"] .hm-rate {
  background: #0E0F1A;
  border-color: #363852;
}
[data-theme="dark"] .hm-rate:hover {
  border-color: var(--primary);
}
[data-theme="dark"] .hm-rate.is-cheapest {
  background: rgba(16,185,129,.06);
  border-color: rgba(16,185,129,.3);
}
[data-theme="dark"] .hm-rate-provider {
  color: #F3F4FA;
}
[data-theme="dark"] .hm-rate-room {
  color: #A8ABB8;
}
[data-theme="dark"] .hm-rate-per {
  color: #A8ABB8;
}
[data-theme="dark"] .hm-rate-book {
  background: #363852;
}
[data-theme="dark"] .hm-rate-book:hover {
  background: var(--primary);
}
[data-theme="dark"] .hm-fine-print {
  color: #6B7280;
  border-color: #252738;
}
[data-theme="dark"] .hm-hero {
  background: #252738;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Concierge Itinerary — .ci-* component styles
   Used when AI plan returns 2+ stops (renderConciergeItinerary)
══════════════════════════════════════════════════════════════════════════════ */

/* ── Outer wrap ──────────────────────────────────────────────────────────── */
.ci-wrap {
  padding: 4px 0 2px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.ci-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.ci-header-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.ci-header-text { flex: 1; }
.ci-header-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}
.ci-header-sub {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 3px;
  line-height: 1.5;
}

/* ── Budget bar ──────────────────────────────────────────────────────────── */
.ci-budget-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: rgba(var(--accent-rgb, 6,182,212), .07);
  border: 1px solid rgba(var(--accent-rgb, 6,182,212), .18);
  border-radius: var(--radius-sm);
}
.ci-budget-item {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb, 6,182,212), .12);
  border-radius: 999px;
  padding: 3px 10px;
}
.ci-budget-total {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-left: auto;
}

/* ── Timeline container ──────────────────────────────────────────────────── */
.ci-timeline {
  position: relative;
  padding-left: 0;
}
.ci-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 24px;
  bottom: 24px;
  border-left: 2px solid var(--border);
  z-index: 0;
}

/* ── Transit card ────────────────────────────────────────────────────────── */
.ci-transit-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 6px 6px;
  padding: 7px 12px 7px 10px;
  background: var(--gray-50);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}
.ci-transit-placeholder {
  color: var(--gray-400);
  font-size: .78rem;
}
.ci-transit-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.ci-transit-details { flex: 1; }
.ci-transit-mode {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
}
.ci-transit-tip {
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── City card ───────────────────────────────────────────────────────────── */
.ci-city-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0;
  padding: 12px 14px 12px 10px;
  background: var(--card-bg, #fff);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  transition: border-color .18s, box-shadow .18s;
}
.ci-city-card.is-active {
  border-left-color: var(--primary);
  border-color: rgba(var(--primary-rgb), .28);
  box-shadow: 0 2px 10px rgba(var(--primary-rgb), .12);
  background: var(--primary-light);
}

/* ── City number badge ───────────────────────────────────────────────────── */
.ci-city-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background .18s, color .18s;
}
.ci-city-card.is-active .ci-city-num {
  background: var(--primary);
  color: #fff;
}

/* ── City card body ──────────────────────────────────────────────────────── */
.ci-city-body { flex: 1; min-width: 0; }

.ci-city-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ci-city-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--gray-900);
}
.ci-city-card.is-active .ci-city-name { color: var(--primary-dark); }
.ci-city-dates {
  font-size: .72rem;
  color: var(--gray-400);
  white-space: nowrap;
}

/* ── Highlights list ─────────────────────────────────────────────────────── */
.ci-highlights {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ci-highlights li {
  font-size: .78rem;
  color: var(--gray-600);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.ci-highlights li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-size: .9em;
}

/* ── Stay advice ─────────────────────────────────────────────────────────── */
.ci-stay-advice {
  font-size: .78rem;
  color: var(--gray-500);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ── City search CTA button ──────────────────────────────────────────────── */
.ci-city-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent-dark);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, color .14s, box-shadow .14s;
  margin-top: 2px;
}
.ci-city-search-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb, 6,182,212), .3);
}

/* ── Mobile: remove timeline rail, go full-width ─────────────────────────── */
@media (max-width: 600px) {
  .ci-timeline::before { display: none; }
  .ci-transit-card { margin-left: 0; }
  .ci-city-card { margin-left: 0; }
  .ci-budget-bar { flex-direction: column; align-items: flex-start; }
  .ci-budget-total { margin-left: 0; }
}

/* ── Dark mode ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .ci-wrap { color: #F3F4FA; }

[data-theme="dark"] .ci-header-title { color: #F3F4FA; }
[data-theme="dark"] .ci-header-sub   { color: #a1a5c3; }

[data-theme="dark"] .ci-budget-bar {
  background: rgba(6,182,212,.08);
  border-color: rgba(6,182,212,.2);
}
[data-theme="dark"] .ci-budget-item {
  background: rgba(6,182,212,.15);
  color: var(--accent);
}
[data-theme="dark"] .ci-budget-total { color: #a1a5c3; }

[data-theme="dark"] .ci-timeline::before { border-color: #363852; }

[data-theme="dark"] .ci-transit-card {
  background: #1a1c2b;
  border-color: #363852;
}
[data-theme="dark"] .ci-transit-mode { color: #F3F4FA; }
[data-theme="dark"] .ci-transit-tip  { color: #a1a5c3; }

[data-theme="dark"] .ci-city-card {
  background: #252738;
  border-color: #363852;
  border-left-color: #363852;
}
[data-theme="dark"] .ci-city-card.is-active {
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.3);
  border-left-color: var(--primary);
}
[data-theme="dark"] .ci-city-num {
  background: #363852;
  color: #a1a5c3;
}
[data-theme="dark"] .ci-city-card.is-active .ci-city-num {
  background: var(--primary);
  color: #fff;
}
[data-theme="dark"] .ci-city-name { color: #F3F4FA; }
[data-theme="dark"] .ci-city-card.is-active .ci-city-name { color: #c4b5fd; }
[data-theme="dark"] .ci-city-dates { color: #a1a5c3; }

[data-theme="dark"] .ci-highlights li        { color: #a1a5c3; }
[data-theme="dark"] .ci-highlights li::before { color: #c4b5fd; }

[data-theme="dark"] .ci-stay-advice { color: #a1a5c3; }

[data-theme="dark"] .ci-city-search-btn {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
[data-theme="dark"] .ci-city-search-btn:hover {
  background: var(--accent);
  color: #fff;
}
