/* Ted Talks Real Estate — one stylesheet for every page, including the listing pages the
   Cloudflare function renders. Brick red is the accent: it's the colour of half the houses in
   St. Thomas and Old South London. */
:root {
  --ink: #111114; --ink-2: #34343c; --muted: #676772; --line: #e6e3de; --line-2: #d6d2cb;
  --paper: #ffffff; --sand: #f7f3ec; --sand-2: #efe8dc;
  --brick: #c3402a; --brick-dark: #9f2f1c; --brick-soft: #fbe9e4;
  --sage: #e6efe7; --sky: #e6eef9; --peach: #fcefe5; --gold: #b0852f;
  --ok: #17803d; --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17,17,20,.06), 0 8px 24px rgba(17,17,20,.06);
  --shadow-lg: 0 2px 4px rgba(17,17,20,.06), 0 24px 48px rgba(17,17,20,.12);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
em.s, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin-bottom: 14px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; }
.btn.brick { background: var(--brick); border-color: var(--brick); }
.btn.brick:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.sm { padding: 9px 16px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.link { color: var(--brick); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- header */
.topstrip { background: var(--ink); color: #d9d6d0; font-size: .8rem; }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topstrip a { color: #fff; text-decoration: none; }
.topstrip .social { display: flex; gap: 14px; align-items: center; }
.topstrip .social svg { width: 15px; height: 15px; fill: currentColor; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.mark { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.mark .tile { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1rem; letter-spacing: -.02em; position: relative; overflow: hidden; }
.mark .tile::after { content: ""; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: var(--brick); border-top-left-radius: 8px; }
.mark .words { display: flex; flex-direction: column; line-height: 1.05; }
.mark b { font-size: 1.08rem; letter-spacing: -.02em; }
.mark small { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sand-2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(17,17,20,.4); display: none; }
.drawer.open { display: block; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.drawer .panel a { padding: 13px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.drawer .panel a:hover, .drawer .panel a[aria-current="page"] { background: var(--sand); }
.drawer .close { align-self: flex-end; }
@media (max-width: 1060px) { .nav, .hdr .cta { display: none; } .burger { display: inline-flex; } }

/* ---------- sections */
.sec { padding: 88px 0; }
.sec.tight { padding: 56px 0; }
.sec.sand { background: var(--sand); }
.sec.dark { background: var(--ink); color: #fff; }
.sec.dark .lede, .sec.dark .muted { color: #bdbab3; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 8px 0 0; }

/* ---------- hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 210px; }
.hero h1 { max-width: 13.5em; }
.hero h1 em { color: #f3b5a7; }
.hero .lede { color: #cfccc5; margin-bottom: 34px; }
.hero .street { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 240px; width: 100%; }
.hero .street svg { width: 100%; height: 100%; }
.search-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 6px; max-width: 860px; box-shadow: var(--shadow-lg); }
.search-card label { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; cursor: pointer; }
.search-card label:hover { background: var(--sand); }
.search-card label span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search-card input { border: 0; background: transparent; padding: 2px 0; font-weight: 600; font-size: 1rem; outline: none; width: 100%; min-width: 0; }
.search-card input::placeholder { color: var(--ink); opacity: 1; }
.search-card input:focus::placeholder { opacity: .4; }
.search-card select { border: 0; background: transparent; padding: 2px 0; font-weight: 600; font-size: 1rem; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; }
.search-card .btn { border-radius: 16px; padding: 0 28px; min-height: 58px; }
@media (max-width: 760px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card label:first-child { grid-column: 1 / -1; }
  .search-card .btn { grid-column: 1 / -1; }
  .hero .wrap { padding-top: 56px; padding-bottom: 170px; }
  .hero .street { height: 170px; }
}
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-pills a { color: #fff; text-decoration: none; font-size: .92rem; padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.hero-pills a:hover { background: rgba(255,255,255,.08); }

.page-hero { background: var(--sand); padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 16em; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- cards & grids */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tint-sage { background: var(--sage); border-color: transparent; }
.tint-sky { background: var(--sky); border-color: transparent; }
.tint-peach { background: var(--peach); border-color: transparent; }
.tint-sand { background: var(--sand); border-color: transparent; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* listing cards */
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .lgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .lgrid { grid-template-columns: 1fr; } }
.lcard { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.lcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lcard .ph { position: relative; aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lcard:hover .ph img { transform: scale(1.04); }
.lcard .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: #fff; color: var(--ink); }
.badge.brick { background: var(--brick); color: #fff; }
.badge.ink { background: var(--ink); color: #fff; }
.badge.sample { background: #ffe9a8; color: #5a4300; }
.lcard .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lcard .price { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.lcard .facts { display: flex; gap: 14px; color: var(--ink-2); font-size: .92rem; }
.lcard .facts b { font-weight: 700; color: var(--ink); }
.lcard .addr { font-weight: 500; }
.lcard .city { color: var(--muted); font-size: .92rem; }
.lcard .by { margin-top: auto; padding-top: 10px; font-size: .74rem; color: var(--muted); border-top: 1px dashed var(--line); }
.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--sand) 0%, var(--sand-2) 50%, var(--sand) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; min-height: 340px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- search page */
.filters { position: sticky; top: 70px; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fsel { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 34px 9px 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; -webkit-appearance: none; appearance: none; font-size: .9rem; font-weight: 500; cursor: pointer; }
.fsel:hover { border-color: var(--ink); }
.filters .spacer { flex: 1; }
.place { position: relative; display: inline-flex; }
.place input.fsel { background-image: none; padding-right: 34px; min-width: 280px; font: inherit; font-size: .9rem; cursor: text; }
.place input.fsel::-webkit-search-cancel-button { display: none; }
.q-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--sand); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink-2); }
@media (max-width: 760px) { .place input.fsel { min-width: 240px; } }
.place input.fsel:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,20,.07); }
@media (max-width: 760px) {
  .filters .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-top: 10px; padding-bottom: 10px; }
  .filters .wrap::-webkit-scrollbar { display: none; }
  .filters .wrap > * { flex: none; }
  .filters .spacer { display: none; }
}
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 18px; flex-wrap: wrap; }
.results-bar h2 { font-size: 1.3rem; margin: 0; letter-spacing: -.01em; }
#map { height: 560px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin-bottom: 28px; }
.notice { border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; font-size: .95rem; }
.notice.warn { background: #fff6da; border: 1px solid #f1dc93; color: #5a4300; }
.notice.info { background: var(--sky); }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.more { display: flex; justify-content: center; margin: 36px 0 0; }

/* ---------- listing detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(560px, 60vw); border-radius: var(--radius); overflow: hidden; margin: 24px 0 0; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: var(--sand-2); position: relative; overflow: hidden; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .count { position: absolute; right: 12px; bottom: 12px; background: rgba(17,17,20,.78); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 70vw; } .gallery button:not(:first-child) { display: none; } }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.95); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; display: grid; place-items: center; }
.lb .x { top: 18px; right: 18px; }
.lb .prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #cfccc5; font-size: .9rem; }
.ld { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 36px; }
@media (max-width: 980px) { .ld { grid-template-columns: 1fr; } }
.ld-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: start; }
.ld-price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.ld-addr { font-size: 1.2rem; font-weight: 500; }
.ld-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.ld-facts div { background: var(--sand); border-radius: 14px; padding: 12px 16px; min-width: 104px; }
.ld-facts b { display: block; font-size: 1.2rem; letter-spacing: -.01em; }
.ld-facts span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ld section { padding: 30px 0; border-top: 1px solid var(--line); }
.ld section h2 { font-size: 1.45rem; letter-spacing: -.015em; }
.remarks { white-space: pre-line; color: var(--ink-2); }
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; } }
table.rooms { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.rooms th, table.rooms td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.rooms th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
#lmap { height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.agent-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.agent-card .who { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-card .who b { display: block; font-size: 1.1rem; }
.agent-card .who span { font-size: .85rem; color: var(--muted); }
.calc { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc .out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.calc .out div { background: #fff; border-radius: 14px; padding: 14px; }
.calc .out b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.calc .out span { font-size: .8rem; color: var(--muted); }
.ddf { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.powered { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--ink); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.mbar { display: none; }
@media (max-width: 980px) {
  .side { position: static; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; }
  body.has-mbar { padding-bottom: 76px; }
}

/* ---------- forms */
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 1rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,20,.07); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brick); flex: none; }
.hp { position: absolute; left: -5000px; }
.form-msg { border-radius: 12px; padding: 12px 14px; font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: #e3f4e8; color: #0f5a2a; }
.form-msg.err { display: block; background: #fdecea; color: #8a1f12; }

/* ---------- home bits */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.city-card { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 440px; border-radius: 24px; padding: 36px 32px 200px; text-decoration: none; color: #fff; overflow: hidden; background: var(--ink); }
.city-card .art { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; }
.city-card .art svg { width: 100%; height: 100%; }
.city-card > *:not(.art) { position: relative; }
.city-card h3 { font-size: 2.2rem; margin-bottom: 6px; }
.city-card p { color: rgba(255,255,255,.86); margin-bottom: 18px; max-width: 26em; }
.value-art { position: relative; background: var(--ink); color: #fff; border-radius: 24px; min-height: 440px; padding: 40px 36px 240px; overflow: hidden; }
.value-art .q { position: relative; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; max-width: 13em; margin: 0; }
.value-art .q em { color: #f3b5a7; }
.value-art .art { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; }
.value-art .art svg { width: 100%; height: 100%; }
.city-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.city-card:hover .go { text-decoration: underline; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--brick-soft); color: var(--brick-dark); font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-grid a { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sand-2); position: relative; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ig-grid a:hover img { transform: scale(1.05); }
@media (max-width: 800px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .social-cards { grid-template-columns: 1fr; } }
.social-card { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--line); background: #fff; transition: transform .15s, box-shadow .15s; }
.social-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.social-card .ic svg { width: 28px; height: 28px; fill: #fff; }
.social-card.ig .ic { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #833ab4); }
.social-card.fb .ic { background: #1877f2; }
.social-card.tt .ic { background: #000; }
.social-card b { display: block; font-size: 1.1rem; }
.social-card span { color: var(--muted); font-size: .92rem; }
.cta-band { background: var(--brick); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #fde3dc; margin: 0; }
.cta-band .acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } .cta-band .acts { justify-content: flex-start; } }

.portrait-card { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%); max-width: 480px; width: 100%; justify-self: center; box-shadow: var(--shadow); }
.portrait-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-card .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px; }
.portrait-card .cap b { display: block; }
.portrait-card .cap span { font-size: .82rem; color: var(--muted); }

/* ---------- blog */
.post-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .cover { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 22px; }
.post-card .cover span { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.post-card .bd { padding: 20px 22px 24px; }
.post-card h3 { margin-bottom: 8px; }
.post-card .meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.08rem; }
.prose h2 { font-size: 1.75rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.5em 0 .5em; }
.prose a { color: var(--brick); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--sand); border-left: 4px solid var(--brick); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose .note { font-size: .9rem; color: var(--muted); }
.post-head { max-width: 720px; margin: 0 auto; }

/* ---------- FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brick); }
.faq-item[open] summary::after { content: "–"; }
.faq-item > div { padding: 0 20px 16px; color: var(--ink-2); }
.faq-item a { color: var(--brick); }

/* ---------- footer */
.ftr { background: var(--ink); color: #bdbab3; padding: 72px 0 32px; font-size: .93rem; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .ftr .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr .cols { grid-template-columns: 1fr; } }
.ftr h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr .mark b { color: #fff; }
.ftr .mark small { color: #9d9a93; }
.ftr .mark .tile { background: #fff; color: var(--ink); }
.ftr .brokerage { margin-top: 18px; color: #fff; font-weight: 600; }
.ftr .social { display: flex; gap: 10px; margin-top: 18px; }
.ftr .social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.ftr .social svg { width: 18px; height: 18px; fill: #fff; }
.ftr .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; font-size: .78rem; line-height: 1.6; color: #8f8c86; display: grid; gap: 10px; }

/* leaflet tweaks */
.leaflet-popup-content { margin: 10px 12px; font: 500 .9rem/1.4 var(--sans); }
.leaflet-popup-content a { color: var(--ink); text-decoration: none; }
.pin-price { background: var(--ink); color: #fff; font: 700 12px/1 var(--sans); padding: 6px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); transform: translate(-50%, -50%); display: inline-block; }
.pin-price.mine { background: var(--brick); }
