/* AreaGlimpse prototype skin: light, clean, modern. No em dashes in copy. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #1c2733;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --orange: #f06423;
  --bg: #f7f8f9;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 39, 51, .10);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
img { display: block; }

/* ---------------- brand ---------------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand svg { flex: none; }
.brand .glimpse { color: var(--orange); }

/* ---------------- page 1 ---------------- */
.page { max-width: 1080px; margin: 0 auto; padding: 26px 24px 70px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; }
header.top .tag { color: var(--muted); font-size: 13.5px; }
.hero { text-align: center; padding: 44px 0 8px; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 720px; margin: 0 auto; }
.hero p.sub { color: var(--muted); font-size: 18.5px; margin: 16px auto 0; max-width: 560px; line-height: 1.5; }
.pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pill { background: #fff; border: 1px solid var(--line); color: #475569; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.builder-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); max-width: 620px; margin: 30px auto 0; padding: 26px; text-align: left;
}
.builder-card label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 9px; }
.addr-wrap { position: relative; }
input[type=text].addr {
  width: 100%; font-size: 16.5px; padding: 14px 16px; border: 1.5px solid #cbd5e1;
  border-radius: 12px; color: var(--ink); background: #fff; outline: none;
}
input[type=text].addr:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.autocomplete {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; z-index: 40;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: none;
}
.autocomplete.open { display: block; }
.autocomplete button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 11px 16px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid #f1f5f9;
}
.autocomplete button:last-child { border-bottom: none; }
.autocomplete button:hover { background: #f8fafc; }
.autocomplete button small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.dropzone {
  margin-top: 20px; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 22px;
  text-align: center; color: var(--muted); font-size: 14.5px; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: #eff6ff; color: var(--ink); }
.dropzone .dz-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.dropzone .dz-file { display: none; align-items: center; gap: 12px; text-align: left; }
.dropzone .dz-file img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.dropzone .dz-file .nm { font-weight: 600; color: var(--ink); font-size: 14px; word-break: break-all; }
.dropzone .dz-file .rm { color: #dc2626; font-size: 13px; font-weight: 600; background: none; border: none; padding: 2px 0; }
.form-err { display: none; margin-top: 14px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 11px 14px; font-size: 14px; }
button.makemap {
  width: 100%; margin-top: 20px; background: var(--blue); color: #fff; border: none;
  font-size: 17px; font-weight: 700; padding: 15px; border-radius: 12px;
}
button.makemap:hover { background: var(--blue-dark); }
button.makemap:disabled { opacity: .6; cursor: wait; }
.fineprint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; }

.companies { margin: 64px auto 0; text-align: center; }
.companies .cap { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #94a3b8; }
.companies .names { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; margin-top: 16px; }
.companies .names span { font-weight: 700; color: #94a3b8; font-size: 16.5px; letter-spacing: -.01em; }

.section { margin-top: 74px; }
.section h2 { font-size: 27px; letter-spacing: -.02em; font-weight: 800; text-align: center; }
.section .lede { color: var(--muted); text-align: center; margin-top: 8px; font-size: 15.5px; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.examples figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(28,39,51,.05); }
.examples img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.examples figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: #eff6ff; color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.step h3 { font-size: 16.5px; margin-top: 13px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 6px; }
.faq { max-width: 720px; margin: 28px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 9px; }
footer.bot { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; color: #94a3b8; font-size: 13px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .hero h1 { font-size: 34px; }
  .examples, .steps { grid-template-columns: 1fr; }
}

/* ---------------- map page ----------------
   Layout per the original product's Canvas component (see
   original-code REVIEW.md Section 2): a fixed full-viewport stage
   centers one 3:2 frame sized by viewport math; inside the frame's
   wrapper, a photographic sky band (44%) fades over a map band
   (80% of height, 100% in top view), popup cards at 40% of frame
   height with 4/3 aspect, and the radius pill on the bottom edge.
   Markers are fixed pixel sizes against the viewport-derived
   frame, exactly as in the original. */
html.mapdoc, body.mapdoc { height: 100%; overflow: hidden; background: #fff; }
#mappage {
  position: fixed; inset: 0; height: 100dvh;
  display: flex; justify-content: center; align-items: center; background: #fff;
}
#frame {
  width: min(calc(100vw - 32px), calc(3 * (100vh - 56px) / 2 + 24px));
  height: min(calc(100vh - 32px), calc(2 * (100vw - 56px) / 3 + 24px));
  margin: 1rem; position: relative; overflow: hidden; background: #fff;
  border-radius: 1rem; border: 4px double rgba(183, 183, 183, 0.45);
  box-shadow: rgba(0, 0, 0, 0.12) 0 1px 1px 0px,
              rgba(64, 68, 82, 0.16) 0 0 0 1px,
              rgba(64, 68, 82, 0.08) 0 2px 5px 0px;
}
#wrapper { position: absolute; inset: 0.5rem; border-radius: 0.5rem; overflow: hidden; }
#map-band { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; }
body.topview #map-band { height: 100%; }
#map { position: absolute; inset: 0; }
#sky-band { position: absolute; left: 0; right: 0; top: 0; height: 44%; z-index: 100; pointer-events: none; }
body.topview #sky-band { display: none; }
/* Stage C top-down mode: both popup cards tucked away; the map
   itself, the radius pill and the controls stay. */
body.topdown .popup-card { display: none; }
#sky-band img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(to bottom, white 0%, white calc(100% - 100px), transparent 100%);
  mask-image: linear-gradient(to bottom, white 0%, white 85%, transparent 100%);
}
#watermark { position: absolute; inset: -40px; z-index: 140; pointer-events: none; background-repeat: repeat; }
.map-ui { position: absolute; z-index: 150; }

/* popup cards: 4/3 aspect, 40% of frame height, caption row 3.5rem */
.popup-card {
  background: #fff; border-radius: 1rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.12), 0 4px 6px -4px rgba(0,0,0,.1);
  padding: 8px; height: 40%; aspect-ratio: 4 / 3; display: flex; flex-direction: column;
}
#popup-photo { top: 16px; left: 16px; }
#popup-sat { top: 16px; right: 16px; }
.popup-card .imgwrap {
  height: calc(100% - 3rem); flex: none; border-radius: 0.75rem; overflow: hidden;
  position: relative; background: #e2e8f0;
}
.popup-card .imgwrap img.ph { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#sat-map { position: absolute; inset: 0; }
#lines-toggle {
  position: absolute; left: 8px; top: 8px; z-index: 5; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 0.5rem; padding: 8px 10px; font-size: 12px; font-weight: 500;
  box-shadow: 0 4px 12px rgba(2,12,27,.18); cursor: pointer;
}
.popup-card .cap {
  height: 3.5rem; flex: none; display: flex; align-items: center; justify-content: center;
  gap: 8px; text-align: center; font-weight: 700; color: var(--ink);
  font-size: clamp(14px, 1.35vw, 21px); overflow: hidden; padding: 0 4px;
}
#photo-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sat-cap .approx { font-weight: 500; }
#acreage-val { cursor: text; text-decoration: underline dotted; text-underline-offset: 4px; outline: none; white-space: nowrap; }
#acreage-val:focus { text-decoration-color: var(--blue); }
#county-chip {
  border: 1px solid #d1d5db; border-radius: 0.75rem; padding: 4px 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); white-space: nowrap; font-weight: 700;
}

/* bottom pill: rounded top corners only, vw padding, per the original */
#radius-pill {
  left: 50%; bottom: 0; transform: translateX(-50%); width: fit-content;
  background: #fff; border-radius: 0.75rem 0.75rem 0 0; box-shadow: 0 10px 15px -3px rgba(0,0,0,.12);
  padding: 0.5vw 1.2vw; font-size: clamp(13px, 1.15vw, 19px); white-space: nowrap; color: var(--ink);
}
#radius-pill .r { font-weight: 600; font-style: italic; }

