/* ============================================================
   ROOST — premium hotel price meta-search
   Design tokens + components
   ============================================================ */

:root {
  /* Warm editorial palette */
  --paper:      #F5F1E8;
  --paper-2:    #EEE8DA;
  --card:       #FFFFFF;
  --ink:        #1B1813;
  --ink-2:      #3D372E;
  --ink-soft:   #6B6457;
  --ink-faint:  #97907F;
  --line:       #E4DCCB;
  --line-2:     #D8CFBB;

  --brand:      #C2552E;  /* burnt clay — brand + CTAs */
  --brand-deep: #A23F1D;
  --brand-soft: #F7E9E0;

  --best:       #157A52;  /* savings / best-price signal */
  --best-deep:  #0F5C3D;
  --best-soft:  #E6F1EA;

  --gold:       #B6841F;  /* ratings */
  --danger:     #B23A2E;

  --shadow-sm:  0 1px 2px rgba(27,24,19,0.05), 0 2px 8px rgba(27,24,19,0.04);
  --shadow-md:  0 4px 14px rgba(27,24,19,0.07), 0 12px 32px rgba(27,24,19,0.06);
  --shadow-lg:  0 18px 60px rgba(27,24,19,0.16);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --font-serif: "Newsreader", "Noto Serif Thai", Georgia, serif;
  --font-sans:  "IBM Plex Sans Thai", "IBM Plex Sans", -apple-system, sans-serif;

  --maxw: 1180px;
}

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

/* inline icons default to text-size unless a component overrides */
svg { width: 1em; height: 1em; flex: none; }
.listing-loc svg, .modal-loc svg, .modal-meta .mi svg, .ctable td svg { width: 14px; height: 14px; }
.feat svg { width: 15px; height: 15px; }
.modal-savings svg { width: 15px; height: 15px; vertical-align: -2px; }
.cslot.empty svg { width: 14px; height: 14px; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* language visibility helper */
[data-lang] .en { display: none; }
[data-lang] .th { display: none; }
[data-lang="en"] .en { display: revert; }
[data-lang="th"] .th { display: revert; }
/* inline variants keep inline */
[data-lang="en"] span.en, [data-lang="th"] span.th { display: inline; }

::selection { background: var(--brand); color: #fff; }

button { font-family: inherit; }
img { display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(245,241,232,0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 9px;
  cursor: pointer; user-select: none;
}
.brand-mark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-mark b { color: var(--brand); font-weight: 600; }
.brand-dot { color: var(--brand); }
.brand-sub {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  text-decoration: none; color: var(--ink-2);
  font-size: 14px; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color .18s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--brand); transition: right .22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

/* language toggle */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 3px; background: var(--card);
}
.lang-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; color: var(--ink-soft);
  transition: all .18s;
}
.lang-toggle button.active { background: var(--ink); color: var(--paper); }

.btn-ghost {
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink); padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s;
}
.btn-ghost:hover { border-color: var(--ink); }

.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 78px 28px 0;
  overflow: hidden;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 16em;
}
.hero h1 em {
  font-style: italic; color: var(--brand);
}
.hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft); margin-top: 22px; max-width: 34em;
}
.hero-logos {
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  margin-top: 26px;
}
.hero-logos .lbl { font-size: 12px; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.04em; }
.ota-chip {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.ota-chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* search box */
.search-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 10px;
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 4px;
  align-items: stretch;
}
.sf {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 16px; border-radius: var(--r-md);
  position: relative; transition: background .15s;
}
.sf + .sf::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 1px; background: var(--line);
}
.sf:hover { background: var(--paper); }
.sf:focus-within { background: var(--paper); }
.sf label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.sf input, .sf select {
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  width: 100%; padding: 2px 0;
}
.sf input::placeholder { color: var(--ink-faint); font-weight: 400; }
.sf select { cursor: pointer; margin-left: -2px; }

.btn-search {
  background: var(--brand); color: #fff; border: none;
  border-radius: var(--r-md);
  padding: 0 26px; font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 9px; justify-content: center;
  transition: background .18s, transform .12s;
  white-space: nowrap;
}
.btn-search:hover { background: var(--brand-deep); }
.btn-search:active { transform: scale(0.98); }
.btn-search svg { width: 18px; height: 18px; }

