/* ============ RentLink design system ============ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Manrope:wght@600;700;800&display=swap');
:root {
  --ink: #18243a;
  --ink-2: #3a4659;
  --muted: #737f91;
  --line: #e8ebf0;
  --line-2: #f0f2f5;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --brand: #101d35;
  --brand-600: #263b5e;
  --brand-50: #eef1f6;
  --gold-ink: #a47a3a;
  --ok: #1f7a55;
  --ok-50: #e6f4ec;
  --gold: #d9ae62;
  --gold-50: #f8f0e1;
  --coral: #e8553b;
  --coral-50: #fdecea;
  --blue: #3456a6;
  --blue-50: #e9eefa;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 29, 53, .08);
  --shadow: 0 6px 20px rgba(16, 29, 53, .08);
  --shadow-lg: 0 18px 50px rgba(16, 29, 53, .16);
  --font-head: "Manrope", "DM Sans", system-ui, sans-serif;
  --font: "DM Sans", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 72px;
  --tab-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; font-family: var(--font-head); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1280px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
main { min-height: 60vh; }

/* ============ Top nav ============ */
.topnav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line-2); }
.topnav .container { height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.05em; color: var(--brand); }
.logo .link { color: #b98d47; }
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links a, .nav-links button.link { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); background: none; border: 0; cursor: pointer; position: relative; }
.nav-links a:hover, .nav-links button.link:hover { background: var(--soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.btn { background: var(--brand); color: #fff; margin-left: .25rem; }
.nav-links a.btn:hover { background: var(--brand-600); color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar.gold { background: var(--gold); color: var(--ink); }
.avatar.lg svg.i { width: 30px; height: 30px; }
.dot-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

/* ============ Bottom tab bar (mobile, mirrors the native app) ============ */
.tabbar { display: none; }
@media (max-width: 760px) {
  .topnav .nav-links { display: none; }
  .topnav .container { justify-content: space-between; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; }
  .tabbar a svg.i { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--brand); }
  .tabbar .dot-badge { top: 6px; right: calc(50% - 22px); }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 2rem); }
}

/* ============ Buttons & forms ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 650; font-size: .95rem; padding: .8rem 1.3rem; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: #fff; cursor: pointer; transition: background .15s, transform .08s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-600); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--brand); }
.btn.gold:hover { background: #e7c27d; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: #fff; }
.btn.plain { background: none; color: var(--ink); padding-inline: .6rem; }
.btn.plain:hover { background: var(--soft); }
.btn.danger { background: #fff; color: var(--coral); border-color: #f3c7bf; }
.btn.danger:hover { background: var(--coral-50); }
.btn.sm { padding: .45rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn.lg { padding: 1rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.round { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(217,174,98,.25); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--ink); font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-error { background: var(--coral-50); color: #a5321f; padding: .7rem .9rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1rem; }
.chips-input { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips-input label { margin: 0; cursor: pointer; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .88rem; color: var(--ink); background: #fff; user-select: none; }
.chips-input input { display: none; }
.chips-input label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); font-weight: 600; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .8rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: underline; }
.card.shadow { box-shadow: var(--shadow); border-color: var(--line-2); }

/* ============ Hero & search ============ */
.hero { position: relative; padding: 3.5rem 0 2rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 420px at 92% 0%, rgba(217,174,98,.22), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(16,29,53,.08), transparent 60%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-50); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.gh-flag { width: 18px; height: 12px; border-radius: 2px; flex: none; background: linear-gradient(#ce1126 0 33.3%, #fcd116 33.3% 66.6%, #006b3f 66.6%); position: relative; }
.gh-flag::after { content: "★"; position: absolute; inset: 0; color: #000; font-size: 6px; line-height: 12px; text-align: center; }
.hero h1 .hl { color: var(--gold-ink); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--gold); opacity: .55; z-index: -1; border-radius: 4px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; }
.hero-collage { position: relative; height: 460px; }
.hero-collage img { position: absolute; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero-collage img:nth-child(1) { width: 64%; height: 78%; right: 0; top: 0; }
.hero-collage img:nth-child(2) { width: 46%; height: 52%; left: 0; bottom: 0; border: 6px solid #fff; }
.hero-badge { position: absolute; right: 6%; bottom: 4%; background: #fff; border-radius: 16px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); display: flex; gap: .7rem; align-items: center; font-size: .85rem; }
.hero-badge b { display: block; font-size: .95rem; }
.hero-badge .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.trust { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }
.trust svg.i { color: var(--brand); }

.searchbar { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); padding: .4rem; margin-top: 1.8rem; max-width: 720px; }
.searchbar .seg { padding: .35rem 1.1rem; border-right: 1px solid var(--line); min-width: 0; }
.searchbar .seg:nth-last-child(2) { border-right: 0; }
.searchbar .seg label { font-size: .72rem; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: .02em; }
.searchbar .seg input, .searchbar .seg select { border: 0; padding: 0; box-shadow: none; font-size: .92rem; color: var(--ink-2); background: transparent; border-radius: 0; text-overflow: ellipsis; }
.searchbar .go { width: 52px; height: 52px; border-radius: 50%; padding: 0; }
.searchbar .go svg.i { width: 22px; height: 22px; stroke-width: 2.4; }

/* ============ Category chips ============ */
.cats-wrap { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.cats { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; padding: .9rem 0 0; align-items: flex-end; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0 0 .75rem; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s; }
.cat svg.i { width: 26px; height: 26px; stroke-width: 1.5; }
.cat:hover { color: var(--ink); border-bottom-color: var(--line); }
.cat.active { color: var(--ink); border-bottom-color: var(--ink); }
.cats .filters-btn { margin-left: auto; margin-bottom: .6rem; flex: none; }
.filters-btn .count { background: var(--ink); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }

/* ============ Listing cards ============ */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2rem 0 1.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem 1.5rem; padding-bottom: 3rem; }
.lcard { display: block; position: relative; }
.lcard .media { position: relative; aspect-ratio: 20 / 19; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.lcard .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.lcard .slides::-webkit-scrollbar { display: none; }
.lcard .slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.lcard .nav-arrow { 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); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.lcard .nav-arrow svg.i { width: 16px; height: 16px; stroke-width: 2.5; }
.lcard .nav-arrow.prev { left: 10px; } .lcard .nav-arrow.next { right: 10px; }
.lcard:hover .nav-arrow { opacity: 1; }
.lcard .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.lcard .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); transition: background .15s, transform .15s; }
.lcard .dots i.on { background: #fff; transform: scale(1.2); }
.lcard .pill { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.lcard .pill.feat { top: 46px; background: var(--gold); color: var(--brand); display: inline-flex; align-items: center; gap: .25rem; }
.lcard .pill.feat svg.i { width: 13px; height: 13px; }
.heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.heart svg.i { width: 26px; height: 26px; fill: rgba(0,0,0,.35); stroke: #fff; stroke-width: 2; transition: transform .15s, fill .15s; }
.heart:hover svg.i { transform: scale(1.1); }
.heart.on svg.i { fill: var(--coral); }
.heart.pop svg.i { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }
.lcard .info { padding-top: .75rem; }
.lcard .loc { display: flex; justify-content: space-between; gap: .5rem; font-weight: 650; font-size: .95rem; }
.lcard .loc span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .title { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .specs { color: var(--muted); font-size: .88rem; }
.lcard .price { margin-top: .3rem; font-size: .98rem; }
.lcard .price b { font-weight: 750; }
.lcard .new { font-size: .78rem; font-weight: 700; color: var(--gold-ink); display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }

.skeleton { background: linear-gradient(90deg, var(--soft) 25%, #eceae4 37%, var(--soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; margin: 0 auto 1rem; }
.empty .ic svg.i { width: 30px; height: 30px; }
.empty h3 { color: var(--ink); font-size: 1.25rem; }

/* ============ Feature band ============ */
.band { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 3rem; margin: 2rem 0 4rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(217,174,98,.35), transparent 70%); }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.band p { color: rgba(255,255,255,.75); }
.steps { display: grid; gap: .9rem; position: relative; z-index: 1; }
.step { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: .9rem 1rem; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--brand); font-weight: 800; display: grid; place-items: center; flex: none; font-size: .85rem; }
.step b { display: block; }
.step span { color: rgba(255,255,255,.7); font-size: .88rem; }

/* ============ Listing detail ============ */
.detail-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(480px, 52vw); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.mosaic button { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--soft); }
.mosaic button img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s, transform .4s; }
.mosaic button:hover img { filter: brightness(.9); }
.mosaic button:first-child { grid-row: 1 / 3; }
.mosaic.n1 { grid-template-columns: 1fr; } .mosaic.n1 button:first-child { grid-row: auto; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .mosaic.n2 button:first-child { grid-row: auto; }
.mosaic.n3 { grid-template-columns: 2fr 1fr; }
.mosaic.n4 button:nth-child(4) { grid-column: 2 / 4; }
.mosaic .all { position: absolute; right: 16px; bottom: 16px; }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; padding: 2rem 0 4rem; align-items: start; }
.detail section + section { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.host-row { display: flex; gap: 1rem; align-items: center; }
.spec-row { display: flex; gap: .5rem; flex-wrap: wrap; color: var(--ink-2); margin-top: .25rem; }
.spec-row span + span::before { content: "·"; margin-right: .5rem; }
.highlights { display: grid; gap: 1.3rem; }
.hl-item { display: flex; gap: 1rem; align-items: flex-start; }
.hl-item svg.i { width: 26px; height: 26px; margin-top: 2px; }
.hl-item b { display: block; }
.hl-item span { color: var(--muted); font-size: .92rem; }
.amenity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.amenity-grid div { display: flex; gap: .8rem; align-items: center; }
.amenity-grid svg.i { width: 24px; height: 24px; }
.desc { white-space: pre-line; color: var(--ink-2); }
.book { position: sticky; top: calc(var(--nav-h) + 1.5rem); padding: 1.5rem; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); background: #fff; }
.book .price, #sheetPanel .price { font-size: 1.5rem; font-weight: 750; }
.book .price small, #sheetPanel .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.cost { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .5rem; font-size: .92rem; }
.cost div { display: flex; justify-content: space-between; }
.cost .total { font-weight: 750; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .2rem; }
.seg-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; margin: 1rem 0; }
.seg-tabs button { border: 0; background: none; padding: .6rem; border-radius: 9px; font-weight: 650; font-size: .88rem; cursor: pointer; color: var(--muted); }
.seg-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.notice { display: flex; gap: .6rem; align-items: flex-start; background: var(--brand-50); color: var(--brand-600); padding: .8rem .95rem; border-radius: 12px; font-size: .9rem; }
.notice svg.i { margin-top: 1px; }
.notice.warn { background: var(--gold-50); color: #7a5410; }
.notice.bad { background: var(--coral-50); color: #a5321f; }
.mobile-book { display: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font-weight: 600; cursor: pointer; font-size: inherit; display: inline-flex; gap: .35rem; align-items: center; }

/* ============ Lightbox, modal, sheet ============ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7,19,38,.96); display: flex; flex-direction: column; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; color: #fff; }
.lightbox .stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 4rem 2rem; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox .arrow.l { left: 1rem; } .lightbox .arrow.r { right: 1rem; }
.lightbox .close { background: rgba(255,255,255,.12); color: #fff; border: 0; }
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(7,19,38,.55); display: grid; place-items: center; padding: 1rem; animation: fade .15s ease; }
.modal { background: #fff; border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: var(--shadow-lg); animation: rise .2s ease; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal header h3 { margin: 0; font-size: 1.05rem; }
.modal .body { padding: 1.4rem; }
.modal footer { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
@media (max-width: 760px) {
  .modal-back { place-items: end stretch; padding: 0; }
  .modal { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; animation: slideup .25s ease; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes slideup { from { transform: translateY(100%); } }
}

/* ============ Toast ============ */
#toast { position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 200%); background: var(--ink); color: #fff; padding: .85rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 120; transition: transform .3s cubic-bezier(.2,.9,.3,1.2); max-width: calc(100vw - 2rem); font-weight: 500; display: flex; gap: .6rem; align-items: center; }
#toast.show { transform: translate(-50%, 0); }
#toast.error { background: #a5321f; }
@media (max-width: 760px) { #toast { bottom: calc(var(--tab-h) + 1rem + env(safe-area-inset-bottom)); } }

/* ============ Badges ============ */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; vertical-align: middle; }
.badge.pending, .badge.open, .badge.review { background: var(--gold-50); color: #8a5d0c; }
.badge.confirmed, .badge.approved, .badge.available, .badge.resolved { background: var(--ok-50); color: var(--ok); }
.badge.completed, .badge.rented { background: var(--blue-50); color: var(--blue); }
.badge.declined, .badge.cancelled, .badge.withdrawn, .badge.removed, .badge.banned, .badge.rejected { background: var(--coral-50); color: #a5321f; }
.badge.featured { background: var(--gold); color: var(--brand); }
.badge.success { background: var(--ok-50); color: var(--ok); }
.badge.failed { background: var(--coral-50); color: #a5321f; }
/* featured plan picker */
.plans { display: grid; gap: .6rem; margin: .4rem 0 1rem; }
.plan { display: flex; align-items: center; gap: .8rem; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.plan input { accent-color: var(--brand); width: 18px; height: 18px; }
.plan .p-name { font-weight: 700; }
.plan .p-price { margin-left: auto; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--brand); }
.badge.hidden, .badge.dismissed { background: var(--soft); color: var(--ink-2); }

/* ============ App pages (dashboard, saved, profile) ============ */
.page-head { padding: 2.2rem 0 1.2rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.stat { padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--soft); }
.stat b { font-size: 1.9rem; font-weight: 800; display: block; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat.hl { background: var(--brand); color: #fff; } .stat.hl span { color: rgba(255,255,255,.8); }
.ptabs { display: flex; gap: .4rem; margin-bottom: 1.4rem; overflow-x: auto; scrollbar-width: none; }
.ptabs button { border: 1px solid var(--line); background: #fff; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; color: var(--ink-2); display: inline-flex; gap: .4rem; align-items: center; }
.ptabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ptabs .n { background: var(--coral); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.list { display: grid; gap: 1rem; padding-bottom: 3rem; }
.item { display: grid; grid-template-columns: 148px 1fr auto; gap: 1.2rem; padding: 1rem; align-items: center; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: box-shadow .15s; }
.item:hover { box-shadow: var(--shadow); }
.item .thumb { width: 148px; height: 108px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { margin: 0 0 .25rem; font-size: 1.02rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.item .meta { color: var(--ink-2); font-size: .9rem; display: flex; gap: .35rem .9rem; flex-wrap: wrap; }
.item .meta span { display: inline-flex; gap: .35rem; align-items: center; }
.item .meta svg.i { width: 16px; height: 16px; color: var(--muted); }
.item .actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.quote { background: var(--soft); padding: .6rem .8rem; margin-top: .6rem; font-size: .9rem; color: var(--ink-2); border-radius: 10px; white-space: pre-line; }
.settings { display: grid; gap: 1.25rem; padding-bottom: 3rem; }
.settings .card h3 { margin-bottom: 1rem; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: .9rem; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line-2); width: 100%; background: none; cursor: pointer; text-align: left; font-weight: 550; }
.menu-list > :last-child { border-bottom: 0; }
.menu-list .chev { margin-left: auto; color: var(--muted); }

/* ============ Messages ============ */
.inbox { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - var(--nav-h)); border-top: 1px solid var(--line-2); }
.inbox .threads { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox .threads h2 { padding: 1.4rem 1.4rem .6rem; margin: 0; }
.thread-item { display: flex; gap: .85rem; padding: .9rem 1.4rem; cursor: pointer; align-items: center; }
.thread-item:hover { background: var(--soft); }
.thread-item.active { background: var(--brand-50); }
.thread-item img, .thread-item .ph { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft); }
.thread-item .t { min-width: 0; flex: 1; }
.thread-item .t b { display: flex; justify-content: space-between; gap: .5rem; font-size: .95rem; }
.thread-item .t b small { color: var(--muted); font-weight: 500; flex: none; }
.thread-item .t span { display: block; color: var(--muted); font-size: .85rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thread-item.unread .t span { color: var(--ink); font-weight: 600; }
.thread-item .ud { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }
.chat { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who b { display: block; }
.chat-head .who a { font-size: .85rem; color: var(--muted); text-decoration: underline; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; background: var(--soft); }
.bubble { max-width: min(560px, 78%); padding: .65rem .95rem; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); white-space: pre-wrap; word-wrap: break-word; font-size: .95rem; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.bubble:not(.mine) { border-bottom-left-radius: 6px; }
.bubble time { display: block; font-size: .7rem; opacity: .65; margin-top: .2rem; text-align: right; }
.day-sep { align-self: center; font-size: .75rem; color: var(--muted); font-weight: 600; margin: .8rem 0 .4rem; }
.composer { display: flex; gap: .6rem; padding: .8rem 1rem; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 140px; border-radius: 22px; padding: .7rem 1rem; resize: none; }
.composer .btn { border-radius: 50%; width: 46px; height: 46px; padding: 0; }
@media (max-width: 760px) {
  .inbox { grid-template-columns: 1fr; height: calc(100vh - var(--nav-h) - var(--tab-h)); }
  .inbox.open .threads { display: none; }
  .inbox:not(.open) .chat { display: none; }
}

/* ============ Auth ============ */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h)); }
.auth .art { position: relative; overflow: hidden; }
.auth .art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.auth .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,22,42,.85)); }
.auth .art .quote-card { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; color: #fff; z-index: 1; }
.auth .art .quote-card h2 { color: #fff; font-size: 1.9rem; }
.auth .form-side { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth .form-box { width: min(420px, 100%); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.2rem; }
.role-pick label { margin: 0; cursor: pointer; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem; font-weight: 500; color: var(--ink); background: #fff; transition: border-color .15s, background .15s; }
.role-pick label svg.i { width: 26px; height: 26px; color: var(--gold-ink); margin-bottom: .4rem; }
.role-pick label b { display: block; }
.role-pick label small { color: var(--muted); font-size: .8rem; }
.role-pick input { display: none; }
.role-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(16,29,53,.08); }
[hidden] { display: none !important; }
.demo { margin-top: 1.5rem; padding: .9rem 1rem; border-radius: 12px; background: var(--soft); font-size: .85rem; color: var(--ink-2); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } }

/* Sign in with Google / Facebook / phone */
.social { display: grid; gap: .6rem; margin: 1.1rem 0 .2rem; }
.social .g-slot { display: flex; justify-content: center; min-height: 44px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: var(--ink); font: 600 .93rem var(--font); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.btn-social:hover { border-color: var(--ink-2); background: var(--soft); }
.btn-social:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16,29,53,.18); }
.btn-social:disabled { opacity: .55; cursor: wait; }
.btn-social svg { width: 20px; height: 20px; flex: none; }
.btn-social.facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.btn-social.facebook:hover { background: #166fe5; border-color: #166fe5; }
.or-divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; margin: 1.1rem 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font: 700 1.6rem/1 var(--font-head); letter-spacing: .5em; text-align: center; padding-left: .5em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ============ Photo picker ============ */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-top: .8rem; }
.photo-grid .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--soft); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph .x { position: absolute; top: 6px; right: 6px; border: 0; background: rgba(0,0,0,.65); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.photo-grid .ph .x svg.i { width: 14px; height: 14px; stroke-width: 2.5; }
.photo-grid .ph .cover { position: absolute; left: 6px; bottom: 6px; background: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r); padding: 2rem 1rem; text-align: center; color: var(--muted); cursor: pointer; background: var(--soft); transition: border-color .15s, color .15s; }
.dropzone svg.i { width: 32px; height: 32px; margin: 0 auto .5rem; display: block; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); color: var(--brand); }
.form-section { padding: 1.75rem; margin-bottom: 1.25rem; }
.form-section h3 { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.form-section h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: .85rem; }

/* ============ Prose (policy pages) ============ */
.prose { padding: 2.5rem 0 4rem; color: var(--ink-2); }
.prose h1 { color: var(--ink); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { color: var(--ink); margin-top: 2rem; font-size: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--brand); text-decoration: underline; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); background: var(--soft); padding: 2.5rem 0 2rem; margin-top: 2rem; font-size: .9rem; color: var(--ink-2); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-size: .9rem; margin-bottom: .8rem; color: var(--ink); }
.footer a { display: block; padding: .2rem 0; }
.footer a:hover { text-decoration: underline; }
.footer .legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); }
.store-badges { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.store-badges span { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: 10px; font-size: .78rem; line-height: 1.15; }
.store-badges b { display: block; font-size: .92rem; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
  .detail { grid-template-columns: 1fr; gap: 0; }
  .detail .book-col { display: none; }
  .mobile-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: .8rem 1rem; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
  .mobile-book b { font-size: 1.1rem; }
  .band { grid-template-columns: 1fr; padding: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .mobile-book { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: .8rem; }
  .detail-page { padding-bottom: 80px; }
  .hero { padding: 1.5rem 0 1rem; }
  .hero .lead { font-size: 1rem; }
  .trust { display: none; }
  .searchbar { grid-template-columns: 1fr auto; border-radius: 20px; padding: .5rem; }
  .searchbar .seg.opt { display: none; }
  .searchbar .seg { border: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; height: 72vw; border-radius: 0; margin: 0 -1rem; }
  .mosaic button:not(:first-child) { display: none; }
  .mosaic button:first-child { grid-row: auto; grid-column: auto; }
  .amenity-grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: 96px 1fr; }
  .item .thumb { width: 96px; height: 96px; }
  .item .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .lightbox .stage { padding: 0 0 2rem; }
  .lightbox .arrow { display: none; }
  .footer .cols { grid-template-columns: 1fr; }
  .form-section { padding: 1.25rem; }
  .cats { gap: 1.4rem; }
}
