/* Tbilisi Homes: brick, slate teal and warm paper. */
:root {
  --paper: #faf6ef;
  --card: #ffffff;
  --sand: #f1e9dc;
  --line: #e4dacb;
  --ink: #1f1c1a;
  --ink-2: #5c554e;
  --muted: #8a8178;
  --brick: #b4472b;
  --brick-dark: #93351d;
  --brick-tint: #f7e4dc;
  --teal: #1f5c5a;
  --teal-dark: #164644;
  --teal-tint: #dfecea;
  --green: #3e7c4f;
  --ok: #2f6b3f;
  --warn: #8a5a00;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(31, 28, 26, .06), 0 6px 20px rgba(31, 28, 26, .06);
  --font: 'Manrope', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Noto Serif Georgian', Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); }
.lang-ka { --font-display: 'Noto Serif Georgian', 'Fraunces', Georgia, serif; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--brick); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; stroke: currentColor; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); }
.empty { padding: 32px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; background: var(--sand); color: var(--ink); font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { color: var(--ink); background: #e9dfcf; }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-tint); color: var(--teal-dark); }
.btn-sm { padding: 7px 13px; font-size: .9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.file-btn { position: relative; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Fraunces', Georgia, serif; font-size: 1.28rem; font-weight: 500; letter-spacing: -.02em; }
.logo b { font-weight: 650; color: var(--brick); margin-left: 2px; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; stroke: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brick); }
.nav-list-mobile { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.saved-link, .lang-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.saved-link svg { fill: none; stroke-width: 1.8; }
.saved-count { background: var(--brick); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav-list-mobile { display: block; color: var(--brick) !important; }
  .menu-btn { display: inline-flex; }
  .list-btn { display: none; }
}
@media (max-width: 520px) { .saved-link span:not(.saved-count) { display: none; } .logo { font-size: 1.1rem; } }

/* Hero */
.hero { background: linear-gradient(160deg, #24403f 0%, var(--teal) 55%, #2a6e6b 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -40px; width: 520px; height: 300px; background: url('/img/skyline.svg') no-repeat bottom right / contain; opacity: .22; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 64px 16px 56px; }
.hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero-sub { font-size: 1.15rem; color: #d7e8e6; max-width: 52ch; }
.hero-search { background: var(--card); color: var(--ink); border-radius: 18px; padding: 10px 18px 18px; margin-top: 26px; max-width: 920px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs label { cursor: pointer; }
.tabs input { position: absolute; opacity: 0; }
.tabs span { display: block; padding: 10px 14px; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs input:checked + span { color: var(--brick); border-color: var(--brick); }
.tabs input:focus-visible + span { outline: 3px solid var(--brick); }
.hero-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .hero-fields { grid-template-columns: 1fr 1fr; } .hero-fields .btn { grid-column: 1 / -1; } }
.hero-links { margin: 18px 0 0; }
.hero-links a { color: #fff; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.hero-links svg { fill: none; }

/* Fields */
.field, .stack-form label, .admin-form label, .calc label, .enquire label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 650; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 500; font-size: 1rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-tint); }
textarea { resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-4 { grid-template-columns: repeat(4, 1fr); }
.field-row-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 620px) { .field-row, .field-row-4, .field-row-5 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: .88rem; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500 !important; font-size: .95rem !important; color: var(--ink) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brick); }
.check-inline { align-self: end; padding-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; background: #fff; cursor: pointer; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--brick); }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form fieldset { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stack-form small { font-weight: 500; color: var(--muted); }
.feature-boxes { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px !important; padding: 0 !important; border: 0 !important; background: none !important; }

/* Notices */
.notice { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; margin: 0 0 16px; }
.notice p:last-child { margin: 0; }
.notice.ok { background: #e3f0e6; color: var(--ok); }
.notice.warn { background: #fbefd8; color: var(--warn); }
.big-notice { font-size: 1.15rem; padding: 24px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31,28,26,.06), 0 12px 30px rgba(31,28,26,.1); }
.card-img { position: relative; aspect-ratio: 16 / 11; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.fav { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.fav svg { width: 20px; height: 20px; fill: none; stroke-width: 1.8; }
.fav[aria-pressed="true"] svg, .fav-btn[aria-pressed="true"] svg { fill: var(--brick); stroke: var(--brick); }
.fav-btn svg { fill: none; stroke-width: 1.8; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-price { font-size: 1.3rem; font-weight: 800; margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price small { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.ppm { font-size: .82rem; font-weight: 600; color: var(--muted); }
.card-title { font-family: var(--font); font-size: 1rem; font-weight: 650; margin: 0; line-height: 1.35; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.card .fav { z-index: 2; }
.card-title a:hover { color: var(--brick); }
.card-loc { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: .88rem; margin: 0; }
.card-loc svg { width: 14px; height: 14px; stroke: none; color: var(--brick); }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .86rem; color: var(--ink-2); margin: 6px 0 0; }
.card-facts span + span::before { content: '·'; margin-right: 12px; color: var(--line); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 750; background: #fff; color: var(--ink); letter-spacing: .01em; }
.badge-new { background: var(--teal); color: #fff; }
.badge-sample { background: #fbefd8; color: var(--warn); }
.badge-status { background: var(--ink); color: #fff; }
.frame-black_frame.badge { background: #262321; color: #fff; }
.frame-white_frame.badge { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.frame-green_frame.badge { background: var(--green); color: #fff; }
.frame-renovated.badge { background: var(--brick-tint); color: var(--brick-dark); }
.frame-needs_work.badge { background: #ece6dd; color: var(--ink-2); }

/* Home blocks */
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.district-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.district-tile strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; }
.district-tile span { color: var(--muted); font-size: .88rem; }
.district-tile:hover { border-color: var(--brick); color: var(--ink); }
.band { background: var(--sand); margin-top: 64px; padding: 48px 0; }
.frames-feature { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .frames-feature { grid-template-columns: 1fr; } }
.frames-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 0; }
@media (max-width: 620px) { .frames-strip { grid-template-columns: 1fr; } }
.frame-chip { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); text-decoration: none; min-height: 130px; }
.frame-chip strong { font-size: 1.05rem; }
.frame-chip span { font-size: .9rem; line-height: 1.45; }
.frame-chip.frame-black_frame { background: #262321; color: #f4efe7; }
.frame-chip.frame-white_frame { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.frame-chip.frame-green_frame { background: var(--green); color: #fff; }
a.frame-chip:hover { transform: translateY(-2px); }
.page-head .frames-strip { margin: 8px 0 4px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--card); border-radius: var(--radius); text-decoration: none; color: var(--ink); border-top: 4px solid var(--brick); box-shadow: var(--shadow); }
.tool strong { font-size: 1.05rem; }
.tool span { color: var(--ink-2); font-size: .92rem; }
.tool:hover { color: var(--ink); border-top-color: var(--teal); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; background: var(--brick); color: #fff; border-radius: 20px; flex-wrap: wrap; }
.cta-box h2 { color: #fff; }
.cta-box p { margin: 0; color: #fbe2d9; max-width: 56ch; }
.cta-box .btn-primary { background: #fff; color: var(--brick); }
.cta-box .btn-primary:hover { background: var(--paper); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-img { display: block; aspect-ratio: 16 / 9; background: var(--sand); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-img-blank { display: block; width: 100%; height: 100%; background: url('/img/placeholder-1.svg') center / cover; }
.post-body { padding: 16px 18px 20px; }
.post-body time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-body h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { color: var(--brick); }
.post-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Page heads and breadcrumbs */
.page-head { padding-top: 22px; padding-bottom: 10px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brick); }

/* Results */
.results-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; margin-top: 10px; }
@media (max-width: 920px) { .results-layout { grid-template-columns: 1fr; } }
.results-filters { position: sticky; top: 86px; }
@media (max-width: 920px) { .results-filters { position: static; } }
.filters-toggle > summary { display: none; }
@media (max-width: 920px) {
  .filters-toggle > summary { display: block; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; cursor: pointer; }
  .filters-toggle[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
}
.filters { display: flex; flex-direction: column; gap: 14px; background: var(--card); padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.results-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-count { margin: 0 auto 0 0; font-size: 1.05rem; }
.results-bar svg { fill: none; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.sort-form select { width: auto; padding: 7px 10px; }
.save-search { margin: 0 0 18px; background: var(--teal-tint); border-radius: var(--radius); }
.save-search summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; color: var(--teal-dark); cursor: pointer; }
.save-search summary svg { fill: none; }
.save-search .inline-form, .save-search .notice { margin: 0 16px 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form p { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: .92rem; }
.inline-form input[type=email] { flex: 1 1 220px; width: auto; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 32px 0 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 650; color: var(--ink); }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Listing page */
.listing { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .listing { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-thumbs a { position: relative; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery-thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-size: 1.3rem; }
.gallery:not(:has(.gallery-thumbs)) { grid-template-columns: 1fr; }
.gallery-empty { position: relative; grid-template-columns: 1fr; }
.gallery-empty img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.gallery-empty span { position: absolute; bottom: 14px; left: 14px; background: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 650; font-size: .88rem; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .gallery-thumbs { grid-template-columns: repeat(4, 1fr); } }
.listing-head { margin: 22px 0 10px; }
.listing-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.listing-badges .badge { box-shadow: inset 0 0 0 1.5px var(--line); }
.listing-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.listing-loc { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.listing-loc svg { stroke: none; color: var(--brick); }
.listing-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.listing-price .big { font-size: 2rem; font-weight: 800; }
.listing-price .big small { font-size: 1rem; color: var(--ink-2); }
.gel { color: var(--ink-2); font-weight: 600; }
.listing-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0 28px; }
.facts div { background: var(--card); padding: 12px 14px; box-shadow: 0.5px 0.5px 0 0.5px var(--line); }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 650; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.feature-list li { padding-left: 24px; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.frame-explain { background: var(--sand); padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.listing-main section { margin-bottom: 28px; }
.listing-side { position: sticky; top: 86px; }
@media (max-width: 980px) { .listing-side { position: static; } }
.enquire { background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.enquire form { display: flex; flex-direction: column; gap: 12px; }
.enquire h2 { font-size: 1.3rem; }
.mini-map { height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--sand); z-index: 0; }
.mini-map-wide { height: 280px; margin: 24px 0 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 13, 12, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; color: #fff; font-weight: 600; }

/* Map page */
.is-map .site-footer { display: none; }
.map-page { display: flex; flex-direction: column; height: calc(100vh - 69px); height: calc(100dvh - 69px); }
.map-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; padding-bottom: 10px; max-width: none; }
.map-bar select, .map-bar input { width: auto; padding: 8px 10px; font-size: .92rem; }
.map-bar input { width: 150px; }
.map-count { margin-left: auto; font-weight: 700; color: var(--ink-2); }
.big-map { flex: 1; z-index: 0; }
.price-marker { background: var(--brick); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; transform: translate(-50%, -50%); display: inline-block; }
.price-marker.rent { background: var(--teal); }
.map-pop { width: 220px; font-family: var(--font); }
.map-pop img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.map-pop strong { display: block; font-size: 1.05rem; }
.map-pop a { color: var(--ink); font-weight: 650; text-decoration: none; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(180, 71, 43, .25) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--brick) !important; color: #fff; font-weight: 800; }
.district-label { background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-block; transform: translate(-50%, -50%); border: 2px solid #fff; }
a.district-label:hover { background: var(--brick); color: #fff; }

/* Districts */
.district-map { height: 380px; border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; background: var(--sand); z-index: 0; }
.district-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.district-card { display: flex; flex-direction: column; background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.district-card:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--brick); }
.district-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.district-card dl { display: flex; gap: 24px; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.district-card dt { font-size: .78rem; color: var(--muted); font-weight: 650; }
.district-card dd { margin: 0; font-weight: 800; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 14px auto 0; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 650; }
.stat strong { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat small { color: var(--ink-2); font-weight: 600; }
.stat-hero { background: var(--teal); color: #fff; }
.stat-hero span { color: #cfe3e1; }
.stat-hero strong { font-size: 2.2rem; }

/* Prices */
.bars { display: flex; flex-direction: column; gap: 8px; margin: 28px 0; }
.bar { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.bar-label { font-weight: 650; }
.bar-track { height: 14px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brick); border-radius: 999px; }
.bar:hover .bar-fill { background: var(--teal); }
.bar-value { font-weight: 800; text-align: right; }
@media (max-width: 560px) { .bar { grid-template-columns: 100px 1fr 70px; font-size: .9rem; } }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 20px 0 10px; }
.price-table, .admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td, .admin-table th, .admin-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th, .admin-table thead th { font-size: .8rem; color: var(--muted); font-weight: 700; background: #fcfaf6; }
.price-table td { font-variant-numeric: tabular-nums; }
.price-table tbody th { font-weight: 650; }

/* Calculator and valuation */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 560px) { .calc { grid-template-columns: 1fr; } }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 12px; }
.valuation-result { background: var(--card); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.valuation-result > span { font-weight: 700; color: var(--muted); }
.valuation-result > strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--teal); margin: 4px 0; }
.valuation-result > small { display: block; font-size: 1rem; color: var(--ink-2); margin-bottom: 14px; }

/* Articles */
.article { max-width: 780px; padding-top: 22px; }
.article header { margin-bottom: 18px; }
.byline { color: var(--muted); font-weight: 600; font-size: .92rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 24px; aspect-ratio: 1200 / 630; object-fit: cover; }
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--brick); color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose code { background: var(--sand); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.not-found { padding: 80px 16px; }

/* Submit form photos */
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-preview img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; }
.photo-preview .busy { font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer { background: #1f1c1a; color: #cfc6bb; margin-top: 80px; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-grid h2 { font-family: var(--font); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-grid a { display: block; color: #cfc6bb; text-decoration: none; padding: 4px 0; font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { max-width: 38ch; margin-top: 14px; font-size: .95rem; }
.logo-light { color: #fff !important; }
.logo-light b { color: #f19c80; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a3531; font-size: .85rem; color: #8f867c; }

/* ---------- Admin ---------- */
.admin { background: #f6f3ee; }
.admin-bar { display: flex; align-items: center; gap: 20px; padding: 0 20px; height: 56px; background: var(--ink); color: #fff; flex-wrap: wrap; position: sticky; top: 0; z-index: 50; }
.admin-brand { color: #fff; text-decoration: none; font-weight: 800; }
.admin-bar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.admin-bar nav a { color: #d8d0c6; text-decoration: none; padding: 6px 10px; border-radius: 7px; font-size: .92rem; font-weight: 600; }
.admin-bar nav a:hover { background: #3a3531; color: #fff; }
.admin-main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 80px; }
.admin h1 { font-family: var(--font); font-weight: 800; font-size: 1.6rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-head h1 { margin: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-filter { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-filter select, .admin-filter input { width: auto; padding: 8px 10px; }
.admin-filter input { min-width: 260px; }
.admin-table td { vertical-align: middle; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.status { font-size: .78rem; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: #ece6dd; }
.status-pending { background: #fbefd8; color: var(--warn); }
.status-active, .status-published { background: #e3f0e6; color: var(--ok); }
.status-rejected { background: #f7dcd6; color: var(--brick-dark); }
.admin-form fieldset { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.admin-cols { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .admin-cols { grid-template-columns: 1fr; } }
.narrow-form { max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.admin-map { height: 280px; border-radius: var(--radius-sm); background: var(--sand); z-index: 0; }
.admin-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-photo { position: relative; width: 130px; cursor: grab; }
.admin-photo img { width: 130px; height: 95px; object-fit: cover; border-radius: 8px; }
.admin-photo:first-child img { outline: 3px solid var(--brick); }
.admin-photo .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.admin-photo.dragging { opacity: .4; }
.lang-tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.lang-tabs button { border: 1.5px solid var(--line); background: #fff; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 650; }
.lang-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cover-preview img { border-radius: 8px; margin-bottom: 8px; }
.danger-zone { margin-top: 28px; padding: 16px; border: 1.5px dashed #e3b9ad; border-radius: var(--radius); }
.danger-zone p { margin-bottom: 10px; }
.enquiry-list { display: flex; flex-direction: column; gap: 12px; }
.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.enquiry.done { opacity: .6; }
.enquiry header { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.enquiry p { margin: 0 0 8px; }
.enquiry .msg { background: #faf8f4; padding: 10px 12px; border-radius: 8px; }
.admin-login { display: grid; place-items: center; min-height: 100vh; }
.login-box { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); width: min(380px, 92vw); display: flex; flex-direction: column; gap: 14px; }
.login-box h1 { font-size: 1.3rem; }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; }
