/* ===== MarkCMO Land ===== */
:root {
  --bg: #0f1410;
  --bg-2: #151c16;
  --panel: #1b241c;
  --panel-2: #212c22;
  --line: #2d3a2e;
  --ink: #eef2ea;
  --ink-soft: #b7c2b4;
  --ink-mute: #8a988a;
  --green: #5fae6a;
  --green-deep: #3f7a47;
  --gold: #d8a657;
  --water: #5aa9c9;
  --land: #c8924a;
  --good: #5fae6a;
  --warn: #d8a657;
  --bad: #d77a5a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15,20,16,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; }
.brand-mark { color: var(--green); font-size: 15px; transform: translateY(-1px); }
.brand-text { letter-spacing: .2px; }
.brand-text strong { color: var(--green); font-weight: 700; }
.header-nav { display: flex; gap: 26px; }
.header-nav a { text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.header-nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  background:
    radial-gradient(1100px 420px at 78% -10%, rgba(95,174,106,.16), transparent 60%),
    radial-gradient(800px 360px at 8% 0%, rgba(90,169,201,.10), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 64px 0 52px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--green); margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); max-width: 16ch; }
.hero-sub { color: var(--ink-soft); max-width: 64ch; margin: 18px 0 0; font-size: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; min-width: 130px; }
.stat-num { display: block; font-family: "Fraunces", serif; font-size: 30px; font-weight: 700; color: var(--ink); }
.stat-label { font-size: 12.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }

/* Financing */
.financing { background: var(--bg); padding: 40px 0; border-bottom: 1px solid var(--line); }
.financing-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.financing-head h2 { font-size: 24px; }
.financing-head p { margin: 0; color: var(--ink-mute); font-size: 14px; }
.financing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fin-field { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.fin-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.fin-input-row { display: flex; align-items: center; gap: 12px; }
.fin-input-row input[type=range] { flex: 1; }
.fin-input-row output { font-family: "Fraunces", serif; font-weight: 600; font-size: 18px; min-width: 78px; text-align: right; color: var(--green); }
.fin-input-row select { width: 100%; }
.fin-hint { font-size: 11.5px; color: var(--ink-mute); }

/* range + select base */
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green); cursor: pointer; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--green-deep); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--green); cursor: pointer; border: 3px solid var(--bg); }
select { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 14px; font-family: inherit; cursor: pointer; }
select:focus { outline: 2px solid var(--green-deep); }

/* Buy box */
.buybox { padding: 48px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.buybox-head { margin-bottom: 24px; }
.buybox-head h2 { font-size: 28px; }
.buybox-head p { color: var(--ink-mute); margin: 8px 0 0; font-size: 14.5px; }
.buybox-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bb-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bb-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bb-card h3 { font-size: 21px; }
.bb-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 100px; }
.bb-tag--home { background: rgba(90,169,201,.16); color: var(--water); }
.bb-tag--land { background: rgba(200,146,74,.16); color: var(--land); }
.bb-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bb-card li { font-size: 14.5px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.bb-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.bb-filter-btn { background: transparent; color: var(--green); border: 1px solid var(--green-deep); padding: 9px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bb-filter-btn:hover { background: var(--green-deep); color: #fff; }

/* Board layout */
.board { padding: 40px 0 80px; }
.board-layout { display: grid; grid-template-columns: 268px 1fr; gap: 30px; align-items: start; }

/* Filters */
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filters-head h2 { font-size: 19px; }
.link-btn { background: none; border: none; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 9px; }
.filter-label span { color: var(--green); font-weight: 700; }
.filter-group select { width: 100%; }
.filter-group input[type=range] { width: 100%; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn { flex: 1; min-width: 44px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-soft); padding: 7px 6px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; font-family: inherit; }
.seg-btn.is-active { background: var(--green-deep); border-color: var(--green); color: #fff; font-weight: 600; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--green); }

/* Results */
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.results-count { font-size: 14px; color: var(--ink-mute); }
.results-count strong { color: var(--ink); }
.sort { font-size: 13px; color: var(--ink-mute); display: flex; align-items: center; gap: 8px; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .14s ease, border-color .14s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--green-deep); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 100px; backdrop-filter: blur(4px); }
.badge--track-home { background: rgba(90,169,201,.85); color: #07242e; }
.badge--track-land { background: rgba(200,146,74,.9); color: #2a1c08; }
.badge--fit { background: rgba(95,174,106,.92); color: #07210b; }
.badge--acre { background: rgba(216,166,87,.92); color: #2a1e04; }
.fin-pill { position: absolute; bottom: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 100px; }
.fin-pill--good { background: rgba(95,174,106,.92); color: #06210a; }
.fin-pill--warn { background: rgba(216,166,87,.92); color: #2a1e04; }
.fin-pill--bad { background: rgba(215,122,90,.92); color: #2a0f06; }
.aerial-link { position: absolute; bottom: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 100px; background: rgba(15,20,16,.78); color: #cfe6d2; text-decoration: none; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.12); }
.aerial-link:hover { background: var(--water); color: #06222c; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-price { font-family: "Fraunces", serif; font-size: 24px; font-weight: 700; }
.card-title { font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
.card-loc { font-size: 12.5px; color: var(--ink-mute); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: 11.5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-soft); padding: 3px 9px; border-radius: 100px; }
.chip--water { color: var(--water); border-color: rgba(90,169,201,.4); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.card-ppa { font-size: 12px; color: var(--ink-mute); }
.card-src { font-size: 11.5px; color: var(--green); font-weight: 600; }

/* Pager */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 38px; flex-wrap: wrap; }
.pager button { background: var(--panel); border: 1px solid var(--line); color: var(--ink-soft); width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: 14px; }
.pager button.is-active { background: var(--green-deep); border-color: var(--green); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: default; }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-mute); }
.btn { background: var(--green-deep); color: #fff; border: none; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14px; }
.btn:hover { background: var(--green); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--panel-2); color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 60px; }
.footer-inner p { margin: 0 0 10px; color: var(--ink-mute); font-size: 13px; max-width: 90ch; }
.footer-inner .disclaimer { font-size: 12px; line-height: 1.6; }
.footer-inner .updated { color: var(--ink-mute); font-size: 12px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.modal-panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 14px; background: rgba(0,0,0,.4); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 2; line-height: 1; }
.modal-media { aspect-ratio: 16/9; overflow: hidden; background: var(--panel-2); border-radius: 18px 18px 0 0; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 24px 28px 30px; }
.modal-content h2 { font-size: 26px; }
.modal-loc { color: var(--ink-mute); margin: 6px 0 18px; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px; margin: 18px 0; }
.mg-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.mg-item span { display: block; font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; }
.mg-item strong { font-size: 18px; font-family: "Fraunces", serif; }
.fin-table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; }
.fin-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fin-table td:last-child { text-align: right; font-weight: 600; font-family: "Fraunces", serif; }
.verdict { padding: 14px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 14px; }
.verdict--good { background: rgba(95,174,106,.14); border: 1px solid var(--green-deep); }
.verdict--warn { background: rgba(216,166,87,.12); border: 1px solid var(--warn); }
.verdict--bad { background: rgba(215,122,90,.12); border: 1px solid var(--bad); }
.verdict strong { display: block; margin-bottom: 4px; font-family: "Fraunces", serif; font-size: 16px; }
.modal-cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.modal-note { font-size: 12px; color: var(--ink-mute); margin-top: 14px; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
  .financing-grid { grid-template-columns: 1fr 1fr; }
  .buybox-cards { grid-template-columns: 1fr; }
  .board-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 560px) {
  .financing-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .grid { grid-template-columns: 1fr; }
}