/* trust strip under hero */
.trust-strip {
  max-width: var(--maxw); margin: 26px auto 0;
  display: flex; gap: 40px; flex-wrap: wrap;
  padding: 0 0 8px;
}
.trust-item { display: flex; flex-direction: column; }
.trust-num {
  font-family: var(--font-serif); font-size: 30px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.trust-num small { color: var(--brand); }
.trust-lbl { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }

/* ============================================================
   SECTIONS (home)
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 62px 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.05;
}
.section-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: 10px;
}
.section-link { font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; white-space: nowrap; }

/* destinations */
.destinations {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.dest-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.dest-card.wide { grid-column: span 2; aspect-ratio: 8/5; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dest-card:hover img { transform: scale(1.06); }
.dest-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,15,10,0.72) 0%, rgba(20,15,10,0.12) 45%, transparent 70%);
}
.dest-meta {
  position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 2; color: #fff;
}
.dest-name { font-family: var(--font-serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.dest-count { font-size: 12.5px; opacity: 0.85; margin-top: 2px; }

/* how it works */
.how {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl); padding: 56px clamp(28px, 5vw, 64px);
  max-width: var(--maxw); margin: 0 auto;
}
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 34px; }
.how-step { position: relative; }
.how-num {
  font-family: var(--font-serif); font-size: 15px; font-weight: 500;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(245,241,232,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); margin-bottom: 16px;
}
.how-step h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; margin-bottom: 8px; letter-spacing: -0.01em; }
.how-step p { font-size: 14.5px; color: rgba(245,241,232,0.68); line-height: 1.55; }
.how .section-title { color: var(--paper); }
.how .section-kicker { color: #E8A87C; }

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.results-bar {
  background: var(--ink);
  padding: 18px 28px;
}
.results-bar-inner { max-width: var(--maxw); margin: 0 auto; }
.results-bar .search-card { margin-top: 0; }

.results-layout {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 28px 120px;
  display: grid; grid-template-columns: 264px 1fr; gap: 28px;
}

/* filter sidebar */
.filters { position: sticky; top: 88px; height: fit-content; }
.filter-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px;
}
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filter-head h3 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; }
.filter-clear { font-size: 12.5px; color: var(--brand); cursor: pointer; font-weight: 600; }
.fgroup { padding: 18px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: none; padding-top: 0; }
.fgroup-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 13px; }
.price-range { display: flex; align-items: center; gap: 9px; }
.price-range input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 9px 11px; font-size: 14px; font-family: inherit; color: var(--ink); outline: none;
  transition: border-color .15s; background: var(--paper);
}
.price-range input:focus { border-color: var(--brand); background: var(--card); }
.price-range span { color: var(--ink-faint); }
.fopt {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.fopt input { appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px;
  background: var(--card); cursor: pointer; position: relative; flex: none; transition: all .15s;
}
.fopt input:checked { background: var(--brand); border-color: var(--brand); }
.fopt input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.fopt:hover { color: var(--ink); }
.btn-apply {
  width: 100%; margin-top: 6px; background: var(--ink); color: var(--paper);
  border: none; border-radius: var(--r-sm); padding: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .18s;
}
.btn-apply:hover { background: #000; }

/* results header */
.results-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.results-count { font-size: 15px; color: var(--ink-soft); }
.results-count b { color: var(--ink); font-weight: 700; }
.results-count .where { color: var(--brand); font-weight: 700; }
.results-tools { display: flex; align-items: center; gap: 14px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 13px; color: var(--ink-soft); }
.sort-wrap select {
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card);
  padding: 8px 12px; font-size: 13.5px; font-family: inherit; color: var(--ink); cursor: pointer; outline: none;
}
.cmp-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 13px; background: var(--card);
  transition: all .16s;
}
.cmp-toggle.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.cmp-toggle svg { width: 15px; height: 15px; }

