:root {
  --brand: #1f5f4a;
  --brand-dark: #154334;
  --accent: #f2c94c;
  --ink: #1d2327;
  --muted: #69737a;
  --line: #e2e5e8;
  --bg: #ffffff;
  --soft: #f5f6f4;
  --error: #b42318;
  --ok: #1e7b45;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 1.9rem; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.error { color: var(--error); }
.ok { color: var(--ok); }
.badge { background: var(--accent); color: var(--ink); font-size: .7rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.inline { display: inline; }

.signin { max-width: 400px; margin: 1rem auto; }
.sso-buttons { display: grid; gap: .6rem; margin: 1.2rem 0; }
.sso { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .65rem 1rem; border: 1px solid #c9ced3; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.sso:hover { background: var(--soft); }
.sso svg { width: 20px; height: 20px; }
.divider { text-align: center; color: var(--muted); position: relative; margin: 1.2rem 0; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.divider span { position: relative; background: var(--bg); padding: 0 .6rem; }
.launch-banner { background: var(--accent); color: var(--ink); text-align: center; font-size: .85rem; padding: 4px 8px; }
.launch-banner a { color: var(--ink); }
.checkout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 1rem; align-items: start; }
.checkout .card { margin: 0; }
.summary table td { border: 0; padding: .3rem 0; }
.summary .num { text-align: right; white-space: nowrap; }
.summary tr.total td { border-top: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; padding-top: .5rem; }
label.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; margin: .8rem 0; }
.button.wide { width: 100%; text-align: center; padding: .65rem; }
.progress { padding-left: 1.2rem; }
.progress li { margin: .2rem 0; color: var(--muted); }
.progress li.done { color: var(--ok); }
.progress li.done::marker { content: "✓  "; }
.progress li.current { color: var(--ink); font-weight: 600; }
.downloads { list-style: none; padding: 0; display: grid; gap: .5rem; }
.env-banner { background: #7a1f9c; color: #fff; text-align: center; font-size: .8rem; font-weight: 600; padding: 3px 8px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--brand); letter-spacing: -.02em; }
.brand span { color: #c8a227; }
.site-header nav { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .95rem; }
.site-header nav a { text-decoration: none; color: var(--ink); }
.site-header nav a:hover { color: var(--brand); }

button, .button { font: inherit; cursor: pointer; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: .45rem .8rem; color: var(--ink); }
.button, button.primary { display: inline-block; background: var(--brand); color: #fff !important; border-color: var(--brand); text-decoration: none; font-weight: 600; }
.button:hover { background: var(--brand-dark); }
.button.secondary { background: #fff; color: var(--brand) !important; }
.button.small { padding: .25rem .6rem; font-size: .9rem; }
button.link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; }
input, select, textarea { font: inherit; padding: .45rem .6rem; border: 1px solid #c9ced3; border-radius: var(--radius); max-width: 100%; }

.page { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1rem; font-size: .78rem; color: var(--muted); background: var(--soft); }
.site-footer p { max-width: 1000px; margin: .3rem auto; }

table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.stat { font-size: 1.6rem; font-weight: 700; }
.form { max-width: 380px; display: grid; gap: .7rem; }
.form label { display: grid; gap: .25rem; font-size: .9rem; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.notice { background: #fff8e1; border: 1px solid #f0d77b; border-radius: var(--radius); padding: .7rem 1rem; }

/* ---- map page ---- */
body.map-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.map-layout { position: relative; flex: 1; min-height: 0; }
.map { position: absolute; inset: 0; }
.toolbar { position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; pointer-events: none; }
.toolbar > * { pointer-events: auto; }
.search { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.search input { width: 200px; border: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: #fff; padding: 4px 6px; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tools.highlight { outline: 3px solid var(--accent); }
.tools-label { font-size: .75rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.tools button { font-size: .85rem; padding: .3rem .55rem; }
.tools button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.switch { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; margin: 0 .4rem; white-space: nowrap; }
.switch input { appearance: none; -webkit-appearance: none; width: 2.1em; height: 1.2em; border-radius: 1em; background: #b9bec5; position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: .15em; left: .15em; width: .9em; height: .9em; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(.9em); }
.switch input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tool-options { background: #fff; padding: 6px 10px; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: .9rem; }
.map-status { position: absolute; z-index: 5; left: 50%; bottom: 34px; transform: translateX(-50%); background: rgba(29,35,39,.88); color: #fff; padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; }
.map-attribution { position: absolute; z-index: 4; left: 0; bottom: 0; right: 0; font-size: .68rem; background: rgba(255,255,255,.85); padding: 2px 8px; color: var(--muted); text-align: center; }
.panel { position: absolute; z-index: 6; top: 64px; right: 10px; bottom: 26px; width: min(420px, calc(100% - 20px)); overflow-y: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,.3); padding: 1rem 1.1rem; }
.panel-close { position: sticky; top: 0; float: right; border: 0; font-size: 1.5rem; line-height: 1; background: #fff; padding: 0 .3rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .7rem 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.buy { background: var(--soft); border-radius: var(--radius); padding: .8rem; margin: .8rem 0; }
.buy .button { display: block; text-align: center; margin-top: .4rem; }
.buy p { margin: .3rem 0 .2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .9rem; }
.streetview { width: 100%; height: 220px; border: 0; border-radius: var(--radius); background: var(--soft); }
.sales { font-size: .82rem; }
.constraints { padding-left: 1.1rem; margin: .3rem 0; font-size: .9rem; }
.lead-form { display: grid; gap: .45rem; }
.result-list { padding-left: 1.3rem; font-size: .9rem; }

.cookie-banner { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,.3); padding: .7rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }

@media (max-width: 720px) {
  .checkout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .panel { top: auto; height: 60%; right: 0; left: 0; bottom: 0; width: 100%; border-radius: 12px 12px 0 0; }
  .search input { width: 140px; }
  .tools-label { display: none; }
  .site-header nav { gap: .6rem; font-size: .88rem; }
}
.layers { margin: 0 0 30px 10px; font-size: .9rem; }
.layers-toggle { background: #fff; border: 0; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.3); padding: .45rem .8rem; font-weight: 600; cursor: pointer; }
.layers fieldset { background: #fff; border: 0; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.3); padding: .5rem .8rem; margin: 0 0 6px; display: grid; gap: .3rem; }
.layers fieldset[hidden] { display: none; }
.layers legend { float: left; font-weight: 600; color: var(--muted); font-size: .8rem; margin-bottom: .1rem; }
.layers label { display: flex; gap: .4rem; align-items: center; cursor: pointer; white-space: nowrap; }
.guide { max-width: 720px; }
.guide h2 { margin-top: 1.8rem; }
.guide li { margin: .3rem 0; }
.lede { font-size: 1.15rem; color: var(--muted); }
.guide-cta { margin-top: 2rem; background: var(--soft); }

/* Read by screen readers and search engines, not shown */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
