/* ==========================================================================
   RentSpot — design system (mobile-first)
   Brand: navy + gold from the RentSpot logo, warm off-white canvas.
   ========================================================================== */

:root {
  --navy: #1F2A56;
  --navy-2: #2C3B78;
  --navy-ink: #131A38;
  --navy-50: #EEF1FA;
  --gold: #EEC03A;
  --gold-d: #C99A2E;
  --gold-50: #FFF7DD;
  --bg: #FBF8F1;
  --surface: #FFFFFF;
  --surface-2: #F6F3EA;
  --line: #E9E4D8;
  --line-2: #DDD7C8;
  --ink: #141826;
  --ink-2: #3A3F52;
  --muted: #6E7385;
  --green: #138A4C;
  --green-50: #E8F6EE;
  --mpesa: #3BB54A;
  --red: #C0392B;
  --red-50: #FDECEA;
  --amber: #B7791F;
  --amber-50: #FDF4E1;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(20, 24, 38, .06), 0 1px 3px rgba(20, 24, 38, .05);
  --sh-2: 0 6px 18px rgba(20, 24, 38, .08), 0 2px 6px rgba(20, 24, 38, .05);
  --sh-3: 0 22px 50px rgba(20, 24, 38, .18), 0 6px 16px rgba(20, 24, 38, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); color: var(--navy-ink); }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }
:focus-visible { outline: 3px solid rgba(238, 192, 58, .7); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-50); }