.map-btn {
  background: #fff; border: none; border-radius: 12px; box-shadow: 0 8px 24px rgba(2,12,27,.3);
  font-size: 15px; font-weight: 700; padding: 12px 18px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; z-index: 160;
}
.map-btn.primary { background: #22314a; color: #fff; }
.map-btn.primary:hover { background: #2d405f; }
#btn-settings { left: 16px; bottom: 16px; }
#btn-download { right: 16px; bottom: 16px; }
.mapboxgl-ctrl-bottom-right { bottom: 76px; right: 10px; }

/* home marker: blue bullseye with a yellow center and a ping ring,
   the home marker in the current product code */
.home-marker { width: 32px; height: 32px; position: relative; pointer-events: none; }
.home-marker .ping {
  position: absolute; inset: 0; border-radius: 50%; background: #2563eb; opacity: .75;
  animation: homeping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
.home-marker .core { position: absolute; inset: 0; border-radius: 50%; background: #2563eb; }
.home-marker .dot { position: absolute; inset: 8px; border-radius: 50%; background: #facc15; }
@keyframes homeping {
  0% { transform: scale(1); opacity: .75; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* POI markers: the Emblem anatomy from the original code.
   Rectangle family (place photo, or School / Park / Hospital):
   a 96px wide box at 5/3 aspect, the image filling it under a 4px
   category border, a 24px category tab straddling the bottom edge
   (16px glyph), and the name pill 64px below the marker top,
   max-width 120px, truncated until hover.
   Circle family (other categories with a logo): a 44px circle with
   the same border and tab; its pill stays hidden until hover.
   Non branded mode, and the branded fallback for a place with
   neither a logo nor a photo: the badge unit from badges_gen. */
.poi-marker { position: absolute; display: flex; flex-direction: column; align-items: center; width: max-content; cursor: pointer; }
.poi-box { position: relative; width: 96px; height: 58px; flex: none; }
.poi-box.circle { width: 44px; height: 44px; }
.poi-box img.main {
  width: 100%; height: 100%; object-fit: cover; display: block; background: #fff;
  border: 4px solid #94a3b8; border-radius: 6px; box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(2,12,27,.25); transition: opacity .15s, border-color .15s;
}
.poi-box.circle img.main { border-radius: 50%; }
.poi-marker:hover .poi-box img.main { border-color: #b91c1c; opacity: .75; }
.poi-tab {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  width: 24px; height: 24px; border-radius: 6px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(2,12,27,.3); transition: opacity .15s;
}
.poi-tab img { width: 16px; height: 16px; display: block; }
.poi-marker:hover .poi-tab { opacity: 0; }
.poi-name {
  margin-top: 7px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #fff; border-radius: 999px; padding: 4px 12px; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  box-shadow: 0 2px 6px rgba(2,12,27,.25);
}
.poi-marker:hover .poi-name { max-width: none; overflow: visible; background: #ef4444; position: relative; z-index: 50; }
.poi-name.circle-label { display: none; margin-top: 16px; }
.poi-marker:hover .poi-name.circle-label { display: block; }
.poi-marker img.badge-img { width: 96px; display: block; filter: drop-shadow(0 5px 12px rgba(2,12,27,.3)); }
.poi-x-wrap {
  position: absolute; left: 0; right: 0; top: 14px; z-index: 5;
  display: flex; justify-content: center; opacity: 0; transition: opacity .15s; pointer-events: none;
}
.poi-marker:hover .poi-x-wrap { opacity: 1; }
.poi-x {
  pointer-events: auto; width: 32px; height: 32px; border-radius: 4px; border: none; padding: 0;
  background: #dc2626; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(2,12,27,.35);
}
.poi-x:hover { background: #b91c1c; }
.poi-x svg { width: 24px; height: 24px; display: block; }

/* settings drawer */
#settings {
  position: absolute; z-index: 300; top: 0; left: 0; bottom: 0; width: 500px; max-width: 94%;
  background: #fff; box-shadow: 16px 0 40px rgba(2,12,27,.3); transform: translateX(-105%);
  transition: transform .25s ease; display: flex; flex-direction: column;
}
#settings.open { transform: translateX(0); }
#settings .s-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
#settings .s-head h2 { font-size: 21px; letter-spacing: -.01em; }
#settings .s-head p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }
#settings .s-body { overflow-y: auto; padding: 6px 24px 26px; flex: 1; }
#settings h3 { font-size: 12.5px; letter-spacing: .12em; color: var(--muted); margin: 22px 0 11px; font-weight: 700; }
#settings .close-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 16px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-grid label, .check-list label {
  display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.radio-grid label:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-list label:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.ctl-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ctl-row select {
  font-size: 14.5px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.ctl-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; min-width: 48px; min-height: 48px; }
.ctl-btn.active { border-color: var(--blue); background: #eff6ff; color: var(--blue-dark); }
.ctl-btn:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; border: none; background: #fff; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--blue); color: #fff; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
#overlap-note { font-size: 13.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 13px; margin-top: 13px; display: none; }
.poi-list { margin-top: 4px; }
.poi-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #f1f5f9; }
.poi-row .dotc { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.poi-row .info { flex: 1; min-width: 0; }
.poi-row .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poi-row .meta { font-size: 12.5px; color: var(--muted); }
.poi-row .st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.shown { background: #ecfdf5; color: #065f46; }
.st.removed { background: #fef2f2; color: #991b1b; }
.st.overlap { background: #fffbeb; color: #92400e; }
.st.catoff { background: #f1f5f9; color: #64748b; }
.st.aside { background: #eef2ff; color: #3730a3; }
/* add a place (map page settings) */
#addq { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; }
#addq:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); outline: none; }
#add-results { margin-top: 8px; }
#add-results .res { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; font-size: 13.5px; }
#add-results .res .nm { font-weight: 700; }
#add-results .res .ad { color: var(--muted); font-size: 12.5px; }
.builder-card .seg { margin-bottom: 20px; }
.pin-row { display: flex; gap: 12px; margin-top: 16px; }
.pin-row > div { flex: 1; }
.pin-note { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 12px; }
#pin-block { margin-bottom: 4px; }
.poi-row button.act { border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 12.5px; font-weight: 700; padding: 6px 10px; white-space: nowrap; }
#loading-pois { position: absolute; z-index: 150; left: 50%; bottom: 84px; transform: translateX(-50%); background: rgba(28,39,51,.88); color: #fff; font-size: 13.5px; padding: 10px 17px; border-radius: 999px; display: none; white-space: nowrap; }

/* ---------------- accounts, my maps, owner ---------------- */
.page.narrow { max-width: 640px; }
.authbox { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.authbox a { color: var(--blue); text-decoration: none; font-weight: 600; }
.authbox a:hover { text-decoration: underline; }
.authbox .who { color: var(--muted); font-size: 13.5px; }
.authbox .linklike { background: none; border: none; color: var(--blue); font-weight: 600; font-size: 14px; padding: 0; }
.authbox .cta-mini { background: var(--blue); color: #fff; padding: 7px 13px; border-radius: 9px; }
.authbox .cta-mini:hover { background: var(--blue-dark); text-decoration: none; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 520px; margin: 34px auto 0; padding: 28px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.55; }
.auth-card label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin: 16px 0 8px; }
.auth-card input[type=email], .auth-card input[type=password] {
  width: 100%; font-size: 16px; padding: 13px 15px; border: 1.5px solid #cbd5e1;
  border-radius: 12px; color: var(--ink); background: #fff; outline: none;
}
.auth-card input[type=email]:focus, .auth-card input[type=password]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.auth-card .makemap { width: 100%; margin-top: 20px; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 20px; padding: 13px; border: 1.5px solid #cbd5e1;
  border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700;
  font-size: 15.5px; text-decoration: none;
}
.google-btn:hover { background: #f8fafc; }
.google-btn.disabled { opacity: .55; }
.google-note { color: var(--muted); font-size: 13px; margin-top: 9px; text-align: center; line-height: 1.45; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px; color: var(--muted); font-size: 12.5px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.switch-line { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.switch-line a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.cta-link { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; text-decoration: none; }
.cta-link:hover { background: var(--blue-dark); }
.ghost-btn { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 12px; }
.ghost-btn:hover { background: #f8fafc; }
.list-wrap { max-width: 820px; margin: 26px auto 0; }
.list-wrap h1 { font-size: 32px; letter-spacing: -.02em; }
.list-wrap .sub { color: var(--muted); font-size: 15.5px; margin-top: 8px; line-height: 1.55; max-width: 560px; }
.map-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 12px; box-shadow: 0 2px 8px rgba(28,39,51,.04); }
.map-row .map-main { flex: 1; min-width: 0; }
.map-row .map-addr { font-weight: 700; font-size: 16.5px; }
.map-row .map-meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.badge-paid { background: #dcfce7; color: #166534; font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge-unpaid { background: #f1f5f9; color: #64748b; font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.mini-btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.mini-btn:hover { background: #0f172a; }
.empty-box { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 30px; margin-top: 18px; text-align: center; }
.empty-box h2 { font-size: 20px; }
.empty-box p { color: var(--muted); margin-top: 8px; line-height: 1.55; }
.owner-table-wrap { overflow-x: auto; margin-top: 16px; }
.owner-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.owner-table th { text-align: left; color: var(--muted); font-size: 12px; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.owner-table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; }
.modal .demo-note { margin-top: 13px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; }

/* purchase modal */
.modal-back { position: absolute; inset: 0; z-index: 400; background: rgba(10, 20, 35, .55); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 18px; max-width: 480px; width: 100%; padding: 28px; box-shadow: 0 24px 60px rgba(2,12,27,.45); position: relative; }
.modal h2 { font-size: 22px; letter-spacing: -.01em; }
.modal .sub { color: var(--muted); font-size: 14.5px; margin-top: 7px; line-height: 1.5; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 13px; padding: 15px 16px; margin-top: 13px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.opt.disabled { opacity: .55; cursor: not-allowed; }
.opt .t { font-weight: 700; font-size: 15.5px; }
.opt .d { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.opt .price { margin-left: auto; font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.tag-soon { font-size: 11px; font-weight: 800; letter-spacing: .06em; background: #f1f5f9; color: #64748b; border-radius: 999px; padding: 3px 8px; margin-left: 7px; vertical-align: 2px; }
.modal .cta { width: 100%; margin-top: 18px; background: var(--blue); color: #fff; border: none; font-size: 16px; font-weight: 700; padding: 14px; border-radius: 12px; }
.modal .cta:hover { background: var(--blue-dark); }
.modal .demo { display: block; text-align: center; margin-top: 13px; font-size: 13px; color: var(--muted); background: none; border: none; width: 100%; text-decoration: underline; }
.modal .close-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.dl-btns { display: grid; gap: 10px; margin-top: 18px; }
.dl-btns button { border: none; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; }
.dl-btns .b1 { background: var(--ink); color: #fff; }
.dl-btns .b2 { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.dl-btns .d { display: block; font-weight: 500; font-size: 12.5px; opacity: .75; margin-top: 3px; }
#export-toast {
  position: absolute; z-index: 500; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(28,39,51,.92); color: #fff; padding: 16px 24px; border-radius: 13px;
  font-size: 15px; font-weight: 600; display: none;
}
#export-stage { position: fixed; left: -12000px; top: 0; }
.mapboxgl-ctrl-attrib { font-size: 10px; }
