/* Qutir app — mobile-first, photo-led. */
html { background: var(--bg-soft); }
body { background: var(--bg-soft); overscroll-behavior-y: none; }
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); position: relative; }
@media (min-width: 520px) { .shell { box-shadow: 0 0 0 1px var(--line), var(--shadow-2); } }
main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); outline: none; }

/* ---------- utilities ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; }
.pad { padding-left: 20px; padding-right: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hr { height: 1px; background: var(--line); margin: 24px 20px; border: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- icon buttons ---------- */
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; text-decoration: none; transition: transform .15s var(--ease); }
.iconbtn:active { transform: scale(.92); }
.iconbtn.float { background: rgba(255,255,255,.95); color: #24332d; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.iconbtn.on { color: #e3425f; }
.iconbtn.on svg { fill: #e3425f; }

/* ---------- top bar (inner pages) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.topbar.line { box-shadow: 0 1px 0 var(--line); }
.topbar h1 { font-size: 17px; font-weight: 800; text-align: center; }
.topbar .iconbtn { box-shadow: none; background: transparent; width: 36px; height: 36px; }
.topbar .ghost { width: 36px; flex: none; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; padding: calc(20px + env(safe-area-inset-top)) 20px 6px; }

/* ---------- home ---------- */
.h-head { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 20px 0; transition: box-shadow .2s; }
.h-head.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(0,0,0,.04); }
.h-brand { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.citysw { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; font-weight: 700; font-size: 14px; padding: 8px 0 8px 8px; }
.pill-search { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 3px 14px rgba(0,0,0,.09); text-decoration: none; }
.pill-search b { display: block; font-size: 14.5px; font-weight: 700; }
.pill-search small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.pill-search .go { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px -20px 0; padding: 0 20px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 1 0 auto; min-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; border: 0; background: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.cat svg { opacity: .8; }
.cat.on, .cat:hover { color: var(--ink); }
.cat.on { border-bottom-color: var(--brand); color: var(--brand-ink); }
.cat.on svg { color: var(--brand); }
.cat.on svg { opacity: 1; }

.quota { display: flex; align-items: center; gap: 14px; margin: 18px 20px 0; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(135deg, var(--gold-soft), var(--bg-soft)); box-shadow: inset 0 0 0 1px rgba(201,166,94,.3); text-decoration: none; }
.quota .qk { width: 40px; height: 40px; border-radius: 12px; background: var(--champagne); display: grid; place-items: center; color: #4a3a12; box-shadow: var(--shadow-1); flex: none; }
.quota b { display: block; font-size: 14px; }
.quota small { display: block; color: var(--muted); font-size: 12.5px; }
.qbar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 7px; overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.quota .more { font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.sect { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 30px 20px 14px; }
.sect h2 { font-size: 20px; }
.sect h2::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 6px; border-radius: 2px; background: var(--champagne); }
.sect p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.sect a { font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 0 20px 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ---------- listing card ---------- */
.lc { display: block; text-decoration: none; color: inherit; position: relative; }
.rail .lc { width: 72%; max-width: 300px; }
.lc-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunk); aspect-ratio: 1 / 0.95; isolation: isolate; }
.feed .lc-media { aspect-ratio: 4 / 3.3; }
.lc-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lc-track::-webkit-scrollbar { display: none; }
.lc-track img { width: 100%; height: 100%; object-fit: cover; flex: none; scroll-snap-align: center; transition: transform .6s var(--ease); }
@media (hover: hover) { .lc:hover .lc-track img { transform: scale(1.03); } }
.lc-tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.lc-heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; color: #fff; }
.lc-heart svg { fill: rgba(0,0,0,.45); filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); transition: transform .2s var(--ease); }
.lc-heart.on svg { fill: #e3425f; }
.lc-heart:active svg { transform: scale(.85); }
.lc-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; pointer-events: none; }
.lc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); transition: background .2s, transform .2s; }
.lc-dots i.on { background: #fff; transform: scale(1.15); }
.lc-info { padding: 12px 2px 0; }
.lc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lc-row b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.lc-sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-price { margin-top: 6px; font-size: 15px; }
.lc-price b { font-weight: 800; }
.lc-price span { color: var(--ink-2); }
.lc.boosted .lc-media { box-shadow: 0 0 0 2px var(--gold-2), 0 6px 18px rgba(169,132,60,.18); }

.feed { display: grid; gap: 34px; padding: 4px 20px 24px; }

/* locality tiles */
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; }
.loc { display: block; padding: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s; }
.loc:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.loc b { display: block; font-size: 14.5px; }
.loc small { display: block; color: var(--muted); font-size: 12.5px; }
.loc .lr { margin-top: 10px; font-size: 13px; font-weight: 700; }

