/* ==========================================================================
   StayGo — front-end styles
   Breakpoints: phone < 744px · tablet 744–1127px · desktop ≥ 1128px · wide ≥ 1440px
   ========================================================================== */

:root {
  --brand: #ff385c;
  --brand-dark: #e00b41;
  --brand-grad: linear-gradient(to right, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
  --ink: #222222;
  --ink-2: #484848;
  --muted: #6a6a6a;
  --line: #dddddd;
  --line-2: #ebebeb;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --success: #008a05;
  --warning: #c13515;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow: 0 6px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.28);
  --hh: 80px;            /* header height, updated by JS */
  --gutter: 24px;
  --maxw: 1760px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 .6em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
u { text-underline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.fw-normal { font-weight: 400; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; border-radius: 8px; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 1128px) { :root { --gutter: 40px; } }
@media (min-width: 1440px) { :root { --gutter: 80px; } }
@media (max-width: 743px) { :root { --gutter: 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: transform .1s, background .2s, box-shadow .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-brand, .btn-primary { background: var(--brand-grad); color: #fff; }
.btn-brand:hover, .btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--ink); text-decoration: underline; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-col { display: grid; gap: 10px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.text-btn { background: none; border: 0; padding: 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.text-btn:hover { background: var(--bg-soft); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; font-size: 16px; flex: none;
}
.icon-btn:hover { background: var(--bg-soft); }
.chip-sm { display: inline-block; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: var(--bg-soft); border-radius: 999px; padding: 4px 10px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.badge-confirmed, .badge-publish, .badge-approved, .badge-paid, .badge-active { background: #e6f4ea; color: #137333; }
.badge-pending, .badge-unpaid { background: #fef7e0; color: #a05a00; }
.badge-cancelled, .badge-spam, .badge-suspended { background: #fce8e6; color: #c5221f; }
.badge-completed { background: #e8f0fe; color: #1a55c4; }
.badge-draft, .badge-refunded { background: #f1f3f4; color: #5f6368; }

/* ---------- Inputs ---------- */
.input {
  width: 100%; border: 1px solid #b0b0b0; border-radius: 8px; padding: 12px 14px; background: #fff; font-size: 15px;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.alert-error { background: #fff1f0; color: #b42318; border: 1px solid #fecdca; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 1000; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center;
  animation: toastIn .3s ease, toastOut .4s ease 4.5s forwards; max-width: calc(100% - 32px);
}
.toast-success i { color: #5ee07a; }
.toast-error i { color: #ff8a8a; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes toastOut { to { opacity: 0; visibility: hidden; transform: translate(-50%, 16px); } }
@media (min-width: 744px) { .toast { bottom: 32px; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line-2); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); flex: 1 1 0; min-width: max-content; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.mode-tabs { display: flex; gap: 4px; justify-content: center; }
.mode-tabs a { padding: 10px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.mode-tabs a:hover { background: var(--bg-soft); color: var(--ink); }
.mode-tabs a.active { color: var(--ink); font-weight: 600; }
.mode-tabs a.active::after { content: ''; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 1 1 0; }
.host-link { font-size: 14px; font-weight: 600; padding: 12px; border-radius: 999px; white-space: nowrap; }
.host-link:hover { background: var(--bg-soft); }
.user-menu { position: relative; }
.user-pill {
  display: flex; align-items: center; gap: 12px; padding: 5px 5px 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: box-shadow .2s;
}
.user-pill:hover { box-shadow: var(--shadow-sm); }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-soft); }
.avatar-initial { display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; }
.avatar-anon { width: 30px; height: 30px; display: inline-grid; place-items: center; background: #6a6a6a; color: #fff; font-size: 14px; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px 0; display: none; z-index: 200; border: 1px solid var(--line-2);
}
.dropdown.open { display: block; animation: pop .15s ease; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 14px; }
.dropdown a i { width: 18px; color: var(--muted); }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown hr { margin: 8px 0; }
.dropdown-head { padding: 8px 16px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; display: grid; }
.dropdown-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Search ---------- */
.search-wrap { padding-bottom: 20px; display: flex; justify-content: center; }
.search-pill { display: none; }
.search-sheet { width: 100%; max-width: 850px; }
.sheet-top { display: none; }
.search-bar {
  display: none; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  position: relative; transition: box-shadow .2s;
}
.search-bar.active { display: flex; }
.search-bar:hover { box-shadow: var(--shadow); }
.sb-field {
  flex: 1 1 0; min-width: 0; padding: 12px 24px; border-radius: 999px; display: grid; gap: 2px; cursor: pointer; position: relative;
}
.sb-field + .sb-field::before { content: ''; position: absolute; left: 0; top: 25%; height: 50%; border-left: 1px solid var(--line); }
.sb-field:hover { background: var(--line-2); }
.sb-field:hover::before, .sb-field:hover + .sb-field::before { opacity: 0; }
.sb-field:focus-within { background: #fff; box-shadow: var(--shadow-lg); z-index: 1; }
.sb-field:focus-within::before, .sb-field:focus-within + .sb-field::before { opacity: 0; }
.sb-field span { font-size: 12px; font-weight: 700; }
.sb-field input, .sb-field select {
  border: 0; outline: 0; padding: 0; background: transparent; font-size: 14px; color: var(--ink); width: 100%; min-width: 0;
}
.sb-field input::placeholder { color: var(--muted); }
.sb-where { flex: 1.5 1 0; }
.sb-who { padding-right: 70px; }
.sb-submit {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%); height: 48px; min-width: 48px; border-radius: 999px; border: 0;
  background: var(--brand-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-weight: 600; z-index: 2;
}
.sb-submit span { display: none; }
.search-bar:focus-within .sb-submit span { display: inline; }
.search-bar:focus-within .sb-who { padding-right: 130px; }

/* ---------- Category bar ---------- */
.category-bar { position: sticky; top: var(--hh); z-index: 90; background: #fff; box-shadow: 0 1px 0 var(--line-2); }
.category-row { display: flex; align-items: center; gap: 16px; }
.category-scroller {
  flex: 1; display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-top: 12px;
  mask-image: linear-gradient(to right, #000 92%, transparent);
}
.category-scroller::-webkit-scrollbar { display: none; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 12px; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 600;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; flex: none; opacity: .75;
}
.cat i { font-size: 22px; }
.cat:hover { color: var(--ink); border-color: var(--line); opacity: 1; }
.cat.active { color: var(--ink); border-color: var(--ink); opacity: 1; }
.scroll-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.scroll-arrow:hover { box-shadow: var(--shadow-sm); }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 16px;
  font-size: 12px; font-weight: 600; flex: none; position: relative;
}
.filter-btn:hover { border-color: var(--ink); background: var(--bg-soft); }
.filter-btn .count { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 10px; min-width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #fff; }

/* ==========================================================================
   Listing grid & cards
   ========================================================================== */
.listing-section { padding-top: 24px; padding-bottom: 48px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 20px; }
.results-head h1 { font-size: 22px; margin: 0; }
.results-head p { margin: 0; }
.grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 550px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 950px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1128px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1640px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { position: relative; min-width: 0; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 20 / 19; background: var(--bg-soft); }
.car-card .card-media { aspect-ratio: 4 / 3; }
.card-gallery { display: block; height: 100%; }
.card-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.card-track::-webkit-scrollbar { display: none; }
.card-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.card-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); transition: transform .2s, background .2s; }
.card-dots i.on { background: #fff; transform: scale(1.15); }
.card-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm); font-size: 11px; opacity: 0; transition: opacity .2s, transform .2s; display: grid; place-items: center;
}
.card-nav.prev { left: 10px; }
.card-nav.next { right: 10px; }
.card-nav:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
@media (hover: hover) { .card:hover .card-nav { opacity: 1; } }
.card-nav[disabled] { visibility: hidden; }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; padding: 4px; transition: transform .15s; }
.heart svg { width: 26px; height: 26px; fill: rgba(0,0,0,.5); stroke: #fff; stroke-width: 2.5; overflow: visible; }
.heart:hover { transform: scale(1.1); }
.heart.on svg { fill: var(--brand); }
.heart.pop { animation: heartPop .35s ease; }
@keyframes heartPop { 50% { transform: scale(1.3); } }
.card-body { display: block; padding-top: 12px; font-size: 15px; }
.card-body p { margin: 0; line-height: 1.35; }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-top h3 { font-size: 15px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-rating { font-size: 14px; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.card-rating i { font-size: 11px; }
.card-rating small { color: var(--muted); font-size: 13px; }
.card-body .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { margin-top: 6px !important; }
.card-price strong { font-weight: 600; }
.car-specs { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 14px; }
.car-specs i { font-size: 12px; margin-right: 2px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pager a { min-width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.pager a:hover { background: var(--bg-soft); }
.pager a.active { background: var(--ink); color: #fff; }

.empty-state { text-align: center; padding: 80px 16px; max-width: 520px; margin: 0 auto; }
.empty-state > i { font-size: 44px; color: var(--muted); margin-bottom: 16px; }
.empty-state.left { text-align: left; margin: 0; padding: 32px 0; border-bottom: 1px solid var(--line); max-width: none; }
.empty-state h1, .empty-state h2 { font-size: 22px; }

/* ---------- Strips on home ---------- */
.strip { padding-top: 48px; padding-bottom: 8px; }
.strip h2 { font-size: 24px; }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.h-scroll > * { scroll-snap-align: start; }
@media (min-width: 1128px) { .h-scroll { grid-auto-columns: calc((100% - 72px) / 4); } }
@media (max-width: 743px) { .h-scroll { grid-auto-columns: 78%; } }
.dest-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
@media (min-width: 744px) { .dest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1128px) { .dest-grid { grid-template-columns: repeat(6, 1fr); } }
.dest { display: grid; gap: 8px; }
.dest img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: transform .3s; }
.dest:hover img { transform: scale(1.03); }
.dest span { display: grid; }
.dest small { color: var(--muted); font-size: 13px; }
.host-cta { padding-bottom: 56px; }
.host-cta-inner { display: grid; grid-template-columns: 1fr; background: var(--ink); color: #fff; border-radius: 24px; overflow: hidden; }
.host-cta-inner > div { padding: 40px; align-self: center; }
.host-cta-inner h2 { font-size: 32px; }
.host-cta-inner p { color: #ccc; margin-bottom: 24px; max-width: 460px; }
.host-cta-inner img { width: 100%; height: 100%; object-fit: cover; max-height: 380px; }
@media (min-width: 744px) { .host-cta-inner { grid-template-columns: 1fr 1fr; } }

.cars-hero { background: linear-gradient(120deg, #1f1f1f, #3b3b3b); color: #fff; border-radius: 24px; padding: 36px; margin-bottom: 32px; position: relative; overflow: hidden; }
.cars-hero::after { content: '\f5e4'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -20px; bottom: -40px; font-size: 220px; opacity: .08; }
.cars-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.cars-hero p { color: #d0d0d0; max-width: 560px; }
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.perks i { color: var(--brand); margin-right: 6px; }

/* ---------- Map ---------- */
.map-panel { display: none; }
body.map-open .map-panel { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--maptop, var(--hh)); z-index: 80; }
body.map-open #resultsMap { width: 100%; height: 100%; }
body.map-open .grid, body.map-open .pager, body.map-open .site-footer { display: none; }
.map-toggle {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 95; background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 20px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: transform .15s;
}
.map-toggle:hover { transform: translateX(-50%) scale(1.04); }
.map-toggle .show-list, body.map-open .map-toggle .show-map { display: none; }
body.map-open .map-toggle .show-list { display: inline; }
.map-toggle i { margin-left: 6px; }
.price-marker { background: #fff; border-radius: 999px; padding: 5px 10px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.25); white-space: nowrap; transition: transform .15s; border: 1px solid rgba(0,0,0,.08); }
.price-marker:hover, .price-marker.active { background: var(--ink); color: #fff; transform: scale(1.08); }
.leaflet-div-icon.price-icon { background: none; border: 0; width: auto !important; height: auto !important; }
.map-pop { width: 240px; }
.map-pop img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px 10px 0 0; }
.map-pop div { padding: 10px 12px; }
.map-pop strong { display: block; font-size: 14px; }
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-content-wrapper { padding: 0 !important; border-radius: 12px !important; overflow: hidden; }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; animation: fade .2s ease; }
.modal-card { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 780px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideUp .3s cubic-bezier(.2,.9,.3,1); }
.modal-sm { max-width: 520px; }
.modal-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { font-size: 16px; text-align: center; margin: 0; }
.modal-body { padding: 8px 24px 24px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
body.no-scroll { overflow: hidden; }
.filter-group { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { font-size: 20px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; padding: 4px; background: var(--bg-soft); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 12px 8px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.segmented input:checked + span { background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.price-inputs { display: flex; align-items: center; gap: 16px; }
.price-inputs label { flex: 1; border: 1px solid #b0b0b0; border-radius: 10px; padding: 8px 12px; display: grid; }
.price-inputs span { font-size: 12px; color: var(--muted); }
.price-inputs input { border: 0; outline: 0; font-size: 16px; padding: 2px 0; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.amen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
.amen-grid i { width: 22px; color: var(--muted); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.switch-row span { display: grid; }
.switch { appearance: none; width: 48px; height: 32px; background: #b0b0b0; border-radius: 999px; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(16px); }

/* ==========================================================================
   Detail pages
   ========================================================================== */
.detail { padding-top: 24px; padding-bottom: 48px; }
.detail-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.detail-title h1 { font-size: 26px; margin: 0; flex: 1; }
.title-actions { display: flex; gap: 4px; flex: none; }
.wish-text.on i { color: var(--brand); }
.back-link { display: none; }

.photo-grid { position: relative; display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; height: min(56vh, 520px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.photo-grid .pg-item { border: 0; padding: 0; background: var(--bg-soft); overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.photo-grid .pg-item:hover img { filter: brightness(.88); }
.photo-grid .pg-item:first-child { grid-row: 1 / 3; }
.photo-grid.count-1 { grid-template-columns: 1fr; }
.photo-grid.count-2 { grid-template-columns: 1fr 1fr; }
.photo-grid.count-2 .pg-item:nth-child(2) { grid-row: 1 / 3; }
.photo-grid.count-3 { grid-template-columns: 2fr 1fr; }
.photo-grid.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.photo-grid.count-4 .pg-item:nth-child(4) { grid-column: 2 / 4; }
.show-photos { position: absolute; right: 20px; bottom: 20px; background: #fff; border: 1px solid var(--ink); border-radius: 8px; padding: 7px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.photo-wrap { position: relative; }
.photo-count { display: none; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 80px; }
@media (min-width: 950px) { .detail-layout { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } }
.detail-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.detail-section h2 { font-size: 22px; margin-bottom: 16px; }
.detail > .detail-section:last-child { border-bottom: 0; }
.overview h2 { margin-bottom: 4px; }
.overview .specs { margin: 0; font-size: 16px; }
.overview-rating { margin: 6px 0 0; }
.overview-rating i { font-size: 13px; }
.host-row { display: flex; align-items: center; gap: 16px; }
.host-row > div { display: grid; }
.highlights { display: grid; gap: 22px; }
.highlights > div { display: flex; gap: 22px; align-items: flex-start; }
.highlights i { font-size: 22px; width: 26px; text-align: center; margin-top: 2px; }
.highlights span { display: grid; }
.clamp { max-height: 9.5em; overflow: hidden; position: relative; }
.clamp.expanded { max-height: none; }
.description .text-btn { padding-left: 0; margin-top: 8px; }
.amenities { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.amenities.single { grid-template-columns: 1fr; }
.amenities li { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.amenities i { width: 26px; font-size: 20px; text-align: center; color: var(--ink-2); }
.sleep-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.sleep-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; }
.sleep-card i { font-size: 24px; margin-bottom: 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-grid div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; }
.spec-grid i { font-size: 20px; margin-bottom: 8px; color: var(--ink-2); }
.spec-grid small { color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.plain-list i { width: 26px; color: var(--ink-2); }

/* Booking card */
.detail-side { position: relative; }
.booking-card {
  position: sticky; top: calc(var(--hh) + 24px); margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  background: #fff;
}
.bc-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.bc-price { font-size: 22px; font-weight: 600; }
.bc-rating { font-size: 14px; }
.bc-rating i { font-size: 12px; }
.bc-box { border: 1px solid #b0b0b0; border-radius: 10px; margin-bottom: 16px; }
.bc-dates { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #b0b0b0; }
.bc-dates label + label { border-left: 1px solid #b0b0b0; }
.bc-box label { display: grid; padding: 10px 12px; cursor: pointer; }
.bc-box span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.bc-box input, .bc-box select { border: 0; outline: 0; padding: 2px 0; font-size: 14px; background: transparent; width: 100%; min-width: 0; }
.bc-note { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.bc-error { color: var(--warning); font-size: 14px; margin: -6px 0 12px; }
.bc-breakdown { margin-top: 20px; }
.bc-breakdown > div { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.bc-total { font-size: 16px; }
.mobile-reserve { display: none; }

/* Reviews */
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 32px; }
.big-rating { text-align: center; }
.big-rating .laurel { font-size: 22px; color: var(--ink); }
.big-rating strong { display: block; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -2px; }
.big-rating p { font-weight: 600; font-size: 18px; margin: 6px 0 0; }
.rating-bars { display: grid; gap: 6px; max-width: 320px; }
.rating-bars div { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.rating-bars b { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rating-bars b i { display: block; height: 100%; background: var(--ink); }
.review-list { display: grid; grid-template-columns: 1fr; gap: 32px 80px; margin-bottom: 24px; }
@media (min-width: 744px) { .review-list { grid-template-columns: 1fr 1fr; } }
.review.extra { display: none; }
.review-list.all .review.extra { display: block; }
.review header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.review header div { display: grid; }
.review-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stars { color: var(--ink); font-size: 9px; letter-spacing: 1px; }

.detail-map { height: 420px; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; z-index: 1; position: relative; }
.map-home-marker { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 0 10px rgba(255,56,92,.2); }

.host-card-wrap { display: grid; gap: 32px; }
@media (min-width: 744px) { .host-card-wrap { grid-template-columns: 380px 1fr; align-items: start; } }
.host-card { border-radius: 24px; box-shadow: var(--shadow); padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; }
.hc-left { display: grid; justify-items: center; gap: 4px; text-align: center; }
.hc-left strong { font-size: 24px; }
.hc-stats { list-style: none; padding: 0; margin: 0; display: grid; }
.hc-stats li { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hc-stats li:last-child { border-bottom: 0; }
.hc-stats strong { font-size: 20px; }
.hc-stats small { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.know-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 744px) { .know-grid { grid-template-columns: repeat(3, 1fr); } }
.know-grid h3 { font-size: 16px; }
.know-grid p { margin-bottom: 8px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: #000; z-index: 600; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lb-close { position: absolute; top: 16px; left: 16px; color: #fff; }
.lb-close:hover { background: rgba(255,255,255,.15); }
.lb-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; }
.lb-nav:hover { background: rgba(255,255,255,.15); }
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }

/* ==========================================================================
   Checkout / receipt / account
   ========================================================================== */
.checkout, .receipt { padding-top: 40px; padding-bottom: 64px; max-width: 1200px; }
.checkout-title { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.checkout-title h1 { font-size: 30px; margin: 0; }
.checkout-title .back-link { display: grid; width: 40px; height: 40px; border-radius: 50%; place-items: center; }
.checkout-title .back-link:hover { background: var(--bg-soft); }
.checkout-layout, .receipt-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 950px) { .checkout-layout, .receipt-grid { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); gap: 80px; } }
.co-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.co-section:last-child { border-bottom: 0; }
.co-section h2 { font-size: 22px; margin-bottom: 16px; }
.co-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.co-row p { margin: 2px 0 0; }
.pay-options { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; font-weight: 500; }
.pay-opt span i { width: 22px; font-size: 18px; }
.pay-opt input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.card-fields { display: grid; gap: 10px; }
.card-fields .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--hh) + 24px); }
.summary-card h3 { font-size: 20px; margin-bottom: 16px; }
.sum-item { display: flex; gap: 16px; }
.sum-item img { width: 120px; height: 100px; border-radius: 10px; object-fit: cover; flex: none; }
.sum-item > div { display: grid; align-content: start; gap: 4px; }
.sum-item i { font-size: 11px; }
.price-line { display: flex; justify-content: space-between; margin-bottom: 12px; gap: 16px; }
.price-line.total { font-size: 17px; }
.receipt-hero { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.receipt-hero img { width: 200px; aspect-ratio: 4/3; border-radius: var(--radius); object-fit: cover; flex: none; }
.receipt-hero h2 { font-size: 22px; margin: 8px 0 4px; }
.receipt-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); }
.receipt-dates > div { padding: 16px 20px; display: grid; gap: 2px; }
.receipt-dates > div + div { border-left: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 12px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } .receipt-hero { flex-direction: column; align-items: flex-start; } .receipt-hero img { width: 100%; } }

.account-page { padding-top: 40px; padding-bottom: 64px; }
.page-h1 { font-size: 32px; margin-bottom: 24px; }
.section-h2 { font-size: 22px; margin: 32px 0 20px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 12px 0; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-color: var(--ink); }
.tabs .count { font-size: 12px; background: var(--bg-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.trip-list { display: grid; gap: 20px; }
@media (min-width: 950px) { .trip-list { grid-template-columns: 1fr 1fr; } }
.trip { display: grid; grid-template-columns: 180px 1fr; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
.trip-img img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 10px; }
.trip-body { padding: 4px 4px 4px 0; }
.trip-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.trip-body h3 { font-size: 17px; margin-bottom: 2px; }
.trip-body p { margin-bottom: 4px; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 560px) { .trip { grid-template-columns: 1fr; } .trip-img img { aspect-ratio: 16/9; min-height: 0; } }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 8px 0 16px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; color: var(--line); cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #ffb400; }
.account-grid { display: grid; gap: 32px; }
@media (min-width: 950px) { .account-grid { grid-template-columns: 340px 1fr; align-items: start; } }
.profile-card { border: 1px solid var(--line); border-radius: 24px; padding: 32px; text-align: center; display: grid; justify-items: center; gap: 4px; box-shadow: var(--shadow-sm); }
.profile-card .hc-stats { display: flex; gap: 32px; margin: 12px 0 20px; }
.profile-card .hc-stats li { border: 0; }
.profile-card .btn-col { width: 100%; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.panel h2 { font-size: 20px; margin-bottom: 20px; }
.prose { padding-top: 40px; padding-bottom: 64px; max-width: 820px; font-size: 16px; line-height: 1.65; }
.prose h3 { margin-top: 28px; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 568px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-head { padding: 18px; border-bottom: 1px solid var(--line-2); text-align: center; }
.auth-head h1 { font-size: 16px; margin: 0; }
.auth-body { padding: 24px; }
.auth-body h2 { font-size: 22px; margin-bottom: 20px; }
.stacked-inputs { border: 1px solid #b0b0b0; border-radius: 10px; margin-bottom: 16px; }
.stacked-inputs label { display: grid; padding: 8px 12px; cursor: text; }
.stacked-inputs label + label { border-top: 1px solid #b0b0b0; }
.stacked-inputs label:focus-within { box-shadow: 0 0 0 2px var(--ink); border-radius: 8px; position: relative; z-index: 1; }
.stacked-inputs span { font-size: 12px; color: var(--muted); }
.stacked-inputs input { border: 0; outline: 0; padding: 4px 0; font-size: 16px; }
.or { display: flex; align-items: center; gap: 16px; margin: 20px 0; font-size: 12px; color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.demo-logins { margin-top: 20px; text-align: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.demo-logins p { width: 100%; margin: 0; }
.demo-logins .chip-sm { cursor: pointer; }

/* Host landing */
.host-hero { padding: 56px 0 24px; }
.host-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 950px) { .host-hero-grid { grid-template-columns: 1fr 1.1fr; } }
.host-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1px; }
.brand-text { color: var(--brand); }
.earn strong { font-size: clamp(48px, 7vw, 76px); font-weight: 800; letter-spacing: -2px; }
.host-hero input[type=range] { width: 100%; max-width: 420px; accent-color: var(--brand); margin: 16px 0; }
.host-hero-img { border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.host-steps { padding-bottom: 64px; }
.host-steps > h2 { font-size: 30px; text-align: center; margin: 32px 0; }
.steps { display: grid; gap: 24px; }
@media (min-width: 744px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > div { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px; }
.host-choices { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 744px) { .host-choices { grid-template-columns: 1fr 1fr; } }
.host-choice { border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-sm); }
.host-choice > i { font-size: 36px; color: var(--brand); margin-bottom: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: 14px; }
.footer-cols { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 32px; }
@media (min-width: 744px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-cols a { display: block; padding: 5px 0; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.copyright a { font-weight: 600; text-decoration: underline; }
.footer-meta { display: flex; gap: 20px; align-items: center; font-weight: 600; }
.footer-meta a { font-size: 18px; }

.bottom-nav { display: none; }
.offline-banner { position: fixed; top: 0; left: 0; right: 0; background: #333; color: #fff; text-align: center; padding: 8px; font-size: 13px; z-index: 999; }
.install-btn { border: 1px solid var(--line); }

/* ==========================================================================
   Tablet (744–1127px) — portrait & landscape
   ========================================================================== */
@media (max-width: 1127px) {
  .brand-name { display: none; }
  .brand { flex: 0 0 auto; }
  .host-link { display: none; }
  .search-sheet { max-width: 100%; }
  .sb-field { padding: 10px 16px; }
}

/* ==========================================================================
   Phones & tablet portrait: sticky reserve bar instead of side card
   ========================================================================== */
@media (max-width: 949px) {
  .booking-card {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0; z-index: 400; border-radius: 20px 20px 0 0; max-height: 88vh; overflow-y: auto;
    transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -8px 28px rgba(0,0,0,.2); padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .booking-card.open { transform: none; }
  .booking-card::before { content: ''; display: block; width: 40px; height: 4px; background: var(--line); border-radius: 4px; margin: -10px auto 16px; }
  .sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 399; }
  .mobile-reserve {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--line);
    padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; gap: 12px;
  }
  .mobile-reserve small { display: block; text-decoration: underline; font-size: 13px; font-weight: 600; }
  .page-detail .bottom-nav { display: none !important; }
  .page-detail .site-footer { padding-bottom: 100px; }
}

/* ==========================================================================
   Phones (< 744px)
   ========================================================================== */
@media (max-width: 743px) {
  body { font-size: 14px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .page-detail { padding-bottom: 0; }
  .header-row { height: 60px; }
  .header-actions .user-menu { display: none; }
  .mode-tabs a { padding: 8px 12px; font-size: 14px; }
  .search-wrap { padding-bottom: 12px; }
  .search-pill {
    display: flex; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 8px 8px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,.1); text-align: left;
  }
  .search-pill > span:not(.pill-filter) { display: grid; flex: 1; min-width: 0; }
  .search-pill strong { font-size: 14px; }
  .search-pill small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pill-filter { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; flex: none; }

  .search-sheet {
    position: fixed; inset: 0; z-index: 300; background: var(--bg-soft); padding: 16px; display: none; overflow-y: auto; max-width: none;
  }
  .search-sheet.open { display: block; animation: fade .2s; }
  .sheet-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
  .sheet-top .icon-btn { border: 1px solid var(--line); background: #fff; }
  .sheet-tabs { display: flex; gap: 24px; flex: 1; justify-content: center; margin-right: 52px; }
  .sheet-tabs button { background: none; border: 0; font-weight: 600; font-size: 16px; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
  .sheet-tabs button.active { color: var(--ink); border-color: var(--ink); }
  .search-bar { flex-direction: column; align-items: stretch; border-radius: 24px; box-shadow: var(--shadow); padding: 12px; gap: 10px; border: 0; }
  .search-bar.active { display: flex; }
  .sb-field { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
  .sb-field::before { display: none; }
  .sb-field span { font-size: 12px; }
  .sb-field input, .sb-field select { font-size: 16px; }
  .sb-who, .search-bar:focus-within .sb-who { padding-right: 16px; }
  .sb-submit { position: static; transform: none; width: 100%; border-radius: 12px; height: 52px; font-size: 16px; }
  .sb-submit span { display: inline; }

  .category-bar { top: var(--hh); }
  .category-row { gap: 12px; }
  .category-scroller { gap: 24px; }
  .scroll-arrow { display: none; }
  .filter-btn span { display: none; }
  .filter-btn { padding: 10px 12px; }

  .listing-section { padding-top: 16px; }
  .map-toggle { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 94vh; border-radius: 20px 20px 0 0; max-width: none; }
  .amen-grid { grid-template-columns: 1fr; }

  /* Detail — full-bleed swipeable photos */
  .detail { padding-top: 0; }
  .detail-title { flex-direction: column; align-items: flex-start; gap: 0; order: 2; margin: 20px 0 0; }
  .detail-title h1 { font-size: 24px; }
  .title-actions { position: absolute; top: 12px; right: var(--gutter); z-index: 5; }
  .title-actions .text-btn { background: #fff; border-radius: 50%; width: 36px; height: 36px; justify-content: center; padding: 0; box-shadow: var(--shadow-sm); }
  .title-actions u { display: none; }
  .back-link { display: grid; position: absolute; top: 12px; left: var(--gutter); z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: #fff; place-items: center; box-shadow: var(--shadow-sm); }
  .page-detail .detail { display: flex; flex-direction: column; position: relative; }
  .page-detail .detail-title { order: 2; }
  .page-detail .detail-layout, .page-detail .detail > section { order: 3; }
  .page-detail .site-header { display: none; }
  .photo-grid {
    display: flex; height: auto; aspect-ratio: 4 / 3; margin: 0 calc(var(--gutter) * -1); border-radius: 0; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .photo-grid::-webkit-scrollbar { display: none; }
  .photo-grid .pg-item { flex: 0 0 100%; scroll-snap-align: start; }
  .show-photos { display: none; }
  .photo-wrap { order: 1; margin: 0 calc(var(--gutter) * -1); }
  .photo-wrap .photo-grid { margin: 0; }
  .photo-count { display: block; position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; pointer-events: none; }
  .detail-section { padding: 24px 0; }
  .amenities { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .review-summary { grid-template-columns: 1fr; gap: 16px; }
  .detail-map { height: 280px; }
  .host-card { grid-template-columns: 1fr 1fr; padding: 20px; }
  .lb-nav { display: none; }
  .lightbox img { max-width: 100vw; }

  .checkout, .receipt { padding-top: 16px; }
  .checkout-title h1 { font-size: 22px; }
  .summary-card { position: static; }
  .page-checkout .checkout-layout { display: flex; flex-direction: column-reverse; gap: 24px; }

  .site-footer { padding-top: 32px; }
  .footer-bottom { flex-direction: column; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--line-2);
    justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: grid; justify-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--muted); min-width: 56px; }
  .bottom-nav a i { font-size: 20px; }
  .bottom-nav a.active { color: var(--brand); }
  .page-h1 { font-size: 26px; }
  .auth-wrap { padding: 0; background: #fff; }
  .auth-card { box-shadow: none; border-radius: 0; }
  .cars-hero { padding: 24px; border-radius: 16px; }
  .host-cta-inner > div { padding: 28px; }
}

/* Print receipts cleanly */
@media print {
  .site-header, .site-footer, .bottom-nav, .toast, .btn, .back-link { display: none !important; }
  body { padding: 0; }
}
