:root {
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6b6b66;
  --paper: #faf8f3;
  --card: #ffffff;
  --line: #e6e2d8;
  --gold: #fec015;
  --gold-deep: #d9a100;
  --clay: #b4532a;
  --field: #2f4a2a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .06);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .92em; background: #efece4; padding: .1em .35em; border-radius: 4px; word-break: break-all; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); padding: 8px 12px; }
.lede { font-size: 1.12rem; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 1.3em;
  border-radius: 999px; font: 700 .95rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffcd3c; }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 .9em; font-size: .82rem; background: var(--ink); color: #fff; }
.btn-sm.btn-outline { background: transparent; color: var(--ink); }
.linklike { background: none; border: 0; color: inherit; text-decoration: underline; font: 600 .9rem var(--font); cursor: pointer; padding: 8px; }

/* Header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { filter: invert(1) brightness(2); width: 150px; height: auto; }
.main-nav { display: flex; gap: 22px; margin-right: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .93rem; opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { opacity: 1; border-bottom-color: var(--gold); }
.call { min-height: 40px; font-size: .88rem; }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { width: 120px; }
  .main-nav { order: 3; width: 100%; gap: 4px 16px; flex-wrap: wrap; margin: 0; }
  .main-nav a { white-space: nowrap; font-size: .84rem; }
  .call { margin-left: auto; min-height: 36px; padding: 0 1em; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 640px); display: grid; align-items: end; color: #fff; overflow: hidden; background: #1d2a1b; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .72)); }
.hero-inner { position: relative; z-index: 1; padding-bottom: 56px; padding-top: 120px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); max-width: 12ch; }
.hero-sub { font-size: 1.15rem; max-width: 46ch; opacity: .95; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head a { font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card-link { text-decoration: none; display: block; height: 100%; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: #dcd8cc; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge { position: absolute; top: 12px; left: 12px; }
.card-img .badge-clay { left: auto; right: 12px; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { font-size: 1.02rem; }
.card-price { font-size: 1.05rem; margin-bottom: .6em; }
.card-price s, .big-price s { color: var(--muted); font-weight: 500; }
.tags, .plain { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plain { display: block; }
.tags li { font-size: .74rem; font-weight: 600; background: #f1eee6; border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-clay { background: var(--clay); color: #fff; }

/* Bands and splits */
.band { background: var(--ink); color: #fff; padding: 56px 0; }
.band p { color: #ddd; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split.top { margin-top: 12px; gap: 28px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Forms */
.lead-form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.lead-form h3 { font-size: 1.25rem; margin: 0; }
.lead-form.compact { padding: 20px; }
.form-sub { color: var(--muted); margin: -4px 0 4px; font-size: .95rem; }
.band .lead-form p.form-sub, .band .lead-form .form-note { color: var(--muted); }
label { display: grid; gap: 5px; font-weight: 600; font-size: .86rem; }
.opt { font-weight: 500; color: var(--muted); }
input, select, textarea { font: 500 1rem var(--font); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(254, 192, 21, .45); border-color: var(--gold-deep); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.opt { white-space: nowrap; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: .86rem; margin-bottom: 6px; }
.chips, .want { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .84rem; font-weight: 600; background: #fff; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid rgba(254, 192, 21, .6); }
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }
.form-done { background: #eef4e8; border: 1px solid #b9d3a8; color: var(--field); border-radius: 8px; padding: 12px 14px; font-weight: 600; }
.form-error { color: var(--clay); font-weight: 600; font-size: .9rem; }
.lead-form.sent > :not(.form-done):not(h3) { display: none; }

/* Listings filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 18px 0 24px; }
.filters label { min-width: 170px; }
.count { margin: 0 0 10px auto; color: var(--muted); font-weight: 600; }
.empty { text-align: center; padding: 40px 0; }

/* Listing page */
.crumbs { padding-top: 18px; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.listing-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; padding-top: 14px; padding-bottom: 32px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #dcd8cc; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current='true'] { border-color: var(--gold); }
.facts h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.status-line { display: flex; gap: 8px; }
.big-price { font-size: 1.6rem; margin-bottom: .4em; }
.facts-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 18px; }
.facts-table th, .facts-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { font-weight: 600; color: var(--muted); width: 42%; padding-right: 10px; }
.fact-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent-line { font-size: .9rem; margin-top: 14px; color: var(--ink-2); }
.listing-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
.side-col .lead-form { position: sticky; top: 90px; }
.block { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 5px var(--gold), inset 0 0 0 9px var(--ink); }
.lite-yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 8px; background: #000; position: relative; cursor: pointer; overflow: hidden; }
.lite-yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-frame { aspect-ratio: 16 / 9; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; display: block; }
.lite-yt .play { position: absolute; inset: 0; margin: auto; width: 74px; height: 52px; border-radius: 14px; background: rgba(20, 20, 20, .85); }
.lite-yt .play::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; transform: translateX(3px); }
.lite-yt:hover .play { background: var(--clay); }
.finance-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.finance-head h2 { margin: 0; }
.finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 16px 0; }
.finance-grid output { float: right; font-weight: 800; }
.finance-grid label { display: block; }
.finance-grid input[type=range] { padding: 0; border: 0; accent-color: var(--gold-deep); margin-top: 8px; }
.finance-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--paper); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.finance-result span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.finance-result strong { font-size: 1.2rem; }
@media (max-width: 900px) {
  .listing-top, .listing-body { grid-template-columns: 1fr; }
  .side-col .lead-form { position: static; }
}
@media (max-width: 600px) {
  .finance-grid, .finance-result { grid-template-columns: 1fr; }
  .block { padding: 20px; }
}

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .has-action-bar { padding-bottom: 70px; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--ink); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .action-bar a { color: #fff; text-align: center; font-weight: 700; text-decoration: none; padding: 12px 0; border-radius: 999px; border: 1.5px solid #555; }
  .action-bar a.primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
}

/* 404 + duck game */
.page-404 main { background: #1b1b1b; }
.nf { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 36px; padding-top: 48px; padding-bottom: 64px; align-items: start; }
.nf-copy { color: #fff; }
.nf-copy .lede { color: #ddd; }
.nf-copy code { background: #333; color: var(--gold); }
.nf-sugg { list-style: none; padding: 0; display: grid; gap: 8px; }
.nf-sugg a { display: block; background: #2a2a2a; border: 1px solid #3c3c3c; color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.nf-sugg a:hover { border-color: var(--gold); }
.game-card { position: relative; }
.game-stage { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); aspect-ratio: 16 / 10; background: #2b2233; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.game-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.game-stage.ended { aspect-ratio: auto; min-height: 420px; }
.game-stage.ended .game-overlay.end { position: relative; inset: auto; }
.game-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px;
  background: radial-gradient(ellipse at center, rgba(15, 12, 20, .55), rgba(15, 12, 20, .82)); color: #fff; }
.game-overlay h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
.game-overlay.end { place-content: start center; padding: 52px 18px 18px; }
.game-overlay.end .lead-form { max-width: 520px; width: 100%; text-align: left; }
.score-line { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 800; color: var(--gold); margin: 4px 0 10px; }
.sound-toggle { position: absolute; top: 10px; right: 10px; z-index: 5; background: rgba(0, 0, 0, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font: 600 .75rem var(--font); padding: 5px 11px; cursor: pointer; }
@media (max-width: 900px) {
  .nf { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .game-stage { aspect-ratio: 4 / 5; }
  .game-overlay.end .chips { gap: 4px; }
}

/* Footer */
.site-footer { background: #0d0d0d; color: #cfcfcf; padding: 44px 0 30px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.foot-logo { filter: invert(1) brightness(2); margin-bottom: 10px; width: 120px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.legal { grid-column: 1 / -1; border-top: 1px solid #262626; padding-top: 18px; color: #8d8d8d; font-size: .8rem; margin: 0; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }

/* Admin */
.admin h2 { margin-top: 34px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { font-size: 1.5rem; }
.funnel { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.stage { background: var(--ink); color: #fff; padding: 12px; border-radius: 8px; text-align: center; }
.stage strong { display: block; font-size: 1.4rem; color: var(--gold); }
.stage span { font-size: .76rem; font-weight: 600; }
@media (max-width: 700px) { .funnel { grid-template-columns: repeat(4, 1fr); } }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 14px; margin-bottom: 10px; }
.table-wrap > p { padding-top: 10px; }
.admin table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.admin tr.overdue td { background: #fff6e0; }
.admin tr.stale td { background: #fbefe9; }
.admin select { padding: 6px 8px; font-size: .85rem; min-width: 130px; }
.admin form.inline { display: flex; gap: 6px; }
.admin form.inline input { padding: 6px 8px; font-size: .84rem; min-width: 180px; }
.admin details { margin: 10px 0; }
.admin summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

/* Broker card + team */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--ink); }
.avatar.initials { display: inline-grid; place-items: center; color: var(--gold); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; }
.avatar.lg.initials { font-size: 3rem; }
.broker-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.broker-actions .btn { min-height: 40px; font-size: .88rem; }
.side-col #packet .lead-form { position: static; }
.side-col { position: sticky; top: 90px; align-self: start; }
@media (max-width: 900px) { .side-col { position: static; } }
.team-grid { display: grid; gap: 22px; margin: 30px 0; }
.team-card { display: grid; grid-template-columns: 160px 1fr; gap: 28px; background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.team-card:target { outline: 3px solid var(--gold); }
.team-card h2 { margin-bottom: .15em; }
.team-card h3 { font-size: .95rem; margin-top: 16px; }
.team-card.on-listing { margin-bottom: 22px; border-top: 4px solid var(--gold); }
.team-card .team-title { color: var(--muted); font-weight: 600; margin-top: -.3em; }
.team-link { font-weight: 700; font-size: .92rem; }
.team-cta { border-radius: var(--radius); padding: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.team-cta h2 { color: #fff; }
.team-cta p { margin: 0; }
@media (max-width: 640px) { .team-card { grid-template-columns: 1fr; padding: 22px; } .team-card .avatar.lg { width: 120px; height: 120px; } }

/* Admin listing editor */
.saved-note { background: #eef4e8; border: 1px solid #b9d3a8; color: var(--field); border-radius: 8px; padding: 12px 16px; font-weight: 600; margin: 16px 0 0; }
.admin-form { display: grid; gap: 18px; max-width: 980px; }
.admin-form .panel { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.admin-form legend { font-size: 1.05rem; font-weight: 800; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.admin-form .legend-sm { font-weight: 700; font-size: .86rem; margin: 0; }
.admin-form input, .admin-form select, .admin-form textarea { font-size: .95rem; padding: 10px 12px; min-width: 0; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
@media (max-width: 760px) { .row3 { grid-template-columns: 1fr; } }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-pick { display: grid; gap: 4px; font-weight: 500; }
.photo-pick img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.photo-pick input { width: auto; }
.form-errors { background: #fbefe9; border: 1px solid #e6b9a4; color: #7a3216; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-actions { display: flex; gap: 10px; }
.listings-head { margin-top: 34px; margin-bottom: 8px; }
.listings-head h2 { margin: 0; }

/* Full listing: description, galleries, video, map, lightbox */
.description h3 { font-size: 1.12rem; margin: 1.3em 0 .45em; }
.description h3:first-of-type { margin-top: .3em; }
.description p { color: var(--ink-2); }
.desc-list { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; color: var(--ink-2); }
.desc-list strong { color: var(--ink); }
.gallery-group + .gallery-group { margin-top: 22px; }
.gallery-group h3 { font-size: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; background: #dcd8cc; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.tile:hover img { transform: scale(1.04); }
.btn-show-all { margin-top: 12px; min-height: 40px; }
.thumb-more { display: grid; place-content: center; text-align: center; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 1.1rem; text-decoration: none; line-height: 1.1; }
.thumb-more span { display: block; font-size: .7rem; color: #fff; font-weight: 600; }
.video { margin: 0 0 18px; }
.video figcaption { font-size: .86rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.map-load { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; cursor: pointer; display: grid; place-content: center; gap: 4px; color: #fff;
  font: 700 1.05rem var(--font); background: linear-gradient(rgba(20, 20, 20, .55), rgba(20, 20, 20, .7)), repeating-linear-gradient(45deg, #3b4a33 0 18px, #34422d 18px 36px); }
.map-load small { font-weight: 500; opacity: .85; font-size: .85rem; }
.map-load:hover { outline: 3px solid var(--gold); }
.map-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 8, 8, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
.lb-caption { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-weight: 600; font-size: .9rem; margin: 0; }
.lb-close, .lb-prev, .lb-next { position: fixed; background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; cursor: pointer; font: 700 1.4rem var(--font); width: 48px; height: 48px; }
.lb-close { top: 16px; right: 16px; font-size: 1.1rem; }
.lb-prev { left: 14px; top: 50%; }
.lb-next { right: 14px; top: 50%; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; margin-top: 26px; }
.video-card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.video-card .video { margin-bottom: 8px; }
.video-card p { margin: 0; font-size: .9rem; }
@media (max-width: 420px) { .video-grid { grid-template-columns: 1fr; } }
.admin-form h4 { margin: 8px 0 6px; font-size: .9rem; }
.admin-form textarea.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86rem; line-height: 1.5; }
.video-pick { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.video-pick img { border-radius: 6px; width: 160px; aspect-ratio: 16 / 9; object-fit: cover; }
.inline-check { display: flex; flex-direction: row; gap: 6px; align-items: center; font-weight: 500; }
.inline-check input { width: auto; }

/* Location */
.loc-summary { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
.parcel { width: 150px; height: 150px; background: #eef1e8; border-radius: 10px; }
.parcel polygon { fill: rgba(254, 192, 21, .35); stroke: var(--gold-deep); stroke-width: 2.5; stroke-linejoin: round; }
.loc-near { font-weight: 700; font-size: 1.05rem; margin-bottom: .2em; }
.card-near { font-size: .82rem; color: var(--muted); font-weight: 600; margin: -.4em 0 .6em; }
@media (max-width: 560px) { .loc-summary { grid-template-columns: 1fr; } .parcel { width: 120px; height: 120px; } }

/* Nav: six items need tighter spacing on mid-width screens */
@media (min-width: 861px) and (max-width: 1140px) { .main-nav { gap: 14px; } .main-nav a { font-size: .86rem; } .bar { gap: 16px; } }

/* Buyer tools on the home page */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-decoration: none; border-top: 4px solid var(--gold); transition: transform .15s ease; }
.tool-card:hover { transform: translateY(-2px); }
.tool-card span { font-weight: 700; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

/* Podcasts */
.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.show-card { display: grid; grid-template-columns: 180px 1fr; gap: 22px; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-items: start; }
.show-card img, .show-head img, .ep-head img, .pod-mini img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; background: #ddd; }
.show-card h2 a { text-decoration: none; }
.show-tag { color: var(--ink-2); }
.sub-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.show-head { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; padding-bottom: 12px; }
.ep-list { display: grid; gap: 14px; }
.ep-card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.listen .ep-card, .episode .block .ep-card { box-shadow: none; border: 1px solid var(--line); }
.ep-card h3 { margin-bottom: .35em; }
.ep-card h3 a { text-decoration: none; }
.ep-card h3 a:hover { text-decoration: underline; }
.ep-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: .7em; }
.ep-card p.ep-meta { color: var(--muted); font-size: .8rem; font-weight: 600; margin-bottom: .3em; }
.ep-card .tags { margin: 10px 0 0; }
.ep-audio { width: 100%; height: 40px; display: block; }
.topic-filter { margin-bottom: 18px; }
.chip-btn, .chip-link { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 600 .84rem var(--font); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.chip-btn[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-link:hover { border-color: var(--ink); }
.ep-head { display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: center; margin-bottom: 22px; }
.ep-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.show-notes p { color: var(--ink-2); }
.pod-strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pod-mini { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.pod-mini .ep-card { padding: 16px; }
@media (max-width: 960px) { .show-grid, .pod-strip-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .show-card, .show-head, .ep-head { grid-template-columns: 1fr; }
  .show-card img { width: 140px; } .show-head img { width: 180px; } .ep-head img { width: 110px; }
  .pod-mini { grid-template-columns: 64px 1fr; }
}

/* Dream property */
.dream-results { margin-top: 24px; }
.dream-results h2 { font-size: 1.2rem; }
.dream-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dream-grid .card h3 { font-size: 1rem; }
@media (max-width: 520px) { .dream-grid { grid-template-columns: 1fr; } }

/* Financing calculator */
.calc-form { display: grid; gap: 0; margin-top: 24px; }
.calc-form fieldset.block { display: grid; gap: 12px; }
.calc-form legend { float: left; width: 100%; padding: 0; }
.calc-form legend h2 { font-size: 1.15rem; margin: 0 0 4px; }
.calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.calc-pair .block { margin-bottom: 22px; }
.num-in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.num-in:focus-within { outline: 3px solid rgba(254, 192, 21, .45); border-color: var(--gold-deep); }
.num-in input { border: 0; outline: 0; min-width: 0; }
.num-in input:focus { outline: 0; }
.num-in i { font-style: normal; color: var(--muted); font-weight: 600; padding: 0 10px; white-space: nowrap; }
.num-in i:first-child { padding-right: 0; }
.calc-results h2 { margin-bottom: .3em; }
.calc-takeaway { font-size: 1.05rem; font-weight: 600; }
.calc-bars { display: grid; gap: 10px; margin: 16px 0 6px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 110px; gap: 12px; align-items: center; font-size: .9rem; font-weight: 600; }
.bar-track { position: relative; height: 22px; background: var(--paper); border-radius: 6px; overflow: hidden; }
.bar-cost, .bar-income { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.bar-cost { background: var(--clay); }
.bar-income { background: var(--field); }
.bar-val { text-align: right; }
.bar-key { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bar-key span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.k-income { background: var(--field); } .k-cost { background: var(--clay); margin-left: 8px; }
.calc-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.calc-table th, .calc-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.calc-table th[scope=row], .calc-table thead th:first-child { text-align: left; font-weight: 600; }
.calc-table tr[data-row=net] td { font-weight: 800; font-size: 1.05rem; }
.calc-lead { max-width: 640px; }
@media (max-width: 760px) { .calc-pair { grid-template-columns: 1fr; gap: 0; } .bar-row { grid-template-columns: 1fr 90px; } .bar-label { grid-column: 1 / -1; } }

.tool-card p { color: var(--ink-2); flex: 1; }