/* promo cards */
.promo { position: relative; display: block; margin: 30px 20px 0; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; min-height: 210px; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 10%, rgba(0,0,0,.72) 100%); }
.promo-b { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; }
.promo-b h3 { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.15; }
.promo-b p { margin: 6px 0 14px; color: rgba(255,255,255,.85); font-size: 14px; }
.promo-b .btn { align-self: flex-start; background: #fff; color: var(--brand-ink); }
.tile { display: flex; gap: 14px; align-items: center; margin: 12px 20px 0; padding: 16px; border-radius: var(--r-lg); background: var(--brand-soft); text-decoration: none; }
.tile .ti-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--brand); flex: none; }
.tile b { display: block; font-size: 15px; }
.tile small { display: block; color: var(--brand-ink); font-size: 13px; }

/* ---------- search ---------- */
.s-head { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 16px 0; box-shadow: 0 1px 0 var(--line); }
.s-row { display: flex; align-items: center; gap: 10px; }
.sbox { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 3px 12px rgba(0,0,0,.08); }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 600; font-size: 15px; }
.sbox input::placeholder { color: var(--muted); font-weight: 500; }
.sugg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 8px; list-style: none; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); z-index: 30; }
.sugg li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.sugg li:hover { background: var(--bg-soft); }
.sugg .si { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-sunk); display: grid; place-items: center; flex: none; }
.sugg b { display: block; font-size: 14.5px; }
.sugg small { color: var(--muted); font-size: 12.5px; }
.s-head .cats { margin-top: 8px; margin-bottom: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: box-shadow .15s, background .15s; }
.fchip:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.fchip.on { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.resbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 14px; font-size: 14px; }
.resbar b { font-weight: 800; }
.resbar select { border: 0; background: none; font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; appearance: none; padding-right: 4px; cursor: pointer; }
.mapfab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 600; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; border: 0; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(10,107,75,.35); transition: transform .15s var(--ease); }
.mapfab:active { transform: translateX(-50%) scale(.95); }
.mapwrap { position: relative; height: calc(100dvh - 200px); min-height: 380px; }
#map { position: absolute; inset: 0; background: var(--bg-sunk); }
.pin { background: var(--surface); color: var(--ink); font: 800 13px var(--f); padding: 6px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04); white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; transition: transform .15s; }
.pin.on { background: var(--brand); color: #fff; transform: translate(-50%, -50%) scale(1.1); }
.tiles { filter: saturate(.45) contrast(.95) brightness(1.04); }
.tiles-dark { filter: invert(1) hue-rotate(180deg) saturate(.3) brightness(.85); }
.leaflet-div-icon { background: none !important; border: 0 !important; }
.mapcard { position: absolute; left: 14px; right: 14px; bottom: 150px; z-index: 500; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); display: flex; gap: 0; overflow: hidden; text-decoration: none; }
.mapcard img { width: 120px; object-fit: cover; flex: none; }
.mapcard div { padding: 12px 14px; min-width: 0; }