.ic { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.lead { font-size: 1.08rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only, .sr-only-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.page-pad { padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 820px; }
.site-main { min-height: 60vh; }
.row-2, .row-3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 10px; margin-top: 20px; }
.row-actions.center { justify-content: center; }
.stack { display: grid; gap: 14px; }
.stack-sm { display: grid; gap: 8px; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { --bh: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bh); padding: 0 18px; border-radius: 11px; border: 1.5px solid transparent; background: none; font-weight: 600; font-size: .92rem; line-height: 1.1; white-space: nowrap; transition: background .18s, border-color .18s, color .18s, transform .12s, box-shadow .18s; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: #F4CC57; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost.danger, .btn.danger { color: var(--red); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb95a; }
.btn-sm { --bh: 34px; padding: 0 12px; font-size: .84rem; border-radius: 9px; }
.btn-lg { --bh: 50px; padding: 0 22px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-fee { margin-left: auto; padding-left: 10px; font-size: .8rem; font-weight: 600; opacity: .8; }
.btn-lg .btn-fee { background: rgba(255, 255, 255, .14); padding: 4px 9px; border-radius: 7px; opacity: 1; }
.btn-outline .btn-fee { background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.link, .link-btn { color: var(--navy); font-weight: 600; font-size: .88rem; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.link:hover, .link-btn:hover { text-decoration: underline; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink-2); transition: background .18s; }
.icon-btn:hover, .icon-btn.is-active { background: var(--surface-2); color: var(--navy); }
.icon-btn .ic { width: 20px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand img { height: 34px; width: auto; }
.nav-links { display: none; gap: 4px; }
.nav-link { padding: 8px 12px; border-radius: 9px; font-weight: 550; font-size: .9rem; color: var(--ink-2); }
.nav-link:hover { background: var(--surface-2); }
.nav-link.is-active { color: var(--navy); background: var(--navy-50); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.menu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 40px; background: var(--surface); margin-left: 4px; }
.avatar-btn:hover { box-shadow: var(--sh-1); }
.avatar-btn .ic { width: 15px; height: 15px; color: var(--muted); }
.avatar-name { font-weight: 600; font-size: .86rem; display: none; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .78rem; flex-shrink: 0; letter-spacing: .02em; }
.avatar-sm { width: 36px; height: 36px; background: var(--surface-2); color: var(--navy); }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 84px; height: 84px; font-size: 1.6rem; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s var(--ease); z-index: 60; }
.menu.is-open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.menu-head span { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.menu-panel a, .menu-panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 0; background: none; font-size: .9rem; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-panel .ic { color: var(--muted); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .avatar-name { display: inline; }
}

/* ── Flash & toasts ──────────────────────────────────────────────────────── */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(560px, calc(100% - 24px)); }
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--navy-ink); color: #fff; box-shadow: var(--sh-3); font-weight: 500; animation: drop .35s var(--ease); }
.flash-err { background: var(--red); }
.flash .ic { color: var(--gold); }
.flash.is-leaving { opacity: 0; transform: translateY(-8px); transition: .3s; }
.toast-stack { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--navy-ink); color: #fff; font-weight: 500; font-size: .9rem; box-shadow: var(--sh-3); animation: rise .3s var(--ease); pointer-events: auto; }
.toast .ic { color: var(--gold); }
.toast-err { background: var(--red); }
.toast-err .ic { color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 900px) { .toast-stack { bottom: 28px; } }

/* ── Hero & search ───────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 36px 0 30px; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 400px at 85% -10%, rgba(238, 192, 58, .28), transparent 60%),
  radial-gradient(700px 380px at -10% 120%, rgba(90, 120, 220, .35), transparent 60%),
  linear-gradient(160deg, #1F2A56 0%, #18214A 60%, #141B3D 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.hero-inner { position: relative; }
.hero-title { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); line-height: 1.12; max-width: 760px; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub { margin-top: 10px; color: rgba(255, 255, 255, .78); max-width: 560px; font-size: 1rem; }
.search { margin-top: 22px; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 8px; box-shadow: 0 18px 48px rgba(0, 0, 0, .3); }
.search-field { display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; transition: background .15s; cursor: text; min-width: 0; }
.search-field:hover, .search-field:focus-within { background: var(--surface-2); }
.search-where { grid-column: 1 / -1; }
.search-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.search-input { display: flex; align-items: center; gap: 8px; }
.search-input .ic { color: var(--muted); width: 17px; height: 17px; }
.search-field input, .search-field select { width: 100%; border: 0; background: none; outline: none; padding: 2px 0; font-size: .95rem; font-weight: 550; min-width: 0; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.search-field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E7385' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center no-repeat; padding-right: 18px; }
.search-go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 12px; background: var(--gold); color: var(--navy-ink); font-weight: 700; font-size: 1rem; transition: background .15s, transform .1s; }
.search-go:hover { background: #F4CC57; }
.search-go:active { transform: scale(.99); }
@media (min-width: 820px) {
  .hero { padding: 64px 0 56px; }
  .search { grid-template-columns: 1.6fr 1fr 1fr auto; align-items: center; border-radius: 999px; padding: 8px 8px 8px 14px; }
  .search-where { grid-column: auto; }
  .search-field { border-radius: 999px; padding: 8px 18px; position: relative; }
  .search-field + .search-field::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
  .search-go { grid-column: auto; height: 56px; width: 56px; border-radius: 50%; padding: 0; }
  .search-go span { display: none; }
  .search-go .ic { width: 22px; height: 22px; }
}
@media (min-width: 1100px) { .search-go { width: auto; padding: 0 26px; border-radius: 999px; } .search-go span { display: inline; } }

/* ── Chips bar ───────────────────────────────────────────────────────────── */
.chips-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(251, 248, 241, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chips-inner { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 24px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; scroll-snap-align: start; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: .86rem; font-weight: 550; color: var(--ink-2); transition: .15s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-btn { flex-shrink: 0; }
.count-pill { background: var(--navy); color: #fff; font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }

/* ── Results & grid ──────────────────────────────────────────────────────── */
.results { padding-top: 22px; padding-bottom: 32px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-ink); }
.sort select, .toolbar select, .toolbar input { height: 38px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 0 12px; font-size: .86rem; font-weight: 550; }
.grid { display: grid; gap: 22px 18px; grid-template-columns: minmax(0, 1fr); transition: opacity .2s; }
.grid.is-loading { opacity: .45; pointer-events: none; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 8px; }
.empty-sm { padding: 24px 8px; }
.empty-art { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-d); margin-bottom: 6px; }
.empty-art .ic { width: 28px; height: 28px; }
.empty .btn { margin-top: 8px; }

/* ── Listing card ────────────────────────────────────────────────────────── */
.card { position: relative; display: flex; flex-direction: column; animation: fade .4s var(--ease) both; }
.card-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); isolation: isolate; }
.strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip-item { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.strip-item picture, .strip-item img { width: 100%; height: 100%; }
.strip-item img, .gallery-item img, .mgallery-item img, .lrow-media img, .row-thumb, .mini-thumb img { object-fit: cover; background-size: cover; background-position: center; }
img.is-loaded { background-image: none !important; }
.card:hover .strip-item img { transform: scale(1.025); }
.strip-item img { transition: transform .6s var(--ease); }
.strip-nav { position: absolute; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-2); opacity: 0; transition: opacity .2s, transform .15s; z-index: 2; }
.strip-nav:hover { transform: scale(1.06); }
.strip-nav .ic { width: 16px; height: 16px; }
.strip-nav.prev { left: 10px; }
.strip-nav.next { right: 10px; }
.card-media:hover .strip-nav, .card-media:focus-within .strip-nav { opacity: 1; }
.strip-nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .strip-nav { display: none; } }
.strip-dots { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; display: flex; gap: 5px; z-index: 2; pointer-events: none; }
.strip-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: .2s; box-shadow: 0 0 2px rgba(0, 0, 0, .3); }
.strip-dots i.on { background: #fff; width: 7px; height: 7px; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.pill .ic { width: 13px; height: 13px; }
.pill-gold { background: var(--gold); color: var(--navy-ink); }
.pill-navy { background: var(--navy); color: #fff; }
.pill-dark { background: var(--navy-ink); color: #fff; }
.save-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--sh-1); transition: transform .15s; }
.save-btn:hover { transform: scale(1.08); }
.save-btn .ic { width: 19px; height: 19px; }
.save-btn.is-saved, .save-inline.is-saved { color: #E0344B; }
.save-btn.is-saved .ic, .save-inline.is-saved .ic { fill: currentColor; }
.save-btn.pop .ic { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.card-body { display: grid; gap: 4px; padding: 12px 2px 0; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-loc { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); font-weight: 500; min-width: 0; }
.card-loc .ic { width: 14px; height: 14px; }
.card-rating { display: flex; align-items: center; gap: 3px; font-size: .82rem; font-weight: 600; }
.card-rating .ic { width: 14px; height: 14px; fill: var(--gold); stroke: var(--gold-d); }
.card-title { font-size: 1rem; font-weight: 650; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body:hover .card-title { color: var(--navy); }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--ink-2); }
.card-specs span { display: inline-flex; align-items: center; gap: 4px; }
.card-specs .ic { width: 14px; height: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.price { font-size: 1.12rem; font-weight: 750; color: var(--navy-ink); letter-spacing: -.01em; }
.price small { font-size: .78rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--green); background: var(--green-50); padding: 3px 8px; border-radius: 999px; }
.verified .ic { width: 13px; height: 13px; }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--line-2); background: linear-gradient(135deg, var(--surface-2), #ECE7DA); }
.img-placeholder .ic { width: 36px; height: 36px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ── Trust band ──────────────────────────────────────────────────────────── */
.trust { display: grid; gap: 14px; padding-bottom: 56px; }
.trust-item { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.trust-item h3 { margin-bottom: 2px; }
.trust-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); flex-shrink: 0; }
@media (min-width: 820px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span:first-child, .field .label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea, .pw input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--surface); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .pw input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31, 42, 86, .1); }
.field input:disabled { background: var(--surface-2); color: var(--muted); }
.field-err { color: var(--red); font-size: .8rem; font-weight: 500; }
.field-err:empty { display: none; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--red); }
.hint { font-size: .78rem; color: var(--muted); }
.form-error { color: var(--red); font-weight: 500; font-size: .88rem; background: var(--red-50); padding: 10px 12px; border-radius: 10px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.fgroup { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fgroup legend { font-weight: 650; font-size: .92rem; margin-bottom: 10px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: .88rem; font-weight: 550; transition: .15s; }
.seg input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(238, 192, 58, .7); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; }
.check span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: .88rem; cursor: pointer; transition: .15s; }
.check span .ic { color: var(--muted); width: 17px; height: 17px; }
.check input:checked + span { border-color: var(--navy); background: var(--navy-50); color: var(--navy); font-weight: 600; }
.check input:checked + span .ic { color: var(--navy); }
.check input:focus-visible + span { outline: 3px solid rgba(238, 192, 58, .7); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 550; margin-top: 6px; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background .2s; }
.toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--navy); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid rgba(238, 192, 58, .7); outline-offset: 2px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 16px; }
.alert-err { background: var(--red-50); color: #8E2318; }
.alert-warn { background: var(--amber-50); color: #7A4F0E; }
.alert .ic { margin-top: 2px; }

/* ── Sheet (filters) ─────────────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 35, .45); animation: fadein .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--sh-3); animation: slideup .3s var(--ease); }
.sheet-head, .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2, .modal-head h2 { font-size: 1.1rem; }
.sheet-body { overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .sheet-panel { left: 50%; top: 50%; bottom: auto; width: 640px; max-height: 84vh; translate: -50% -50%; border-radius: var(--r-xl); animation: zoomin .25s var(--ease); }
}
@keyframes fadein { from { opacity: 0; } }
@keyframes slideup { from { transform: translateY(100%); } }
@keyframes zoomin { from { opacity: 0; scale: .96; } }

/* ── Modal (<dialog>) ────────────────────────────────────────────────────── */
.modal { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; margin: auto auto 0; overflow: visible; }
.modal::backdrop { background: rgba(15, 18, 35, .5); animation: fadein .2s; }
.modal[open] { display: flex; }
.modal-panel { width: 100%; max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--sh-3); animation: slideup .3s var(--ease); overflow: hidden; }
.modal-body { padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; }
.modal-body .fgroup { margin: 0; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 720px) {
  .modal { width: 560px; margin: auto; }
  .modal-panel { border-radius: var(--r-xl); animation: zoomin .25s var(--ease); max-height: 88vh; }
}
.mini-listing { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.mini-listing > div { display: grid; min-width: 0; }
.mini-listing strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-thumb, .mini-listing picture { width: 64px; height: 48px; border-radius: 8px; flex-shrink: 0; overflow: hidden; }
.mini-listing img { width: 64px; height: 48px; object-fit: cover; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 62px; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; padding: 8px 0; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; transition: .15s; }
.day b { font-size: 1.2rem; color: var(--ink); text-transform: none; }
.day:hover { border-color: var(--navy); }
.day.is-on { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .75); }
.day.is-on b { color: #fff; }
.day.more { color: var(--navy); }

/* ── Payment flow ────────────────────────────────────────────────────────── */
.pay { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 6px 0; }
.pay-amount { font-size: 2rem; font-weight: 800; color: var(--navy-ink); letter-spacing: -.02em; }
.pay-for { color: var(--muted); font-size: .9rem; margin-top: -10px; }
.pay-phone-field { width: 100%; text-align: left; }
.pay-phone-input { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.pay-phone-input:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31, 42, 86, .1); }
.pay-phone-input .cc { padding: 0 12px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); align-self: stretch; display: grid; place-items: center; background: var(--surface-2); }
.pay-phone-input input { flex: 1; border: 0; outline: 0; padding: 14px; font-size: 1.1rem; font-weight: 600; letter-spacing: .03em; min-width: 0; background: none; }
.mpesa-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--mpesa); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
.mpesa-badge b { font-weight: 800; }
.pay-note { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; justify-content: center; }
.pay-note .ic { width: 14px; height: 14px; }
.pay-wait { display: grid; justify-items: center; gap: 10px; }
.pay-ring { position: relative; width: 96px; height: 96px; }
.pay-ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.pay-ring circle { fill: none; stroke-width: 6; }
.pay-ring .track { stroke: var(--surface-2); }
.pay-ring .prog { stroke: var(--mpesa); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.pay-ring .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mpesa); }
.pay-ring .ph .ic { width: 34px; height: 34px; animation: buzz 1.6s ease-in-out infinite; }
@keyframes buzz { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-9deg); } 80% { transform: rotate(9deg); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(5deg); } }
.pay-steps { display: grid; gap: 6px; text-align: left; font-size: .88rem; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; width: 100%; }
.pay-steps li { display: flex; gap: 8px; }
.pay-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: s; }
.pay-steps li::before { counter-increment: s; content: counter(s); flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.pay-result-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; }
.pay-result-ic .ic { width: 38px; height: 38px; stroke-width: 2.5; }
.pay-ok .pay-result-ic { background: var(--green-50); color: var(--green); animation: popin .45s var(--ease); }
.pay-ok .pay-result-ic .ic path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s forwards; }
.pay-bad .pay-result-ic { background: var(--red-50); color: var(--red); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.receipt { width: 100%; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: .88rem; text-align: left; }
.receipt div { display: flex; justify-content: space-between; gap: 10px; }
.receipt span { color: var(--muted); }
/* simulated handset */
.sim { width: 100%; border-radius: 18px; background: #0F1324; color: #fff; padding: 14px; text-align: left; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sim-top { display: flex; justify-content: space-between; font-size: .72rem; opacity: .6; margin-bottom: 10px; }
.sim-card { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px; }
.sim-card p { font-size: .88rem; margin-bottom: 10px; }
.sim-pin { width: 100%; letter-spacing: .6em; text-align: center; font-size: 1.2rem; padding: 10px; border: 1.5px solid var(--line-2); border-radius: 10px; margin-bottom: 10px; }
.sim-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim-more { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sim-more button { background: rgba(255, 255, 255, .08); border: 0; color: rgba(255, 255, 255, .75); padding: 5px 10px; border-radius: 8px; font-size: .74rem; }
.sim-more button:hover { background: rgba(255, 255, 255, .16); }
.sim-label { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); background: var(--amber-50); padding: 4px 9px; border-radius: 999px; }

/* ── Property page ───────────────────────────────────────────────────────── */
.owner-bar { background: var(--navy-50); border-bottom: 1px solid #DCE1F2; font-size: .88rem; }
.owner-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.owner-inner > span:first-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.owner-actions { display: flex; gap: 6px; }
.prop { padding-top: 14px; padding-bottom: 40px; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs .ic { width: 13px; height: 13px; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.prop-title { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.1rem); }
.prop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.prop-meta > span, .prop-meta > a { display: inline-flex; align-items: center; gap: 5px; }
.prop-meta .ic { width: 16px; height: 16px; }
.prop-rating { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prop-rating .ic { fill: var(--gold); stroke: var(--gold-d); }
.prop-tools { display: none; gap: 4px; }
.save-inline .ic { transition: .2s; }
@media (min-width: 820px) { .prop-tools { display: flex; } }

.gallery { display: none; }
.mgallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; aspect-ratio: 4 / 3; max-height: 62vh; background: var(--surface-2); }
.mgallery::-webkit-scrollbar { display: none; }
.mgallery-item { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; border: 0; padding: 0; background: none; height: 100%; }
.mgallery-item picture, .mgallery-item img { width: 100%; height: 100%; }
.mgallery-count { position: relative; margin: -40px 12px 22px auto; width: max-content; background: rgba(15, 18, 35, .7); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; right: 0; z-index: 2; backdrop-filter: blur(4px); }
@media (min-width: 820px) {
  .mgallery, .mgallery-count { display: none; }
  .gallery { position: relative; display: grid; gap: 8px; height: min(56vh, 520px); border-radius: var(--r-xl); overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery-item { border: 0; padding: 0; background: var(--surface-2); overflow: hidden; position: relative; cursor: zoom-in; }
  .gallery-item picture, .gallery-item img { width: 100%; height: 100%; transition: transform .5s var(--ease), filter .2s; }
  .gallery-item:hover img { transform: scale(1.03); filter: brightness(.92); }
  .gi-0 { grid-row: 1 / 3; }
  .gallery-n1 { grid-template-columns: 1fr; }
  .gallery-n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .gallery-n2 .gi-0 { grid-row: auto; }
  .gallery-n3 { grid-template-columns: 2fr 1fr; }
  .gallery-n4 { grid-template-columns: 2fr 1fr 1fr; }
  .gallery-n4 .gi-3 { grid-column: 2 / 4; }
  .gallery-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--ink); background: #fff; font-weight: 600; font-size: .86rem; box-shadow: var(--sh-2); }
  .gallery-all:hover { background: var(--surface-2); }
  .gallery-empty { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
}

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 4px; }
@media (min-width: 980px) { .prop-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; margin-top: 30px; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.fact { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fact .ic { color: var(--navy); width: 22px; height: 22px; }
.fact div { display: grid; line-height: 1.25; }
.fact strong { font-size: .95rem; }
.fact span { font-size: .76rem; color: var(--muted); }
.block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 1.25rem; margin-bottom: 14px; font-family: var(--font-display); color: var(--navy-ink); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h2 { margin: 0; }
.prose { font-size: 1rem; color: var(--ink-2); line-height: 1.7; }
.clamp { max-height: 10.2em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.clamp.is-open { max-height: none; mask-image: none; -webkit-mask-image: none; }
.link-btn { margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn .ic { width: 15px; height: 15px; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; }
.amenities li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.amenities .ic { width: 22px; height: 22px; color: var(--navy); }
.loc-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy-50), #F7F4EC); border: 1px solid var(--line); }
.loc-card p { margin-top: 4px; font-size: .88rem; }
.loc-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars span { color: var(--line-2); display: inline-flex; }
.stars .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .on, .stars .half { color: var(--gold); }
.stars .half { opacity: .55; }
.stars-sm .ic { width: 13px; height: 13px; }
.big-rating { display: inline-flex; align-items: center; gap: 8px; }
.big-rating strong { font-size: 1.15rem; }
.reviews { display: grid; gap: 14px; }
@media (min-width: 720px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-head > div { display: grid; line-height: 1.25; margin-right: auto; }
.review p { color: var(--ink-2); font-size: .94rem; }
.card-box { margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate-input input { position: absolute; opacity: 0; width: 0; }
.rate-input label { cursor: pointer; color: var(--line-2); padding: 2px; }
.rate-input label .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; transition: transform .12s; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: var(--gold); }
.rate-input label:hover .ic { transform: scale(1.12); }
.rate-input input:focus-visible + label { outline: 3px solid rgba(238, 192, 58, .7); border-radius: 6px; }
.agent-card { display: flex; gap: 14px; align-items: center; }
.agent-info { display: grid; gap: 2px; }
.agent-name { font-weight: 700; font-size: 1.05rem; }
.agent-name:hover { color: var(--navy); text-decoration: underline; }
.agent-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.agent-bio { margin-top: 14px; }

.prop-side { position: relative; }
.book-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); display: grid; gap: 14px; }
.book-price strong { font-size: 1.7rem; font-weight: 800; color: var(--navy-ink); letter-spacing: -.02em; }
.book-price span { color: var(--muted); margin-left: 3px; }
.book-sub { font-size: .86rem; margin-top: -10px; }
.book-points { list-style: none; padding: 14px 0 0; margin: 0; display: grid; gap: 8px; font-size: .84rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.book-points li { display: flex; gap: 8px; align-items: flex-start; }
.book-points .ic { width: 16px; height: 16px; color: var(--green); margin-top: 2px; }
.note { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: .86rem; }
.note > div { display: grid; }
.note-ok { background: var(--green-50); color: #0E5A33; }
.note .ic { margin-top: 2px; }
.contact-revealed { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--green-50); animation: fade .4s var(--ease); }
.contact-who { display: flex; gap: 10px; align-items: center; }
.contact-who > div { display: grid; line-height: 1.25; }
.contact-who .ic { color: var(--green); }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contact-actions .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.contact-actions .btn-ghost { grid-column: 1 / -1; justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
.similar h2 { margin-bottom: 18px; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + var(--safe-b)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.mobile-cta > div { white-space: nowrap; }
.mobile-cta strong { font-size: 1.15rem; font-weight: 800; }
.mobile-cta span { color: var(--muted); font-size: .82rem; }
.page-property .tabbar { display: none; }
.page-property .site-footer { padding-bottom: 90px; }
@media (min-width: 980px) { .mobile-cta { display: none; } .page-property .site-footer { padding-bottom: 0; } }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 300; background: #0B0E1A; color: #fff; display: flex; flex-direction: column; animation: fadein .2s; touch-action: pan-y; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.lb-top .icon-btn { color: #fff; }
.lb-top .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.lb-count { font-size: .9rem; font-weight: 600; opacity: .8; }
.lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0 0 8px; }
.lb-slide picture { width: 100%; height: 100%; display: grid; place-items: center; }
.lb-slide img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; background-size: cover; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: none; place-items: center; }
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-thumbs { display: flex; gap: 6px; justify-content: center; padding: 8px 12px calc(12px + var(--safe-b)); overflow-x: auto; scrollbar-width: none; }
.lb-thumbs button { flex: 0 0 auto; width: 56px; height: 40px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .55; padding: 0; background: #222; transition: .15s; }
.lb-thumbs button.on { opacity: 1; border-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 720px) { .lb-nav { display: grid; } }

/* ── Auth ────────────────────────────────────────────────────────────────── */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; place-items: start center; padding: 28px 16px 64px; background: radial-gradient(800px 400px at 50% -10%, var(--gold-50), transparent 70%); }
@media (min-width: 640px) { .auth { place-items: center; } }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--sh-2); padding: 28px 22px; display: grid; gap: 14px; }
@media (min-width: 640px) { .auth-card { padding: 36px; } }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--navy); font-weight: 600; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { position: relative; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick span { display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: .15s; height: 100%; }
.role-pick .ic { color: var(--navy); margin-bottom: 4px; }
.role-pick strong { font-size: .92rem; }
.role-pick em { font-style: normal; font-size: .76rem; color: var(--muted); }
.role-pick input:checked + span { border-color: var(--navy); background: var(--navy-50); box-shadow: 0 0 0 3px rgba(31, 42, 86, .08); }
.role-pick input:focus-visible + span { outline: 3px solid rgba(238, 192, 58, .7); }
.demo-box { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.demo-box summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.demo-list { display: grid; gap: 6px; margin-top: 8px; }
.demo-list .chip { text-align: left; }

/* ── Content pages ───────────────────────────────────────────────────────── */
.page-head { margin-bottom: 22px; display: grid; gap: 6px; }
.section-title { font-family: var(--font-display); font-size: 1.35rem; margin: 34px 0 16px; color: var(--navy-ink); }
.steps { display: grid; gap: 14px; margin-top: 10px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-ink); display: grid; place-items: center; font-weight: 800; }
.price-table { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row > div { display: grid; }
.price-row b { font-size: 1.1rem; color: var(--navy); white-space: nowrap; }
.cta-band { margin-top: 36px; padding: 24px; border-radius: var(--r-xl); background: var(--navy); color: #fff; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h3 { font-size: 1.2rem; }
.cta-band .muted { color: rgba(255, 255, 255, .7); }
.cta-band .btn-primary { background: var(--gold); color: var(--navy-ink); }
.error-page { padding-top: 80px; display: grid; justify-items: center; gap: 8px; }
.error-code { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.agent-hero { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.agent-hero > div { flex: 1; min-width: 240px; display: grid; gap: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.back-link:hover { color: var(--navy); }
.back-link .ic { width: 15px; height: 15px; }

/* ── Panels, badges, tables ──────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
@media (min-width: 640px) { .panel { padding: 22px; } }
.panel > h2 { margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-navy { background: var(--navy-50); color: var(--navy); }
.badge-grey { background: var(--surface-2); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 4px 4px; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-align: left; flex-shrink: 0; }
  .table td:not([data-label])::before { content: none; }
}

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.page-dashboard { background: #F7F5EF; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; padding-bottom: 64px; }
@media (min-width: 1040px) { .dash { grid-template-columns: 264px minmax(0, 1fr); gap: 28px; padding-top: 28px; } }
.dash-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.dash-main > * { margin: 0; }

/* Sidebar */
.dash-side { min-width: 0; }
@media (max-width: 1039px) { .dash-side:not(:has(.side-note)) { display: none; } }
.side-card { display: grid; gap: 4px; }
.side-user, .side-foot, .side-label { display: none; }
.side-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.side-nav::-webkit-scrollbar { display: none; }
.side-nav a { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; font-weight: 560; font-size: .88rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: background .15s, color .15s; }
.side-nav a .ic { width: 18px; height: 18px; color: var(--muted); }
.side-nav a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.side-nav a.is-active .ic { color: var(--gold); }
.nav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; margin-left: auto; }
.nav-count.soft { background: var(--gold); color: var(--navy-ink); }
@media (min-width: 1040px) {
  .dash-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--sh-1); }
  .side-user { display: flex; gap: 12px; align-items: center; padding: 8px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .side-user > div { display: grid; gap: 3px; min-width: 0; }
  .side-user strong { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 6px; }
  .side-nav { flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; }
  .side-nav a { border: 0; background: none; border-radius: 12px; padding: 10px 12px; }
  .side-nav a:hover { background: var(--surface-2); color: var(--ink); }
  .side-nav a.is-active { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(31, 42, 86, .22); }
  .side-nav a.is-active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
  .side-foot { display: grid; gap: 10px; padding: 14px 4px 4px; margin-top: 10px; border-top: 1px solid var(--line); }
  .side-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: .8rem; color: var(--ink-2); }
  .side-help .ic { color: var(--navy); margin-top: 1px; }
  .side-help a { color: var(--navy); font-weight: 600; }
}
.role-chip { display: inline-flex; align-items: center; gap: 5px; width: max-content; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--navy-50); color: var(--navy); }
.role-chip .ic { width: 12px; height: 12px; }
.role-chip.gold { background: var(--gold-50); color: #8A6512; }
.side-note { display: flex; gap: 8px; font-size: .8rem; padding: 10px 12px; border-radius: 12px; background: var(--amber-50); color: #7A4F0E; margin: 4px 0 8px; }
.side-note .ic { width: 16px; height: 16px; margin-top: 1px; }

/* Page heading */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dash-head > div { display: grid; gap: 4px; }
.dash-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* Welcome banner */
.welcome { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 24px; border-radius: 24px; color: #fff; background:
  radial-gradient(520px 260px at 100% 0%, rgba(238, 192, 58, .30), transparent 65%),
  radial-gradient(420px 260px at 0% 120%, rgba(110, 140, 235, .35), transparent 60%),
  linear-gradient(135deg, #22306A 0%, #1A2452 55%, #141B3D 100%); box-shadow: 0 18px 40px rgba(20, 27, 61, .25); }
.welcome::after { content: ''; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { color: rgba(255, 255, 255, .62); }
.welcome h1 { color: #fff; font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); margin: 4px 0 6px; }
.welcome p { color: rgba(255, 255, 255, .82); max-width: 560px; }
.welcome p strong { color: #fff; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.welcome .btn-gold { box-shadow: 0 4px 14px rgba(238, 192, 58, .35); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.welcome-side { display: grid; gap: 10px; align-content: center; }
.glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 14px; backdrop-filter: blur(6px); }
.glass-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.glass-stat { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.glass-stat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.glass-stat span { font-size: .74rem; color: rgba(255, 255, 255, .7); line-height: 1.3; }
.glass-stat.hot { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
.glass-stat.hot span { color: rgba(19, 26, 56, .75); }
.task-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.task-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: .86rem; transition: background .15s; }
.task-chip:hover { background: rgba(255, 255, 255, .2); }
.task-chip b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--gold); color: var(--navy-ink); font-size: .75rem; }
.task-chip.done b { background: rgba(255, 255, 255, .2); color: #fff; }
.next-card { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; color: #fff; }
.next-card picture, .next-card .img-placeholder { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; }
.next-card img { width: 76px; height: 76px; object-fit: cover; }
.next-card > div { display: grid; gap: 2px; min-width: 0; }
.next-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-card .when { font-size: .8rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.next-card span { font-size: .84rem; color: rgba(255, 255, 255, .72); }
.welcome-search { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: 14px; }
.welcome-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 10px; font-size: .95rem; color: var(--ink); background: none; }
@media (min-width: 900px) { .welcome { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); padding: 30px 32px; align-items: center; } }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.kpi { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; min-width: 0; }
@media (min-width: 640px) { .kpi { padding: 18px 20px; } }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kpi-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.kpi-ic .ic { width: 18px; height: 18px; }
.tone-navy { background: var(--navy-50); color: var(--navy); }
.tone-gold { background: var(--gold-50); color: #9A7213; }
.tone-green { background: var(--green-50); color: var(--green); }
.tone-rose { background: #FDEEF0; color: #C23350; }
.tone-sky { background: #E9F3FB; color: #1F6FA8; }
.kpi-value { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; color: var(--navy-ink); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-weight: 700; font-size: .74rem; }
.delta .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.delta.up { background: var(--green-50); color: var(--green); }
.delta.down { background: var(--red-50); color: var(--red); }
.delta.flat { background: var(--surface-2); color: var(--muted); }
.kpi.attention { border-color: #F1D27E; background: linear-gradient(180deg, #FFFBEC, #fff 70%); }

/* Grid of panels */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 1100px) {
  .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: 1 / -1; }
}
.dash-grid > .panel { margin: 0; }
.panel { border-radius: 20px; box-shadow: var(--sh-1); }
.panel-head h2 { font-size: 1.02rem; }
.panel-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.panel-head > div { display: grid; }

/* Charts */
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-total { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-ink); line-height: 1.15; }
.chart-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.range { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); gap: 2px; }
.range button { border: 0; background: none; padding: 6px 11px; border-radius: 8px; font-size: .78rem; font-weight: 650; color: var(--muted); }
.range button.on { background: var(--surface); color: var(--navy-ink); box-shadow: var(--sh-1); }
.chart { position: relative; height: 230px; margin: 0 -4px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: #ECE8DE; stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.chart-tip { position: absolute; top: 0; pointer-events: none; background: var(--navy-ink); color: #fff; border-radius: 10px; padding: 7px 10px; font-size: .78rem; line-height: 1.35; white-space: nowrap; box-shadow: var(--sh-2); transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; }
.chart-tip b { display: block; font-size: .92rem; }
.chart-tip.on { opacity: 1; }

/* Horizontal bars (by product, funnel, top listings) */
.hbars { display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.toplist li > * { min-width: 0; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.hbar-top span:first-child { color: var(--ink-2); font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-top b { color: var(--navy-ink); white-space: nowrap; }
.hbar-top em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 6px; }
.hbar-track { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 6px; background: var(--navy); min-width: 4px; transform-origin: left; animation: grow .7s var(--ease) both; }
.hbar-fill.soft { background: #8E9BC9; }
@keyframes grow { from { transform: scaleX(0); } }
.funnel .hbar:nth-child(2) .hbar-fill { opacity: .85; }
.funnel .hbar:nth-child(3) .hbar-fill { opacity: .7; }
.funnel .hbar:nth-child(4) .hbar-fill { opacity: .55; }
.conv { font-size: .74rem; color: var(--muted); }

/* Payment outcome stacked bar */
.statbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--surface); margin: 6px 0 14px; }
.statbar span { display: block; height: 100%; }
.st-paid { background: var(--green); }
.st-pending { background: #D9A42B; }
.st-failed { background: var(--red); }
.st-cancelled { background: #9AA0AE; }
.st-expired { background: #C9CDD6; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend b { margin-left: auto; color: var(--navy-ink); }
.legend em { font-style: normal; color: var(--muted); min-width: 38px; text-align: right; }

/* Activity feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 10px 0; align-items: start; }
.feed li:not(:last-child)::before { content: ''; position: absolute; left: 16.5px; top: 44px; bottom: -4px; width: 1px; background: var(--line); }
.feed-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.feed-ic .ic { width: 16px; height: 16px; }
.feed div { display: grid; min-width: 0; font-size: .88rem; }
.feed div span { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed time { font-size: .76rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }

/* Mini listing tiles (saved scroller, top listings) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
@media (min-width: 640px) { .scroller { grid-auto-columns: calc((100% - 12px) / 2); } }
@media (min-width: 1100px) { .scroller { grid-auto-columns: calc((100% - 24px) / 3); } }
.mini > span:not(.mini-media) { display: grid; min-width: 0; }
.mini { scroll-snap-align: start; display: grid; gap: 8px; min-width: 0; }
.mini-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.mini-media picture, .mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-media .pill { position: absolute; left: 8px; top: 8px; }
.mini b { font-size: .92rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini span { font-size: .8rem; color: var(--muted); }
.mini .price { font-size: .95rem; }
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.toplist li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.toplist picture, .toplist .img-placeholder { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.toplist img { width: 56px; height: 56px; object-fit: cover; }
.toplist .hbar-track { height: 7px; }

/* Agenda rows (viewings / requests) */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agenda-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.agenda-item:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.agenda-item.is-hidden { display: none; }
.agenda-date { width: 58px; text-align: center; border-radius: 14px; background: var(--navy-50); padding: 8px 0 7px; display: grid; line-height: 1.1; align-self: start; }
.agenda-date small { font-size: .66rem; text-transform: uppercase; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.agenda-date b { font-size: 1.4rem; color: var(--navy); }
.agenda-item.is-past .agenda-date { background: var(--surface-2); }
.agenda-item.is-past .agenda-date b { color: var(--muted); }
.agenda-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.agenda-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agenda-title strong, .agenda-title a { font-weight: 650; }
.agenda-title a:hover { color: var(--navy); text-decoration: underline; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); }
.agenda-meta span { display: inline-flex; align-items: center; gap: 5px; }
.agenda-meta .ic { width: 14px; height: 14px; }
.agenda-prop { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.agenda-prop picture, .agenda-prop .img-placeholder { width: 48px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.agenda-prop img { width: 48px; height: 36px; object-fit: cover; }
.agenda-prop span { font-size: .84rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 760px) {
  .agenda-item { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .agenda-actions { grid-column: auto; justify-content: flex-end; max-width: 280px; }
}

/* Filter tabs with counts */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 0; background: none; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .is-on { background: var(--navy); color: #fff; }
.tabs i { font-style: normal; font-size: .72rem; min-width: 20px; padding: 1px 6px; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); text-align: center; }
.tabs .is-on i { background: rgba(255, 255, 255, .18); color: #fff; }

/* Transactions */
.txns { list-style: none; margin: 0; padding: 0; display: grid; }
.txn { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.txn:last-child { border-bottom: 0; }
.txn-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.txn-ic .ic { width: 18px; height: 18px; }
.txn-main { display: grid; gap: 2px; min-width: 0; }
.txn-main strong { font-size: .92rem; }
.txn-main span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-side { display: grid; justify-items: end; gap: 4px; text-align: right; }
.txn-side b { font-size: .98rem; color: var(--navy-ink); white-space: nowrap; }
.txn-side b.void { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.copy { border: 0; background: var(--surface-2); border-radius: 7px; padding: 2px 7px; font: 600 .74rem ui-monospace, Menlo, Consolas, monospace; color: var(--ink-2); cursor: copy; }
.copy:hover { background: var(--navy-50); color: var(--navy); }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.summary .kpi { padding: 14px 16px; }
.summary .kpi-value { font-size: 1.3rem; }
@media (max-width: 560px) { .summary { grid-template-columns: 1fr 1fr; } .summary .kpi:first-child { grid-column: 1 / -1; } }

/* Notifications */
.notif-day { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 16px 4px 4px; }
.notif-day:first-child { padding-top: 0; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px; border-radius: 14px; align-items: start; transition: background .15s; }
.notif:hover { background: var(--surface-2); }
.notif-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.notif.is-unread { background: #FFFBEE; }
.notif.is-unread strong::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 7px; vertical-align: middle; }
.notif a:hover strong { text-decoration: underline; }
.notif p { margin-top: 2px; }

/* Profile */
.profile-grid { display: grid; gap: 18px; }
@media (min-width: 1100px) { .profile-grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.id-card { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 20px; }
.id-card .avatar { width: 88px; height: 88px; font-size: 1.8rem; box-shadow: 0 0 0 6px var(--surface-2); }
.id-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.id-stats div { display: grid; }
.id-stats strong { font-size: 1.2rem; color: var(--navy-ink); }
.id-stats span { font-size: .74rem; color: var(--muted); }
.profile-forms { display: grid; gap: 18px; }
.profile-forms .panel { margin: 0; }

/* Lists reused from before */
.rows { list-style: none; margin: 0; padding: 0; }
.row-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row-item:first-child { padding-top: 0; }
.row-item:last-child { border-bottom: 0; padding-bottom: 0; }
.row-main { flex: 1; min-width: 200px; display: grid; gap: 3px; }
.row-title { font-weight: 650; color: var(--ink); }
.row-title:hover { color: var(--navy); text-decoration: underline; }
.row-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row-note { display: flex; gap: 6px; align-items: flex-start; font-size: .84rem; color: var(--ink-2); background: var(--surface-2); padding: 6px 10px; border-radius: 8px; margin-top: 4px; }
.row-note.warn { background: var(--amber-50); color: #7A4F0E; }
.row-note .ic { width: 14px; height: 14px; margin-top: 3px; }
.row-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .84rem; }
.row-links a { display: inline-flex; gap: 5px; align-items: center; color: var(--navy); font-weight: 550; }
.row-links .ic { width: 14px; height: 14px; }
.listing-rows { display: grid; gap: 12px; }
.lrow { display: grid; gap: 12px 14px; margin: 0; grid-template-columns: 112px minmax(0, 1fr); }
.lrow-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.lrow.is-hidden { display: none; }
@media (min-width: 720px) { .lrow { grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; } .lrow-actions { grid-column: auto; flex-direction: column; align-items: stretch; } }
.lrow-media { position: relative; display: block; aspect-ratio: 4 / 3; align-self: start; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.lrow-media picture, .lrow-media img { width: 100%; height: 100%; }
.lrow-count { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 4px; align-items: center; background: rgba(15, 18, 35, .7); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.lrow-count .ic { width: 12px; height: 12px; }
.lrow-body { display: grid; gap: 4px; min-width: 0; }
.lrow-top { display: flex; gap: 6px; flex-wrap: wrap; }
.lrow-metrics { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.lrow-metrics span { display: inline-flex; gap: 4px; align-items: center; }
.lrow-metrics .ic { width: 14px; height: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { position: relative; }
.plan input { position: absolute; opacity: 0; }
.plan span { display: grid; gap: 2px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: .15s; }
.plan b { font-size: 1.3rem; color: var(--navy-ink); }
.plan em { font-style: normal; font-size: .76rem; color: var(--muted); }
.plan input:checked + span { border-color: var(--gold-d); background: var(--gold-50); box-shadow: 0 0 0 3px rgba(238, 192, 58, .25); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input { flex: 1; min-width: 200px; }
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: grid; gap: 10px; margin: 0; }
.contact-card-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.contact-card-head picture, .contact-card-head .img-placeholder { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.contact-card-head img { width: 64px; height: 48px; object-fit: cover; }
.contact-card-head > div { display: grid; min-width: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person > div { display: grid; min-width: 0; line-height: 1.3; }

/* ── Listing editor ──────────────────────────────────────────────────────── */
.editor-layout { display: grid; gap: 16px; }
@media (min-width: 1060px) { .editor-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; } }
.editor-main .panel { display: grid; gap: 14px; }
.editor-main .panel > h2 { margin: 0; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.editor-side .panel { display: grid; gap: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.checklist li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.checklist li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; transition: .2s; }
.checklist li.ok { color: var(--ink); }
.checklist li.ok::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width .4s var(--ease); }
.save-state:empty { display: none; }
.uploader { display: grid; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles:empty { display: none; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); touch-action: manipulation; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.is-dragging { opacity: .4; }
.tile.drop-before { box-shadow: -4px 0 0 var(--gold); }
.tile.drop-after { box-shadow: 4px 0 0 var(--gold); }
.tile[draggable='true'] { cursor: grab; }
.tile-cover { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--navy-ink); font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.tile-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.tile:hover .tile-tools, .tile:focus-within .tile-tools { opacity: 1; }
@media (hover: none) { .tile-tools { opacity: 1; } }
.tile-tools button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: var(--sh-1); }
.tile-tools button .ic { width: 15px; height: 15px; }
.tile-tools button.del { color: var(--red); }
.tile-state { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(15, 18, 35, .55); color: #fff; font-size: .78rem; font-weight: 600; text-align: center; padding: 8px; backdrop-filter: blur(1px); }
.tile-state .ring { width: 38px; height: 38px; }
.tile-state .ring circle { fill: none; stroke-width: 4; }
.tile-state .ring .track { stroke: rgba(255, 255, 255, .25); }
.tile-state .ring .prog { stroke: var(--gold); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .2s; }
.tile.is-error .tile-state { background: rgba(192, 57, 43, .85); }
.tile.is-error .tile-state button { margin-top: 4px; background: #fff; color: var(--red); border: 0; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: .76rem; }
.tile-meta { position: absolute; left: 8px; bottom: 8px; background: rgba(15, 18, 35, .72); color: #fff; font-size: .68rem; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.dropzone { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); text-align: center; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--navy); background: var(--navy-50); }
.dz-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--navy); display: grid; place-items: center; box-shadow: var(--sh-1); margin-bottom: 4px; }
.savings { display: flex; gap: 6px; align-items: center; color: var(--green); font-weight: 550; }

/* ── Footer & tab bar ────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 calc(100px + var(--safe-b)); margin-top: 24px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 0; } }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; display: grid; gap: 12px; max-width: 360px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-logo { height: 32px; width: auto; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.footer-grid a { display: block; padding: 4px 0; font-size: .9rem; color: var(--ink-2); }
.footer-grid a:hover { color: var(--navy); }
.pay-badges { display: flex; gap: 10px; align-items: center; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; padding-bottom: 20px; font-size: .82rem; color: var(--muted); }
/* Mobile bottom navigation */
.tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 45; display: flex; align-items: stretch; justify-content: space-around; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border: 1px solid var(--line); border-radius: 22px; padding: 6px; box-shadow: 0 10px 30px rgba(20, 24, 38, .14), 0 2px 6px rgba(20, 24, 38, .06); }
.tab { position: relative; flex: 1; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 6px 0 5px; border: 0; background: none; border-radius: 16px; font-size: .66rem; font-weight: 650; color: var(--muted); letter-spacing: .01em; -webkit-tap-highlight-color: transparent; transition: color .15s, background .15s; }
.tab-ic { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background .2s var(--ease); }
.tab .ic { width: 22px; height: 22px; }
.tab.is-active { color: var(--navy); }
.tab.is-active .tab-ic { background: var(--navy-50); }
.tab.is-active .ic { stroke-width: 2.4; }
.tab:active .tab-ic { transform: scale(.94); }
.tab-badge { position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.tab-dot { position: absolute; top: 1px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.tab-fab { align-content: center; }
.fab { width: 52px; height: 52px; margin-top: -26px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold), #E2AE24); color: var(--navy-ink); box-shadow: 0 8px 20px rgba(201, 154, 46, .45), 0 0 0 5px #fff; transition: transform .15s; }
.fab .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.tab-fab:active .fab { transform: scale(.94); }
@media (min-width: 900px) { .tabbar { display: none; } }
.page-editor .tabbar, .page-auth .tabbar { display: none; }
.page-editor .site-footer, .page-auth .site-footer { padding-bottom: 20px; }
.page-dashboard .site-footer { display: none; }
@media (max-width: 899px) { .page-dashboard .site-main { padding-bottom: calc(96px + var(--safe-b)); } }

/* Header on phones: logo · bell · menu */
.show-mobile { display: inline-grid; }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .show-mobile { display: none !important; } }

/* Slide-in side menu */
.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 35, .48); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); display: flex; flex-direction: column; background: var(--surface); box-shadow: 20px 0 50px rgba(15, 18, 35, .25); transform: translateX(-100%); transition: transform .3s var(--ease); border-radius: 0 24px 24px 0; padding-top: env(safe-area-inset-top, 0px); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer.is-dragging .drawer-panel { transition: none; }
.drawer-head { position: relative; display: flex; gap: 12px; align-items: center; padding: 22px 20px 18px; background: linear-gradient(135deg, #A8432A, #4A1C10); color: #fff; border-radius: 0 24px 0 0; }
.drawer-head .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.drawer-who { display: grid; gap: 3px; min-width: 0; padding-right: 34px; }
.drawer-who strong { font-size: 1.02rem; }
.drawer-who > span:not(.role-chip) { font-size: .8rem; color: rgba(255, 255, 255, .65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-who .role-chip { background: rgba(255, 255, 255, .14); color: #fff; margin-top: 3px; }
.drawer-who .role-chip.gold { background: var(--gold); color: var(--navy-ink); }
.drawer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); }
.drawer-x { position: absolute; top: 14px; right: 12px; color: #fff; }
.drawer-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 12px 16px; overscroll-behavior: contain; }
.drawer-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 10px 6px; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-link { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 14px; font-weight: 560; font-size: .95rem; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.drawer-link > .ic:first-child { width: 20px; height: 20px; color: var(--muted); }
.drawer-link span { flex: 1; }
.drawer-link .chev { width: 16px; height: 16px; color: var(--line-2); }
.drawer-link:active, .drawer-link:hover { background: var(--surface-2); }
.drawer-link.is-active { background: var(--navy-50); color: var(--navy); }
.drawer-link.is-active > .ic:first-child { color: var(--navy); }
.drawer-cta { display: grid; gap: 8px; padding: 14px 8px 4px; }
.drawer-cta p { font-size: .9rem; color: var(--ink-2); margin-bottom: 4px; }
.drawer-foot { padding: 12px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-foot .btn { justify-content: flex-start; }
.drawer-foot a { color: var(--navy); }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Local BnBs — short stays storefront (warm terracotta + sun, same system)
   ========================================================================== */
:root { --clay: #A8432A; --clay-2: #C2593B; --clay-50: #FBEEE8; --sun: #F2B544; }
.brand-bnb {
  --navy: #A8432A; --navy-2: #C2593B; --navy-ink: #2A1912; --navy-50: #FBEEE8;
  --gold: #F2B544; --gold-d: #D4962A; --gold-50: #FFF4DC;
  --bg: #FCF8F2; --line: #EFE5D9; --line-2: #E3D6C5;
}
.brand-bnb ::selection { background: #FBE3D8; }

/* Wordmark */
.nav-sister span, .nav-sister-bnb span { margin-left: 4px; font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.nav-sister-bnb span { background: var(--clay-50); color: var(--clay); }

.pill-clay { background: var(--clay); color: #fff; }
.pill-light { background: rgba(255, 255, 255, .94); color: var(--ink); }
.badge-gold { background: var(--gold-50); color: #8A6510; }
.badge .ic { width: 12px; height: 12px; }
.tone-clay { background: var(--clay-50); color: var(--clay); }

/* Hero + search */
.stays-hero { position: relative; overflow: hidden; color: #fff; padding: 34px 0 30px; background: #6E2A19; }
.stays-hero-bg { position: absolute; inset: 0; background:
  radial-gradient(520px 320px at 88% -10%, rgba(242, 181, 68, .55), transparent 62%),
  radial-gradient(600px 360px at -10% 120%, rgba(194, 89, 59, .65), transparent 60%),
  linear-gradient(160deg, #3B1A10 0%, #7A2E1C 52%, #A8432A 100%); }
.stays-hero-bg::after { content: ''; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.stays-hero-inner { position: relative; }
.stays-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.stays-kicker .ic { width: 15px; height: 15px; color: var(--sun); }
.stays-title { color: #fff; margin-top: 12px; font-size: clamp(1.8rem, 1.2rem + 2.8vw, 3.1rem); line-height: 1.1; max-width: 720px; }
.stays-title em { color: var(--sun); font-style: italic; }
.stays-sub { margin-top: 10px; color: rgba(255, 255, 255, .8); max-width: 540px; }
.stay-search { margin-top: 22px; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; color: var(--ink); border-radius: 20px; padding: 8px; box-shadow: 0 18px 48px rgba(40, 12, 4, .35); }
.ss-field { display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; min-width: 0; transition: background .15s; }
.ss-field:hover, .ss-field:focus-within { background: var(--surface-2); }
.ss-where, .ss-guests { grid-column: 1 / -1; }
.ss-guests { display: flex; align-items: center; justify-content: space-between; }
.ss-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ss-input { display: flex; align-items: center; gap: 8px; }
.ss-input .ic { width: 17px; height: 17px; color: var(--muted); }
.ss-field input[type=search], .ss-field input[type=date] { width: 100%; min-width: 0; border: 0; background: none; outline: none; padding: 2px 0; font-size: .95rem; font-weight: 550; -webkit-appearance: none; appearance: none; color: var(--ink); }
.ss-go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 14px; background: var(--clay); color: #fff; font-weight: 700; font-size: 1rem; transition: background .15s, transform .1s; }
.ss-go:hover { background: var(--clay-2); }
.ss-go:active { transform: scale(.99); }
/* Hero photo: the best-loved stay, under a warm wash so the words stay readable. */
.stays-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stays-hero.has-photo .stays-hero-bg::after { opacity: 1; background-image: none; background:
  linear-gradient(180deg, rgba(40, 14, 6, .55) 0%, rgba(59, 26, 16, .78) 60%, rgba(59, 26, 16, .92) 100%); }
.stays-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .84rem; color: rgba(255, 255, 255, .88); }
.stays-proof li { display: inline-flex; align-items: center; gap: 6px; }
.stays-proof .ic { width: 15px; height: 15px; color: var(--sun); }
.stays-hero-credit { display: none; }

@media (min-width: 900px) {
  .stays-hero { padding: 92px 0 84px; min-height: 560px; display: flex; align-items: center; }
  .stays-hero-inner { width: 100%; }
  .stays-hero.has-photo .stays-hero-bg::after { background:
    linear-gradient(90deg, rgba(36, 12, 5, .86) 0%, rgba(52, 20, 10, .62) 46%, rgba(52, 20, 10, .18) 100%),
    linear-gradient(0deg, rgba(36, 12, 5, .45) 0%, transparent 40%); }
  .stays-title { font-size: clamp(2.6rem, 1.4rem + 2.6vw, 3.9rem); max-width: 640px; }
  .stays-sub { font-size: 1.08rem; max-width: 520px; }

  /* One-row search: Where | Check-in | Check-out | Guests | (Search) */
  .stay-search { margin-top: 30px; max-width: 980px; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, .9fr) auto auto;
    align-items: center; gap: 0; border-radius: 999px; padding: 8px 8px 8px 16px; }
  .ss-where, .ss-guests, .ss-go { grid-column: auto; }
  .ss-field { padding: 10px 18px; border-radius: 999px; }
  .ss-guests { display: grid; gap: 2px; }
  .ss-guests .stepper button { width: 30px; height: 30px; }
  .ss-field + .ss-field { position: relative; }
  .ss-field + .ss-field::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
  .ss-field:hover::before, .ss-field:focus-within::before, .ss-field:hover + .ss-field::before, .ss-field:focus-within + .ss-field::before { opacity: 0; }
  .ss-go { height: 56px; margin-left: 8px; padding: 0 26px 0 22px; border-radius: 999px; }

  .stays-hero-credit { position: absolute; right: 28px; bottom: 24px; display: grid; gap: 1px; max-width: 280px; padding: 10px 14px; border-radius: 14px;
    background: rgba(20, 8, 4, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: .8rem; line-height: 1.35; transition: background .15s; }
  .stays-hero-credit:hover { background: rgba(20, 8, 4, .55); }
  .stays-hero-credit span { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
  .stays-hero-credit strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stays-hero-credit em { font-style: normal; opacity: .8; }
}

/* Guest stepper */
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: border-color .15s, color .15s; }
.stepper button:hover:not(:disabled) { border-color: var(--ink-2); color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper button .ic { width: 15px; height: 15px; }
.stepper input { width: 38px; border: 0; background: none; text-align: center; font-weight: 700; font-size: 1rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Destinations */
.dest { padding-top: 28px; }
.dest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dest-head .section-title { margin: 0; }
.dest-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 16px 4px; margin: 0 -16px; }
.dest-row::-webkit-scrollbar { display: none; }
.dest-card { position: relative; display: block; height: 190px; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--surface-2); box-shadow: var(--sh-1); }
.dest-card picture, .dest-card img, .dest-card .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.dest-card img { transition: transform .5s var(--ease); }
.dest-card:hover img { transform: scale(1.05); }
.dest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30, 10, 4, .72)); }
.dest-label { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; display: grid; color: #fff; line-height: 1.2; }
.dest-label strong { font-family: var(--font-display); font-size: 1.15rem; }
.dest-label span { font-size: .76rem; opacity: .85; }
@media (min-width: 900px) { .dest-row { grid-auto-columns: 190px; margin: 0; padding: 0 0 4px; } .dest-card { height: 230px; } }

.price-total { display: block; font-style: normal; font-size: .76rem; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.results-head form.sort label { display: block; }

.host-band { margin: 8px 0 40px; display: grid; gap: 18px; align-items: center; padding: 26px; border-radius: 24px; color: #fff; background:
  radial-gradient(420px 220px at 100% 0%, rgba(242, 181, 68, .35), transparent 65%),
  linear-gradient(135deg, #4A2014, #7A2E1C 60%, #A8432A); box-shadow: 0 18px 40px rgba(74, 32, 20, .25); }
.host-band .eyebrow { color: rgba(255, 255, 255, .7); }
.host-band h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); margin: 4px 0 8px; color: #fff; }
.host-band p { color: rgba(255, 255, 255, .82); max-width: 560px; }
.host-band .btn-gold { justify-self: start; }
@media (min-width: 820px) { .host-band { grid-template-columns: 1fr auto; padding: 34px 40px; } }

/* Stay page */
.stay-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stay-intro h2 { font-size: 1.2rem; }
.stay-intro p { margin-top: 4px; }
.highlights { display: grid; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.hl { display: flex; gap: 14px; align-items: flex-start; }
.hl > .ic { width: 24px; height: 24px; color: var(--navy); margin-top: 2px; }
.hl div { display: grid; gap: 1px; }
.hl strong { font-weight: 650; }
.hl span { font-size: .88rem; color: var(--muted); }
.know { display: grid; gap: 18px; }
.know h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.know h3 .ic { width: 18px; height: 18px; color: var(--navy); }
.know p { color: var(--ink-2); font-size: .92rem; }
@media (min-width: 720px) { .know { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.book-price { display: flex; align-items: baseline; flex-wrap: wrap; }
.book-rating { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink) !important; }
.book-rating .ic { width: 15px; height: 15px; fill: var(--gold); stroke: var(--gold-d); }
.date-box { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.date-cell { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border: 0; background: var(--surface); transition: background .15s; }
.date-cell + .date-cell { border-left: 1.5px solid var(--line-2); }
.date-cell:hover { background: var(--surface-2); }
.date-cell span, .date-guests > span { font-size: .66rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.date-cell strong { font-size: .95rem; font-weight: 600; }
.date-guests { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; border-top: 1.5px solid var(--line-2); }
.breakdown { display: grid; gap: 8px; font-size: .92rem; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.breakdown .bd-total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 750; color: var(--ink); font-size: 1rem; }
.trip-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trip-sum > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.trip-sum span { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trip-sum strong { font-size: .9rem; }
.policy { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--navy-50); }
.policy .ic { color: var(--navy); width: 17px; height: 17px; margin-top: 1px; }
.mobile-cta [data-cta-price] { display: grid; line-height: 1.2; }

/* Calendars (guest picker, inline availability, host calendar) */
.cal-month h3 { font-size: .98rem; font-weight: 700; margin: 4px 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px 20px; border-bottom: 1px solid var(--line); font-size: .7rem; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.cal-day { position: relative; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; font-size: .9rem; font-weight: 600; color: var(--ink); }
.cal-day > span { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .12s, color .12s, box-shadow .12s; }
.cal-day:not(:disabled):hover > span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day:disabled { cursor: default; color: #CFC6B8; }
.cal-day.is-taken > span { text-decoration: line-through; color: var(--muted); opacity: .6; }
.cal-day.is-checkout-only > span { opacity: 1; color: var(--ink-2); }
.cal-day.is-min, .cal-day.is-out-of-reach { color: #CFC6B8; }
.cal-day.is-today > span::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--navy); }
.cal-day.is-range::before { content: ''; position: absolute; inset: 2px 0; background: var(--navy-50); }
.cal-day.is-start::before, .cal-day.is-end::before { content: ''; position: absolute; top: 2px; bottom: 2px; background: var(--navy-50); }
.cal-day.is-start::before { left: 50%; right: 0; }
.cal-day.is-end::before { left: 0; right: 50%; }
.cal-day.is-start > span, .cal-day.is-end > span { background: var(--navy); color: #fff; text-decoration: none; opacity: 1; }
.cal-scroll { display: grid; gap: 22px; padding-top: 12px; }
.modal-cal .modal-panel { height: 94dvh; max-height: 94dvh; }
.modal-cal .modal-head p { margin-top: 2px; }
@media (min-width: 720px) {
  .modal-cal .modal-panel { width: 760px; height: min(640px, 90dvh); }
  .cal-scroll { grid-template-columns: 1fr 1fr; gap: 22px 32px; }
  .modal-cal .cal-dow { display: none; }
}
.cal-inline { position: relative; }
.cal-inline-nav { display: flex; gap: 6px; justify-content: flex-end; }
.cal-inline > .cal-inline-nav { position: absolute; right: 0; top: -2px; z-index: 2; }
.cal-inline-months { display: grid; gap: 28px; }
@media (min-width: 720px) { .cal-inline-months { grid-template-columns: 1fr 1fr; } }
.cal-inline .cal-day { height: 42px; }

/* Listing editor: rental vs stay */
.kind-pick { display: grid; gap: 10px; }
@media (min-width: 640px) { .kind-pick { grid-template-columns: 1fr 1fr; } }
.kind-opt { position: relative; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; }
.kind-opt > span { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.kind-opt .ic { width: 24px; height: 24px; color: var(--muted); margin-bottom: 4px; }
.kind-opt strong { font-weight: 700; }
.kind-opt small { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.kind-opt input:checked + span { border-color: #1F2A56; background: #EEF1FA; box-shadow: 0 0 0 3px rgba(31, 42, 86, .1); }
.kind-opt input:checked + span .ic { color: #1F2A56; }
.kind-opt-stay input:checked + span { border-color: var(--clay); background: var(--clay-50); box-shadow: 0 0 0 3px rgba(168, 67, 42, .12); }
.kind-opt-stay input:checked + span .ic { color: var(--clay); }
.kind-opt input:focus-visible + span { outline: 3px solid rgba(238, 192, 58, .7); outline-offset: 2px; }
.kind-locked { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.kind-locked img { height: 24px; width: auto; }

/* Dashboard: bookings, trips, host calendar */
.bookings .stay-date { background: var(--clay-50); }
.bookings .stay-date b { color: var(--clay); }
.stay-date em { font-style: normal; font-size: .62rem; font-weight: 700; color: var(--clay); margin-top: 2px; }
.agenda-item.is-past .stay-date em { color: var(--muted); }
.money-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.money-line b { color: var(--ink); font-weight: 700; }
.trip-host { display: grid; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--clay-50); font-size: .86rem; }
.trip-host > span:first-child { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); }
.trip-host .ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.trip-host-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.danger { color: var(--red); }
.trip-hero { display: grid; overflow: hidden; border-radius: 24px; margin-bottom: 18px; color: #fff; background: linear-gradient(140deg, #4A2014, #7A2E1C 55%, #A8432A); box-shadow: 0 18px 40px rgba(74, 32, 20, .22); }
.trip-hero > picture, .trip-hero > .img-placeholder { height: 190px; }
.trip-hero > picture img { width: 100%; height: 100%; object-fit: cover; }
.trip-hero-body { padding: 20px 22px 22px; }
.trip-hero .eyebrow { color: var(--sun); }
.trip-hero h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); margin: 4px 0; color: #fff; }
.trip-hero p { color: rgba(255, 255, 255, .82); }
.trip-facts { display: grid; gap: 10px; margin-top: 14px; }
.trip-facts > div { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.trip-facts span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.trip-facts strong { font-size: .9rem; }
@media (min-width: 640px) { .trip-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .trip-hero { grid-template-columns: 380px minmax(0, 1fr); } .trip-hero > picture { height: 100%; min-height: 260px; } }
.promo-empty { text-align: center; padding: 34px 22px; display: grid; justify-items: center; gap: 8px; }
.promo-empty p { max-width: 440px; }
.promo-empty-art { margin-bottom: 6px; }
.trips-strip { margin-bottom: 16px; }
.trips-strip .mini-media .pill { position: absolute; left: 8px; bottom: 8px; top: auto; }
.host-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.host-stats > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.host-stats span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.host-stats strong { font-size: 1.15rem; font-weight: 750; color: var(--ink); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .host-stats:not(.host-stats-2) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.task-chip-light { background: var(--clay-50); border-color: transparent; color: var(--clay); }
.task-chip-light:hover { background: #F7DED3; }
.task-chip-light b { color: var(--clay); }
.settings-sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.stay-tabs { margin-bottom: 14px; }
.host-cal .toggle { margin: 4px 0 10px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 5px; border: 1.5px solid var(--line-2); }
.cal-legend .lg-booked { background: var(--clay-50); border-color: #EBC2B3; }
.cal-legend .lg-blocked { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--line-2) 3px 5px); }
.host-months { display: grid; gap: 26px; }
@media (min-width: 900px) { .host-months { grid-template-columns: 1fr 1fr; } }
.host-months .cal-day { height: 54px; align-content: center; gap: 0; }
.host-months .cal-day > span { width: 36px; height: 30px; border-radius: 10px; }
.host-months .cal-day small { position: relative; z-index: 1; font-size: .58rem; font-weight: 650; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; color: var(--muted); }
.host-months .cal-day.is-booked { background: var(--clay-50); color: var(--clay); }
.host-months .cal-day.is-booked small { color: var(--clay); }
.host-months .cal-day.is-blocked { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, #ECE6DA 4px 7px); }
.host-months .cal-day.is-blocked > span { text-decoration: line-through; color: var(--muted); }
.host-months .cal-day.is-sel > span { background: var(--ink); color: #fff; }
.host-months .cal-day.is-past { background: none; }
.host-bar { position: fixed; z-index: 46; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b)); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: .86rem; font-weight: 650; white-space: nowrap; max-width: calc(100vw - 20px); }
@media (min-width: 900px) { .host-bar { bottom: 28px; } }

/* Stays: polish */
.dest-head { flex-wrap: wrap; row-gap: 2px; }
.dest-head .section-title { white-space: nowrap; }
.ss-date { text-align: left; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.ss-date strong { font-size: .95rem; font-weight: 550; color: var(--muted); padding: 2px 0; }
.ss-date strong.is-set { color: var(--ink); }
.mobile-cta [data-cta-price] { min-width: 0; overflow: hidden; }
.mobile-cta [data-cta-price] span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-cta .btn { flex-shrink: 0; }
.trip-facts > div:last-child { grid-column: 1 / -1; }
@media (max-width: 639px) { .trip-facts { grid-template-columns: 1fr 1fr; } }

/* Dashboard: host mode + getting started */
.welcome-bnb { background:
  radial-gradient(520px 260px at 100% 0%, rgba(242, 181, 68, .38), transparent 65%),
  radial-gradient(420px 260px at 0% 120%, rgba(194, 89, 59, .5), transparent 60%),
  linear-gradient(135deg, #5A2416 0%, #7A2E1C 55%, #3B1A10 100%); box-shadow: 0 18px 40px rgba(74, 32, 20, .25); }
.welcome-bnb .btn-gold { background: var(--sun); border-color: var(--sun); }
.setup { margin-bottom: 18px; }
.setup .progress { margin: 4px 0 14px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.setup-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.setup-steps li > div { display: grid; gap: 1px; }
.setup-steps strong { font-weight: 650; font-size: .92rem; }
.setup-steps li > div span { font-size: .8rem; color: var(--muted); }
.setup-check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.setup-check .ic { width: 16px; height: 16px; }
.setup-steps li.is-done { background: var(--surface-2); border-color: transparent; }
.setup-steps li.is-done .setup-check { background: var(--green); color: #fff; }
.setup-steps li.is-done strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.host-cal .panel-head { align-items: flex-start; }
.host-cal .panel-head .cal-inline-nav { display: flex; flex-direction: row; flex-shrink: 0; }
@media (max-width: 420px) { .kpi-value { font-size: 1.28rem; } }

/* RentSpot home: Local BnBs promo */
.bnb-promo { margin-top: 8px; padding-top: 26px; padding-bottom: 6px; }
.bnb-promo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.bnb-promo-head h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin: 10px 0 4px; color: var(--navy-ink); }
.bnb-scroller .mini-media .pill { position: absolute; left: 8px; bottom: 8px; }
.show-mobile-block { display: none; margin-top: 14px; }
@media (max-width: 899px) { .show-mobile-block { display: flex; } }

/* Link across to the sister platform (an agent who also hosts, or a host who also rents out) */
.sister-strip { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: .9rem; transition: border-color .15s, background .15s; }
.sister-strip:hover { border-color: var(--ink-2); background: var(--surface-2); }
.sister-strip > .ic:first-child { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--surface-2); color: var(--clay, #A8432A); }
.sister-strip span { flex: 1; min-width: 0; }
.sister-strip strong { color: var(--ink); }
.sister-strip > .ic:last-child { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* Brand artwork (assets/img/localbnbs-logo*.webp) */
.bnb-logo { display: inline-block; height: 40px; width: auto; vertical-align: middle; }
.site-header .bnb-logo { height: 38px; }
@media (min-width: 900px) { .site-header .bnb-logo { height: 44px; } }
.footer-logo.bnb-logo { height: 46px; }
h2 .bnb-logo, .settings-sub .bnb-logo { height: 24px; margin-right: 4px; }
.kind-locked .bnb-logo { height: 26px; }
.bnb-promo-head .bnb-logo { height: 34px; }
.promo-empty-art .bnb-logo { height: 56px; }
.drawer-logo.bnb-logo { height: 36px; filter: none; }
.drawer-head.is-guest { background: var(--surface-2, #FBF8F1); color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer-head.is-guest .drawer-x { color: var(--ink-2); }
.drawer-head.is-guest .drawer-x:hover { background: var(--line); color: var(--ink); }
.auth-logo { display: block; width: min(260px, 78%); height: auto; margin: 0 auto 6px; }

/* ── Identity check (/verify) ─────────────────────────────────────────────── */
.verify-page { max-width: 820px; padding-top: 22px; padding-bottom: 40px; }
.verify-hero h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin: 6px 0 6px; }
.verify-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.verify-hero .eyebrow .ic { width: 15px; height: 15px; }
.verify-hero p { max-width: 640px; }
.verify-banner { display: flex; gap: 12px; align-items: center; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.verify-banner > .ic { flex: none; width: 26px; height: 26px; }
.verify-banner div { flex: 1; display: grid; gap: 2px; font-size: .9rem; }
.verify-banner.is-ok { background: var(--green-50); border-color: transparent; }
.verify-banner.is-ok > .ic { color: var(--green); }
.verify-banner.is-wait { background: #FFF6E0; border-color: transparent; }
.verify-banner.is-wait > .ic { color: #B7791F; }
.verify-banner.is-err { background: #FDECEC; border-color: transparent; }
.verify-banner.is-err > .ic { color: var(--red); }
.verify-progress { display: grid; gap: 8px; margin: 18px 0 4px; }
.vsteps { display: grid; gap: 14px; margin-top: 14px; }
.vstep { display: grid; gap: 14px; }
.vstep-head { display: flex; gap: 12px; align-items: flex-start; }
.vstep-head > div { flex: 1; min-width: 0; }
.vstep-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 2px 0 2px; }
.vstep-head h2 .ic { width: 18px; height: 18px; color: var(--muted); }
.vstep-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .88rem; background: var(--surface-2); color: var(--ink-2); border: 1.5px solid var(--line-2); }
.vstep-n.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.vstep-n .ic { width: 16px; height: 16px; }
.vstep-state { flex: none; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.vstep-n.is-done ~ .vstep-state { color: var(--green); }
form[inert] { opacity: .75; }
.seg-wrap span { min-height: 44px; }

.id-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.id-shot { display: grid; gap: 8px; }
.id-shot[hidden] { display: none; }
.id-frame { position: relative; aspect-ratio: 1.586; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1.5px dashed var(--line-2); display: grid; place-items: center; }
.id-shot.has-photo .id-frame { border-style: solid; border-color: var(--line); }
.id-frame img { width: 100%; height: 100%; object-fit: cover; }
.id-ghost { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: .85rem; }
.id-ghost .ic { width: 34px; height: 34px; }
.id-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 255, 255, .82); font-size: .85rem; font-weight: 600; }
.id-busy[hidden] { display: none; }
.id-shot label.btn { cursor: pointer; }
.v-tip { display: flex; gap: 6px; align-items: center; }
.v-tip .ic { width: 15px; height: 15px; flex: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--ink-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.script-card { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border-left: 4px solid var(--gold, #EEC03A); }
.script-card p[data-script] { font-size: 1.05rem; line-height: 1.55; margin: 6px 0 8px; color: var(--ink); }
.script-card .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; letter-spacing: .08em; background: var(--surface); padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
.cam { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #17110D; }
.cam-view { width: 100%; height: 100%; object-fit: cover; background: #17110D; }
.cam-view[data-cam-view] { transform: scaleX(-1); }
.cam-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: rgba(255, 255, 255, .7); font-size: .9rem; text-align: center; padding: 20px; }
.cam-idle .ic { width: 40px; height: 40px; }
.cam-rec { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .82rem; font-weight: 700; }
.cam-rec i { width: 9px; height: 9px; border-radius: 50%; background: #E53935; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.cam-rec[hidden], .cam-idle[hidden], .cam-view[hidden] { display: none; }
.cam-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cam-actions [hidden] { display: none; }

.phone-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.phone-row > div { display: grid; gap: 2px; }
.phone-row strong { font-size: 1.05rem; letter-spacing: .02em; }
.phone-ways { display: grid; gap: 12px; }
@media (min-width: 640px) { .phone-ways { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.phone-way { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.phone-way strong { display: flex; align-items: center; gap: 8px; }
.phone-way strong .ic { width: 18px; height: 18px; color: var(--muted); }
.phone-way .btn { justify-self: start; }
.otp-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 6px; }
.otp-form .field { flex: 1; min-width: 150px; }
.otp-form input { letter-spacing: .3em; font-size: 1.1rem; }
.otp-form[hidden] { display: none; }

.promise { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: .92rem; color: var(--ink-2); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-weight: 600; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); flex: none; }
[data-v-submit] { display: grid; gap: 8px; }
@media (max-width: 520px) { .id-shots { grid-template-columns: 1fr; } }

/* Admin review */
.vr-grid { display: grid; gap: 14px; }
@media (min-width: 980px) { .vr-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.vr-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vr-docs a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 1.586; }
.vr-docs img { width: 100%; height: 100%; object-fit: contain; }
.vr-video { width: 100%; max-height: 420px; border-radius: 14px; background: #17110D; }
.vr-flags { display: grid; gap: 6px; }
.vr-actions { display: grid; gap: 10px; }
.vr-actions textarea { min-height: 84px; }
.vr-list { display: grid; gap: 8px; }
.vr-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; }
.vr-row:hover { border-color: var(--line-2); }
.vr-row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vr-row .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.vr-ok, .vr-miss { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 650; padding: 2px 7px; border-radius: 999px; }
.vr-ok { background: var(--green-50); color: var(--green); }
.vr-miss { background: var(--surface-2); color: var(--muted); }
.vr-ok .ic, .vr-miss .ic { width: 12px; height: 12px; }

/* Trust on listings: badges, the intro video and safety tips */
.trust-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trust-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--green-50); color: var(--green); }
.trust-chip .ic { width: 13px; height: 13px; }
.intro-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.intro-btn:hover { border-color: var(--line-2); }
.intro-btn .play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.intro-btn .play .ic { width: 16px; height: 16px; margin-left: 2px; }
.intro-btn span { display: grid; gap: 1px; font-size: .88rem; }
.intro-btn small { color: var(--muted); }
.modal-intro .modal-panel { max-width: 460px; }
.modal-intro video { width: 100%; max-height: 70vh; border-radius: 12px; background: #17110D; display: block; }
.safety-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FFF6E0; font-size: .84rem; color: var(--ink-2); }
.safety-tip > .ic { flex: none; width: 18px; height: 18px; color: #B7791F; margin-top: 1px; }
.safety-tip strong { color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 560px) { .vstep .row-2 { grid-template-columns: 1fr; } }
.kv > div > strong { text-align: right; }
.kv strong .badge { display: inline-flex; margin: 4px 0 0 6px; }

/* Identity check as steps: tracker, one step at a time, Back / Continue */
.vstepper { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.vstepper::before { content: ''; position: absolute; left: 10%; right: 10%; top: 15px; height: 2px; background: var(--line-2); }
.vstepper li { position: relative; display: flex; justify-content: center; }
.vstepper button { display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; min-width: 0; }
.vstepper button:disabled { cursor: default; opacity: .55; }
.vstepper .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--surface); border: 2px solid var(--line-2); color: var(--ink-2); position: relative; z-index: 1; transition: .15s; }
.vstepper .dot .ic { width: 15px; height: 15px; }
.vstepper .lbl { font-size: .74rem; font-weight: 650; white-space: nowrap; }
.vstepper .is-done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.vstepper .is-current .dot { border-color: var(--clay, var(--navy)); box-shadow: 0 0 0 4px rgba(168, 67, 42, .16); color: var(--ink); }
.vstepper .is-current .lbl { color: var(--ink); }
.verify-note { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; }
.verify-note .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.vsteps.is-wizard .vstep { display: none; }
.vsteps.is-wizard .vstep.is-current { display: grid; animation: vstep-in .2s ease; }
@keyframes vstep-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vstep-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.vstep-nav:empty { display: none; }
.vstep-nav .btn[disabled] { opacity: .45; }
[data-step="details"] .vstep-nav { border-top: 0; justify-content: flex-end; }
.vsteps:not(.is-wizard) .vstep-nav { display: none; }

/* ID photo: camera or gallery, then crop */
.id-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.id-actions .btn { flex: 1; cursor: pointer; }
.id-actions label.link { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.id-actions label.link .ic { width: 15px; height: 15px; }
.modal-crop .modal-panel { max-width: 720px; }
.crop-stage { position: relative; display: flex; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-stage canvas { display: block; max-width: 100%; border-radius: 8px; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(15, 10, 6, .55); border-radius: 6px; cursor: move; touch-action: none; }
.crop-box::after { content: ''; position: absolute; inset: 0; border: 1px dashed rgba(255, 255, 255, .6); border-radius: 4px; pointer-events: none; }
.crop-box .h { position: absolute; width: 28px; height: 28px; border: 4px solid #fff; touch-action: none; }
.crop-box .h.nw { left: -6px; top: -6px; border-right: 0; border-bottom: 0; cursor: nwse-resize; border-top-left-radius: 6px; }
.crop-box .h.ne { right: -6px; top: -6px; border-left: 0; border-bottom: 0; cursor: nesw-resize; border-top-right-radius: 6px; }
.crop-box .h.sw { left: -6px; bottom: -6px; border-right: 0; border-top: 0; cursor: nesw-resize; border-bottom-left-radius: 6px; }
.crop-box .h.se { right: -6px; bottom: -6px; border-left: 0; border-top: 0; cursor: nwse-resize; border-bottom-right-radius: 6px; }
.crop-box .h::before { content: ''; position: absolute; inset: -14px; } /* bigger touch target */
.modal-crop .modal-body { overflow: hidden; }
