/* Proporama: bold, techy look.
   Layout: sticky glass header, dark hero with a floating search panel, photo-first cards on a cool grey page. */
:root {
  --ink: #0a0e1a;          /* hero, headings */
  --bg: #f4f6f9;           /* page */
  --card: #ffffff;
  --text: #0a0e1a;
  --muted: #5b6475;
  --line: #e3e7ee;
  --soft: #eef1f6;         /* input fill, chips */
  --brand: #3ac4eb;        /* Blanc cyan: the logo's color, used exactly */
  --brand-dark: #333a43;   /* Blanc slate: hover, and text on cyan tints */
  --accent: #e2f6fc;       /* cyan tint */
  --on-brand: #0a0e1a;     /* text on cyan (white on this cyan is hard to read) */
  --link: #333a43;         /* text links: slate, cyan underline on hover */
  --commercial: #0d7a6f;
  --commercial-tint: #e3f4f1;
  --warn: #c2410c;         /* tax */
  --warn-tint: #fff3eb;
  --danger: #d92d20;
  --success: #067647;
  --star: #f5a524;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 14, 26, .04), 0 10px 30px -14px rgba(10, 14, 26, .18);
  --shadow-hover: 0 2px 4px rgba(10, 14, 26, .05), 0 22px 44px -18px rgba(10, 14, 26, .32);
  --display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-size: 16px; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--text); }