/* listings */
.listings { display: flex; flex-direction: column; gap: 16px; }
.listing {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  display: grid; grid-template-columns: 260px 1fr; overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .2s;
}
.listing:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft), var(--shadow-sm); }
.listing-img { position: relative; overflow: hidden; cursor: pointer; min-height: 210px; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.listing:hover .listing-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.badge.pop { background: rgba(27,24,19,0.82); color: var(--paper); }
.badge.deal { background: var(--brand); color: #fff; }
.cmp-check {
  position: absolute; top: 11px; right: 11px; z-index: 4;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,0.92); border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.cmp-check svg { width: 16px; height: 16px; }
.cmp-check:hover { background: #fff; }
.cmp-check.checked { background: var(--brand); border-color: var(--brand); color: #fff; }
.cmp-check.hidden { display: none; }

.listing-body { padding: 18px 20px; display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.listing-type { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-deep); }
.listing-name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; margin-top: 3px; }
.listing-loc { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.rating-pill {
  flex: none; text-align: center; background: var(--paper); border-radius: 10px; padding: 7px 11px; min-width: 58px;
}
.rating-pill .score { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1; }
.rating-pill .word { font-size: 10px; font-weight: 700; color: var(--best); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }
.rating-pill .cnt { font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }

.listing-feats { display: flex; gap: 14px; flex-wrap: wrap; margin: 13px 0; }
.feat { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.feat svg { width: 15px; height: 15px; color: var(--ink-faint); }

.listing-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.price-block { min-width: 0; }
.price-from { font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.price-from .ota-name { font-weight: 700; color: var(--ink-2); }
.price-main { font-family: var(--font-serif); font-size: 32px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-top: 3px; }
.price-main .per { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.price-compare { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.save-tag { background: var(--best-soft); color: var(--best-deep); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.strike { text-decoration: line-through; color: var(--ink-faint); }

.btn-view {
  flex: none; background: var(--brand); color: #fff; border: none; border-radius: var(--r-sm);
  padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: background .18s;
  white-space: nowrap;
}
.btn-view:hover { background: var(--brand-deep); }
.btn-view svg { width: 14px; height: 14px; }

/* ============================================================
   COMPARE BAR
   ============================================================ */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 14px 28px;
  transform: translateY(120%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.22);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.cb-label { font-size: 13px; color: rgba(245,241,232,0.65); white-space: nowrap; font-weight: 600; }
.cb-label b { color: var(--paper); }
.compare-slots { display: flex; gap: 10px; flex: 1; overflow-x: auto; }
.cslot {
  background: rgba(245,241,232,0.08); border: 1px solid rgba(245,241,232,0.16);
  border-radius: 10px; padding: 8px 12px; font-size: 13px; display: flex; align-items: center; gap: 10px;
  min-width: 168px; white-space: nowrap;
}
.cslot.empty { border-style: dashed; color: rgba(245,241,232,0.4); justify-content: center; }
.cslot.filled img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; }
.cslot .nm { overflow: hidden; text-overflow: ellipsis; }
.cslot .x { cursor: pointer; opacity: 0.6; margin-left: auto; flex: none; }
.cslot .x:hover { opacity: 1; }
.btn-compare {
  background: var(--brand); color: #fff; border: none; border-radius: var(--r-sm);
  padding: 12px 24px; font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .18s;
}
.btn-compare:hover:not(:disabled) { background: var(--brand-deep); }
.btn-compare:disabled { opacity: 0.4; cursor: not-allowed; }
.cb-x { background: none; border: none; color: rgba(245,241,232,0.5); font-size: 22px; cursor: pointer; line-height: 1; }
.cb-x:hover { color: var(--paper); }

/* ============================================================
   COMPARE PAGE
   ============================================================ */
.compare-page { max-width: var(--maxw); margin: 0 auto; padding: 30px 28px 100px; }
.cp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.btn-back {
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: border-color .16s;
}
.btn-back:hover { border-color: var(--ink); }
.cp-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
.cp-head .sub { font-size: 14px; color: var(--ink-soft); }

.ctable-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.ctable { width: 100%; border-collapse: collapse; min-width: 680px; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 0; }
.ctable tr + tr td, .ctable tr + tr th { border-top: 1px solid var(--line); }
.ctable .rowlbl {
  width: 158px; background: var(--paper); padding: 18px 18px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft);
  border-right: 1px solid var(--line); position: sticky; left: 0;
}
.ctable td:not(.rowlbl), .ctable th:not(.rowlbl) {
  padding: 18px 20px; border-right: 1px solid var(--line); min-width: 220px;
}
.ctable td:last-child, .ctable th:last-child { border-right: none; }
.cprop-img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 12px; }
.cprop-type { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-deep); }
.cprop-name { font-family: var(--font-serif); font-weight: 500; font-size: 20px; line-height: 1.15; margin-top: 3px; letter-spacing: -0.01em; }
.cprop-head { padding: 16px 20px 18px !important; }
.cscore { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.cscore small { font-family: var(--font-sans); font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.camen { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.ota-rows { display: flex; flex-direction: column; gap: 7px; }
.ota-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 9px; background: var(--paper); }
.ota-row.best { background: var(--best-soft); }
.ota-row .nm { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.ota-row .vl { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ota-row.best .vl { color: var(--best-deep); }
.win { font-size: 9.5px; background: var(--best); color: #fff; padding: 2px 7px; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; }
.crange { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }
.btn-book-mini { font-size: 11.5px; background: var(--ink); color: var(--paper); border: none; border-radius: 6px; padding: 5px 11px; cursor: pointer; font-weight: 600; }
.btn-book-mini:hover { background: #000; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(20,15,10,0.55);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--r-lg); max-width: 660px; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative;
  box-shadow: var(--shadow-lg); animation: pop .26s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-img { width: 100%; height: 248px; object-fit: cover; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(27,24,19,0.6); color: #fff; font-size: 18px; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(27,24,19,0.85); }
.modal-body { padding: 24px 26px 28px; }
.modal-type { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-deep); }
.modal-title { font-family: var(--font-serif); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.modal-loc { font-size: 14px; color: var(--ink-soft); margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.modal-meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-meta .mi { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.modal-meta .mi b { color: var(--ink); font-weight: 700; }
.modal-meta .mi.rate { margin-left: auto; color: var(--gold); font-weight: 700; }
.modal-amen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.amen-chip { font-size: 12.5px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.modal-price-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.modal-price-head h4 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; }
.modal-price-head .n { font-size: 12.5px; color: var(--ink-soft); }
.modal-prices { display: flex; flex-direction: column; gap: 9px; }
.mota {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line); transition: all .16s;
}
.mota.best { border-color: var(--best); background: var(--best-soft); }
.mota-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mota-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mota-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mota-best-lbl { font-size: 11px; font-weight: 700; color: var(--best-deep); letter-spacing: 0.03em; }
.mota-right { display: flex; align-items: center; gap: 14px; flex: none; }
.mota-price { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mota.best .mota-price { color: var(--best-deep); }
.mota-price .per { font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.btn-book {
  background: var(--ink); color: var(--paper); border: none; border-radius: var(--r-sm);
  padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .16s;
}
.btn-book:hover { background: #000; }
.mota.best .btn-book { background: var(--best); }
.mota.best .btn-book:hover { background: var(--best-deep); }
.modal-savings {
  margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--best-deep);
  background: var(--best-soft); border-radius: var(--r-sm); padding: 11px;
}
.modal-savings b { font-weight: 700; }

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.loading { padding: 70px 20px; text-align: center; }
.spinner {
  width: 38px; height: 38px; margin: 0 auto 18px;
  border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--ink-soft); font-size: 14.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(245,241,232,0.6); padding: 48px 28px 36px; margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer .brand-mark { color: var(--paper); }
.footer-tag { font-size: 14px; margin-top: 10px; max-width: 24em; line-height: 1.5; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { color: var(--paper); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.footer-col a { display: block; color: rgba(245,241,232,0.6); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { max-width: var(--maxw); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(245,241,232,0.12); font-size: 12.5px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 9px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--best); }

/* ============================================================
   PAGE VISIBILITY
   ============================================================ */
#results-page, #compare-page, #saved-page { display: none; }
body.view-results #home-page { display: none; }
body.view-results #results-page { display: block; }
body.view-compare #home-page { display: none; }
body.view-compare #compare-page { display: block; }
body.view-saved #home-page { display: none; }
body.view-saved #saved-page { display: block; }

/* ============================================================
   INTRO
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 500; display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--paper);
  transition: opacity .5s ease, transform .5s ease;
}
#intro.gone { opacity: 0; transform: scale(1.02); pointer-events: none; }
.intro-inner {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 64px); max-width: 760px;
  max-height: 100vh; overflow-y: auto;
}
@media (max-height: 820px) { .intro-inner { justify-content: flex-start; padding-top: 44px; padding-bottom: 44px; } }
.intro-brand { margin-bottom: 22px; }
.intro-brand .brand-mark { font-size: 30px; }
.intro-eyebrow {
  display: inline-block; align-self: flex-start; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.intro-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 16px;
}
.intro-lead { font-size: 17px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 26px; max-width: 36em; }

/* recent-search chips */
.intro-resume { margin-bottom: 22px; }
.intro-resume:empty { margin: 0; }
.resume-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.resume-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.resume-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.resume-chip svg { width: 13px; height: 13px; color: var(--ink-faint); }
.resume-chip:hover { border-color: var(--brand); color: var(--brand); }
.resume-chip:hover svg { color: var(--brand); }

/* recommendation header */
.intro-rec-head { margin-bottom: 14px; }
.rec-why {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--brand-deep);
  background: var(--brand-soft); padding: 7px 14px; border-radius: 999px;
}

/* recommended stay cards */
.intro-rec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.irec {
  display: flex; gap: 0; flex-direction: column; text-align: left;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; font-family: inherit; padding: 0;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.irec:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-2); }
.irec-img { position: relative; height: 108px; overflow: hidden; }
.irec-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.irec:hover .irec-img img { transform: scale(1.06); }
.irec-save {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--best); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.irec-body { padding: 11px 13px 13px; }
.irec-name { font-family: var(--font-serif); font-weight: 500; font-size: 16px; line-height: 1.18; color: var(--ink); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.irec-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 7px; }
.irec-price { font-size: 15px; font-weight: 700; color: var(--ink); }
.irec-price span { font-size: 11px; font-weight: 500; color: var(--ink-soft); }

.intro-actions { display: flex; align-items: center; gap: 18px; }
.intro-cta {
  background: var(--brand); color: #fff; border: none;
  border-radius: 999px; padding: 15px 36px; font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .18s, transform .12s; white-space: nowrap;
}
.intro-cta:hover { background: var(--brand-deep); }
.intro-cta:active { transform: scale(.98); }
.intro-skip {
  background: none; border: none; color: var(--ink-faint);
  font-size: 13.5px; cursor: pointer; font-family: inherit; padding: 4px 0;
}
.intro-skip:hover { color: var(--ink-soft); }
.intro-photo {
  background-image: linear-gradient(120deg, rgba(194,85,46,0.14), rgba(20,15,10,0.10)),
    url("https://images.unsplash.com/photo-1571896349842-33c89424de2d?w=1100&q=80");
  background-size: cover; background-position: center;
}

/* ============================================================
   NAV SAVED + FAV COUNT
   ============================================================ */
.nav-saved {
  position: relative; border: 1px solid var(--line-2); background: var(--card);
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: border-color .16s, color .16s;
}
.nav-saved:hover { border-color: var(--brand); color: var(--brand); }
.fav-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center;
  border: 2px solid var(--paper);
}

/* ============================================================
   FAV BUTTON on cards
   ============================================================ */
.fav-btn {
  position: absolute; top: 11px; left: 11px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .14s, color .14s, background .14s;
}
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: var(--brand); }
.fav-btn.on svg { fill: var(--brand); }
.badge.pop, .badge.deal { left: 54px; }

/* modal actions */
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.m-act {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .16s;
}
.m-act svg { width: 16px; height: 16px; }
.m-act:hover { border-color: var(--ink); }
.m-act.on { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.m-act.on svg { fill: var(--brand); }

/* ============================================================
   VIEW TOGGLE + MAP
   ============================================================ */
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.view-toggle button {
  border: none; background: transparent; cursor: pointer; padding: 8px 12px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  transition: all .15s; position: relative;
}
.view-toggle button + button { border-left: 1px solid var(--line-2); }
.view-toggle button.on { background: var(--ink); color: var(--paper); }
.view-toggle button::before {
  content: ""; width: 17px; height: 17px;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: currentColor;
}
#view-list-btn::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
#view-map-btn::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2-6-2Z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2-6-2Z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }

#map-panel { position: relative; }
.map-hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 600;
  background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-md); pointer-events: none; white-space: nowrap;
}
#map {
  height: 620px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2); z-index: 1;
}
.price-pin-wrap { background: none; border: none; }
.price-pin {
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 13px;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3); border: 2px solid var(--paper);
  transition: background .15s, transform .15s; font-variant-numeric: tabular-nums;
}
.price-pin:hover { background: var(--brand); transform: scale(1.08); }
.map-pop { display: flex; gap: 11px; width: 230px; }
.map-pop img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; }
.mp-body { min-width: 0; }
.mp-name { font-family: var(--font-serif); font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--ink); margin-bottom: 4px; }
.mp-price { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.mp-price span { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.mp-body button { background: var(--brand); color: #fff; border: none; border-radius: 6px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.leaflet-popup-content { margin: 12px; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); }

/* ============================================================
   SAVED / EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-heart { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--line-2); }
.empty-heart svg { width: 100%; height: 100%; }
.empty-state p { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }

/* ============================================================
   SHARE SHEET
   ============================================================ */
.share-sheet {
  position: fixed; inset: 0; z-index: 350; background: rgba(20,15,10,0.55);
  display: none; align-items: flex-end; justify-content: center; padding: 0;
}
.share-sheet.open { display: flex; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.share-card {
  background: var(--card); width: 100%; max-width: 440px;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 22px 22px 28px;
  box-shadow: var(--shadow-lg); animation: slideup .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.share-head h4 { font-family: var(--font-serif); font-weight: 500; font-size: 21px; }
.share-x { background: var(--paper); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; color: var(--ink-soft); cursor: pointer; }
.share-x:hover { background: var(--paper-2); }
.share-prop { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: var(--r-md); padding: 12px; margin-bottom: 18px; }
.share-prop img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; flex: none; }
.sp-name { font-family: var(--font-serif); font-weight: 500; font-size: 16px; color: var(--ink); line-height: 1.2; }
.sp-price { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.share-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md); padding: 14px 6px;
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); transition: all .15s; font-family: inherit;
}
.share-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.so-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; }
.share-opt.line .so-ic { background: #06C755; font-size: 11px; }
.share-opt.fb .so-ic { background: #1877F2; font-size: 20px; }
.share-opt.x .so-ic { background: #000; }
.share-opt.wa .so-ic { background: #25D366; font-size: 19px; }
.share-copy {
  width: 100%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  border-radius: var(--r-md); padding: 13px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.share-copy:hover { border-color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
  #intro { grid-template-columns: 1fr; }
  .intro-photo { display: none; }
  #map { height: 480px; }
}
@media (max-width: 760px) {
  .nav { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2);
    background: var(--card); cursor: pointer;
  }
  .hero { padding: 48px 18px 0; }
  .search-card { grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
  .search-card .sf:nth-child(1) { grid-column: span 2; }
  .sf + .sf::before { display: none; }
  .btn-search { grid-column: span 2; padding: 14px; margin-top: 4px; }
  .section { padding: 44px 18px; }
  .destinations { grid-template-columns: 1fr 1fr; }
  .dest-card.wide { grid-column: span 2; }
  .results-bar { padding: 14px 18px; }
  .results-bar .search-card { grid-template-columns: 1fr 1fr; }
  .results-layout { padding: 18px 18px 130px; }
  .listing { grid-template-columns: 1fr; }
  .listing-img { min-height: 200px; }
  .listing-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn-view { justify-content: center; }
  .results-head { gap: 12px; }
  .results-tools { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .view-toggle { order: -1; }
  .compare-bar { padding: 12px 16px; }
  .compare-bar-inner { gap: 12px; }
  .cb-label { display: none; }
  .how { border-radius: 0; }
  .footer-inner { flex-direction: column; }
  .intro-inner { padding: 40px 22px; justify-content: flex-start; padding-top: 56px; }
  .intro-feats { gap: 14px; margin-bottom: 26px; }
  #map { height: 60vh; }
  .map-hint { font-size: 11.5px; padding: 7px 13px; }
  .modal-actions { flex-wrap: wrap; }
  .share-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .share-opt { padding: 12px 4px; font-size: 11px; }
  .so-ic { width: 36px; height: 36px; }
}
@media (max-width: 460px) {
  .search-card { grid-template-columns: 1fr; }
  .search-card .sf:nth-child(1) { grid-column: span 1; }
  .btn-search { grid-column: span 1; }
  .results-bar .search-card { grid-template-columns: 1fr; }
  .trust-strip { gap: 24px; }
  .modal-meta .mi.rate { margin-left: 0; }
}

/* ============================================================
   HOME: dest fallback, deals, japan, events, recommended
   ============================================================ */
.dest-card { background: var(--ink-2); }

/* special deals rail */
.deal-rail {
  display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.deal-rail::-webkit-scrollbar { height: 7px; }
.deal-rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.deal-card {
  flex: 0 0 262px; scroll-snap-align: start; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; font-family: inherit; padding: 0;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.deal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }
.deal-img { position: relative; height: 158px; overflow: hidden; background: var(--ink-2); }
.deal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.deal-card:hover .deal-img img { transform: scale(1.06); }
.deal-pct {
  position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 800; padding: 5px 11px; border-radius: 999px; letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}
.deal-body { padding: 13px 15px 16px; }
.deal-ends {
  display: inline-flex; align-items: center; gap: 6px; color: var(--brand-deep);
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.deal-ends svg { width: 13px; height: 13px; }
.deal-name {
  font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.18; color: var(--ink);
  margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.deal-price { font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.deal-strike { font-size: 13px; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; margin-right: 4px; }
.deal-per { font-size: 11px; font-weight: 500; color: var(--ink-soft); }

/* festivals & events */
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.event-card {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-img { position: absolute; inset: 0; }
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.event-card:hover .event-img img { transform: scale(1.07); }
.event-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,15,10,0.88) 8%, rgba(20,15,10,0.35) 48%, rgba(20,15,10,0.1) 75%);
}
.event-body { position: relative; z-index: 2; padding: 18px; color: #fff; }
.event-name { font-family: var(--font-serif); font-weight: 600; font-size: 21px; line-height: 1.12; letter-spacing: -0.01em; }
.event-sub { font-size: 12.5px; opacity: 0.88; margin-top: 6px; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.18); }
.event-loc { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.event-loc svg { width: 13px; height: 13px; }
.event-cta { font-size: 12.5px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.event-cta svg { width: 13px; height: 13px; }

/* recommended-for-you grid (home, near bottom) */
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
#home-rec .irec-img { height: 150px; }
.home-rec-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; }
.home-rec-chips:empty { display: none; }
.chips-lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-right: 2px; }

/* filter count badge */
.filter-count {
  display: none; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700;
  vertical-align: middle;
}

@media (max-width: 920px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .event-grid { grid-template-columns: 1fr 1fr; }
  .event-card { min-height: 220px; }
  .event-name { font-size: 18px; }
  .rec-grid { grid-template-columns: 1fr 1fr; }
  .deal-card { flex-basis: 230px; }
}

/* ============================================================
   LOGO — bird flying in to land on a branch
   ============================================================ */
.brand-bird { width: 38px; height: 30px; color: var(--brand); flex: none; overflow: visible; }
.brand { gap: 10px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .brand-bird { color: var(--brand); }

/* the whole bird flies in from the left and settles */
.bb-bird { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .nav .bb-bird { animation: birdFlyIn 1.5s cubic-bezier(.25,.9,.3,1) both; }
  .nav .bb-wing { transform-box: fill-box; transform-origin: 75% 90%; animation: wingFlap .26s ease-in-out 6; }
  .nav .bb-leaf, .nav .bb-leaf2 { transform-box: fill-box; transform-origin: left center; animation: leafBob 2.6s ease-in-out infinite; }
  .nav .bb-legs { opacity: 0; animation: fadeLegs .3s ease 1.35s forwards; }
}
@keyframes birdFlyIn {
  0%   { transform: translate(-46px, -26px) rotate(-14deg) scale(.82); opacity: 0; }
  35%  { opacity: 1; }
  60%  { transform: translate(-6px, -8px) rotate(-6deg) scale(.95); }
  80%  { transform: translate(2px, 2px) rotate(2deg); }
  100% { transform: translate(0,0) rotate(0); opacity: 1; }
}
@keyframes wingFlap {
  0%,100% { transform: rotate(0deg); }
  50%     { transform: rotate(-38deg); }
}
@keyframes leafBob { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@keyframes fadeLegs { to { opacity: 1; } }
/* re-fly on hover */
.brand:hover .bb-bird { animation: birdHop .5s ease; }
@keyframes birdHop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-5px) rotate(-4deg); } }

/* ============================================================
   ROOST SCORE
   ============================================================ */
.roost-score {
  flex: none; text-align: center; border-radius: 12px;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  color: #fff; padding: 8px 11px; min-width: 58px; box-shadow: var(--shadow-sm);
}
.roost-score .rs-num { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.roost-score .rs-lbl { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.92; margin-top: 3px; }
.roost-score.big { padding: 11px 15px; min-width: 72px; }
.roost-score.big .rs-num { font-size: 30px; }
.roost-score.big .rs-lbl { font-size: 9.5px; margin-top: 4px; }

/* OTA average badge — visually distinct (neutral, outlined) */
.score-stack { display: flex; flex-direction: column; gap: 6px; flex: none; }
.ota-score {
  text-align: center; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line-2); color: var(--ink); padding: 6px 11px; min-width: 58px;
}
.ota-score .os-num { font-family: var(--font-serif); font-size: 17px; font-weight: 600; line-height: 1; }
.ota-score .os-lbl { font-size: 8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.score-stack.big { flex-direction: row; gap: 8px; }
.ota-score.big { padding: 11px 14px; min-width: 64px; display: flex; flex-direction: column; justify-content: center; }
.ota-score.big .os-num { font-size: 24px; }
.ota-score.big .os-lbl { font-size: 9px; margin-top: 4px; }

/* modal sections */
.modal-sec { margin: 20px 0; }
.msec-title { font-family: var(--font-serif); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 11px; letter-spacing: -0.01em; }
.stay-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.sc-pill { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; padding: 3px 10px; border-radius: 999px; }
.score-card-head { justify-content: flex-start; }

/* per-hotel map */
.modal-map { height: 220px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); z-index: 1; }
.nearby { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.nearby-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.nearby-row:last-child { border-bottom: none; }
.nearby-row svg { width: 13px; height: 13px; color: var(--ink-faint); vertical-align: -2px; }
.nearby-row b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* mota sub line */
.mota-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.mota.best .mota-sub { color: var(--best-deep); font-weight: 700; }

/* final price breakdown */
.price-break { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-top: 16px; }
.pb-head { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.pb-head b { color: var(--ink); }
.pb-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 6px 0; font-variant-numeric: tabular-nums; }
.pb-row.total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px; font-size: 17px; font-weight: 800; color: var(--ink); }
.pb-row.total span:last-child { color: var(--brand-deep); }

.score-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; }
.score-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.score-card-head svg { width: 15px; height: 15px; color: var(--brand); }
.score-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; }
.score-bar { display: flex; align-items: center; gap: 10px; }
.sb-lbl { font-size: 12.5px; color: var(--ink-2); width: 96px; flex: none; }
.sb-track { flex: 1; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.sb-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--best), var(--best-deep)); border-radius: 999px; }

/* ============================================================
   STAY FLAGS + HIGHLIGHT + FINAL PRICE
   ============================================================ */
.stay-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.sflag { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; }
.sflag.rated  { background: var(--gold); color: #fff; }
.sflag.demand { background: var(--ink); color: var(--paper); }
.sflag.event  { background: var(--brand-soft); color: var(--brand-deep); }

.stay-highlight {
  display: flex; align-items: flex-start; gap: 8px; margin: 11px 0 2px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.4;
}
.stay-highlight svg { width: 15px; height: 15px; color: var(--brand); flex: none; margin-top: 2px; }
.stay-highlight.big { background: var(--brand-soft); border-radius: var(--r-sm); padding: 12px 14px; margin: 14px 0; font-size: 14.5px; color: var(--ink); }
.stay-highlight.big b { color: var(--brand-deep); }

.rating-inline { font-weight: 600; color: var(--ink-2) !important; }
.final-chip {
  display: inline-block; background: var(--best); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; vertical-align: middle;
}
.final-chip.lg { font-size: 11px; padding: 5px 11px; border-radius: 999px; }
.price-from { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cmp-n { color: var(--ink-faint); }

.photo-count {
  position: absolute; bottom: 11px; right: 11px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(27,24,19,0.72); color: #fff; backdrop-filter: blur(4px);
  font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.photo-count svg { width: 13px; height: 13px; }

/* ============================================================
   MODAL GALLERY + HEADROW
   ============================================================ */
.gallery { background: var(--ink); }
.gal-main { position: relative; height: 300px; background: var(--ink-2); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-count {
  position: absolute; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(27,24,19,0.72); color: #fff; backdrop-filter: blur(4px);
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.gal-count svg { width: 14px; height: 14px; }
.gal-thumbs { display: flex; gap: 7px; padding: 9px; overflow-x: auto; background: var(--card); }
.gal-thumb { flex: 0 0 76px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--paper-2); transition: border-color .15s; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.on { border-color: var(--brand); }
.modal-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

/* ============================================================
   COMPARE — hero treatment
   ============================================================ */
.cmp-toggle {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  padding: 10px 16px; font-weight: 700;
}
.cmp-toggle:hover { background: #000; }
.cmp-toggle.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cmp-toggle svg { color: currentColor; }

.compare-bar { padding: 16px 28px; }
.btn-compare {
  padding: 14px 30px; font-size: 15.5px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(194,85,46,0.45);
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-compare::before {
  content: ""; width: 17px; height: 17px; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 7h14M5 7l-3 7a4 4 0 0 0 6 0zM19 7l3 7a4 4 0 0 1-6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 7h14M5 7l-3 7a4 4 0 0 0 6 0zM19 7l3 7a4 4 0 0 1-6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  background: currentColor;
}
.btn-compare:not(:disabled) { animation: cmpPulse 2.4s ease-in-out infinite; }
@keyframes cmpPulse { 0%,100% { box-shadow: 0 6px 20px rgba(194,85,46,0.4); } 50% { box-shadow: 0 6px 26px rgba(194,85,46,0.7); } }

@media (max-width: 760px) {
  .score-bars { grid-template-columns: 1fr; }
  .gal-main { height: 230px; }
  .roost-score.big { min-width: 64px; padding: 9px 12px; }
  .roost-score.big .rs-num { font-size: 26px; }
}
