:root {
  color-scheme: light;
  --paper: #f5f6f1;
  --card: #fff;
  --ink: #18302d;
  --muted: #516662;
  --line: #dce4dc;
  --teal: #164c43;
  --pale: #eaf2e9;
  --accent: #a84028;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #13715d; }
[hidden] { display: none !important; }
a { color: var(--teal); }
.frame { width: min(100% - 56px, 1420px); margin-inline: auto; min-width: 0; }
.masthead { background: #143a33; color: #fff; }
.topbar { min-height: 63px; height: auto; padding-block: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; font-weight: 750; letter-spacing: -.02em; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-pin { width: 16px; height: 16px; border: 2px solid #b9e0c7; border-radius: 50% 50% 50% 1px; transform: rotate(-45deg); position: relative; flex-shrink: 0; }
.brand-pin::after { content: ""; position: absolute; inset: 3.5px; background: #b9e0c7; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.top-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px; border-radius: 7px; color: #e1f2e6; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.top-link:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.top-link[aria-current="page"] { background: #eaf2e9; color: #143a33; font-weight: 750; }
.top-link span { margin-left: 4px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-block: 24px 18px; flex-wrap: wrap; }
.intro-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-switcher { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: #e6eee6; border: 1px solid #d0ddd1; border-radius: 10px; }
.mode-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--teal); background: transparent; }
.mode-pill:hover { background: rgba(255, 255, 255, 0.72); text-decoration: none; }
.mode-pill.is-active, .mode-pill[aria-current="page"] { background: var(--teal); color: #fff; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.045em; line-height: 1.12; }
.intro p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.source-badge { border-radius: 24px; background: var(--pale); border: 1px solid #d8e5d9; color: #245347; padding: 7px 11px; white-space: nowrap; font-size: 12px; font-weight: 680; }
.source-badge span, .map-legend span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3b826e; margin-right: 5px; }
.toolbar { display: grid; grid-template-columns: 1fr minmax(205px, 23%); gap: 16px; padding: 15px 17px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.toolbar label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 740; }
#local-search { position: relative; }
.search-box { display: flex; align-items: center; gap: 9px; min-height: 48px; height: auto; border: 1px solid #cbd8d1; border-radius: 7px; padding: 3px 4px 3px 13px; }
.search-icon { width: 13px; height: 13px; border: 1.6px solid #54756e; border-radius: 50%; margin-right: 3px; position: relative; flex-shrink: 0; }
.search-icon::after { position: absolute; content: ""; width: 6px; height: 1.6px; background: #54756e; transform: rotate(45deg); top: 10px; left: 8px; }
.search-box input { min-width: 0; width: 100%; min-height: 38px; border: 0; background: transparent; color: var(--ink); padding: 5px; outline-offset: 1px; }
.search-submit { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; min-height: 40px; background: var(--teal); color: #fff; border: 0; border-radius: 5px; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.search-submit:hover { background: #1e6454; }
select { width: 100%; min-height: 43px; height: 43px; background: #fff; color: var(--ink); border: 1px solid #cbd8d1; border-radius: 7px; padding: 0 12px; }
gmp-place-autocomplete { width: 100%; color-scheme: light; }
.suggestions { position: absolute; z-index: 1050; inset: calc(100% + 5px) 0 auto; list-style: none; margin: 0; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 30px #18302d24; }
.suggestions button, .suggestions .message { display: flex; align-items: center; text-align: left; width: 100%; min-height: 40px; padding: 9px 10px; color: var(--ink); border: 0; background: #fff; border-radius: 5px; font-size: 14px; }
.suggestions button:hover, .suggestions button:focus-visible { background: var(--pale); }
.suggestions small { color: var(--muted); margin-left: 8px; }
.market-row { display: flex; gap: 9px 12px; align-items: center; flex-wrap: wrap; padding: 11px 0 15px; font-size: 13px; color: var(--muted); }
#market-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.chip, .outline { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: #fff; border: 1px solid #cfdcd3; border-radius: 7px; color: var(--teal); font-size: 12px; font-weight: 700; padding: 7px 12px; text-decoration: none; }
.chip { border-radius: 20px; padding: 7px 13px; }
.chip:hover, .outline:hover, .chip[aria-pressed="true"] { background: #e2efe3; border-color: #9dbb9f; text-decoration: none; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metrics article { padding: 12px 15px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.metrics span { font-size: 13px; color: var(--muted); font-weight: 700; }
.metrics strong { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metrics small { font-size: 11px; color: var(--muted); }
.exploration { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(310px, 1fr); gap: 13px; align-items: stretch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; min-height: 65px; flex-wrap: wrap; }
.panel h2, .sources h2 { font-size: 17px; letter-spacing: -.02em; }
.panel p, .sources p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.outline { white-space: nowrap; }
.map-stage { position: relative; isolation: isolate; }
#map { height: clamp(380px, 57vh, 640px); background: #e4ece5; border-radius: 0 0 11px 11px; overflow: hidden; }
.leaflet-tile-pane { filter: saturate(.67); }
.map-status, .map-legend { position: absolute; z-index: 1100; background: #fff; box-shadow: 0 2px 10px #18302d22; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; pointer-events: none; }
.map-status { top: 10px; left: 10px; right: 56px; width: auto; max-width: calc(100% - 66px); transform: none; text-align: left; font-size: 12px; }
.map-legend { bottom: 27px; left: 9px; font-size: 11px; color: var(--muted); max-width: calc(100% - 20px); }
.map-legend span { background: var(--accent); }
.map-marker { padding: 5px 7px; border-radius: 18px; border: 1.5px solid white; box-shadow: 0 1px 5px #3b221d52; line-height: 1; font: 700 12px/1 "DM Sans", "Segoe UI", Arial, sans-serif; min-width: 24px; text-align: center; color: #fff; background: var(--accent); white-space: nowrap; }
.map-marker:hover { background: #78351f; }
.leaflet-marker-icon { background: none; border: none; }
.leaflet-marker-icon .map-marker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.table-wrap { max-height: clamp(380px, 57vh, 640px); overflow: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
thead th { z-index: 1; position: sticky; top: 0; background: #edf3ec; color: var(--muted); font-size: 11px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
td { font-variant-numeric: tabular-nums; }
td button, th[scope="row"] button { display: inline-flex; align-items: center; min-height: 40px; text-align: left; border: 0; background: transparent; padding: 4px 0; color: var(--teal); font-weight: 750; }
td button:hover, th[scope="row"] button:hover { text-decoration: underline; }
td small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
td:nth-child(2) { min-width: 59px; }
.volume { display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: #71a691; min-width: 2px; margin-left: auto; }
.table-empty { padding: 13px; }
.sources { padding: 17px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.sources a { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; margin-bottom: 4px; }
.sr-only { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }
@media (max-width: 1024px) {
  .intro { align-items: flex-start; }
}
@media (max-width: 920px) {
  .frame { width: min(100% - 32px, 1420px); }
  .exploration { grid-template-columns: 1fr; }
  .table-wrap { max-height: 410px; }
}
@media (max-width: 680px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 54px; height: auto; padding-block: 10px; }
  .site-nav { justify-content: flex-start; gap: 6px; width: 100%; }
  .top-link { font-size: 12px; padding: 6px 9px; min-height: 40px; }
}
@media (max-width: 550px) {
  .frame { width: calc(100% - 24px); }
  .intro { align-items: start; padding-block: 18px 16px; }
  .intro p { font-size: 13px; }
  .source-badge { display: none; }
  .toolbar { grid-template-columns: 1fr; gap: 10px; padding: 11px; }
  .metrics { gap: 6px; }
  .metrics article { padding: 8px; }
  .metrics span, .metrics small { font-size: 10px; }
  .metrics strong { font-size: 19px; }
  .outline { white-space: normal; }
  .map-status { left: 10px; right: 56px; max-width: calc(100% - 66px); }
  .sources { grid-template-columns: 1fr; }
}
