/* LastTenant — clean marketplace style: white surfaces, photo-first cards, split list/map. */
:root {
  --ink: #222222;
  --ink-2: #484848;
  --muted: #717171;
  --line: #ebebeb;
  --line-2: #dddddd;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --brand-soft: #e6f4f2;
  --bad: #c13515;
  --bad-soft: #fdecea;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --good: #0f7a3d;
  --good-soft: #e7f6ec;
  --star: #222222;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.18);
  --header-h: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
button { font: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  display: grid; grid-template-columns: 1fr minmax(260px, 560px) 1fr; align-items: center; gap: 16px;
  padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -.5px; }
.brand .logo { width: 30px; height: 30px; color: var(--brand); }
.brand .w2 { color: var(--brand); }
.searchbar {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow); background: #fff;
}
.searchbar:focus-within { border-color: transparent; box-shadow: 0 0 0 2px var(--brand), 0 6px 20px rgba(0,0,0,.12); }
.searchbar input, .searchbar input:focus, .searchbar input:focus-visible {
  flex: 1; border: 0; outline: none; box-shadow: none; font: inherit; font-size: 15px; background: transparent; min-width: 0; padding: 0;
  -webkit-appearance: none; appearance: none;
}
.searchbar input::-webkit-search-decoration { -webkit-appearance: none; }
.searchbar .go { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.searchbar .go svg { width: 16px; height: 16px; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav-link { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav-link:hover { background: var(--soft); }
.usermenu { position: relative; }
.userbtn {
  display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; height: 42px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer;
}
.userbtn:hover { box-shadow: var(--shadow); }
.userbtn svg { width: 16px; height: 16px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--muted); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar.on { background: var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px 0;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); display: none;
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 11px 16px; border: 0; background: none; text-decoration: none; cursor: pointer; font-size: 14px; }
.dropdown a:hover, .dropdown button:hover { background: var(--soft); }
.dropdown .sep { height: 1px; background: var(--line); margin: 8px 0; }
.dropdown .who { padding: 8px 16px 4px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dropdown .strong { font-weight: 600; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; }
.btn:hover { background: var(--soft); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn-link.danger { color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-neutral { background: var(--soft); color: var(--ink-2); }
.pill-accent { background: var(--brand-soft); color: var(--brand); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- home: filters + split list/map ---------- */
.filters { position: sticky; top: var(--header-h); z-index: 900; display: flex; gap: 8px; align-items: center; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.filters .spacer { flex: 1; }
.filters select { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; background: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 44%); }
.listpane { padding: 22px 32px 40px; min-width: 0; }
.mappane { position: sticky; top: calc(var(--header-h) + 63px); height: calc(100vh - var(--header-h) - 63px); }
.mappane #map { position: absolute; inset: 0; }
.listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.listhead h1 { font-size: 22px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
.card-c { display: block; text-decoration: none; color: inherit; }
.cover { position: relative; aspect-ratio: 20 / 15; border-radius: 12px; overflow: hidden; background: var(--soft); }
.cover img, .cover svg.art { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.card-c:hover .cover img, .card-c:hover .cover svg.art { transform: scale(1.03); }
.cover .tag { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--ink); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.cover .tag.bad { color: var(--bad); }
.cover .tag.warn { color: var(--warn); }
.card-c .row1 { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.card-c .name { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-c .rate { white-space: nowrap; font-size: 14px; }
.card-c .addr { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-c .meta { color: var(--muted); font-size: 14px; }
.card-c.hl .cover { box-shadow: 0 0 0 3px var(--ink); }
.more { display: flex; justify-content: center; margin-top: 32px; }
.mapbtn { display: none; }

/* ---------- map pins ---------- */
.pin { position: relative; margin-bottom: 6px; padding: 4px 9px; border-radius: 999px; font: 700 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer; transition: transform .12s; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #fff; }
.pin-bad { color: var(--bad); }
.pin-warn { color: var(--warn); }
.pin-good, .pin-mid { color: var(--ink); }
.pin-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; background: var(--ink-2); border: 2px solid #fff; margin-bottom: 0; }
.pin-dot::after { display: none; }
.pin-dot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }   /* bigger hit area */
.pin:hover { transform: scale(1.12); z-index: 10; }
.pin-dot:hover { background: var(--ink); }

/* map preview card (Zillow-style) */
.mpreview { position: absolute; z-index: 20; width: 280px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; animation: fade .12s; }
.mpreview[hidden] { display: none; }
.mcard { display: block; text-decoration: none; color: var(--ink); }
.mcover { position: relative; height: 150px; background: var(--soft); }
.mcover img, .mcover svg.art { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcover .tag { position: absolute; top: 8px; left: 8px; background: #fff; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.mcover .tag.bad { color: var(--bad); }
.mcover .tag.warn { color: var(--warn); }
.mbody { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; }
.mrow { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 2px; }
.mrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow span { white-space: nowrap; }
.pin-hl { background: var(--ink) !important; color: #fff !important; transform: scale(1.12); z-index: 10; }
.pin-hl::after { border-top-color: var(--ink) !important; }
.pin-dot.pin-hl { width: 16px; height: 16px; }
.leaflet-marker-icon .pin { transform: translate(-50%, calc(-100% - 5px)); margin-bottom: 0; }
.leaflet-marker-icon .pin-dot { transform: translate(-50%, -50%); }
.map-pop { font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-width: 180px; }
.map-pop b { font-size: 14px; }
.map-pop a { font-weight: 600; }

/* ---------- page shell ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 24px 32px 64px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink); }
.section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- complex page ---------- */
.titlebar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.subline { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 15px; margin-top: 4px; }
.subline .dot { color: var(--muted); }
.subline b { font-weight: 650; }
.actions { display: flex; gap: 6px; }
.iconbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: underline; color: var(--ink); }
.iconbtn:hover { background: var(--soft); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px; gap: 8px; border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.gallery > * { width: 100%; height: 100%; object-fit: cover; background: var(--soft); cursor: zoom-in; display: block; }
.gallery > :first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
.gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 380px; }
.gallery.n2 > :first-child, .gallery.n1 > :first-child { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 > :last-child { grid-row: span 2; }
.heromap { height: 380px; border-radius: var(--radius); overflow: hidden; margin-top: 20px; position: relative; background: var(--soft); }
.heromap #map { position: absolute; inset: 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; margin-top: 8px; }
.side { position: relative; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 24px); margin-top: 32px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.bigscore { display: flex; align-items: baseline; gap: 8px; }
.bigscore .n { font-size: 28px; font-weight: 750; }
.statrow { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.statrow:last-of-type { border-bottom: 0; }
.alert { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--bad-soft); margin-top: 24px; }
.alert .ic { font-size: 22px; line-height: 1; }
.alert b { display: block; margin-bottom: 2px; }
.alert.info { background: var(--soft); }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; margin-top: 16px; }
.cat { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.cat .lbl { flex: 1; }
.cat .bar { width: 110px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cat .bar i { display: block; height: 100%; background: var(--ink); }
.cat .v { width: 26px; text-align: right; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { display: block; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; }
.tile:hover { box-shadow: var(--shadow); }
.tile .t { font-weight: 700; font-size: 16px; }
.cityrow { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cityrow:last-child { border-bottom: 0; }
.hbar { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0; }
.hbar .lbl { width: 230px; flex-shrink: 0; }
.hbar .track { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--bad); }
.hbar .n { width: 40px; text-align: right; color: var(--muted); }

/* ---------- reviews ---------- */
.revtools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.revtools select { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; background: #fff; }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-top: 20px; }
.review .who { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.review .who .avatar { width: 44px; height: 44px; font-size: 16px; background: var(--brand); }
.review .who .t { font-weight: 650; }
.review .who .s { color: var(--muted); font-size: 13px; }
.review .line2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.review .body { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review .body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review .thumbs { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.review .thumbs .ph { position: relative; }
.review .thumbs img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; }
.review .thumbs .badge { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0,0,0,.65); color: #fff; padding: 1px 5px; border-radius: 4px; }
.review .reply { margin-top: 10px; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 14px; }
.review .foot { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 8px; }
.review .foot .btn-link { font-size: 13px; color: var(--muted); }
.review.flagged { opacity: .55; }
.stars { letter-spacing: 1px; color: var(--star); font-size: 12px; }

/* ---------- forms ---------- */
.formcard { max-width: 760px; }
.field { padding: 22px 0; border-bottom: 1px solid var(--line); }
.field:last-of-type { border-bottom: 0; }
.field > label, .field .label { display: block; font-weight: 650; margin-bottom: 8px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=month], select, textarea {
  width: 100%; padding: 13px 14px; font: inherit; border: 1px solid #b0b0b0; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.row-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radio-line { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-line label, .checks label { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.checks label { display: flex; margin: 8px 0; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpick label { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 14px; user-select: none; }
.tagpick label:hover { border-color: var(--ink); }
.tagpick input { position: absolute; opacity: 0; pointer-events: none; }
.tagpick.neg label:has(input:checked) { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.tagpick.pos label:has(input:checked) { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.tagpick label:has(input:focus-visible) { outline: 2px solid var(--ink); }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 28px; }
.rate { display: flex; justify-content: space-between; align-items: center; }
.starpick { display: inline-flex; gap: 2px; }
.starpick button { background: none; border: 0; font-size: 26px; color: #d0d0d0; cursor: pointer; padding: 0 2px; line-height: 1; }
.starpick button.on { color: var(--ink); }
.photo-req { padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); margin-top: 4px; }
.photo-req.required { border-color: var(--bad); background: var(--bad-soft); }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photos .ph { position: relative; }
.photos img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.photos .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.error { color: var(--bad); font-weight: 600; font-size: 14px; }
.ok { color: var(--good); font-weight: 600; font-size: 14px; }

/* complex picker */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; display: none; }
.combo-list.open { display: block; }
.combo-list button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; }
.combo-list button:hover, .combo-list button.act { background: var(--soft); }
.combo-list .n { font-weight: 600; }
.combo-list .a { font-size: 13px; color: var(--muted); }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 10px; }

/* ---------- modal (auth) ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .2s; }
.modal-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 16px; text-align: center; margin: 0; }
.modal-x, .modal-back { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.modal-x:hover, .modal-back:hover { background: var(--soft); }
.modal-body { padding: 24px; }
.modal-body h3 { font-size: 22px; margin-bottom: 18px; }
.modal-body .stack { display: grid; gap: 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; width: 100%; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; }
.gbtn:hover { background: var(--soft); }
.gbtn svg { width: 20px; height: 20px; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.tabs2 button { border: 0; background: none; padding: 9px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs2 button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.legal { font-size: 12px; color: var(--muted); margin-top: 14px; }
.sent { text-align: center; padding: 8px 0; }
.sent .ic { font-size: 44px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

/* ---------- misc ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: grid; place-items: center; z-index: 4000; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 5000; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); }
.footer { border-top: 1px solid var(--line); background: var(--soft); padding: 28px 32px; color: var(--muted); font-size: 13px; }
.footer p { max-width: 1120px; margin: 4px auto; }
.footer a { color: var(--ink); }
body.mapmode .footer { display: none; }
.prose { max-width: 760px; }
.prose li { margin: 6px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .detail { grid-template-columns: 1fr; gap: 0; }
  .sticky-card { position: static; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 16px; gap: 10px; }
  .brand .txt, .nav-link.hide-sm { display: none; }
  .searchbar { height: 44px; padding-left: 14px; }
  .filters { padding: 10px 16px; }
  .split { grid-template-columns: 1fr; }
  .listpane { padding: 16px 16px 90px; }
  .mappane { display: none; position: fixed; inset: calc(var(--header-h) + 57px) 0 0 0; height: auto; z-index: 800; }
  body.mapmode .mappane { display: block; }
  body.mapmode .listpane { display: none; }
  .mapbtn { display: inline-flex; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 950; padding: 13px 20px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer; gap: 8px; align-items: center; }
  .page { padding: 16px 16px 48px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .gallery > :not(:first-child) { display: none; }
  .gallery > :first-child { grid-row: auto; }
  .heromap { height: 260px; }
  .cats { grid-template-columns: 1fr; }
  .row-fields { grid-template-columns: 1fr; }
  .hbar .lbl { width: 140px; }
  .modal-bg { place-items: end center; padding: 0; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