.empty { text-align: center; padding: 50px 30px; color: var(--muted); }
.empty .em-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-sunk); display: grid; place-items: center; margin: 0 auto 16px; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.linkbtn { border: 0; background: none; padding: 0; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn.crit { color: var(--crit); }
.alertcta { margin: 0 20px 20px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-soft); display: flex; gap: 14px; align-items: center; }
.alertcta .wa { width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; flex: none; }

/* ---------- listing detail ---------- */
.gal-wrap { position: relative; background: var(--bg-sunk); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3.1; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; flex: none; scroll-snap-align: center; }
.gal-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; gap: 10px; }
.gal-count { position: absolute; right: 16px; bottom: 30px; background: rgba(255,255,255,.92); color: #24332d; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px; }
.d-body { position: relative; margin-top: -18px; background: var(--bg); border-radius: 22px 22px 0 0; padding-top: 26px; }
.d-title { padding: 0 20px; }
.d-title h1 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.d-title .sub { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.trustrow { display: flex; margin: 20px 20px 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-2); }
.trustrow > div { flex: 1; padding: 14px 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
.trustrow > div + div { border-left: 1px solid var(--line-2); }
.trustrow b { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.trustrow .vf { color: var(--brand); }
.host { display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--champagne); color: #4a3a12; flex: none; position: relative; }
.av .vb { position: absolute; right: -3px; bottom: -3px; color: var(--brand); background: var(--bg); border-radius: 50%; padding: 1px; display: grid; }
.host b { display: block; font-size: 16px; }
.host small { color: var(--muted); font-size: 13.5px; }
.hl { display: grid; gap: 22px; padding: 0 20px; }
.hl > div { display: flex; gap: 16px; }
.hl svg { flex: none; margin-top: 2px; }
.hl b { display: block; font-size: 15px; }
.hl small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.hl .warnc { color: var(--warn); }
.d-sec { padding: 0 20px; }
.d-sec h2 { margin-bottom: 16px; }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.amen div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.facts { display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; }
.minimap { height: 200px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunk); position: relative; }
.minimap .leaflet-container { height: 100%; }
.contact { margin: 0 20px; padding: 20px; border-radius: var(--r-lg); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.phone-num { font-size: 24px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cta-bar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.cta-bar .pr b { font-size: 17px; font-weight: 800; }
.cta-bar .pr small { display: block; font-size: 12.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
body.has-cta .tabbar { display: none; }
body.has-cta main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.note svg { flex: none; margin-top: 1px; }
.note.ok { background: var(--brand-soft); color: var(--brand-ink); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.idnote { padding: 0 20px; color: var(--muted); font-size: 12.5px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; }
.input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15.5px; outline: none; transition: box-shadow .15s; }
textarea.input { height: auto; padding: 14px 16px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23717170' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.prefix { display: flex; align-items: center; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.prefix:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.prefix span { padding: 0 4px 0 16px; font-weight: 700; }
.prefix .input { box-shadow: none !important; background: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 11px 16px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 600; transition: box-shadow .15s, background .15s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.opt.on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.bigopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bigopt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 16px; border-radius: var(--r); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; font-weight: 700; font-size: 14.5px; transition: box-shadow .15s, background .15s; }
.bigopt.on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.prog { display: flex; gap: 6px; padding: 0 20px; }
.prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.prog i.on { background: var(--brand); }
.wiz-h { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.wiz-foot { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; align-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.ph:first-child:has(img)::after { content: "Cover"; position: absolute; left: 6px; top: 6px; background: #fff; color: #24332d; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ph label { display: contents; }

/* ---------- menus / lists ---------- */
.menu { margin: 0 20px; }
.menu > a, .menu > button, .menu > div { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; font-size: 15.5px; color: var(--ink); }
.menu > :last-child { border-bottom: 0; }
.menu .end { margin-left: auto; color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.menu-h { padding: 26px 20px 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.svc { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.svc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); flex: none; }
.svc b { display: block; font-size: 15px; }
.svc small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.svc .sp { font-weight: 800; font-size: 14px; white-space: nowrap; }
.svc-hero { margin: 8px 20px 10px; border-radius: var(--r-lg); overflow: hidden; position: relative; color: #fff; }
.svc-hero img { width: 100%; height: 190px; object-fit: cover; }
.svc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.1)); }
.svc-hero div { position: absolute; inset: 0; z-index: 1; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.svc-hero h3 { color: #fff; font-size: 22px; font-weight: 800; max-width: 230px; line-height: 1.15; }
.svc-hero p { margin: 4px 0 12px; font-size: 13.5px; opacity: .85; }
.svc-hero .btn { background: #fff; color: var(--brand-ink); }

.prof { display: flex; align-items: center; gap: 16px; margin: 6px 20px 0; padding: 20px; border-radius: var(--r-lg); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.prof .av { width: 64px; height: 64px; font-size: 22px; }
.prof b { font-size: 20px; font-weight: 800; display: block; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 20px 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-2); }
.stat3 div { padding: 16px; text-align: center; }
.stat3 div + div { border-left: 1px solid var(--line-2); }
.stat3 b { display: block; font-size: 24px; font-weight: 800; }
.stat3 small { color: var(--muted); font-size: 12.5px; }
.card { margin: 14px 20px 0; padding: 18px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); }
.wa-card { box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.wa-bubble { background: #e7fbe9; color: #133d1c; padding: 12px 14px; border-radius: 4px 14px 14px 14px; font-size: 14.5px; margin: 10px 0 12px; }
[data-theme="dark"] .wa-bubble { background: #12301a; color: #c9f2d1; }
.mine { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.mine img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }

/* plans */
.plan { display: block; width: 100%; text-align: left; position: relative; padding: 18px; border-radius: var(--r-lg); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s; }
.plan.on { box-shadow: inset 0 0 0 2px var(--brand); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }
.plan .ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan b { font-size: 17px; font-weight: 800; }
.plan .pp { font-size: 20px; font-weight: 800; }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--brand); flex: none; margin-top: 2px; }
.plan .tag { position: absolute; top: -10px; right: 16px; background: var(--champagne); color: #4a3a12; }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; display: grid; place-items: center; }
.plan.on .radio { box-shadow: inset 0 0 0 7px var(--brand); }

/* ---------- bottom tab bar ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 -1px 0 var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .15s; }
.tabbar a.on { color: var(--brand); position: relative; }
.tabbar a.on:not(.tab-post)::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--champagne); }
.tabbar a.on svg { stroke-width: 2.3; }
.tabbar .tab-post .ti { width: 44px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-top: -2px; box-shadow: 0 4px 12px rgba(10,107,75,.3); }
.tabbar .tab-post.on .ti { background: var(--grad); color: #fff; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(40,34,20,.32); backdrop-filter: blur(2px); animation: fade .2s; }
.sheet { position: fixed; z-index: 51; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 30px 24px calc(24px + env(safe-area-inset-bottom)); animation: up .32s var(--ease); box-shadow: var(--shadow-3); }
.sheet::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); }
.sheet h2 { font-size: 24px; margin-bottom: 6px; }
@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp .input { text-align: center; font-size: 22px; font-weight: 800; padding: 0; }
.pay { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); padding: 6px 16px; }
.pay-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14.5px; }
.pay-row + .pay-row { border-top: 1px solid var(--line); }
.pay-row:last-child { font-weight: 800; }
.upi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upi button { height: 50px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 700; font-size: 13.5px; }
.upi button.on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60; background: var(--surface); color: var(--ink); padding: 12px 18px; border-radius: 14px; border-left: 4px solid var(--brand); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100% - 40px); box-shadow: var(--shadow-3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* skeleton shimmer while photos load */
.lc-track img, .gallery img { background: linear-gradient(90deg, var(--bg-sunk) 0%, var(--bg-soft) 50%, var(--bg-sunk) 100%); background-size: 200% 100%; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
