:root {
  color-scheme: light;
  --bg: #faf8f5; --card: #ffffff; --ink: #292b26; --muted: #686b62; --line: #e5e3dc;
  --brand: #a64d30; --brand-ink: #ffffff; --accent: #f3e9df; --ok: #38714e; --radius: 16px;
  --shadow: 0 10px 32px rgba(59, 43, 27, .06);
  --danger: #c2410c; --map-control-filter: none;
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #1c1e1b; --card: #252823; --ink: #f1eee7; --muted: #b3b6aa; --line: #3d4138; --brand: #edaa89; --brand-ink: #29211a; --accent: #383027; --ok: #8ed0a5; --shadow: none; --danger: #ffb199; --map-control-filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #1c1e1b; --card: #252823; --ink: #f1eee7; --muted: #b3b6aa; --line: #3d4138; --brand: #edaa89; --brand-ink: #29211a; --accent: #383027; --ok: #8ed0a5; --shadow: none; --danger: #ffb199; --map-control-filter: invert(1); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 32px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 52px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.55rem; letter-spacing: -.05em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { border-radius: 12px; display: block; }
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { color: var(--muted); padding: 10px 0; font-size: .9rem; font-weight: 550; }
.nav a:hover { color: var(--brand); }
.langs { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.langs a { color: var(--muted); font-size: .75rem; font-weight: 650; padding: 6px 8px; border-radius: 6px; }
.langs a[aria-current] { color: var(--brand); background: var(--accent); }
main.wrap { padding-top: 32px; padding-bottom: 72px; min-height: 65vh; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -.045em; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.3; margin: 1.6em 0 .6em; }
.eyebrow { color: var(--brand); font-size: .73rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }
.skip-link { position: fixed; left: 20px; top: -100px; background: var(--card); padding: 12px 20px; z-index: 50; border: 1px solid var(--brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }
input, select, button, .button { font: inherit; padding: 11px 12px; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
button, .button { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); cursor: pointer; display: inline-block; }
.button.secondary { background: transparent; color: var(--brand); }
.chips { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 8px 0; }
.chips li { padding: 0; }
.chips a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); display: inline-block; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head > a { font-size: .85rem; font-weight: 650; flex-shrink: 0; }
.section-head > a span { margin-left: 8px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 12px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { color: inherit; display: block; height: 100%; }
.card-link:hover { text-decoration: none; }
.card img, .card-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--line); }
.card-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); background: var(--accent); font-size: .8rem; }
.card-noimg .icon { width: 48px; height: 48px; opacity: .6; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1rem; margin: 4px 0; font-weight: 600; }
.price { font-weight: 750; font-size: 1.15rem; letter-spacing: -.025em; }
.price.big { font-size: 1.6rem; }
.meta, .note, .count { color: var(--muted); font-size: .9rem; margin: 2px 0; }
.badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.listing-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .listing-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.gallery img { width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0; overflow-x: auto; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; height: fit-content; display: grid; gap: 10px; }
.app-hint { color: var(--muted); font-size: .9rem; }
.description { white-space: pre-line; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.map-box { height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--line); margin: 12px 0; position: relative; }
.map-box.small { height: 260px; }
.map-fallback { padding: 12px; color: var(--muted); }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 20px 0; }
.stats { display: flex; gap: 20px; list-style: none; padding: 0; flex-wrap: wrap; }
.reviews { list-style: none; padding: 0; display: grid; gap: 12px; }
.reviews li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.reply { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; color: var(--muted); font-size: .85rem; }
.osm { font-size: .8rem; }
.empty { color: var(--muted); padding: 24px 0; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #000; }
.lightbox img { max-width: 94vw; max-height: 80dvh; object-fit: contain; touch-action: pan-y pinch-zoom; }
.lightbox button { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; padding: 0; font-size: 1.6rem; border: 1px solid #aaa; background: #222; color: #fff; border-radius: 50%; }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 12px; right: auto; } .lightbox .next { right: 12px; }
.lightbox-count { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); margin: 0; }
.embed-frame { width: 100%; height: 70vh; border: 0; border-radius: var(--radius); }
.story-rail { list-style: none; display: flex; gap: 14px; padding: 4px 0 12px; margin: 8px 0; overflow-x: auto; }
.story-rail button { background: none; border: 0; padding: 0; color: var(--ink); display: grid; justify-items: center; gap: 4px; width: 76px; cursor: pointer; }
.story-ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #e8b56e, #be6140, #7e8664); display: grid; place-items: center; overflow: hidden; }
.story-ring.plain { background: var(--line); }
.story-ring img, .story-ring b { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); background: var(--card); display: grid; place-items: center; }
.story-name { font-size: .75rem; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.92); color: #fff; }
.story-viewer[open] { display: grid; place-items: center; }
.story-viewer::backdrop { background: #000; }
.story-frame { position: relative; width: min(100vw, 420px); height: min(100dvh, 760px); background: #000; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; color: #fff; }
.story-bars { display: flex; gap: 4px; padding: 8px 8px 0; position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.story-bars span { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.story-bars i { display: block; height: 100%; background: #fff; }
.story-head { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.story-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-controls { display: flex; flex-shrink: 0; }
.story-head button { width: 44px; min-height: 44px; background: rgba(0,0,0,.45); border: 0; color: #fff; font-size: 1.8rem; padding: 0; cursor: pointer; }
.story-head button[aria-disabled="true"] { opacity: .35; cursor: default; }
.story-head button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.story-stage { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); place-items: center; touch-action: manipulation; user-select: none; }
.story-media { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-caption { position: absolute; left: 12px; right: 12px; bottom: 64px; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.8); z-index: 2; }
.story-listing { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; z-index: 2; }
.legal { max-width: 46rem; }
.legal p { white-space: pre-line; line-height: 1.6; }
.legal-version { color: var(--muted); font-size: .85rem; }
.legal-links { margin: 0 0 .5rem; }

button:hover, .button:hover { filter: brightness(.94); text-decoration: none; }
input, select { width: 100%; min-width: 0; }
input::placeholder { color: var(--muted); opacity: .85; }
.filter-field { display: grid; gap: 8px; min-width: 0; }
.filter-field > span, .filter-field > label { color: var(--ink); font-size: .78rem; font-weight: 650; }
.home-section { margin-top: 44px; }
.story-slot:empty { display: none; }
.card-media { position: relative; }
.card-type, .card-tour { position: absolute; top: 12px; padding: 5px 10px; border-radius: 6px; background: var(--card); color: var(--ink); font-size: .7rem; font-weight: 650; }
.card-type { left: 12px; }
.card-tour { right: 12px; background: #35392f; color: #fff; }
.card-location { display: flex; align-items: center; gap: 5px; margin: 10px 0 12px; font-size: .8rem; color: var(--muted); }
.card-location .icon { width: 14px; height: 14px; }
.card-specs:not(:empty) { padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; }
.card-body h3 { line-height: 1.45; overflow-wrap: anywhere; }
.search-heading { margin: 16px 0 36px; }
.search-heading p { color: var(--muted); max-width: 660px; }
.search-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; }
.search-filters { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.search-filters h2 { display: inline; margin: 0; font-size: 1.1rem; }
.filter-panel > summary { cursor: pointer; }
.filter-panel[open] > summary { margin-bottom: 22px; }
.search-filters form { display: grid; gap: 20px; }
.search-filters .filter-field { margin: 0; }
.search-filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.search-filters legend { font-size: .78rem; font-weight: 650; margin-bottom: 10px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-hint { color: var(--muted); font-size: .73rem; margin: 8px 0 0; }
.filter-actions { display: grid; gap: 14px; text-align: center; }
.filter-actions a { font-size: .8rem; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.results-head h2 { margin: 0; font-size: 1.2rem; }
.results-head .count { font-size: .85rem; }
.search-results { min-width: 0; }
.search-results .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-map { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 24px; overflow: hidden; }
.search-map summary { cursor: pointer; padding: 15px 20px; font-size: .85rem; font-weight: 600; }
.search-map .map-box { margin: 0; border-radius: 0; }
.empty-state { padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state h2, .empty-state h3 { margin: 0 0 12px; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px 80px; }
.footer-grid > div { max-width: 460px; }
.legal-links { display: flex; flex-wrap: wrap; align-content: start; gap: 24px; padding-top: 10px; }
.osm { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
@media (min-width: 1100px) { .search-results .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .search-results .card-body { padding: 16px; } }
@media (max-width: 960px) {
  .bar { gap: 28px; }
  .nav { gap: 18px; }
  .search-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .search-filters { padding: 18px; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 20px; }
  .bar { min-height: 76px; gap: 4px 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
  .brand { font-size: 1.35rem; }
  .logo { width: 34px; height: 34px; }
  .langs { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 14px; }
  .nav a { font-size: .8rem; padding: 8px 0 2px; }
  main.wrap { padding-top: 24px; padding-bottom: 48px; }
  .eyebrow { font-size: .65rem; margin-bottom: 14px; }
  .home-section { margin-top: 32px; }
  .section-head { gap: 12px; margin-bottom: 16px; }
  .section-head h2 { font-size: 1.2rem; }
  .section-head > a { font-size: .75rem; }
  .search-heading { margin: 8px 0 24px; }
  .search-layout { grid-template-columns: 1fr; }
  .search-filters form { grid-template-columns: 1fr 1fr; gap: 16px; }
  .search-filters fieldset, .search-filters .filter-actions { grid-column: 1 / -1; }
  .search-filters .filter-actions { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .legal-links { padding: 0; }
}
@media (max-width: 460px) {
  .search-results .grid { grid-template-columns: 1fr; }
  .results-head { flex-wrap: wrap; gap: 8px; }
  .search-filters form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

.price-inputs { margin-top: 12px; }
.result-sort { max-width: 310px; }
.sort-controls { display: flex; gap: 8px; }
.sort-controls button { font-size: .8rem; }

/* Redesign (2026-10-07): home intro and rails, search toolbar and tabs, card extras, bottom bar on phones. */
.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; }
.home-intro { padding: 20px 0 8px; }
.home-intro h1 { max-width: 760px; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; margin-bottom: 26px; }
.browse-search { display: flex; align-items: center; gap: 10px; max-width: 780px; padding: 7px 7px 7px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.browse-search:focus-within { border-color: var(--brand); }
.browse-search > .icon { width: 20px; height: 20px; color: var(--muted); }
.browse-search input { flex: 1; border: 0; background: transparent; padding: 10px 2px; min-height: 46px; }
.browse-search input:focus-visible { outline: none; }
.browse-search button { padding-inline: 24px; font-weight: 650; }
.filter-shortcut { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.browse-search button.filter-shortcut { padding: 0; }
.search-filter-shortcut { display: none; }
.filter-shortcut:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.filter-shortcut .icon { width: 20px; height: 20px; }
.type-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.type-tile { display: grid; align-content: start; gap: 4px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .18s ease, border-color .18s ease; }
.type-tile:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.type-tile strong { font-size: 1rem; }
.type-tile > span:last-child { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.type-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--accent); color: var(--brand); }
.type-icon .icon { width: 24px; height: 24px; }
.listing-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: thin; }
.listing-rail > .card { scroll-snap-align: start; }
.seller-rail { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; padding: 0; margin: 0; }
.seller-tile { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.seller-tile:hover { border-color: var(--brand); text-decoration: none; }
.seller-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--accent); color: var(--brand); font-weight: 750; font-size: 1.1rem; }
.seller-summary { display: grid; gap: 2px; min-width: 0; }
.seller-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-rating { font-size: .85rem; font-weight: 650; }
.seller-rating span { color: var(--muted); font-weight: 400; }
.seller-summary .meta { font-size: .8rem; margin: 0; }
.category-rail { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.category-rail a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9rem; }
.category-rail a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.category-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--brand); }
.category-icon .icon { width: 18px; height: 18px; }
.region-rail { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; padding: 0; margin: 0; }
.region-rail a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.region-rail a:hover { border-color: var(--brand); text-decoration: none; }
.region-rail .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.region-rail a > span { color: var(--muted); font-size: .8rem; }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.negotiable { font-size: .7rem; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.card-condition { color: var(--muted); font-size: .8rem; margin: -4px 0 10px; }
.search-page { min-width: 0; }
.search-toolbar { display: flex; gap: 10px; max-width: 780px; margin: 0 0 18px; }
.search-keyword { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.search-keyword:focus-within { border-color: var(--brand); }
.search-keyword .icon { width: 18px; height: 18px; color: var(--muted); }
.search-keyword input { border: 0; background: transparent; padding-left: 0; }
.search-keyword input:focus-visible { outline: none; }
.search-toolbar button { padding-inline: 22px; font-weight: 650; }
.search-types { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 28px; padding-bottom: 4px; scrollbar-width: none; }
.search-types a { flex-shrink: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .85rem; font-weight: 600; }
.search-types a:hover { border-color: var(--brand); text-decoration: none; }
.search-types a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.filter-price { display: grid; gap: 0; }
.filter-toggle { display: flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }
.filter-toggle input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--brand); }
[data-filter-count]:not([hidden]) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; vertical-align: middle; }
[data-region-enhanced]:not([hidden]) { display: grid; gap: 16px; }
.search-view-controls:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.search-view-controls button { min-height: 40px; background: transparent; border: 0; color: var(--muted); font-weight: 650; }
.search-view-controls button[aria-pressed="true"] { background: var(--accent); color: var(--brand); }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-rail { grid-auto-columns: calc((100% - 40px) / 3); }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
  .mobile-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: .7rem; font-weight: 600; }
  .mobile-nav a:hover { text-decoration: none; }
  .mobile-nav a[aria-current="page"] { color: var(--brand); }
  .mobile-nav .icon { width: 22px; height: 22px; }
  .home-intro { padding-top: 8px; }
  .browse-search { padding-left: 14px; gap: 8px; }
  .browse-search button { padding-inline: 16px; }
  .type-tiles { gap: 12px; }
  .type-tile { padding: 16px; }
  .listing-rail { grid-auto-columns: 78%; gap: 14px; }
  .search-toolbar button { padding-inline: 16px; }
  .search-types { margin-bottom: 20px; }
}
@media (max-width: 460px) {
  .browse-search > .icon { display: none; }
  .type-tile > span:last-child { display: none; }
}
body.filters-open { overflow: hidden; }
.phone-filters { width: calc(100% - 24px); max-width: 520px; max-height: 90dvh; margin: auto auto 12px; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); overscroll-behavior: contain; }
.phone-filters::backdrop { background: rgba(0, 0, 0, .5); }
.phone-filters .search-filters { border: 0; padding: 24px 20px 0; }
.phone-filters summary { pointer-events: none; list-style: none; padding-right: 44px; }
.phone-filters summary::-webkit-details-marker { display: none; }
.phone-filters .filter-actions { position: sticky; bottom: 0; padding: 16px 0 max(16px, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.phone-filters-close { position: sticky; float: right; top: 12px; margin: 12px 12px -56px 0; width: 44px; height: 44px; min-height: 44px; padding: 0; z-index: 1; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 1.6rem; }
.search-filter-shortcut { position: relative; }
.filter-shortcut-count[data-filter-count]:not([hidden]) { position: absolute; top: -7px; right: -7px; margin: 0; min-width: 20px; height: 20px; border: 2px solid var(--card); font-size: .65rem; }
@media (max-width: 720px) {
  .search-filter-shortcut { display: grid; }
  .search-layout > .search-filters.filters-enhanced { display: none; }
}
@media (prefers-reduced-motion: reduce) { .type-tile { transition: none; } .type-tile:hover { transform: none; } }
.map-status { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 8px 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); font-size: .8rem; }
.map-status button { min-height: 32px; padding: 4px 12px; font-size: .8rem; }
.map-box .maplibregl-popup-content { background: var(--card); color: var(--ink); border-radius: 12px; padding: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.map-box .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--card); }
.map-box .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--card); }
.map-box .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--card); }
.map-box .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--card); }
.map-box .maplibregl-popup-close-button { min-height: 0; padding: 0 6px; background: transparent; border: 0; color: var(--muted); font-size: 1.2rem; }
.map-card { display: grid; gap: 4px; color: var(--ink); }
.map-card:hover { text-decoration: none; }
.map-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--line); }
.map-card span { color: var(--brand); font-size: .8rem; font-weight: 650; }
.map-price { min-height: 36px; padding: 6px 12px; border: 2px solid var(--card); border-radius: 999px; background: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font-size: .8rem; font-weight: 750; white-space: nowrap; }
.map-price:hover, .map-price:focus-visible { z-index: 1; outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 720px) { .search-map .map-box { height: 64vh; } }
/* Listing and seller pages (2026-10-07). */
.listing-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 12px; }
.listing-kicker .card-location { margin: 0; font-size: .85rem; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--brand); font-size: .75rem; font-weight: 700; }
.pill:hover { text-decoration: none; filter: brightness(.96); }
.listing .listing-grid { margin-top: 8px; }
.listing .summary { padding: 22px; gap: 14px; box-shadow: var(--shadow); }
.summary-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.summary-facts .note { margin: 0; font-size: .8rem; }
.summary .seller-tile { padding: 12px; background: var(--bg); }
.summary .button { text-align: center; }
@media (min-width: 860px) { .listing .summary { position: sticky; top: 110px; } }
.listing section { margin-top: 36px; }
.listing section h2 { margin: 0 0 14px; }
.specs { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-width: 640px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .85rem; }
.seller-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.seller-head h1 { margin-bottom: 6px; }
.seller-head p { margin: 4px 0; }
.seller-avatar.large { width: 96px; height: 96px; font-size: 2.2rem; }
.stats { margin: 14px 0 0; gap: 10px; }
.stats li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: .85rem; color: var(--muted); }
.stats strong { color: var(--ink); margin-right: 4px; }
.reviews li { padding: 16px; }
.reviews strong { color: var(--brand); letter-spacing: .1em; }
@media (max-width: 720px) {
  .seller-head { grid-template-columns: 1fr; gap: 14px; }
  .seller-avatar.large { width: 72px; height: 72px; font-size: 1.7rem; }
}
.page-intro { color: var(--muted); margin: 0 0 28px; max-width: 660px; }
.error-page { margin-top: 24px; }
.error-page h1 { font-size: clamp(3rem, 9vw, 5rem); color: var(--brand); margin-bottom: 8px; }
/* Account pages and the favorite heart (2026-10-07). */
.account-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; margin-left: auto; }
.account-link .icon { width: 20px; height: 20px; }
.account-link:hover { color: var(--brand); text-decoration: none; }
.account-page { max-width: 960px; }
.account-tabs { margin-bottom: 24px; }
.account-card { display: grid; gap: 14px; max-width: 480px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.account-card label { font-size: .8rem; font-weight: 650; }
.phone-field { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.phone-field:focus-within { border-color: var(--brand); }
.phone-field span { padding: 0 4px 0 14px; color: var(--muted); font-weight: 600; }
.phone-field input { border: 0; background: transparent; letter-spacing: .04em; }
.phone-field input:focus-visible { outline: none; }
.sign-in-big { font-size: 1.4rem; letter-spacing: .02em; margin: 0; overflow-wrap: anywhere; }
.sign-in-big strong { color: var(--brand); }
.sign-in-code { margin: 0; }
.account-card .button { text-align: center; }
.form-problem { color: var(--danger); font-size: .9rem; margin: 0; }
.account-name { font-size: 1.3rem; font-weight: 700; margin: 0; }
.account-note { color: var(--muted); font-size: .9rem; margin: 0; }
.appearance-settings { margin-top: 24px; }
.appearance-settings h2 { margin: 0; font-size: 1.15rem; }
.theme-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; border: 0; min-width: 0; }
.theme-choices label { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; text-align: center; }
.theme-choices input { width: 18px; height: 18px; min-height: 0; padding: 0; flex-shrink: 0; accent-color: var(--brand); margin: 0; }
.theme-choices label:has(input:checked) { border-color: var(--brand); background: var(--accent); color: var(--brand); }
.theme-choices label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (max-width: 460px) {
  .theme-choices label { flex-direction: column; }
}
.my-listings { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.my-listings li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.my-listings li > div { display: grid; gap: 2px; min-width: 0; }
.my-listings strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-listings a { font-size: .85rem; font-weight: 650; }
.status { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.status-active { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.status-pending, .status-draft { background: var(--accent); color: var(--brand); }
.status-rejected, .status-expired { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.card { position: relative; }
.card-remove { position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 4px 12px; font-size: .75rem; }
.summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.favorite-slot:empty { display: none; }
.favorite-button { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--brand); }
.favorite-button:hover { border-color: var(--brand); text-decoration: none; }
.favorite-button[aria-pressed="true"] { background: var(--accent); border-color: var(--brand); }
@media (max-width: 720px) {
  .account-link { display: none; }
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .my-listings li { grid-template-columns: minmax(0, 1fr) auto; }
  .my-listings li > :last-child { grid-column: 1 / -1; }
}
.nav a { white-space: nowrap; }
@media (max-width: 1100px) { .account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* Region pages (2026-10-07). */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.count-chip { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--brand); font-size: .72rem; text-align: center; }
.search-types a[aria-current="page"] .count-chip { background: var(--brand-ink); }
/* 360° tour and 3D model over the page (2026-10-07). */
.embed-overlay, .map-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; }
.embed-overlay::backdrop, .map-dialog::backdrop { background: #000; }
.embed-overlay .embed-frame { width: 100%; height: 100%; border: 0; border-radius: 0; display: block; }
.embed-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.6rem; line-height: 1; }
body.embed-open { overflow: hidden; }
.gallery { min-width: 0; }
/* Maps that open full screen (2026-10-07). */
.map-host { width: 100%; height: 100%; }
.map-expand { position: absolute; top: 10px; left: 10px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.25rem; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.map-expand:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.map-box.map-expanded { position: fixed; inset: 0; z-index: 40; height: auto; margin: 0; border-radius: 0; }
.map-box.map-expanded .map-expand { top: max(12px, env(safe-area-inset-top)); left: 12px; width: 44px; height: 44px; font-size: 1.6rem; border-radius: 50%; }
.map-views { display: flex; flex-direction: column; overflow: hidden; }
.map-box .map-views button { width: auto; min-width: 29px; height: 29px; min-height: 0; padding: 0 9px; border: 0; border-radius: 0; background: var(--card); color: var(--ink); font: 600 .72rem/1 system-ui, sans-serif; }
.map-box .map-views button + button { border-top: 1px solid var(--line); }
.map-box .maplibregl-ctrl-group { background: var(--card); }
.map-box .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.map-box .maplibregl-ctrl-group button:hover { background-color: var(--accent); }
.map-box .maplibregl-ctrl-icon { filter: var(--map-control-filter); }
.map-box .map-views button[aria-pressed="true"], .map-box .map-views button[aria-pressed="true"]:hover, .map-box .map-views button[aria-pressed="true"]:focus-visible { background: var(--brand); color: var(--brand-ink); }

.story-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.story-status:has(span:empty):not(:has(button)) { display: none; }

.story-video { position: relative; width: 100%; height: 100%; min-height: 0; }
.story-media-status { position: absolute; inset: 90px 12px 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; pointer-events: none; }
.story-media-status p { padding: 8px 12px; background: rgba(0,0,0,.75); border-radius: 8px; }
.story-media-status button { pointer-events: auto; background: #fff; color: #222; }

.account-dialog { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.account-dialog::backdrop { background: rgba(0,0,0,.65); }
.account-dialog .account-card { border: 0; margin: 0; }
.account-dialog h2, .saved-search-list h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.account-dialog label { display: grid; gap: 8px; }
.account-dialog .check-line { display: flex; align-items: center; }
.check-line input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex-shrink: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.saved-search-list { display: grid; gap: 16px; }
.saved-delete { border-top: 1px solid var(--line); padding-top: 12px; }
.save-search { margin: 0 0 16px; }
.save-search p { font-size: .9rem; }

.listing-editor { display: grid; gap: 20px; }
.listing-editor .account-card { max-width: none; }
.listing-editor h2 { font-size: 1.2rem; margin: 0; }
.listing-editor label { display: grid; gap: 8px; }
.listing-editor .check-line { display: flex; align-items: center; }
.listing-editor fieldset { min-width: 0; display: grid; gap: 16px; border: 1px solid var(--line); padding: 16px; border-radius: 12px; }
.listing-editor legend { font-weight: 650; padding: 0 8px; }
.editor-grid, .editor-amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editor-translations { display: grid; gap: 12px; }
.listing-editor textarea { width: 100%; min-width: 0; font: inherit; padding: 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.editor-map { height: 320px; }
.upload-photos { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.upload-photos li { display: grid; gap: 8px; }
.upload-photos img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; }
@media(max-width: 460px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } .listing-editor fieldset { padding: 12px; } }
.editor-fields{border:0!important;padding:0!important;min-width:0;margin:0!important}.editor-fields:disabled{opacity:.75}.chat-room h2{font-size:1.2rem}.conversation-list,.viewing-list{list-style:none;padding:0;display:grid;gap:1rem}.conversation-list button{width:100%;text-align:start;display:grid;gap:.4rem}.chat-messages{max-height:55dvh;min-height:10rem;overflow-y:auto;display:flex;flex-direction:column;gap:.8rem;overscroll-behavior:contain;padding:.8rem 0}.chat-message{max-width:85%;background:var(--bg);padding:.7rem 1rem;border:1px solid var(--line);border-radius:1rem;align-self:flex-start;overflow-wrap:anywhere}.chat-message.own{align-self:flex-end;background:var(--accent)}.chat-message p{margin:0 0 .5rem;white-space:pre-wrap}.chat-message img{display:block;width:100%;max-width:260px;border-radius:.5rem}.chat-compose{border-top:1px solid var(--line);padding-top:1rem;margin-bottom:1rem}.chat-file{max-width:70%;font-size:.9rem}.chat-file input{padding:.4rem;width:100%}.viewing-confirm,.viewing-address{margin-top:1rem}.viewing-confirm button{margin-inline-end:.5rem}.schedule-window{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;align-items:end;gap:.6rem;margin-bottom:1rem}.schedule-window button{margin-bottom:.65rem}.viewing-list h2{font-size:1.15rem}.account-tabs{flex-wrap:wrap}.listing-contact{margin-block:1rem}.listing-contact a{white-space:normal}
@media(max-width:600px){.schedule-window{grid-template-columns:1fr 1fr}.chat-message{max-width:92%}.account-actions{flex-wrap:wrap}.chat-file{max-width:100%;width:100%}.chat-compose .account-actions button{width:100%}.chat-room{padding:1rem}.viewing-list .account-card{padding:1rem}}

.chat-compose textarea,.viewings-page textarea{width:100%;min-width:0;resize:vertical;font:inherit;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}
