/* The shared look (white with one navy, like memocho.dev). Change colors here, not in the HTML. */
:root { --ink: #1d2433; --muted: #5b6475; --line: #d9dde5; --bg: #fff; --accent: #1f3a5f; --soft: #f4f6f9; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e6e9ef; --muted: #a3abba; --line: #343b48; --bg: #151922; --accent: #9cb8e0; --soft: #1d2230; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.8 system-ui, -apple-system, "Hiragino Sans", sans-serif; }
a { color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; }
.inner, .page { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.site-header { border-bottom: 2px solid var(--accent); }
.site-header .inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: space-between; padding: .8rem 1rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.page { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.lede { font-size: 1.05rem; }
.small { font-size: .85rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--soft); white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 1.5rem 0 2rem; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 1rem 0 .5rem; }
.footer-ads { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.ads-heading { font-size: .95rem; margin: 0 0 .6rem; }
.ad-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.ad-card { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .8rem; }
.ad-card img { max-width: 100%; height: auto; }
.ad-card h3 { font-size: 1rem; margin: .3rem 0; }
.pr-label { display: inline-block; font-size: .75rem; font-weight: 700; border: 1px solid var(--muted); color: var(--muted); border-radius: 3px; padding: 0 .35rem; margin-right: .4rem; }
.button { display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none; padding: .45rem .9rem; border-radius: 4px; }
.pixel { position: absolute; width: 1px; height: 1px; }

/* --- The map on the home page ------------------------------------------------------------------------- */
.page.map-page { max-width: none; padding: 0; }
.map-app { --panel: #fff; --sub: #5b656c; --mline: #dcdad2; --mbg: #f6f5f1; color: #1d2327; background: var(--mbg); }
.map-head { max-width: none; padding: .8rem 1rem .6rem; background: var(--panel); border-bottom: 1px solid var(--mline); }
.map-head h1 { margin: 0; font-size: 1.15rem; }
.map-head .lead { margin: .1rem 0 .6rem; color: var(--sub); font-size: .85rem; line-height: 1.6; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.group > span { font-size: 12px; color: var(--sub); }
.map-app button, .map-app select { font: inherit; font-size: 13px; line-height: 1.5; color: #1d2327; background: var(--panel);
  border: 1px solid var(--mline); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.map-app button[aria-pressed="true"] { background: #1d2327; border-color: #1d2327; color: #fff; }
#near { border-color: #1d2327; font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot.housing { background: #2f6fb0; } .dot.mixed { background: #b0582f; } .dot.other { background: #4c8a4a; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 74vh; min-height: 420px; }
#map { min-height: 0; background: #e8e6df; }
.map-list { background: var(--panel); border-left: 1px solid var(--mline); overflow-y: auto; min-height: 0; line-height: 1.6; }
.count { padding: 10px 14px; font-size: 13px; color: var(--sub); border-bottom: 1px solid var(--mline);
  position: sticky; top: 0; background: var(--panel); z-index: 1; }
.count b { color: #1d2327; font-size: 16px; }
#list { list-style: none; margin: 0; padding: 0; }
#list li { padding: 10px 14px; border-bottom: 1px solid var(--mline); cursor: pointer; }
#list li:hover { background: var(--mbg); }
#list .use { font-weight: 600; }
#list .meta { font-size: 12.5px; color: var(--sub); }
#list .empty { color: var(--sub); font-size: 13px; cursor: default; }
.map-notes { max-width: 46rem; margin: 0 auto; padding: 1rem; font-size: .9rem; color: var(--sub); line-height: 1.8; }
.maplibregl-popup-content { padding: 12px 14px; border-radius: 8px; color: #1d2327; }
.info { font-size: 13px; line-height: 1.6; }
.info h2 { font-size: 15px; margin: 0 0 4px; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 6px 0 0; }
.info dt { color: var(--sub); white-space: nowrap; }
.info dd { margin: 0; }
.info .note { margin: 6px 0 0; font-size: 12px; color: var(--sub); }
@media (max-width: 760px) {
  .map-body { grid-template-columns: 1fr; grid-template-rows: 60vh auto; height: auto; }
  .map-list { border-left: 0; border-top: 1px solid var(--mline); overflow: visible; }
  .count { position: static; }
}