p a, li a, .muted a, label a, .hint a, .dev-note a, td a { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
:focus-visible { outline: 3px solid rgba(58, 196, 235, .45); outline-offset: 2px; }
.ic { flex: none; vertical-align: -0.18em; }
.container { max-width: 1240px; margin: 0 auto; padding: 28px 20px 72px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.topbar { display: flex; align-items: center; gap: 28px; padding: 12px 24px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1100; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { color: var(--ink); }
.brand .logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 5px; background: #333a43; color: #3ac4eb; } /* Blanc slate + cyan */
.brand .logo svg { color: #3ac4eb; }
.brand .o, .sg-brand .o, .fl-brand .o { color: #3ac4eb; }
.sg-foot .sg-brand .o, .fl-top .fl-brand .o { color: #3ac4eb; } /* lighter blue on the dark sign footer and flyer top */
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; padding: 7px 12px; border-radius: 999px; transition: background .15s; }
.nav a:hover { background: var(--soft); color: var(--text); }
.nav-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav-right > a:not(.btn) { color: var(--text); font-weight: 500; font-size: 15px; padding: 7px 10px; border-radius: 999px; }
.nav-right > a:not(.btn):hover { background: var(--soft); }
.nav-icon { display: inline-flex; align-items: center; gap: 6px; }
.lbl-short { display: none; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 20px; border-top: 1px solid var(--line); background: var(--card); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); padding: 10px 18px;
  border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: 0 8px 20px -8px rgba(51, 58, 67, .6); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); color: var(--text); box-shadow: none; }
.btn.small { padding: 6px 13px; font-size: 13px; }
.btn.danger { background: var(--card); color: var(--danger); border-color: #f5c6c1; }
.btn.danger:hover { background: #fef3f2; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--brand-dark); letter-spacing: .01em; }
.badge.commercial { background: var(--commercial-tint); color: var(--commercial); }
.badge.warn { background: #fef3f2; color: #b42318; }
.badge.verified { background: #ecfdf3; color: var(--success); }
.free-pill { background: rgba(10, 14, 26, .14); color: inherit; font-size: 10.5px; padding: 2px 7px; letter-spacing: .06em; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.report-link { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.report-link:hover { color: var(--danger); }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 3000; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }

/* ---------- hero + search ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; padding: 52px 44px 36px; margin-bottom: 32px;
  background-image: radial-gradient(900px 380px at 85% -10%, rgba(58, 196, 235, .55), transparent 60%), radial-gradient(600px 300px at -5% 110%, rgba(13, 122, 111, .45), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #3ac4eb; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 16px; }
.hero .hl { background: linear-gradient(90deg, #3ac4eb, #5ce1c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #c3cbe0; font-size: 17px; max-width: 600px; margin: 0 0 28px; }
.hero.compact { padding: 20px 22px; border-radius: 22px; }
.hero-top { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; }
.tabs { display: inline-flex; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px; }
.tabs button { background: none; border: 0; color: #dbe2f3; padding: 8px 18px; border-radius: 999px; font: 600 14px var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { color: #fff; }
.tabs button.on { background: #fff; color: var(--ink); }
.search-row { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.search-row input, .search-row select { padding: 12px 14px; border-radius: 12px; border: 0; font: 500 15px var(--body); background: var(--soft); color: var(--text); min-width: 0; }
.search-row input::placeholder { color: #8a93a5; }
.search-row input[name=q] { flex: 1 1 240px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px center; padding-left: 40px; }
.search-row .btn { border-radius: 12px; padding: 12px 24px; font-size: 15px; }
.w110 { width: 120px; }

/* ---------- listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
#count { font-size: 14px; font-weight: 600; color: var(--muted); }
.listing-card { background: var(--card); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.listing-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--text); }
.thumb { position: relative; aspect-ratio: 4/3; background: #dfe5ee center/cover; display: grid; place-items: center; color: #9aa6b8; max-width: 100%; }
.listing-card .thumb { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.listing-card:hover .thumb { transform: scale(1.04); }
.listing-card .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 3px; position: relative; background: var(--card); }
.price { font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts { color: var(--text); font-size: 14px; font-weight: 600; }
.listing-card .body > div:nth-last-child(2) { color: var(--muted); font-size: 14px; }
.tax-line { font-size: 12.5px; font-weight: 600; color: var(--warn); margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.tax-line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.listing-card .badge { align-self: flex-start; margin-bottom: 4px; }
.fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .15s; z-index: 2; }
.fav:hover { transform: scale(1.08); }
.fav.on { color: #f04438; } .fav.on svg { fill: currentColor; }
.fav.big { position: static; width: 46px; height: 46px; border: 1px solid var(--line); box-shadow: none; flex: none; }
.photo-count { position: absolute; bottom: 12px; left: 12px; background: rgba(10, 14, 26, .7); backdrop-filter: blur(4px); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- listing detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.detail aside .card { margin-top: 0 !important; box-shadow: var(--shadow); border: 0; }
.detail > div > .price { font-size: 36px; margin: 2px 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 190px; gap: 8px; border-radius: 24px; overflow: hidden; margin-bottom: 28px; }
.gallery .thumb { aspect-ratio: auto; cursor: zoom-in; transition: filter .2s; }
.gallery .thumb:hover { filter: brightness(.93); }
.gallery .thumb:first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; grid-auto-rows: 420px; } .gallery.n1 .thumb:first-child { grid-row: auto; }
.gallery.n2 { grid-template-columns: 2fr 1fr; } .gallery.n2 .thumb:nth-child(2) { grid-row: span 2; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 .thumb:nth-child(4) { grid-column: span 2; }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 14, 26, .5); color: #fff; font: 700 18px var(--display); }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.title-row .badge { margin-right: 4px; }
.detail h1 { margin-top: 12px; font-size: clamp(26px, 3.4vw, 36px); }
.owner-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--accent); border-radius: var(--radius-sm); padding: 10px 14px; margin: 16px 0; font-size: 14px; font-weight: 600; color: var(--brand-dark); }
.owner-bar > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 22px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv div { padding: 14px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.kv b { display: block; font: 700 19px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kv span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tax-box { border: 0; background: var(--warn-tint); position: relative; overflow: hidden; }
.tax-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--warn); }
.tax-box .amt { font: 800 30px var(--display); letter-spacing: -0.03em; color: var(--warn); margin: 2px 0; font-variant-numeric: tabular-nums; }
.tax-box > .muted:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--warn) !important; }
.detail p { color: #2d3546; }
.contact textarea { width: 100%; margin: 14px 0 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 14px; background: var(--soft); resize: vertical; }
.contact .btn { padding: 12px; }

/* mortgage calculator */
.calc h3 { margin-bottom: 2px; }
.calc label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.calc input, .calc select { width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; font: 600 15px var(--body); background: var(--soft); color: var(--text); font-variant-numeric: tabular-nums; }
.calc input:focus, .calc select:focus { background: #fff; border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(58, 196, 235, .15); }
.calc .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc .total { font: 800 38px var(--display); letter-spacing: -0.04em; color: var(--ink); margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.breakdown { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.breakdown li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.breakdown li:last-child { border-bottom: 0; }
.breakdown .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 10px 0 6px; gap: 2px; }

/* ---------- forms ---------- */
form.stack label { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 6px; }
form.stack input, form.stack select, form.stack textarea, .inline-form input, .inline-form select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 15px var(--body); background: var(--card); color: var(--text); transition: border-color .15s, box-shadow .15s; }
form.stack input:focus, form.stack select:focus, form.stack textarea:focus, .inline-form input:focus, .composer textarea:focus, .contact textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(58, 196, 235, .15); }
form.stack .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; margin: 20px 0; }
legend { font: 700 15px var(--display); padding: 0 8px; letter-spacing: -0.01em; }
.narrow { max-width: 480px; margin: 36px auto; }
.mid { max-width: 840px; margin: 0 auto; }
.mid > h1 .badge, .mid h1 .free-pill { vertical-align: middle; font-family: var(--body); }
.mid h1 .free-pill { background: var(--accent); color: var(--brand-dark); }
.error { background: #fef3f2; color: #b42318; padding: 11px 14px; border-radius: var(--radius-sm); margin-top: 14px; font-size: 14px; font-weight: 500; }
.only-commercial, .only-residential { display: none; }
[data-cat=commercial] .only-commercial, [data-cat=residential] .only-residential { display: block; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.inline-form select { width: auto; }

/* ---------- ratings ---------- */
.stars { color: var(--star); letter-spacing: 1px; }
.star-input { display: inline-flex; flex-direction: row-reverse; font-size: 30px; }
.star-input input { display: none; }
.star-input label { color: #d0d5dd; cursor: pointer; margin: 0 !important; font-weight: 400 !important; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }

/* ---------- community ---------- */
.post { margin-bottom: 14px; border: 0; box-shadow: var(--shadow); }
.post .meta { font-size: 13px; color: var(--muted); }
.post .text { white-space: pre-wrap; margin: 12px 0; font-size: 15.5px; }
.post .actions { display: flex; gap: 18px; font-size: 14px; align-items: center; }
.post .actions button, .post .actions span { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 0; font: 500 14px var(--body); display: inline-flex; align-items: center; gap: 6px; }
.post .actions button:hover { color: var(--text); }
.post .actions button.on { color: #f04438; } .post .actions button.on svg { fill: currentColor; }
.comments { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.comment { font-size: 14px; padding: 5px 0; }
.topic-chip { font-size: 12px; font-weight: 600; background: var(--soft); padding: 2px 9px; border-radius: 999px; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.filters a { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s; }
.filters a:hover { border-color: #c5ccd8; color: var(--text); }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- profiles / people ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border: 0; box-shadow: var(--shadow); padding: 28px; }
.avatar { width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(135deg, var(--brand), #13b5a0); color: var(--on-brand); display: grid; place-items: center; font: 800 28px var(--display); flex: none; letter-spacing: -0.02em; }
.avatar.sm { width: 42px; height: 42px; font-size: 15px; border-radius: 13px; }
.avatar.xs { width: 34px; height: 34px; font-size: 13px; border-radius: 11px; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; border-radius: 28px; }
.avatar.has-img { background: var(--soft) center/cover no-repeat; }
.avatar-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.add-photo { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.photo-card { display: flex; gap: 20px; align-items: center; border: 0; box-shadow: var(--shadow); flex-wrap: wrap; }
.photo-card-body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.photo-actions label.btn { cursor: pointer; }
.av-status { font-size: 13.5px; font-weight: 500; }
.av-status:empty { display: none; }
.av-status.checking { color: var(--brand-dark); }
.av-status.error { color: #b42318; background: #fef3f2; padding: 9px 12px; border-radius: 10px; }
.pro-row { display: flex; gap: 12px; align-items: center; }
.grid > a.card { border: 0; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.grid > a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 14px; gap: 10px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.profile-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.menu { position: relative; margin-left: 4px; } .menu summary { list-style: none; cursor: pointer; } .menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(10, 14, 26, .25); min-width: 230px; padding: 6px; z-index: 1200; }
.menu-pop a { display: block; padding: 9px 12px; color: var(--text); border-radius: 9px; font-size: 14.5px; }
.menu-pop a:hover { background: var(--soft); color: var(--text); }

/* ---------- maps ---------- */
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.map.small { height: 280px; }
.map-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.map-layout .map { height: calc(100vh - 260px); min-height: 440px; }
.map-wrap { position: sticky; top: 84px; }
.map-search-btn { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.grid.one-col { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: calc(100vh - 260px); overflow: auto; padding: 2px 6px 8px 2px; }
.pin { transform: translate(-50%, -100%); background: var(--ink); color: #fff; font: 700 12.5px var(--body); padding: 5px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3); position: relative; display: inline-block; border: 2px solid #fff; transition: transform .15s; }
.pin.commercial { background: var(--commercial); }
.pin.on { background: var(--brand); transform: translate(-50%, -100%) scale(1.18); }
.gm-marker .pin { transform: none; margin-bottom: 6px; }
.gm-marker .pin.on { transform: scale(1.18); }
.gm-marker .dot-pin { margin-bottom: 4px; }
.gmap .map-pop { width: 200px; }
.map-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.map-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.map-links a:hover { border-color: #c5ccd8; color: var(--text); }
.btn[disabled].ghost, button[disabled] { cursor: default; opacity: .6; }
.dot-pin { width: 24px; height: 24px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.map-pop { display: block; color: var(--text); width: 190px; font-family: var(--body); } .map-pop:hover { color: var(--text); }
.map-pop .thumb { height: 110px; aspect-ratio: auto; border-radius: 10px; margin-bottom: 8px; }
.leaflet-popup-content-wrapper { border-radius: 14px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(6, 9, 18, .94); z-index: 6000; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-count { position: absolute; bottom: 18px; color: #cfd6e4; font-size: 14px; font-weight: 600; }

/* ---------- photo uploader ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.ph { aspect-ratio: 4/3; border-radius: 12px; background: #dfe5ee center/cover; position: relative; max-width: 100%; }
.ph .cover { position: absolute; top: 7px; left: 7px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ph-actions { position: absolute; top: 7px; right: 7px; display: flex; gap: 4px; }
.ph-actions button { border: 0; background: rgba(10, 14, 26, .7); color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.upload-drop { display: flex !important; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed #cfd6e2; border-radius: var(--radius); padding: 26px; cursor: pointer; text-align: center; color: var(--text); transition: background .15s, border-color .15s; }
.upload-drop svg { color: var(--brand); }
.upload-drop.over, .upload-drop:hover { border-color: var(--brand); background: var(--accent); }

/* ---------- messaging ---------- */
.conv { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .15s; }
.conv:last-child { border-bottom: 0; } .conv:hover { background: var(--soft); color: var(--text); }
.conv.unread .conv-last { color: var(--text); font-weight: 600; }
.conv-main { flex: 1; min-width: 0; } .conv-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.conv-listing { font-size: 13px; color: var(--link); font-weight: 500; } .conv-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.thread > a.muted { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.thread-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; border: 0; box-shadow: var(--shadow); }
.thread-listing { display: flex; gap: 12px; align-items: center; color: var(--text); font-size: 14px; background: var(--soft); padding: 6px 12px 6px 6px; border-radius: 14px; }
.thread-listing:hover { color: var(--text); }
.thread-listing .thumb { width: 72px; height: 52px; aspect-ratio: auto; border-radius: 10px; }
.msgs { background: var(--card); border-radius: var(--radius); padding: 18px; height: 52vh; min-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.msg { max-width: 75%; align-self: flex-start; } .msg.me { align-self: flex-end; text-align: right; }
.bubble { display: inline-block; text-align: left; background: var(--soft); padding: 10px 14px; border-radius: 18px 18px 18px 6px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg.me .bubble { background: var(--brand); color: var(--on-brand); border-radius: 18px 18px 6px 18px; }
.msg-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
/* message receipts: ✓ sent, ✓✓ delivered (gray), ✓✓ seen (blue) */
.tick { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: #8a93a3; }
.tick.seen { color: #3ac4eb; }
.conv-last .tick { margin: 0 4px 0 0; }
.receipt-word.seen { color: var(--link); font-weight: 600; }
.receipts-toggle { display: inline-flex; align-items: center; gap: 8px; }
.privacy-actions .muted .ic { vertical-align: -2px; color: #3ac4eb; }
.composer { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.composer textarea { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 15px var(--body); resize: vertical; }
.composer .btn { border-radius: var(--radius-sm); padding: 0 24px; }

/* ---------- dashboard / admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat b { font: 800 30px var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; } .stat small { display: block; }
.table-wrap { padding: 0; overflow-x: auto; border: 0; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 11.5px; color: var(--muted); text-transform: uppercase; font-weight: 600; letter-spacing: .06em; background: #fafbfc; }
.table select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: 500 13px var(--body); background: var(--card); }
.thumb.mini { width: 68px; height: 48px; aspect-ratio: auto; border-radius: 10px; }
.report { margin-bottom: 12px; border: 0; box-shadow: var(--shadow); }
.safety-alert { border-left: 4px solid var(--danger) !important; }
.safety-alert .report-text { background: #fef3f2; }
.report-text { margin: 10px 0; padding: 10px 12px; background: var(--soft); border-radius: 10px; white-space: pre-wrap; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .topbar { gap: 8px 14px; padding: 10px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -6px; }
  .nav a { font-size: 14px; padding: 6px 10px; white-space: nowrap; }
  .nav-right { gap: 2px; }
  .nav-right .btn { padding: 8px 12px; font-size: 13px; }
  .nav-right .free-pill, .nav-icon span:not(.count), .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .brand { font-size: 19px; } .brand .logo { width: 32px; height: 32px; } .brand .logo svg { width: 20px; height: 20px; }
  .container { padding-top: 18px; }
  .hero { padding: 32px 20px 20px; border-radius: 22px; }
  .hero p { font-size: 15.5px; }
  .search-row input, .search-row select { flex: 1 1 130px; }
  .search-row .btn { flex: 1 1 100%; }
  .w110 { width: auto; }
  .gallery, .gallery.n2, .gallery.n3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; border-radius: 18px; }
  .gallery .thumb:first-child { grid-column: span 2; grid-row: auto; height: 230px; }
  .gallery.n1 { grid-template-columns: 1fr; grid-auto-rows: 250px; } .gallery.n1 .thumb:first-child { grid-column: auto; height: auto; }
  .gallery.n4 .thumb:nth-child(4) { grid-column: auto; }
  .detail aside { position: static; }
  .map-layout { grid-template-columns: 1fr; } .map-wrap { position: relative; top: 0; }
  .map-layout .map { height: 360px; min-height: 0; } .grid.one-col { max-height: none; overflow: visible; }
  .profile-head { padding: 20px; } .profile-actions { align-items: flex-start; }
  .msg { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- status rings ---------- */
.ring { border: 0; padding: 4px; border-radius: 27px; cursor: pointer; display: inline-grid; place-items: center; background: #cfd5df; flex: none; }
.ring.unseen { background: conic-gradient(from 210deg, #3ac4eb, #13b5a0, #3ac4eb, #3ac4eb); }
.ring > .avatar { box-shadow: 0 0 0 2px var(--card); }
.ring:has(.avatar.sm) { border-radius: 16px; padding: 3px; }
.ring:has(.avatar.xs) { border-radius: 14px; padding: 3px; }
.ring:hover { filter: brightness(1.05); }
.new-status { border: 0; background: var(--accent); color: var(--brand-dark); font: 600 12px var(--body); padding: 4px 9px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ring-dot { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--card); cursor: pointer; padding: 0; background: #cfd5df; }
.ring-dot.unseen { background: linear-gradient(135deg, #3ac4eb, #13b5a0); }

/* ---------- status bar ---------- */
.status-bar { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 8px; scrollbar-width: thin; }
.sb-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 76px; font-size: 12.5px; font-weight: 500; text-align: center; }
.sb-item > span { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item .avatar { width: 62px; height: 62px; border-radius: 20px; font-size: 22px; }
.sb-add-big { position: relative; border: 2px dashed #c5ccd8; background: none; padding: 3px; border-radius: 24px; cursor: pointer; }
.sb-add-big .plus { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; border: 2px solid var(--bg); }
.sb-empty { font-size: 13px; align-self: center; max-width: 320px; }

/* ---------- status viewer ---------- */
.story { position: fixed; inset: 0; background: rgba(6, 9, 18, .94); z-index: 4500; display: grid; place-items: center; padding: 12px; }
.story-card { position: relative; width: min(420px, 100%); height: min(760px, calc(100vh - 24px)); border-radius: 22px; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bars span.done { background: #fff; }
.story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-bars i.run { animation: storybar 6s linear forwards; }
.story-bars i.paused { animation-play-state: paused; }
@keyframes storybar { to { width: 100%; } }
.story-head { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 3; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.story-head div { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; }
.story-head span { font-size: 12px; opacity: .8; }
.story-x { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.story-media { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-text { font: 700 clamp(20px, 5vw, 28px)/1.3 var(--display); text-align: center; padding: 70px 28px; white-space: pre-wrap; letter-spacing: -0.01em; }
.story-text.caption { position: absolute; bottom: 70px; left: 0; right: 0; padding: 12px 20px; font: 500 16px var(--body); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.story-nav { position: absolute; top: 70px; bottom: 70px; background: none; border: 0; cursor: pointer; z-index: 2; }
.story-nav.prev { left: 0; width: 33%; } .story-nav.next { right: 0; width: 67%; }
.story-foot { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; z-index: 3; background: linear-gradient(transparent, rgba(0,0,0,.55)); font-size: 13px; }
.story-foot span { display: inline-flex; align-items: center; gap: 5px; opacity: .9; }
.story-foot button { background: rgba(255,255,255,.16); border: 0; color: #fff; font: 600 13px var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.story-viewer-list { position: absolute; left: 10px; right: 10px; bottom: 60px; max-height: 50%; overflow: auto; background: var(--card); color: var(--text); border-radius: 16px; padding: 14px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }

/* ---------- status composer ---------- */
.status-modal { width: min(460px, 100%); }
.status-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.status-modal-head span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.status-preview { position: relative; border-radius: 18px; min-height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: background .2s; }
.status-preview textarea { background: transparent; border: 0; color: #fff; text-align: center; font: 700 22px/1.3 var(--display); width: 100%; min-height: 200px; padding: 30px 20px; resize: none; outline: none; }
.status-preview textarea::placeholder { color: rgba(255,255,255,.65); }
.status-preview.has-media textarea { position: absolute; bottom: 0; min-height: 0; height: 64px; font: 500 15px var(--body); padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.spv-media { max-width: 100%; max-height: 360px; object-fit: contain; }
.swatches { display: flex; gap: 8px; margin: 12px 0; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.status-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.status-tools label { cursor: pointer; }

/* ---------- community layout & composer ---------- */
.community { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; max-width: 1080px; margin: 0 auto; }
.community-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 960px) { .community { grid-template-columns: minmax(0, 1fr); } .community-side { display: none; } }
.composer-card { border: 0; box-shadow: var(--shadow); margin-bottom: 18px; }
.composer-card textarea { flex: 1; border: 0; resize: vertical; font: 16px var(--body); padding: 8px 4px; outline: none; min-height: 70px; background: transparent; }
.composer-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 600 14px var(--body); color: var(--muted); cursor: pointer; background: none; border: 0; }
.tool:hover { background: var(--soft); color: var(--text); }
.topic-select { margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; font: 500 13.5px var(--body); background: var(--card); }
.safety-note { font-size: 12px; margin-top: 10px; }
.attach-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.att { position: relative; }
.att > button:not(.att-view) { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--card); background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.att.loading { width: 96px; height: 72px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.mthumb { width: 120px; height: 90px; border-radius: 10px; background: #dfe5ee center/cover; display: grid; place-items: center; color: #fff; }
.mthumb.video { background-color: var(--ink); }
.feed-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.feed-tabs > a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.feed-tabs > a.on { background: var(--ink); color: #fff; }
.feed-tabs > a:not(.on):hover { background: var(--soft); color: var(--text); }
.feed-tabs form { margin: 0 0 0 auto; }
.feed-tabs form input { width: 200px; }
.post-media { display: grid; gap: 4px; border-radius: 14px; overflow: hidden; margin: 10px 0 12px; grid-template-columns: 1fr 1fr; }
.post-media.n1 { grid-template-columns: 1fr; }
.post-media.n3 > :first-child { grid-row: span 2; }
.post-media .pm { border: 0; padding: 0; cursor: zoom-in; background: #dfe5ee center/cover; aspect-ratio: 4/3; max-width: 100%; }
.post-media.n1 .pm { aspect-ratio: 16/10; }
.post-media video { width: 100%; max-height: 520px; background: #000; display: block; aspect-ratio: 16/9; }
.post.is-pending { opacity: .85; border: 1px dashed #c5ccd8; }
.pending-note { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-dark); background: var(--accent); padding: 7px 10px; border-radius: 10px; margin-bottom: 10px; }
.side-card { border: 0; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.side-stats { display: flex; gap: 14px; font-size: 14px; } .side-stats a { color: var(--text); }
.side-person { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.side-person > div:not(.avatar) { flex: 1; min-width: 0; line-height: 1.3; } .side-person .muted { font-size: 12.5px; }
.side-more { font-size: 13.5px; font-weight: 600; }

/* ---------- people & network ---------- */
.grid.people { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.person { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 0; box-shadow: var(--shadow); }
.person-top { margin-bottom: 6px; }
.person-role { font-size: 13px; } .person-co { font-size: 13px; }
.person-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 8px; }
.btn.is-on { color: var(--brand-dark); border-color: #b3e8f7; background: var(--accent); }
.profile-counts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; margin-top: 6px; align-items: center; }
.profile-companies { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.rel-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.company-line { display: inline; font-size: 14px; }
.company-line .clogo { display: inline-grid; vertical-align: -5px; margin-right: 6px; }
.person-title { font-size: 13.5px; font-weight: 600; width: 100%; }

/* ---------- companies ---------- */
.clogo { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff center/cover no-repeat; border: 1px solid var(--line); flex: none; color: var(--muted); }
.clogo.no-logo { background: var(--soft); }
.clogo.xs { width: 20px; height: 20px; border-radius: 6px; }
.clogo.sm { width: 40px; height: 40px; border-radius: 11px; }
.clogo.lg { width: 96px; height: 96px; border-radius: 24px; }
.company-card { display: flex; gap: 14px; align-items: center; color: var(--text); border: 0; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.company-card:hover { color: var(--text); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.company-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border: 0; box-shadow: var(--shadow); padding: 28px; }
.company-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; align-items: center; }
.company-meta a, .company-meta span { display: inline-flex; align-items: center; gap: 5px; }
.work-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.excerpt { margin-top: 6px; font-style: italic; color: var(--muted); }
@media (max-width: 760px) {
  .feed-tabs form { margin-left: 0; width: 100%; } .feed-tabs form input { width: auto; flex: 1; }
  .topic-select { margin-left: 0; }
  .rel-buttons { justify-content: flex-start; }
  .company-head { padding: 20px; }
}

.inline-form input, .inline-form select { min-width: 0; }
.feed-tabs form { max-width: 100%; }

/* status-bar circles are bigger, so their rings are a bit thicker */
.sb-item .ring { border-radius: 25px; padding: 4px; }
/* keep the header on one line: icon-only shortcuts on narrower screens */
@media (max-width: 1560px) { .nav-icon span:not(.count) { display: none; } .nav-right { gap: 2px; } .topbar { gap: 18px; } .nav a { padding: 7px 10px; } }
.nav-icon .count { margin-left: -2px; }

/* ---------- messages: attachments + safety warnings ---------- */
.composer { align-items: stretch; }
.attach-btn { align-self: center; padding: 10px; }
.msg-media { display: grid; grid-template-columns: repeat(2, minmax(0, 140px)); gap: 4px; margin-bottom: 4px; justify-content: inherit; }
.msg.me .msg-media { justify-content: end; }
.msg-media:has(> :only-child) { grid-template-columns: minmax(0, 260px); }
.msg-media .pm { border: 0; padding: 0; border-radius: 12px; aspect-ratio: 4/3; background: #dfe5ee center/cover; cursor: zoom-in; }
.msg-media video { width: 100%; border-radius: 12px; background: #000; max-height: 320px; }
.msg-warn { display: flex; gap: 8px; align-items: flex-start; background: #fff4e5; border: 1px solid #f5c58a; color: #7a4100; font-size: 13px; padding: 9px 11px; border-radius: 12px; margin-bottom: 6px; max-width: 420px; text-align: left; }
.msgs + .attach-row:empty { display: none; }

/* ---------- sign-up consent ---------- */
form.stack label.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-top: 16px; }
form.stack label.check input { width: auto; margin-top: 3px; flex: none; }

/* ---------- privacy policy ---------- */
.policy { max-width: 760px; margin: 0 auto; line-height: 1.65; }
.policy h2 { font-size: 21px; margin: 34px 0 10px; scroll-margin-top: 90px; }
.policy .lead { font-size: 17px; }
.policy li { margin-bottom: 6px; }
.policy mark { background: #fff1c2; color: #6b4c00; border-radius: 4px; padding: 0 3px; }
.pp-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.pp-toc a { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.pp-summary { background: var(--accent); border-radius: var(--radius); padding: 6px 22px 10px; margin: 22px 0; }
.pp-summary h2 { margin-top: 14px; }
.pp-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pp-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.pp-table th, .pp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-table tr:last-child td { border-bottom: 0; }
.pp-table th { background: #fafbfc; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pp-tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #b42318; background: #fef3f2; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.privacy-actions { display: grid; gap: 16px; }
.privacy-actions > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.privacy-actions .muted { font-size: 13px; }
.footer a { color: var(--muted); text-decoration: underline; }

.story-user { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; border-radius: 12px; padding: 2px 8px 2px 2px; margin-left: -2px; }
.story-user:hover { color: #fff; background: rgba(255,255,255,.12); }
.story-user:hover b { text-decoration: underline; }
.story-user div { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; }

/* ---------- plain-English search ---------- */
.ask-bar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 18px; padding: 8px 8px 8px 16px; margin-bottom: 10px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.ask-bar input { flex: 1; min-width: 0; border: 0; outline: none; font: 500 16px var(--body); color: var(--text); background: transparent; padding: 10px 4px; }
.ask-icon { color: var(--brand); display: grid; place-items: center; }
.ask-bar .btn { border-radius: 12px; padding: 12px 22px; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #3ac4eb; margin-bottom: 18px; }
.ask-examples button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #dbe2f3; font: 500 13px var(--body); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.ask-examples button:hover { background: rgba(255,255,255,.18); color: #fff; }
.interp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -12px 0 18px; padding: 12px 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: var(--brand-dark); font-size: 13px; font-weight: 600; padding: 4px 6px 4px 11px; border-radius: 999px; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.chip button:hover { background: rgba(58,196,235,.15); }
.saved-search .chip { padding-right: 11px; }
.interp-label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.interp-actions { display: flex; gap: 12px; align-items: center; }
.interp-skip { width: 100%; font-size: 13px; color: var(--warn); display: flex; gap: 6px; align-items: center; }

/* ---------- saved searches ---------- */
.saved-searches { display: grid; gap: 12px; max-width: 840px; }
.saved-search { border: 0; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.ss-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ss-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.new-badge { background: var(--brand); color: var(--on-brand); }

/* ---------- home value ---------- */
.hv { max-width: 1080px; margin: 0 auto; }
.hv-intro { max-width: 720px; }
.eyebrow-dark { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 8px; }
.hv-form { max-width: 720px; border: 0; box-shadow: var(--shadow); margin-bottom: 24px; }
.hv-form .res-only { display: block; } .hv-form[data-cat=commercial] .res-only { display: none; }
.hv-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: center; border: 0; box-shadow: var(--shadow); padding: 28px; }
.hv-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hv-value { font: 800 clamp(36px, 6vw, 52px) var(--display); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hv-range { margin-top: 10px; max-width: 360px; }
.hv-bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #b3e8f7, var(--brand), #b3e8f7); }
.hv-bar span { position: absolute; top: -5px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.hv-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.hv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hv-stats > div { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.hv-stats span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hv-stats b { font: 800 22px var(--display); letter-spacing: -0.02em; }
.hv-stats small { display: block; font-size: 12px; color: var(--muted); }
.conf { text-transform: capitalize; } .conf.high { color: var(--success); } .conf.medium { color: #b54708; } .conf.low { color: var(--danger); }
.hv-grid-wrap .map { margin-bottom: 14px; }
.hv-grid th, .hv-grid td { white-space: nowrap; font-size: 13.5px; }
.hv-grid tbody th { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); font-weight: 600; background: none; }
.hv-grid .subj { background: var(--accent); }
.hv-grid .grid-section th { background: #fafbfc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.hv-grid .adjusted td, .hv-grid .adjusted th { border-top: 2px solid var(--ink); }
.hv-grid .pos { color: var(--success); font-weight: 600; } .hv-grid .neg { color: var(--danger); font-weight: 600; }
.hv-grid .flag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fef0c7; color: #b54708; font-size: 11px; font-weight: 800; cursor: help; }
.hv-method { margin-top: 18px; border: 0; box-shadow: var(--shadow); line-height: 1.6; }
.hv-method ol { padding-left: 20px; margin: 8px 0 12px; } .hv-method li { margin-bottom: 4px; }
.sample-note { display: flex; gap: 8px; align-items: flex-start; background: #fff4e5; border: 1px solid #f5c58a; color: #7a4100; font-size: 13.5px; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.pin.comp { background: #c2410c; }
.value-cta { display: flex; align-items: center; gap: 14px; margin: 16px 0; color: var(--text); border: 0; box-shadow: var(--shadow); }
.value-cta svg:first-child { color: var(--brand); }
.value-cta div { flex: 1; display: flex; flex-direction: column; } .value-cta span { color: var(--muted); font-size: 14px; }
.value-cta:hover { color: var(--text); box-shadow: var(--shadow-hover); }
@media (max-width: 760px) { .hv-head { grid-template-columns: 1fr; padding: 20px; } .ask-bar .btn { padding: 12px 14px; } .ask-bar { padding-left: 12px; } }

/* keep the header on one line on desktop: the menu scrolls sideways if it ever runs out of room */
@media (min-width: 761px) {
  .topbar { flex-wrap: nowrap; }
  .nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .nav-right { flex: none; }
}
@media (max-width: 1560px) { .nav a { padding: 7px 8px; font-size: 14.5px; } .nav { gap: 0; } }

/* ---------- simpler hero ---------- */
.hero.simple { padding: 36px 36px 26px; }
.hero.simple h1 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 18px; }
.hero.simple.compact { padding: 18px 20px; }
.hero-tabs { margin-bottom: 12px; }
.hero-tabs button { padding: 9px 22px; font-size: 15px; }
.ask-bar { margin-bottom: 0; }
.filters-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 14px var(--body); padding: 10px 14px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.filters-btn:hover, .filters-btn[aria-expanded=true] { background: var(--soft); }
.hero .search-row { margin-top: 10px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; }
.results-head #count { font-size: 14px; font-weight: 600; }
.tabs.light { background: var(--card); border-color: var(--line); }
.tabs.light button { color: var(--muted); padding: 6px 14px; }
.tabs.light button.on { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .hero.simple { padding: 22px 16px 18px; }
  .ask-bar { flex-wrap: wrap; padding: 8px; }
  .ask-bar input { flex: 1 1 100%; order: -1; padding: 8px 4px; }
  .ask-icon { display: none; }
  .filters-btn, .ask-bar .btn { flex: 1; justify-content: center; }
  .hero-tabs { display: flex; } .hero-tabs button { flex: 1; padding: 8px 10px; }
}

/* ---------- rentals ---------- */
.badge.rent { background: #fdf0e6; color: #b54708; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.listing-card .card-badges .badge { margin-bottom: 0; }
.price-note { font: 700 12px var(--body); letter-spacing: .04em; color: var(--muted); vertical-align: middle; background: var(--soft); padding: 2px 7px; border-radius: 6px; }
.tax-line.rent-line { color: var(--commercial); }
.pin.rent { background: #b54708; }
.breakdown li.hl { font-weight: 700; background: var(--accent); margin: 4px -8px; padding: 8px; border-radius: 8px; border: 0; }
.seg { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 4px; margin: 4px 0 6px; }
.seg label { margin: 0 !important; cursor: pointer; position: relative; }
/* Hidden radio: sized to its label (the general form rule gives inputs width:100%, which made the page scroll sideways) */
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 18px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg input:focus-visible + span { outline: 3px solid rgba(58, 196, 235, .45); }
.only-rent { display: none; }
[data-lt=rent] .only-rent { display: block; }
[data-lt=rent] .only-sale { display: none; }
[data-cat=residential] .only-commercial-wrap { display: none !important; }
form.stack label.check-inline { display: flex; align-items: center; gap: 8px; margin-top: 38px; font-weight: 500; }
form.stack label.check-inline input { width: auto; }

/* ---------- filters panel (side drawer on desktop, bottom sheet on phones) ---------- */
body.no-scroll { overflow: hidden; }
.sheet-wrap { position: fixed; inset: 0; z-index: 2000; }
.sheet-back { position: absolute; inset: 0; background: rgba(10, 14, 26, .45); animation: fadein .2s ease; }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--card); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.2); animation: slidein .25s cubic-bezier(.2, .7, .2, 1); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: max(18px, env(safe-area-inset-top, 0px)) 22px 14px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet-x { border: 0; background: var(--soft); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.sheet-body { flex: 1; overflow-y: auto; padding: 6px 22px 20px; }
.sheet-body > label { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 8px; }
.sheet-body input[type=number], .sheet-body input:not([type]), .sheet-body select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; font: 15px var(--body); background: var(--card); color: var(--text); }
.sheet-body input:focus, .sheet-body select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(58, 196, 235, .15); }
.pair { display: flex; align-items: center; gap: 10px; } .pair span { color: var(--muted); font-size: 14px; } .pair input { flex: 1; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills label { margin: 0; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text); }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid rgba(58, 196, 235, .45); outline-offset: 2px; }
.sheet-foot { display: flex; gap: 10px; padding: 14px 22px max(16px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; padding: 13px; font-size: 15px; } .sheet-foot .btn.ghost { flex: 0 0 auto; }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes slideup { from { transform: translateY(100%); } }
@keyframes fadein { from { opacity: 0; } }
@media (max-width: 760px) {
  .sheet { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; animation-name: slideup; box-shadow: 0 -20px 50px rgba(0,0,0,.2); }
  .sheet-head { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-back { animation: none; } }

/* ---------- listing status, open houses, property history ---------- */
.badge.st-soon { background: #f3e8ff; color: #6b21a8; }
.badge.st-contract { background: #fef0c7; color: #93370d; }
.badge.st-closed { background: var(--ink); color: #fff; }
.status-note { font-size: 13px; font-weight: 600; color: var(--muted); }
.status-banner { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--soft); }
.status-banner.st-soon { background: #f3e8ff; color: #6b21a8; } .status-banner.st-closed { background: var(--ink); color: #fff; }
.last-sold { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 8px; }
.oh-strip { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12.5px; font-weight: 700;
  padding: 6px 10px; border-radius: 10px; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.oh-strip svg { color: var(--brand); }
.listing-card .thumb:has(.oh-strip) .photo-count { bottom: 48px; }
.oh-card { border: 0; box-shadow: var(--shadow); margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.oh-head h3 { display: flex; align-items: center; gap: 8px; } .oh-head svg { color: var(--brand); }
.oh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.oh-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--soft); padding: 12px 14px; border-radius: 12px; }
.oh-list li > span { display: flex; align-items: center; gap: 10px; }
.oh-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oh-form input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: 14px var(--body); background: var(--card); color: var(--text); }
.oh-form input[name=note] { flex: 1 1 160px; min-width: 0; }
.history { border: 0; box-shadow: var(--shadow); margin: 18px 0; }
.history h3 { margin-bottom: 10px; }
.hist-table td { white-space: normal; vertical-align: top; }
.hist-table td:first-child { white-space: nowrap; }
.hist-table tr.deed td { background: #fbfcfe; }
.hist-table .muted { font-size: 12.5px; }
.hist-table .neg { color: var(--danger); font-size: 12.5px; font-weight: 600; } .hist-table .pos { color: var(--success); font-size: 12.5px; font-weight: 600; }
.hist-note { font-size: 12.5px; margin-top: 10px; }
.sheet-body label.toggle-row { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 16px; cursor: pointer; }
.sheet-body label.toggle-row input { width: 18px; height: 18px; }
.sheet-body label.toggle-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- tours ---------- */
.tour-card { margin-bottom: 16px; border: 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tour-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), #3ac4eb); }
.tour-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tour-days { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tday { flex: none; width: 58px; padding: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0; font: 600 11.5px var(--body); scroll-snap-align: start; transition: border-color .15s, background .15s; }
.tday b { font: 800 20px var(--display); letter-spacing: -0.03em; line-height: 1.2; }
.tday span { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.tday:hover { border-color: var(--brand); }
.tday.on { background: var(--ink); border-color: var(--ink); color: #fff; } .tday.on span { color: #c7cfe0; }
.tour-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; max-height: 196px; overflow-y: auto; padding: 2px; }
.tslot { padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: 600 14px var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.tslot:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.tslot.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tslot:disabled { color: #b4bbc8; background: var(--soft); text-decoration: line-through; cursor: not-allowed; }
.tour-note { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 14px var(--body); background: var(--soft); margin-bottom: 10px; color: var(--text); }
.tour-card .btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.tour-rules { margin-top: 12px; font-size: 13px; color: var(--muted); }
.tour-rules summary { cursor: pointer; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.tour-rules summary::-webkit-details-marker { display: none; }
.tour-rules ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.tour-warn { background: var(--warn-tint); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 500; margin: 8px 0; }
.tour-booked { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; font-size: 16px; }
.tour-p { font-size: 14px; margin: 8px 0 12px; } .tour-p.ok { color: var(--success); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.tour-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.phone-step { margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--accent); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 13.5px; }
.phone-step b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.phone-row { display: flex; gap: 8px; } .phone-row input { flex: 1; min-width: 0; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: 15px var(--body); background: var(--card); color: var(--text); }
.dev-note { background: #fef0c7; color: #93370d; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.badge.st-ok { background: #dcfae6; color: var(--success); }
.badge.st-bad { background: #fee4e2; color: #b42318; }
.badge.st-muted { background: var(--soft); color: var(--muted); }
.rel { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.rel.good { color: var(--success); } .rel.bad { color: #b42318; }
.tour-set { display: grid; gap: 4px; }
.tour-set label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.tour-set label.check { display: flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); font-weight: 500; }
.tour-set input[type=time], .tour-set select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: 14px var(--body); background: var(--card); color: var(--text); }
.tour-set .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dow { display: flex; gap: 6px; margin-top: 8px; }
.dow label { margin: 0 !important; }
.dow input { position: absolute; opacity: 0; pointer-events: none; }
.dow span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font: 700 13px var(--body); color: var(--muted); cursor: pointer; }
.dow input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dow input:focus-visible + span { outline: 3px solid rgba(58, 196, 235, .45); }
.tour-h { margin: 26px 0 10px; font-size: 18px; }
.tour-empty { padding: 18px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px; }
.tour-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px; }
.tour-row .thumb.mini { flex: none; width: 76px; height: 58px; display: grid; place-items: center; background-color: var(--soft); background-size: cover; background-position: center; color: var(--muted); }
.tr-main { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 14px; }
.tr-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.tr-note { font-size: 13px; color: var(--muted); font-style: italic; }
.tr-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 260px; }
.rel-card { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.rel-card .rel-big { font: 800 30px var(--display); letter-spacing: -0.03em; margin-right: 6px; }
.rel-card.good .rel-big { color: var(--success); } .rel-card.approval .rel-big, .rel-card.paused .rel-big { color: var(--warn); }
.rel-card #tPhone { min-width: 0; flex: 1 1 280px; max-width: 420px; }
.rel-card #tPhone .phone-step { margin: 0; }
.menu summary { position: relative; }
.menu-dot { position: absolute; top: -6px; right: -8px; }
@media (max-width: 640px) {
  .tour-row { flex-wrap: wrap; } .tr-actions { max-width: none; width: 100%; justify-content: flex-start; }
  .tour-row .thumb.mini { width: 60px; height: 48px; }
}

/* community feed: people you follow first */
.feed-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.feed-divider::before, .feed-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feed-hint { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--link); }
.feed-hint div { display: grid; gap: 2px; color: var(--text); font-size: 14px; }

/* ---------- pop-up windows (shared) ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(15, 25, 35, .5); z-index: 5000; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--card); border-radius: 18px; padding: 20px; width: min(440px, 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); max-height: calc(100vh - 32px); overflow: auto; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.icon-x { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); flex: none; }

/* ---------- yard sign & flyer ---------- */
.scan-hello { display: flex; gap: 8px; align-items: center; background: #dcfae6; color: var(--success); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.sign-card { margin-bottom: 16px; border: 0; box-shadow: var(--shadow); }
.sign-card-top { display: flex; gap: 14px; align-items: flex-start; }
.sign-card h3 { margin: 0 0 2px; font-size: 16px; }
.mini-qr { flex: none; width: 76px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mini-qr svg, .sg-qr-box svg, .fl-qr svg { display: block; width: 100%; height: auto; }
.scan-count { margin-top: 6px; font-size: 14px; }
.sign-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.sign-actions .link-btn { font-size: 13px; margin-left: auto; }
.email-modal { width: min(680px, 100%); display: grid; gap: 12px; }
.em-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.em-frame { width: 100%; height: min(62vh, 640px); border: 1px solid var(--line); border-radius: 12px; background: #f4f6f9; }

.print-toolbar { display: grid; gap: 10px; margin-bottom: 18px; max-width: 860px; }
.print-toolbar h1 { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.size-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.size-pills a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--card); }
.size-pills a.on { border-color: var(--brand); color: var(--brand-dark); background: var(--accent); }
.print-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.print-tip { font-size: 14px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; line-height: 1.55; }
.print-tip b { color: var(--text); }
.sheet-frame { position: relative; overflow: hidden; }
.sheet-scale { transform-origin: top left; background: #fff; box-shadow: var(--shadow-hover); border-radius: 4px; overflow: hidden; }
.ps-sheet { width: 100%; height: 100%; container-type: inline-size; display: flex; flex-direction: column; background: #fff; color: #0a0e1a; font-family: var(--body); overflow: hidden; }
.ps-sheet .ic { vertical-align: middle; }

/* yard sign: sized in % of the sign's width (cqw) so it looks the same at any print size */
.sg-top { background: var(--brand); color: var(--on-brand); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 20cqw; flex: none; }
.sg-head { font: 800 11.5cqw/1 var(--display); letter-spacing: .01em; }
.sg-by { font: 800 3.6cqw/1 var(--display); letter-spacing: .25em; margin-top: 1.2cqw; opacity: .92; }
.sg-body { flex: 1; display: flex; gap: 4.5cqw; padding: 3cqw 4.5cqw 2.6cqw; min-height: 0; }
.sg-qr { flex: none; width: 33cqw; display: flex; flex-direction: column; align-items: center; }
.sg-qr-box { width: 100%; padding: 1.8cqw; border: .7cqw solid #0a0e1a; border-radius: 2.2cqw; background: #fff; }
.sg-scan { margin-top: 1cqw; font: 800 3.2cqw/1 var(--display); letter-spacing: .2em; }
.sg-info { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: .6cqw; overflow: hidden; }
.sg-lead { font: 800 4.6cqw/1.08 var(--display); letter-spacing: -0.02em; }
.sg-sub { font-size: 2.5cqw; color: #5b6475; margin-top: 1cqw; }
.sg-facts { font: 700 2.9cqw/1.2 var(--display); margin-top: 1.8cqw; color: var(--brand-dark); }
.sg-contact { margin-top: auto; border-top: .35cqw solid #e3e7ee; padding-top: 1.6cqw; }
.sg-name { font: 800 4cqw/1.1 var(--display); }
.sg-co { font-size: 2.5cqw; color: #5b6475; margin-top: .4cqw; }
.sg-phone { font: 800 4.8cqw/1.1 var(--display); color: var(--brand-dark); margin-top: .5cqw; letter-spacing: -0.01em; }
.sg-foot { flex: none; height: 9cqw; background: #0a0e1a; color: #c7cfe0; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5cqw; font-size: 2.3cqw; font-weight: 600; }
.sg-brand { display: inline-flex; align-items: center; gap: 1.2cqw; color: #fff; font: 800 3.4cqw/1 var(--display); }
.sg-logo { display: inline-grid; place-items: center; background: #333a43; color: #3ac4eb; border-radius: 10%; padding: .25em; box-shadow: inset 0 0 0 1.5px #4c5a6a; }
.sg-foot .sg-logo .ic { width: 3.2cqw; height: 3.2cqw; }

/* flyer: letter paper, portrait */
.fl-top { flex: none; height: 9cqw; background: #0a0e1a; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 5cqw; }
.fl-head { font: 800 4.6cqw/1 var(--display); letter-spacing: .04em; }
.fl-brand { display: inline-flex; align-items: center; gap: 1cqw; font: 800 3cqw/1 var(--display); }
.fl-brand .sg-logo .ic { width: 2.6cqw; height: 2.6cqw; }
.fl-photos { flex: none; height: 35cqw; display: grid; gap: .8cqw; background: #fff; }
.fl-photos img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.fl-photos.n2 { grid-template-columns: 1.6fr 1fr; }
.fl-photos.n3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; } .fl-photos.n3 img:first-child { grid-row: span 2; }
.fl-nophoto { display: grid; place-items: center; background: #eef1f6; color: #9aa6b8; height: 100%; }
.fl-main { flex: 1; padding: 3cqw 5cqw 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.fl-price { font: 800 6.6cqw/1 var(--display); letter-spacing: -0.03em; }
.fl-addr { font-size: 2.9cqw; margin-top: 1cqw; font-weight: 600; }
.fl-stats { display: flex; gap: 1.4cqw; margin-top: 2.2cqw; }
.fl-stats div { flex: 1; border: .25cqw solid #e3e7ee; border-radius: 1.6cqw; padding: 1.1cqw 1.6cqw; display: grid; min-width: 0; }
.fl-stats b { font: 800 3.1cqw/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-stats span { font-size: 1.6cqw; text-transform: uppercase; letter-spacing: .08em; color: #5b6475; font-weight: 700; margin-top: .4cqw; }
.fl-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.4cqw; margin-top: 2.6cqw; min-height: 0; flex: 1; overflow: hidden; }
.fl-desc h4 { font: 700 2.7cqw/1.2 var(--display); margin: 0 0 1cqw; }
.fl-desc p { font-size: 2.05cqw; line-height: 1.5; margin: 0; color: #3b4252; display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.fl-box { background: #e2f6fc; border-radius: 2cqw; padding: 2cqw 2.4cqw; display: grid; gap: 1.3cqw; align-content: start; }
.fl-box div { display: grid; }
.fl-box span { font-size: 1.6cqw; text-transform: uppercase; letter-spacing: .08em; color: #333a43; font-weight: 700; }
.fl-box b { font: 800 3cqw/1.15 var(--display); }
.fl-box small { font-size: 1.55cqw; color: #5b6475; }
.fl-box .fl-oh b { font-size: 2.5cqw; }
.fl-bottom { flex: none; display: grid; grid-template-columns: 16cqw 1fr auto; gap: 3cqw; align-items: center; margin: 2.2cqw 5cqw 1.4cqw; padding-top: 2.2cqw; border-top: .3cqw solid #e3e7ee; }
.fl-qr { padding: 1cqw; border: .35cqw solid #0a0e1a; border-radius: 1.6cqw; }
.fl-cta { display: grid; gap: .8cqw; }
.fl-cta b { font: 800 2.9cqw/1.2 var(--display); }
.fl-cta span { font-size: 1.8cqw; color: #5b6475; }
.fl-agent { display: flex; gap: 1.6cqw; align-items: center; max-width: 34cqw; }
.fl-agent > div { display: grid; font-size: 1.9cqw; color: #5b6475; }
.fl-agent b { font: 800 2.6cqw/1.2 var(--display); color: #0a0e1a; }
.fl-agent .fl-phone { font-weight: 700; color: #333a43; font-size: 2.3cqw; }
.fl-av { width: 9cqw; height: 9cqw; border-radius: 2.4cqw; object-fit: cover; flex: none; }
.fl-ini { display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 800 3cqw var(--display); }
.fl-legal { flex: none; font-size: 1.35cqw; color: #8a93a3; padding: 0 5cqw 2.4cqw; }

@media print {
  body.print-mode { background: #fff; }
  body.print-mode .topbar, body.print-mode .footer, body.print-mode .print-toolbar, body.print-mode .demo-bar, body.print-mode .toast { display: none !important; }
  body.print-mode #app { padding: 0; margin: 0; max-width: none; }
  body.print-mode .sheet-frame { height: auto !important; overflow: visible; }
  body.print-mode .sheet-scale { transform: none !important; box-shadow: none; border-radius: 0; break-inside: avoid; }
  body.print-mode * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* post composer: attachments and the review step */
.att-view { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 10px; position: relative; display: block; }
.att-view:hover .mthumb { filter: brightness(.92); }
.mthumb.video { position: relative; overflow: hidden; }
.mthumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mt-play { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 14, 26, .6); color: #fff; font-size: 13px; padding-left: 2px; pointer-events: none; }
@media (max-width: 520px) { .rv-rm span { display: none; } .rv-rm { padding: 7px; } }
.att-hint { align-self: center; font-size: 12.5px; }
.review-modal { width: min(620px, 100%); display: grid; gap: 14px; }
.rv-title { font: 700 19px var(--display); }
.rv-post { box-shadow: none; margin: 0; }
.rv-item { position: relative; min-height: 0; display: grid; }
.rv-item .pm, .rv-item video { width: 100%; height: 100%; }
.post-media.n3 > .rv-item:first-child .pm { aspect-ratio: auto; }
.rv-rm { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 5px 10px;
  background: rgba(10, 14, 26, .78); color: #fff; font: 600 12.5px var(--body); cursor: pointer; z-index: 1; }
.rv-rm:hover { background: var(--danger); }
.video-back { z-index: 6000; }
.video-view { position: relative; width: min(900px, 100%); }
.video-view video { width: 100%; max-height: 82vh; border-radius: 14px; background: #000; display: block; }
.video-view .icon-x { position: absolute; top: -44px; right: 0; background: rgba(255,255,255,.15); color: #fff; }

/* who liked your post */
.avatar.xxs { width: 22px; height: 22px; font-size: 9px; border-radius: 50%; }
.likers { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 0; margin: 0 0 8px; font: 13.5px var(--body); color: var(--text); cursor: pointer; text-align: left; }
.likers:hover span:last-child { text-decoration: underline; }
.lk-faces { display: inline-flex; flex: none; }
.lk-faces .avatar { border: 2px solid var(--card); box-sizing: content-box; }
.lk-faces .avatar + .avatar { margin-left: -8px; }
.likers-modal { width: min(440px, 100%); display: grid; gap: 12px; }
.likers-modal .rv-title { display: inline-flex; align-items: center; gap: 8px; } .likers-modal .rv-title .ic { color: var(--danger); }
.lk-list { display: grid; gap: 4px; max-height: min(60vh, 520px); overflow-y: auto; }
.lk-count { font-size: 13px; margin-bottom: 4px; }
.lk-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.lk-who { flex: 1; min-width: 0; display: grid; font-size: 14px; }
.lk-who .muted { font-size: 12.5px; }
.lk-tag { justify-self: start; font-size: 11.5px; font-weight: 600; color: var(--brand-dark); background: var(--accent); border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
.liked-via { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.liked-via .ic { color: var(--danger); fill: var(--danger); }
.liked-via a { color: var(--text); }

/* ---------- Reels (full screen) ---------- */
body.reels-mode { overflow: hidden; background: #000; }
body.reels-mode .topbar, body.reels-mode .footer, body.reels-mode .demo-bar { display: none !important; }
body.reels-mode #app { padding: 0; margin: 0; max-width: none; }
.reels-page { position: fixed; inset: 0; z-index: 1500; background: #000; display: flex; justify-content: center; }
.reels-stage { position: relative; height: 100%; width: min(100vw, calc(100dvh * 9 / 16)); }
.reels-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 10px 18px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.reels-top > * { pointer-events: auto; }
.reels-x, .reels-ctl { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.reels-x:hover, .reels-ctl:hover { background: rgba(255,255,255,.18); color: #fff; }
.reels-tabs { display: flex; gap: 2px; justify-content: center; }
.reels-tabs a { padding: 7px 11px; border-radius: 999px; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.72); white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.reels-tabs a:hover { color: #fff; }
.reels-tabs a.on { color: #fff; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.reels-scope { flex: 1; min-width: 0; color: #fff; font: 700 15px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.reels-tools { display: flex; gap: 6px; align-items: center; flex: none; }
.reels-note { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 52px); left: 10px; right: 10px; z-index: 5; font-size: 13.5px; color: #fff;
  background: rgba(10, 14, 26, .82); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.reels { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; background: #000; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.reels::-webkit-scrollbar { display: none; }
.reels-arrows { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.reels-arrows .ic { transform: rotate(90deg); }
.reels-arrows .reels-ctl { width: 46px; height: 46px; background: rgba(255,255,255,.12); }
@media (max-width: 760px) { .reels-arrows { display: none; } }
@media (min-width: 761px) { .reels-stage { border-left: 1px solid #16161a; border-right: 1px solid #16161a; } }
.reels-loading, .reels-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; color: #c7cfe0; text-align: center; padding: 24px; }
.reels-empty b { color: #fff; font: 700 18px var(--display); } .reels-empty span { max-width: 280px; font-size: 14px; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; color: #fff; }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-tap { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; z-index: 1; }
.reel-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; z-index: 1; }
.reel-paused { position: absolute; inset: 0; display: none; place-items: center; z-index: 1; pointer-events: none; }
.reel-paused .ic { width: 70px; height: 70px; padding: 16px 14px 16px 18px; border-radius: 50%; background: rgba(0,0,0,.45); }
.reel.paused .reel-paused { display: grid; }
.reel-side { position: absolute; right: 8px; bottom: 110px; z-index: 2; display: grid; gap: 14px; justify-items: center; }
.rs { border: 0; background: none; color: #fff; display: grid; justify-items: center; gap: 2px; cursor: pointer; font: 600 12px var(--body); text-shadow: 0 1px 4px rgba(0,0,0,.6); padding: 2px; }
.rs .ic { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.rs.on[data-act="like"] .ic { color: #ff3b5c; fill: #ff3b5c; }
.rs.on[data-act="save"] .ic { color: #ffd166; fill: #ffd166; }
.reel-info { position: absolute; left: 14px; right: 68px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 2; display: grid; gap: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.reel-who { display: flex; align-items: center; gap: 8px; }
.reel-who a { display: flex; align-items: center; gap: 8px; color: #fff; }
.reel-who .avatar { border: 2px solid #fff; }
.reel-follow { border: 1.5px solid #fff; background: none; color: #fff; border-radius: 8px; padding: 3px 10px; font: 700 12.5px var(--body); cursor: pointer; }
.reel-cap { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.reel-cap.open { -webkit-line-clamp: unset; }
.reel-pending { font-size: 12.5px; background: rgba(194, 65, 12, .85); border-radius: 8px; padding: 4px 8px; justify-self: start; }
.reel-home { display: flex; gap: 6px; align-items: stretch; text-shadow: none; }
.rh-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 12px; padding: 7px; }
.rh-main:hover { color: var(--ink); background: #fff; }
.rh-img { flex: none; width: 46px; height: 46px; border-radius: 8px; background: #dfe5ee center/cover; display: grid; place-items: center; color: var(--muted); }
.rh-text { display: grid; min-width: 0; font-size: 12px; color: #3b4252; }
.rh-text b { font: 800 15px var(--display); color: var(--ink); }
.rh-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-tour { flex: none; display: grid; place-items: center; align-content: center; gap: 2px; background: var(--brand); color: var(--on-brand); border-radius: 12px; padding: 6px 10px; font: 700 12px var(--body); text-align: center; width: 78px; }
.rh-tour:hover { color: #fff; background: var(--brand-dark); }
.reel-meta { font-size: 12px; color: #d5dbe7; display: flex; align-items: center; gap: 4px; }
.reel-burst { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; pointer-events: none; color: #ff3b5c; animation: burst .8s ease-out forwards; }
.reel-burst .ic { fill: #ff3b5c; filter: drop-shadow(0 4px 20px rgba(0,0,0,.4)); }
@keyframes burst { 0% { transform: scale(.4); opacity: 0; } 25% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.action-sheet { display: grid; gap: 2px; padding: 8px; width: min(360px, 100%); }
.action-sheet > * { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; background: none; border-radius: 10px; font: 600 15px var(--body); color: var(--text); cursor: pointer; text-align: left; }
.action-sheet > *:hover { background: var(--soft); color: var(--text); }
.action-sheet .danger-text { color: var(--danger); }
.action-sheet .muted { justify-content: center; color: var(--muted); }
/* posting a reel */
.reel-new { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 920px; margin: 0 auto; }
.rn-phone { position: sticky; top: 90px; aspect-ratio: 9 / 16; border-radius: 26px; background: #0a0e1a; overflow: hidden; border: 6px solid #0a0e1a; box-shadow: var(--shadow-hover); color: #fff; }
.rn-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rn-pick { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; cursor: pointer; color: #c7cfe0; padding: 20px; }
.rn-pick b { color: #fff; font: 700 17px var(--display); } .rn-pick span { font-size: 13px; }
.rn-overlay { position: absolute; left: 10px; right: 10px; bottom: 54px; display: grid; gap: 6px; text-shadow: 0 1px 4px rgba(0,0,0,.7); pointer-events: none; }
.rn-overlay .reel-who { font-size: 13px; } .rn-overlay .reel-cap { font-size: 12.5px; }
.rn-overlay .rh-main { padding: 5px; } .rn-overlay .rh-img { width: 34px; height: 34px; } .rn-overlay .rh-text b { font-size: 13px; }
.rn-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.rn-form h1 { margin: 0; }
.rn-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.rn-count { font-size: 12px; text-align: right; margin-top: -6px; }
/* video tours on a listing, reels on a profile */
.lr-card { margin: 18px 0; border: 0; box-shadow: var(--shadow); }
.lr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lr-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.lr-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 2px; }
.lr-item, .ur-item { position: relative; flex: none; width: 112px; aspect-ratio: 9 / 16; border-radius: 12px; background: #0a0e1a center/cover; color: #fff; display: grid; place-items: center; }
.lr-play { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; padding-left: 3px; }
.lr-views { position: absolute; left: 7px; bottom: 6px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.ur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ur-item { width: auto; }
@media (max-width: 640px) {
  .reels-tabs a { padding: 7px 8px; font-size: 14.5px; }
  .reel-new { grid-template-columns: 1fr; }
  .rn-phone { position: relative; top: 0; width: min(280px, 80vw); margin: 0 auto; }
}
@media (max-width: 380px) { .reels-tabs a { padding: 7px 5px; font-size: 13.5px; } .reels-top { gap: 4px; padding-left: 6px; padding-right: 6px; } .reels-x, .reels-ctl { width: 36px; height: 36px; } }

/* ---------- main page storefront ---------- */
.hero.simple.store { padding: 56px 48px 170px; display: flex; flex-direction: column; align-items: flex-start;
  background-image: linear-gradient(180deg, rgba(8,11,28,.7) 0%, rgba(8,11,28,.35) 60%, rgba(8,11,28,0) 85%), url("/street.svg"), var(--hero-sky);
  background-size: auto, auto 230px, cover; background-position: center, 30% bottom, center bottom; background-repeat: no-repeat, repeat-x, no-repeat; }
.hero.store .ask-bar { align-self: stretch; }
.hero.store::after { display: none; }
.hero.store h1 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 8px; max-width: 720px; }
.hero.store .hero-sub { color: #d6dcf0; font-size: 17px; margin: 0 0 22px; max-width: 560px; }
.hero.store .ask-bar { max-width: 860px; }
.hero-promise { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14px; font-weight: 600; color: #e6eaf7; }
.hero-promise span { display: inline-flex; align-items: center; gap: 6px; }
.hero-promise .ic { color: #5ce1c6; }
.quick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin: -14px 0 18px; scrollbar-width: none; scroll-snap-type: x proximity; }
.quick::-webkit-scrollbar { display: none; }
.quick a { flex: none; display: grid; justify-items: center; gap: 6px; min-width: 96px; padding: 14px 12px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  color: var(--text); font-size: 13.5px; font-weight: 600; scroll-snap-align: start; transition: border-color .15s, transform .15s, box-shadow .15s; }
.quick a .ic { color: var(--brand); }
.quick a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.srow { margin: 8px 0 34px; }
.srow-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.srow-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 22px; }
.srow-head h2 .ic { color: var(--brand); }
.srow-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.srow-all { flex: none; display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.srow-wrap { position: relative; }
.srow-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.srow-track::-webkit-scrollbar { display: none; }
.srow-track > .listing-card { flex: 0 0 290px; scroll-snap-align: start; }
.srow-btn { position: absolute; top: 40%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.srow-btn:hover { border-color: var(--brand); color: var(--brand); }
.srow-btn.prev { left: -14px; } .srow-btn.next { right: -14px; }
@media (hover: none), (max-width: 640px) { .srow-btn { display: none !important; } }
.sreel { position: relative; flex: 0 0 200px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #0a0e1a; color: #fff; scroll-snap-align: start; box-shadow: var(--shadow); }
.sreel:hover { color: #fff; }
.sreel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sreel::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.sreel-play { position: absolute; top: 10px; right: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; padding-left: 2px; transition: opacity .2s; }
.sreel.on .sreel-play { opacity: 0; }
.sreel-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: grid; gap: 2px; font-size: 12.5px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sreel-info b { font: 800 17px var(--display); }
.sreel-who { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 2px; }
.sreel-cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.store-all { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 20px; }
.srow-loading { display: flex; gap: 16px; overflow: hidden; }
.sk { flex: 0 0 290px; height: 330px; border-radius: var(--radius); background: linear-gradient(90deg, #e9edf3, #f4f6f9, #e9edf3); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
/* listing card tags: NEW, price cut, video tour */
.thumb-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.ttag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ttag.new { background: var(--brand); } .ttag.cut { background: #d92d20; } .ttag.vid { background: rgba(10, 14, 26, .78); }
@media (max-width: 640px) {
  .hero.simple.store { padding: 32px 18px 150px; background-size: auto, auto 150px, auto 380px; background-position: center, 30% bottom, 55% bottom; background-color: #0a0e2a; }
  .hero.store .hero-tabs { align-self: stretch; }
  .hero.store .hero-sub { font-size: 15px; margin-bottom: 16px; }
  .hero-promise { font-size: 12.5px; gap: 4px 12px; }
  .quick { margin: -12px -16px 12px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
  .quick a { min-width: 84px; padding: 12px 8px 10px; font-size: 12.5px; }
  .srow-head h2 { font-size: 19px; }
  .srow-track { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; gap: 12px; }
  .srow-track > .listing-card { flex-basis: 78vw; }
  .sreel { flex-basis: 150px; }
}

/* ---------- log in, sign up, security settings ---------- */
.auth-page h1 { text-align: center; }
.auth-card { display: grid; gap: 12px; }
.auth-card form.stack { margin: 0; }
.google-btn { width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; gap: 10px; font-weight: 600; }
.google-btn:hover { background: #f8f9fa; color: #1f1f1f; border-color: #c7cbd1; box-shadow: none; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row label { margin: 0 !important; }
.small-link { font-size: 13px; font-weight: 600; }
.auth-foot { text-align: center; font-size: 14px; }
.auth-fine { font-size: 12px; text-align: center; }
.auth-alert { background: var(--warn-tint); color: var(--warn); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.tf-head { display: flex; gap: 12px; align-items: flex-start; }
.tf-head > .ic { color: var(--success); flex: none; margin-top: 2px; }
.tf-head .muted { font-size: 14px; margin-top: 2px; }
.code-input { font: 700 22px var(--display) !important; letter-spacing: .25em; text-align: center; }
.tf-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.tf-links .link-btn { font-size: 13px; }
.welcome-card { display: flex; gap: 12px; align-items: flex-start; background: #dcfae6; border: 0; margin-bottom: 16px; }
.welcome-card > .ic { color: var(--success); flex: none; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 6px; }
.sec-title .ic { color: var(--success); }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.sec-row:first-of-type { border-top: 0; }
.sec-row b { display: inline-flex; align-items: center; gap: 6px; }
.sec-row .muted { font-size: 13.5px; margin-top: 2px; }
.sec-row > .btn, .sec-row > a.btn, .sec-actions { flex: none; }
.sec-box { background: var(--soft); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.sec-box form.stack { margin: 0; }
.tf-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-opt { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; font: inherit; color: var(--text); }
.tf-opt .ic { color: var(--brand); } .tf-opt span { font-size: 12.5px; color: var(--muted); }
.tf-opt.on { border-color: var(--brand); } .tf-opt:disabled { opacity: .5; cursor: not-allowed; }
.tf-steps { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.tf-qr { width: 180px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.tf-qr svg { display: block; width: 100%; height: auto; }
.tf-key { background: var(--card); padding: 2px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.bk { display: grid; gap: 8px; } .bk b { display: flex; align-items: center; gap: 6px; } .bk .muted { font-size: 13px; }
.bk-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--card); border-radius: 10px; padding: 12px; }
.bk-codes code { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; letter-spacing: .05em; }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-list { display: grid; }
.dev-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.dev-item:first-child { border-top: 0; }
.dev-item > div { flex: 1; min-width: 0; } .dev-item .muted { font-size: 12.5px; }
.dev-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.sec-hist { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.sec-hist summary { cursor: pointer; font-weight: 700; font-size: 14px; }
@media (max-width: 560px) { .tf-choose { grid-template-columns: 1fr; } .sec-row { flex-wrap: wrap; } }

.apple-btn { width: 100%; background: #000; color: #fff; border-color: #000; gap: 10px; font-weight: 600; }
.apple-btn:hover { background: #1d1d1f; border-color: #1d1d1f; color: #fff; box-shadow: none; }
.apple-btn svg { margin-top: -3px; }
.sec-row b svg { flex: none; }

.del-info .card { margin-bottom: 14px; }
.del-info h3 { margin: 16px 0 6px; } .del-info h3:first-child { margin-top: 0; }
.del-steps { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 16px; }

/* Page content sent by the server (for search engines and the first moment of loading); the app replaces it. */
.ssr { max-width: 860px; }
.ssr h1 { margin: 8px 0 10px; }
.ssr h2 { margin: 26px 0 10px; font-size: 20px; }
.ssr-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.ssr-price { font: 800 26px var(--display); margin: 0 0 4px; }
.ssr-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 14px 0; }
.ssr-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--soft); }
.ssr-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.ssr-list a { display: flex; gap: 12px; align-items: center; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-size: 14px; }
.ssr-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.hero-slogan { display: block; color: #fff; font: 700 15px var(--display); letter-spacing: .02em; margin-bottom: 4px; }

/* ---------- design refresh: calmer cards, simpler home page, phone tab bar ---------- */
/* banner */
.hero.store h1 .tm { font-size: .32em; vertical-align: super; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.hero.store .hero-sub { font-size: 18px; color: #dfe4f3; margin: 0 0 22px; }
/* listing cards: photo, one tag, price, one facts line, address */
.listing-card .body { padding: 12px 16px 16px; gap: 2px; }
.listing-card .price { font-size: 23px; }
.listing-card .facts { font-weight: 400; font-size: 14.5px; color: var(--text); }
.listing-card .facts b { font-weight: 700; }
.listing-card .facts .sep { color: #b6bdc9; margin: 0 6px; }
.listing-card .facts .dash { color: var(--muted); }
.listing-card .type-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.listing-card .type-line .dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; flex: none; }
.listing-card .type-line .dot.rent { background: var(--brand); } .listing-card .type-line .dot.closed { background: #98a2b3; } .listing-card .type-line .dot.commercial { background: #f79009; }
.listing-card .body > div:nth-last-child(2) { color: inherit; font-size: inherit; }
.listing-card .body > div.addr { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .status-note { font-size: 13px; color: var(--muted); }
.ttag { background: rgba(255, 255, 255, .96); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 4px 10px; box-shadow: 0 1px 4px rgba(10, 14, 26, .18); }
.ttag.new { background: var(--brand); color: var(--on-brand); }
.ttag.cut { background: rgba(255, 255, 255, .96); color: #c4320a; }
.ttag.oh { color: var(--ink); }
.ttag.st-soon { color: #6d28d9; } .ttag.st-contract { color: #b45309; } .ttag.st-closed { color: #b42318; }
.has-video { position: absolute; left: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 14, 26, .62); color: #fff; backdrop-filter: blur(4px); }
.has-video .ic { margin-left: 2px; }
/* home page rows */
.srow-head h2 { font-size: 21px; letter-spacing: -0.02em; }
.srow-sub { font-size: 13.5px; }
.quick { gap: 4px; margin: -10px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.quick a { min-width: 82px; padding: 10px 8px 12px; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; border-bottom: 2px solid transparent; box-shadow: none; }
.quick a .ic { color: var(--text); opacity: .8; }
.quick a:hover { transform: none; box-shadow: none; color: var(--text); border-bottom-color: var(--text); border-color: transparent transparent var(--text); }
.sell-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 6px 0 34px; padding: 22px 26px; border-radius: var(--radius); background: #e2f6fc; border: 1px solid #c4ecf8; }
.sell-card h2 { margin: 0 0 4px; font-size: 20px; }
.sell-card p { margin: 0; color: var(--muted); max-width: 620px; }
@media (max-width: 760px) {
  .quick { margin: -8px -16px 10px; }
  .sell-card { padding: 18px; margin-bottom: 26px; }
  .sell-card .btn { width: 100%; justify-content: center; }
  .hero.store .hero-sub { font-size: 15.5px; }
}

/* ---------- sections: the top bar shows the logo + section name; the logo opens the menu of sections ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.topbar { justify-content: space-between; }
.brand { position: relative; cursor: pointer; padding: 4px 8px 4px 4px; margin-left: -4px; border-radius: 14px; transition: background .15s; }
.brand:hover { background: var(--soft); }
.brand-caret { display: inline-flex; color: var(--muted); margin-left: -4px; transition: transform .2s; }
.brand[aria-expanded="true"] .brand-caret { transform: rotate(180deg); }
.brand .brand-count { position: absolute; top: -2px; left: 26px; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; justify-content: center; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.switcher-back { position: fixed; inset: 0; z-index: 1300; background: rgba(10, 14, 26, .28); }
.switcher { position: fixed; z-index: 1310; top: 66px; left: 16px; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(10, 14, 26, .35); padding: 14px 16px 18px; animation: swIn .16s ease-out; }
@keyframes swIn { from { opacity: 0; transform: translateY(-6px); } }
.sw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sw-head b { font: 700 18px var(--display); }
.sw-x { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.sw-group { margin-top: 12px; }
.sw-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; }
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw-tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }
.sw-tile:hover { background: #e3e8f2; color: var(--ink); }
.sw-tile .ic { color: var(--brand); }
.sw-tile.on { background: var(--ink); color: #fff; } .sw-tile.on .ic { color: #3ac4eb; }
.sw-tile .count { position: absolute; top: 6px; right: 8px; }
.sw-foot { display: flex; gap: 8px; margin-top: 16px; } .sw-foot .btn { flex: 1; justify-content: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; font-weight: 600; }
.footer-nav a { color: var(--text); }
/* Community: profile pictures on top, then posts */
.community-main #sbar { margin-bottom: 6px; }
#composeWrap, #feedTools { margin-bottom: 14px; }
@media (max-width: 1099px) { .community-side { display: none; } .community { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .switcher { top: 60px; left: 8px; width: calc(100vw - 16px); max-height: calc(100vh - 76px); }
  .brand-label { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Community is just the profile pictures and the posts, in one centered column (people suggestions live in Network). */
.community { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.community-side { display: none; }

/* ---------- 3D tours ---------- */
.thumb-icons { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; align-items: center; }
.thumb-icons .has-video { position: static; }
.has-3d { height: 28px; padding: 0 9px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(10, 14, 26, .62); color: #fff; font: 800 12px var(--display); letter-spacing: .02em; backdrop-filter: blur(4px); }
.gallery { position: relative; }
.tour3d-btn { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 999px;
  background: rgba(10, 14, 26, .82); color: #fff; font: 700 15px var(--display); cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .45); }
.tour3d-btn:hover { background: var(--brand); }
.tour3d { position: fixed; inset: 0; z-index: 2000; background: #05070d; color: #fff; display: flex; flex-direction: column; }
.t3-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px) 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
.t3-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t3-title b { display: inline-flex; align-items: center; gap: 6px; font: 700 16px var(--display); }
.t3-title span { color: #aab4cc; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t3-tabs { display: flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 3px; }
.t3-tabs button { border: 0; background: none; color: #dfe4f3; font: 600 13.5px var(--sans, inherit); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.t3-tabs button.on { background: #fff; color: var(--ink); }
.t3-x { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.t3-stage { position: relative; flex: 1; min-height: 0; }
.t3-stage iframe, .t3-pano { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.t3-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); font-size: 13px; color: #aab4cc; }
.t3-foot a { color: #3ac4eb; font-weight: 600; }
.t3-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(10, 14, 26, .55); color: #fff;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.t3-arrow.prev { left: 14px; } .t3-arrow.next { right: 14px; }
.t3-arrow:hover { background: var(--brand); }
.t3-hint { position: absolute; z-index: 5; left: 50%; top: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 14, 26, .6); font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.t3-hint.gone { opacity: 0; }
.t3-rooms { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); scrollbar-width: none; }
.t3-rooms::-webkit-scrollbar { display: none; }
.t3-room { flex: none; display: flex; flex-direction: column; gap: 6px; width: 120px; border: 0; background: none; color: #dfe4f3; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; padding: 0; }
.t3-room span { display: block; height: 66px; border-radius: 10px; background: #222 center/cover; border: 2px solid transparent; }
.t3-room.on { color: #fff; } .t3-room.on span { border-color: #fff; }
.tour3d .pnlm-load-box { background: rgba(10, 14, 26, .7); border-radius: 14px; }
.tour3d .pnlm-title-box { display: none; }
.pano-list { display: grid; gap: 8px; margin-bottom: 8px; }
.pano-row { display: flex; gap: 10px; align-items: center; }
.pano-thumb { width: 96px; height: 48px; flex: none; border-radius: 8px; background: var(--soft) center/cover; }
.pano-row input { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .tour3d-btn { left: 12px; bottom: 12px; padding: 9px 14px; font-size: 14px; }
  .t3-tabs button { padding: 6px 10px; font-size: 12.5px; }
  .t3-arrow { width: 44px; height: 44px; }
  .t3-room { width: 100px; } .t3-room span { height: 54px; }
}

/* ---------- listing videos ---------- */
.gallery-btns { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-btns .tour3d-btn { position: static; }
button.lr-item { border: 0; padding: 0; cursor: pointer; }
.video-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
@media (max-width: 760px) { .gallery-btns { left: 12px; bottom: 12px; } }

/* ---------- commercial cards: who is marketing the property ---------- */
.lister-strip { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 16px 12px; border-top: 1px solid var(--line); background: var(--card); }
.ls-mark { flex: none; width: 34px; height: 34px; display: grid; place-items: center; object-fit: contain; font: 800 12.5px var(--display); letter-spacing: .02em; color: #fff;
  background: hsl(var(--h, 220) 45% 38%); }
img.ls-mark { background: #fff; border: 1px solid var(--line); }
.ls-mark.logo { border-radius: 9px; } .ls-mark.person { border-radius: 50%; object-fit: cover; }
.ls-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ls-text b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lister-strip [data-go] { cursor: pointer; }
.lister-strip .ls-link:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; color: var(--text); }
.lister-strip [data-go]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.lister-strip img.ls-mark[data-go]:hover, .lister-strip span.ls-mark[data-go]:hover { box-shadow: 0 0 0 2px var(--brand); }

/* Phones: logged-out header fits on one row (Sign up is still in the menu and on the Log in page) */
@media (max-width: 440px) { .nav-signup { display: none; } }

/* ---------- Community feed: photo-first posts ---------- */
.community { max-width: 520px; }
.community .avatar { border-radius: 50%; }
.community .ring, .community .ring:has(.avatar), .community .sb-item .ring { border-radius: 50%; }
.community .sb-add-big { border-radius: 50%; }
.status-bar { gap: 14px; padding: 6px 2px 14px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.sb-item { width: 70px; font-size: 12px; font-weight: 400; }
.sb-item .avatar { width: 60px; height: 60px; font-size: 20px; }
.ring.seen { background: #d6dbe3; }
.ring.unseen { background: conic-gradient(from 200deg, #3ac4eb, #13b5a0, #333a43, #3ac4eb); }

.post.ig { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 0 0 14px; margin: 0 0 14px; }
.post.ig .pending-note { margin: 10px 0 0; }
.post.ig .liked-via { border: 0; margin: 10px 0 0; padding: 0; font-size: 12.5px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 0 10px; }
.post-head .ring { padding: 2px; }
.post-head .avatar.xs { width: 34px; height: 34px; }
.ph-who { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; }
.ph-who > a, .ph-who > b { color: var(--text); }
.ph-dot { color: var(--muted); margin: 0 5px; }
.ph-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-sub a { color: var(--muted); }
.post-more { position: relative; }
.post-more summary { list-style: none; cursor: pointer; padding: 6px; border-radius: 50%; color: var(--text); display: grid; }
.post-more summary::-webkit-details-marker { display: none; }
.post-more summary:hover { background: var(--soft); }
.pmenu { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.pmenu button { background: none; border: 0; text-align: left; padding: 10px 12px; border-radius: 8px; font: 500 14px var(--body); color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.pmenu button:hover { background: var(--soft); }
.pmenu .delpost { color: var(--danger); }

.post.ig .post-media { position: relative; display: block; margin: 0; border-radius: 6px; overflow: hidden; background: #000; }
.pm-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pm-track::-webkit-scrollbar { display: none; }
.pm-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4/5; display: grid; }
.post.ig .pm { width: 100%; height: 100%; aspect-ratio: auto; border: 0; padding: 0; background: #dfe5ee center/cover no-repeat; cursor: pointer; }
.post.ig .pm-slide video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; background: #000; }
.pm-text { aspect-ratio: 1; place-items: center; padding: 28px; background: linear-gradient(150deg, #333a43 0%, #232931 60%, #1b4a57 100%); }
.pm-text.t1 { background: linear-gradient(150deg, #3ac4eb 0%, #1f9fc4 100%); } .pm-text.t1 p { color: #0a0e1a; }
.pm-text.t2 { background: linear-gradient(150deg, #e2f6fc 0%, #bfe9f6 100%); } .pm-text.t2 p { color: #333a43; }
.pm-text.t3 { background: linear-gradient(150deg, #0d7a6f 0%, #0a5b53 100%); }
.pm-text.t4 { background: linear-gradient(150deg, #f4efe6 0%, #e8dfcf 100%); } .pm-text.t4 p { color: #333a43; }
.pm-text p { margin: 0; color: #fff; text-align: center; font: 700 clamp(19px, 5.4vw, 25px)/1.3 var(--display); letter-spacing: -.01em; white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-count { position: absolute; top: 12px; right: 12px; background: rgba(10, 14, 26, .7); color: #fff; font: 600 12px var(--body); padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.pm-burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: #fff; opacity: 0; }
.pm-burst svg { fill: #fff; stroke: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35)); }
.pm-burst.go { animation: burst .8s ease-out; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: .95; transform: scale(1.15); } 30% { transform: scale(.95); } 70% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.pm-dots { display: flex; justify-content: center; gap: 4px; margin: 10px 0 -26px; pointer-events: none; }
.pm-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c9cfd8; }
.pm-dots i.on { background: var(--brand); }

.post-body { padding-top: 4px; font-size: 14px; }
.post.ig .actions { display: flex; gap: 14px; align-items: center; height: 42px; }
.post.ig .actions button { background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; display: grid; }
.post.ig .actions button:hover { opacity: .6; }
.post.ig .actions .like.on { color: #f04438; }
.post.ig .actions .like.on svg { fill: currentColor; }
.like.pop svg { animation: pop .35s ease-out; }
@keyframes pop { 40% { transform: scale(1.25); } }
.likes-count { font-weight: 700; margin-bottom: 4px; }
.post.ig .likers { margin: 0 0 4px; font-size: 14px; }
.caption { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.caption a, .comment a { color: var(--text); }
.caption.clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn, .all-comments { color: var(--muted) !important; font-size: 14px; text-decoration: none !important; padding: 0; margin: 2px 0; }
.all-comments { display: block; margin-top: 6px; }
.post.ig .comments { border: 0; margin: 4px 0 0; padding: 0; }
.post.ig .comment { font-size: 14px; padding: 2px 0; line-height: 1.4; overflow-wrap: anywhere; }
.c-meta { font-size: 12px; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.c-meta .link-btn { font-size: 12px; color: var(--muted); margin-left: 6px; text-decoration: none; }
.post.ig .cform { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.post.ig .cform input { flex: 1; min-width: 0; border: 0; background: none; padding: 6px 0; font: 14px var(--body); box-shadow: none; outline: none; }
.post.ig .cform .c-post { font-weight: 700; color: var(--brand-dark); text-decoration: none; font-size: 14px; }
.post.ig .cform input:placeholder-shown + .c-post { opacity: .35; pointer-events: none; }

.community .feed-divider { margin: 8px 0 18px; }
.community .feed-hint { margin: 14px 0; }
.community #feedTools { margin-top: 12px; }
.rv-post.ig { border: 0; padding: 0; margin: 0; }
.rv-post .pm-slide { aspect-ratio: 4/5; }
.review-modal { width: min(470px, 100%); }
@media (max-width: 560px) {
  .post.ig .post-media { margin: 0 calc(50% - 50vw); border-radius: 0; }
  .post.ig { margin-bottom: 6px; }
}

/* ---------- Main page: highlight bubbles (like stories) ---------- */
.quick.hl-row { gap: 14px; margin: -4px 0 18px; padding: 4px 2px 14px; border-bottom: 1px solid var(--line); }
.quick.hl-row .hl { flex: none; display: grid; justify-items: center; gap: 6px; width: 76px; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  color: var(--text); font-size: 12px; font-weight: 500; text-align: center; transform: none; }
.quick.hl-row .hl:hover { transform: none; box-shadow: none; border: 0; }
.hl-ring { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: #d6dbe3; display: grid; transition: transform .15s; }
.hl-ring.live { background: conic-gradient(from 200deg, #3ac4eb, #13b5a0, #333a43, #3ac4eb); }
.hl:hover .hl-ring { transform: scale(1.05); }
.hl-pic { border-radius: 50%; border: 3px solid var(--bg); background: var(--soft) center/cover no-repeat; display: grid; place-items: center; color: var(--brand-dark); }
.hl-pic .ic { color: var(--brand-dark); opacity: .85; }
.hl-label { max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .quick.hl-row { margin: -2px -16px 14px; padding-left: 16px; padding-right: 16px; gap: 12px; }
  .quick.hl-row .hl { width: 70px; } .hl-ring { width: 66px; height: 66px; }
}
.fav.pop svg { animation: pop .4s ease-out; }
#hl .quick.hl-row { margin: -10px 0 18px; border-bottom: 0; padding-bottom: 6px; }
@media (max-width: 760px) { #hl .quick.hl-row { margin: -6px -16px 12px; } }
/* Apple Maps (iPhone app) */
.amap-callout { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; max-width: 240px; font-size: 13.5px; }

/* ---------- Voice messages ---------- */
.composer { position: relative; }
.mic-btn { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--text); cursor: pointer; flex: none; }
.mic-btn:hover { background: var(--accent); color: var(--brand-dark); }
.rec-bar { display: none; }
.composer.recording > :not(.rec-bar), .composer.has-voice > :not(.rec-bar) { visibility: hidden; }
.composer.recording .rec-bar, .composer.has-voice .rec-bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rec-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 50%; display: grid; }
.rec-x:hover { color: var(--danger); background: var(--soft); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #f04438; animation: recblink 1s ease-in-out infinite; }
@keyframes recblink { 50% { opacity: .25; } }
.rec-time { font: 600 15px var(--body); font-variant-numeric: tabular-nums; }
.rec-hint { color: var(--muted); font-size: 14px; flex: 1; }
.rec-bar .btn { margin-left: auto; padding: 10px 18px; display: inline-flex; gap: 6px; align-items: center; }
.rec-bar .voice { flex: 1; background: none; padding: 0; }

.voice { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 320px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--soft); }
.msg.me .voice { background: var(--accent); margin-left: auto; }
.vp-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand-dark); color: #fff; display: grid; place-items: center; cursor: pointer; padding-left: 2px; }
.voice.playing .vp-play { padding-left: 0; }
.vp-wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.vp-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #b5bfcc; transition: background .1s; }
.vp-wave i.on { background: var(--brand-dark); }
.vp-time { font: 600 12.5px var(--body); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.report .voice { margin: 8px 0; }
.msg-report { color: var(--muted); }

/* ---------- Music on posts and statuses ---------- */
.ph-music { margin-top: 1px; }
.music-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border: 0; background: none; padding: 0; font: 500 12.5px var(--body); color: var(--text); cursor: pointer; }
.music-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-tag .ic { flex: none; }
.post.music-on .music-tag .ic { color: var(--brand-dark); animation: musicbob 1s ease-in-out infinite; }
@keyframes musicbob { 50% { transform: translateY(-2px); } }
.pm-sound { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(10, 14, 26, .72); color: #fff; cursor: pointer; }
.pm-sound .ic { stroke: #fff; }
.music-chip { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--brand-dark); font-size: 13.5px; font-weight: 600; max-width: 100%; }
.music-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-chip .link-btn { font-size: 13px; color: var(--brand-dark); display: inline-grid; }
.story-music { display: flex !important; align-items: center; gap: 4px; font-size: 12px; opacity: .9; }
.story-music .ic { stroke: #fff; }

.music-modal { width: min(460px, 100%); display: grid; gap: 12px; }
.music-modal .rv-title { display: inline-flex; align-items: center; gap: 8px; }
.mu-moods { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mu-moods button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font: 600 13.5px var(--body); color: var(--text); cursor: pointer; }
.mu-moods button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mu-list { display: grid; max-height: min(52vh, 460px); overflow-y: auto; margin: 0 -4px; }
.mu-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-top: 1px solid var(--line); border-radius: 10px; }
.mu-row.on { background: var(--accent); }
.mu-play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand-dark); color: #fff; display: grid; place-items: center; cursor: pointer; padding-left: 2px; }
.mu-row.on .mu-play { padding-left: 0; }
.mu-who { flex: 1; min-width: 0; display: grid; font-size: 14.5px; }
.mu-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-who span { color: var(--muted); font-size: 12.5px; }
.mu-remove { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--danger); }
.mu-credit { font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
.mu-part { display: grid; gap: 10px; }
.mu-wave { position: relative; height: 64px; display: flex; align-items: center; gap: 2px; padding: 0 2px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.mu-wave i { flex: 1; border-radius: 2px; background: #b5bfcc; }
.mu-window { position: absolute; top: 0; bottom: 0; border-radius: 8px; border: 2px solid var(--brand); background: rgba(58, 196, 235, .18); pointer-events: none; }
.mu-part input[type=range] { width: 100%; accent-color: var(--brand-dark); }
.mu-range-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* ---------- Address suggestions ---------- */
.addr-wrap { position: relative; }
.addr-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.addr-list[hidden] { display: none; }
.addr-opt { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 10px; border-radius: 8px; cursor: pointer; font: 14.5px var(--body); color: var(--text); }
.addr-opt:hover, .addr-opt.on { background: var(--soft); }
.addr-opt .ic { flex: none; color: var(--muted); }
.addr-opt span { display: grid; min-width: 0; }
.addr-opt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-opt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-attrib { text-align: right; font-size: 11px; color: var(--muted); padding: 4px 8px 2px; }

/* ---------- Near you ---------- */
.hl-ring.near { background: conic-gradient(from 200deg, #3ac4eb, #13b5a0, #333a43, #3ac4eb); }
.hl-ring.near .hl-pic { background: var(--accent); }
.hl-ring.near .hl-pic .ic { color: var(--brand-dark); opacity: 1; }
button.hl { font: inherit; cursor: pointer; }
.map-locate { position: absolute; right: 12px; bottom: 28px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--text); font: 600 14px var(--body); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; }
.map-locate .ic { color: var(--brand-dark); }
.you-dot { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26, 115, 232, .22), 0 1px 4px rgba(0, 0, 0, .4); }
.quick.hl-row .hl { scroll-snap-align: start; }

/* ---------- WhatsApp button ---------- */
.btn.wa-btn { background: #25d366; color: #0a2e17; border-color: #25d366; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.wa-btn:hover { background: #1ebe5b; border-color: #1ebe5b; color: #0a2e17; }
.btn.wa-btn.wide { width: 100%; margin-top: 8px; }

/* The plain-text version of each page is for search engines and link previews. People see a short
   loading spinner instead while the app starts (people without JavaScript still get the text, see index.html). */
.ssr { display: none; }
#app:has(.ssr)::before { content: ""; display: block; width: 34px; height: 34px; margin: 22vh auto 0; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand); animation: bootspin .8s linear infinite; }
@keyframes bootspin { to { transform: rotate(360deg); } }
body:has(#app > .ssr) > footer { visibility: hidden; }
/* Narrow phones (360-400 px, common on Android): keep the top bar on one line */
@media (max-width: 420px) {
  .topbar { flex-wrap: nowrap; gap: 6px; padding: 10px 12px; }
  .brand { min-width: 0; flex: 0 1 auto; gap: 7px; font-size: 18px; }
  .brand-label { min-width: 0; max-width: none; }
  .nav-right { flex: none; gap: 0; }
  .nav-right .btn { padding: 7px 10px; }
  .icon-btn { width: 36px; height: 36px; }
}
/* Filters sheet: one-tap quick picks */
.quick-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.qp { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: 600 13.5px var(--body); }
.qp .ic { color: var(--brand-dark); }
.qp:hover { border-color: var(--brand); color: var(--text); }
.qp.on { background: var(--ink); color: #fff; border-color: var(--ink); } .qp.on .ic { color: #3ac4eb; }

/* ---------- Main page bubbles: centered, even, a bit larger ---------- */
#hl .quick.hl-row { gap: 22px; padding: 8px 4px 10px; margin: -6px 0 22px; scroll-snap-type: x proximity; }
#hl .quick.hl-row::before, #hl .quick.hl-row::after { content: ""; margin: auto; } /* centered when it fits, scrolls when it doesn't */
#hl .quick.hl-row .hl { width: 84px; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
#hl .hl-label { max-width: 84px; }
#hl .hl-ring { width: 80px; height: 80px; padding: 3px; transition: transform .18s ease, box-shadow .18s ease; }
#hl .hl:hover .hl-ring { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(10, 14, 26, .35); }
#hl .hl-ring.icon .hl-pic { background: linear-gradient(160deg, #e9f8fd 0%, #d3f0f9 100%); }
#hl .hl-ring.icon .hl-pic .ic { color: var(--brand-dark); opacity: 1; }
@media (max-width: 760px) {
  #hl .quick.hl-row { gap: 14px; margin: -4px -16px 14px; padding: 6px 16px 8px; }
  #hl .quick.hl-row .hl { width: 70px; font-size: 12px; }
  #hl .hl-label { max-width: 70px; }
  #hl .hl-ring { width: 66px; height: 66px; }
}

/* ---------- Main page stories row ---------- */
#hl .stories .hl { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
#hl .stories .hl-ring { position: relative; }
#hl .stories .hl-ring.seen { background: #d6dbe3; }
#hl .stories .hl-ring.add { background: none; border: 2px dashed #c5ccd8; padding: 2px; }
#hl .stories .hl-ring.listing { background: conic-gradient(from 200deg, #3ac4eb, #f5b544, #3ac4eb, #13b5a0, #3ac4eb); }
#hl .stories .hl-pic.no-img { background: linear-gradient(135deg, var(--brand), #13b5a0); color: var(--on-brand); font: 800 22px var(--display); }
#hl .hl-plus { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; border: 2px solid var(--bg); }
#hl .hl-new { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--ink); color: #fff; font: 800 9.5px var(--body); letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; border: 2px solid var(--bg); }
#hl .sk-hl { display: grid; justify-items: center; gap: 8px; width: 84px; flex: none; }
#hl .sk-hl .hl-ring { background: var(--soft); animation: skpulse 1.2s ease-in-out infinite; }
#hl .sk-line { width: 48px; height: 10px; border-radius: 5px; background: var(--soft); }
@keyframes skpulse { 50% { opacity: .55; } }
@media (max-width: 760px) { #hl .sk-hl { width: 70px; } }

/* Listing stories (full screen) */
.story-card.listing-story { background: #000; }
.story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-story .story-head { background: linear-gradient(rgba(0,0,0,.45), transparent); top: 0; padding: 22px 12px 30px; left: 0; right: 0; }
.ls-who { display: flex; align-items: center; gap: 10px; }
.ls-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(0,0,0,.78)); display: grid; gap: 3px; }
.ls-price { font: 800 30px var(--display); letter-spacing: -0.02em; }
.ls-facts { font-size: 15px; opacity: .92; }
.ls-addr { font-size: 14px; opacity: .8; margin-bottom: 10px; }
.ls-go { justify-content: center; display: inline-flex; align-items: center; gap: 6px; }
.listing-story .story-nav { bottom: 170px; }

/* ---------- Bottom bar on phones (like Instagram) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body:not(.no-tabbar):not(.reels-mode):not(.print-mode) .tabbar { display: grid; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; grid-template-columns: repeat(5, 1fr); align-items: center;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tab { display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font: 600 10.5px var(--body); text-decoration: none; }
  .tab .ic { stroke-width: 1.9; }
  .tab.on { color: var(--ink); } .tab.on .ic { stroke-width: 2.4; }
  .tab-list .tab-ic { width: 44px; height: 32px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
  .tab-list .tab-lbl { display: none; }
  body:not(.no-tabbar):not(.reels-mode):not(.print-mode) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* the bar has List, so the header doesn't need its own List button on phones */
  .nav-right > a.btn[href="/sell"] { display: none; }
}
@media (max-width: 760px) { body:not(.no-tabbar):not(.reels-mode) .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
/* Reels keep the bottom bar on phones, in a dark style, like Instagram */
@media (max-width: 760px) {
  body.reels-mode:not(.no-tabbar) .tabbar { display: grid; z-index: 1600; background: #000; border-top-color: #1d2230; }
  body.reels-mode .tab { color: #8b93a5; } body.reels-mode .tab.on { color: #fff; }
  body.reels-mode .reels-page { bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Guides (SEO pages for owners, landlords and brokers) ---------- */
.guide { max-width: 760px; margin: 0 auto; font-size: 16.5px; line-height: 1.65; }
.guide h1 { font: 800 clamp(30px, 5vw, 42px)/1.12 var(--display); letter-spacing: -0.025em; margin: 6px 0 12px; }
.guide-intro { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.guide section { margin-top: 30px; }
.guide h2 { font: 700 22px var(--display); margin: 0 0 8px; }
.guide ul, .guide ol { padding-left: 22px; } .guide li { margin: 4px 0; }
.guide-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.guide-faq summary { cursor: pointer; font-weight: 600; }
.guide-faq p { margin: 8px 0 0; color: var(--muted); }
.guide-cta { margin: 34px 0 10px; padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.guide-cta b { font: 700 20px var(--display); } .guide-cta span { color: #c9d3e3; flex: 1; } 
.guide-more { display: grid; gap: 4px; margin: 26px 0 0; }
.guide-more b { margin-bottom: 4px; }
.guide-more a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-weight: 600; }
.footer-guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-bottom: 12px; font-size: 13.5px; }
.footer-guides a { color: var(--muted); }
