:root {
  color-scheme: light;
  --ink: #172e29;
  --muted: #51625b;
  --green: #226a52;
  --line: #dce4dc;
  --paper: #fbfcf8;
  --lime: #caf580;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font:
    100%/1.45 'Inter',
    'Helvetica Neue',
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #277856;
  outline-offset: 3px;
}
.masthead button:focus-visible {
  outline-color: var(--lime);
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.masthead {
  height: 64px;
  background: #18342e;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 26px;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand strong {
  color: var(--lime);
  font-weight: 550;
}
.nav-title {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid #52685f;
  padding-left: 23px;
  font-size: 0.92rem;
  color: #d4dfd6;
}
.nav-title .icon {
  width: 17px;
}
.header-end {
  margin-left: auto;
  display: flex;
  gap: 17px;
  align-items: center;
}
#about {
  padding: 5px;
  color: #e8f4dc;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.layer-date {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.75rem;
}
#languages {
  display: flex;
  background: #28453d;
  padding: 3px;
  border-radius: 6px;
  gap: 1px;
}
#languages button {
  font: 650 0.81rem var(--mono);
  color: #e1e9e4;
  padding: 5px 9px;
  border-radius: 4px;
}
#languages button[aria-pressed='true'] {
  background: #e8f4dc;
  color: #173a2b;
}
main {
  display: grid;
  grid-template-columns: clamp(318px, 26vw, 385px) 1fr;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
}
#sidebar {
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: var(--paper);
  border-right: 1px solid #c9d4ca;
  z-index: 2;
}
#grip {
  display: none;
}
#city-block {
  padding: 27px 24px 23px;
  background: #eef3e8;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 650 0.76rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.095em;
  color: #506553;
}
.eyebrow .icon {
  width: 15px;
  height: 15px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.65rem, 2.1vw, 2.1rem);
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin: 10px 0 14px;
}
#city-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0;
  gap: 10px;
  font: inherit;
  letter-spacing: inherit;
}
.chevron {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #b9c9b8;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  background: #fbfcf5;
}
.chevron .icon {
  width: 16px;
}
.metrics {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.metrics b {
  font-family: var(--mono);
  color: var(--ink);
}
.metrics i,
.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #869985;
}
#layer-content {
  padding: 22px 24px 16px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
#visible-count {
  font: 0.76rem var(--mono);
  color: var(--muted);
}
#layer-list {
  margin: 10px 0 12px;
}
.layer {
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 11px;
}
.layer-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--color) 11%, white);
  color: var(--color);
  grid-row: span 2;
  margin-top: 3px;
}
.layer label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  min-height: 24px;
}
.layer-name {
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
}
.layer-count {
  color: #536257;
  font: 0.75rem var(--mono);
  padding: 1px 5px;
  background: #edf0e9;
  border-radius: 4px;
}
.switch {
  appearance: none;
  flex: none;
  width: 32px;
  height: 19px;
  border-radius: 16px;
  background: #cbd2c8;
  margin: 0 0 0 auto;
  cursor: pointer;
  position: relative;
}
.switch:checked {
  background: var(--color);
}
.switch:after {
  content: '';
  position: absolute;
  background: white;
  width: 13px;
  height: 13px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  box-shadow: 0 1px 2px #172e2944;
}
.switch:checked:after {
  transform: translateX(13px);
}
.sources {
  display: flex;
  gap: 4px 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  font-size: 0.79rem;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #546359;
  padding: 2px 0;
  text-align: left;
}
.chip .icon {
  width: 12px;
  height: 12px;
}
.chip:hover {
  text-decoration: underline;
  color: var(--green);
}
.secondary {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 0;
}
.secondary .icon {
  width: 16px;
}
.row-status {
  grid-column: 2;
  font-size: 0.8rem;
  color: var(--muted);
}
.row-status button {
  text-decoration: underline;
  text-align: left;
  padding: 0;
}
#snapshot {
  background: #f1f4ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}
#snapshot .icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
}
#timestamp {
  font-weight: 650;
  color: #354e3d;
}
#snapshot p {
  margin-top: 5px;
}
footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  font-size: 0.75rem;
  color: #526357;
}
.footer-dot {
  width: 6px;
  height: 6px;
  background: #66846d;
  flex: none;
}
#map-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #e8eee8;
  overflow: hidden;
}
#map {
  position: absolute;
  inset: 0;
}
.explore,
.tools > div,
.detail {
  background: #fffffc;
  border: 1px solid #cbd6cc;
  box-shadow: 0 3px 14px #253c2e20;
  border-radius: 9px;
}
.explore {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 15px 10px 10px;
}
.cross-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #eaf3e3;
  color: #346645;
  border-radius: 6px;
}
.explore strong {
  display: block;
  font-size: 0.94rem;
}
.explore small {
  display: block;
  font-size: 0.79rem;
  color: var(--muted);
}
.tools {
  position: absolute;
  right: 18px;
  top: 20px;
  display: grid;
  gap: 9px;
}
.tools > div {
  overflow: hidden;
}
.tools button,
.close {
  width: 39px;
  height: 38px;
  display: grid;
  place-items: center;
}
.tools button + button {
  border-top: 1px solid var(--line);
}
.tools button:hover,
.close:hover,
.chevron:hover {
  background: #eff3ea;
}
.tools button:focus-visible {
  outline-offset: -3px;
}
#map-meta {
  position: absolute;
  bottom: 26px;
  left: 15px;
  pointer-events: none;
  color: #364f42;
  font: 0.71rem var(--mono);
  letter-spacing: 0.02em;
}
#coords {
  background: #fffffff0;
  border-radius: 3px;
  padding: 3px 6px;
}
.maplibregl-ctrl-bottom-left {
  bottom: 42px;
  left: 5px;
}
.maplibregl-ctrl-scale {
  border-color: #485348;
  background: #ffffffa8;
  color: #354330;
}
.attribution {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fffffff2;
  color: #36463c;
  padding: 3px 6px;
  font-size: 0.7rem;
  z-index: 1;
}
.attribution a {
  text-decoration: none;
}
.attribution a:hover {
  text-decoration: underline;
}
.detail {
  position: absolute;
  top: 93px;
  left: 20px;
  width: min(330px, calc(100% - 85px));
  padding: 15px 17px;
  max-height: calc(100% - 135px);
  overflow: auto;
  z-index: 2;
}
.close {
  height: 30px;
  width: 30px;
  border-radius: 5px;
  flex: none;
}
.detail .section-title,
dialog .section-title {
  margin-bottom: 13px;
}
.detail p,
.popup p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 7px 0;
}
.detail h3 {
  margin: 10px 0 5px;
}
.detail .actor {
  font: 500 0.84rem var(--mono);
  overflow-wrap: anywhere;
}
.action {
  display: block;
  border-radius: 6px;
  background: #245d45;
  color: white;
  padding: 9px 13px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
}
.action.alt {
  background: #edf4e9;
  color: #27583d;
  margin-top: 6px;
}
.radius-label,
.stat-row,
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.87rem;
}
.radius-label output,
.stat-row b,
.price-row b {
  font-family: var(--mono);
  white-space: nowrap;
}
.detail input[type='range'] {
  width: 100%;
  margin: 12px 0;
  accent-color: var(--green);
}
.stat-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.stat-row small {
  display: block;
  color: var(--muted);
}
.records {
  display: grid;
  gap: 1px;
}
.records button,
.city-option {
  padding: 9px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.records button:hover,
.city-option:hover {
  background: #eef4e9;
}
.maplibregl-popup {
  font: inherit;
}
.maplibregl-popup-content {
  border-radius: 10px;
  padding: 15px 16px;
  box-shadow: 0 4px 18px #253c2e33;
}
.popup h3 {
  margin: 5px 0 9px;
  font-size: 1.05rem;
}
.popup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.popup .badge {
  background: #edf3e6;
  color: #3c5a40;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.76rem;
}
.popup .price-row {
  margin: 5px 0;
}
.popup .price-main {
  font-size: 1.03rem;
  font-weight: 650;
  color: var(--ink);
}
.popup .close .icon {
  width: 16px;
}
#feed-status:not(:empty) {
  padding: 20px;
}
#map-error {
  position: absolute;
  bottom: 65px;
  left: 15px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 4px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #c9d5c7;
  border-radius: 12px;
  width: min(400px, 94vw);
  max-height: 78dvh;
  padding: 20px;
  box-shadow: 0 14px 50px #102f2b40;
}
dialog::backdrop {
  background: #102b285c;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #aebcae;
  background: white;
  padding: 7px 10px;
  border-radius: 6px;
}
.search input {
  border: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
}
.search:focus-within {
  outline: 2px solid var(--green);
}
.search input:focus {
  outline: none;
}
#city-results h3 {
  margin: 16px 0 3px;
  font: 600 0.75rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.city-option {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.city-option[aria-current='true'] {
  font-weight: 700;
  color: var(--green);
}
@media (max-width: 700px) {
  .masthead {
    height: 54px;
    padding: 0 15px;
    gap: 12px;
  }
  .brand {
    font-size: 1.23rem;
    gap: 8px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .nav-title {
    display: none;
  }
  .header-end {
    gap: 9px;
  }
  #languages button {
    padding: 5px 7px;
  }
  main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 54px);
    height: calc(100dvh - 54px);
  }
  #map-area {
    order: 0;
    flex: 1;
  }
  #sidebar {
    order: 1;
    height: 42%;
    min-height: 125px;
    border-radius: 14px 14px 0 0;
    border-right: 0;
    border-top: 1px solid #bfcebf;
    box-shadow: 0 -4px 15px #1c3c2b14;
  }
  #sidebar.collapsed {
    height: auto;
    min-height: 0;
  }
  #sidebar.collapsed #layer-content,
  #sidebar.collapsed footer {
    display: none;
  }
  #grip {
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 19px;
    background: #eef3e8;
    z-index: 1;
  }
  #grip span {
    width: 38px;
    height: 4px;
    background: #a5b7a4;
    border-radius: 4px;
  }
  #city-block {
    padding: 0 18px 13px;
  }
  h1 {
    font-size: 1.62rem;
    margin: 5px 0;
  }
  .metrics {
    font-size: 0.82rem;
  }
  #layer-content {
    padding: 15px 18px;
  }
  .layer {
    padding: 10px 0;
  }
  .explore {
    left: 10px;
    top: 10px;
    padding: 7px 10px 7px 7px;
    gap: 7px;
  }
  .explore small {
    display: none;
  }
  .cross-glyph {
    width: 26px;
    height: 26px;
  }
  .tools {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  .tools button {
    width: 35px;
    height: 35px;
  }
  #map-meta {
    display: none;
  }
  .maplibregl-ctrl-bottom-left {
    bottom: 13px;
    left: 0;
  }
  .attribution {
    font-size: 0.61rem;
  }
  .detail {
    left: 8px;
    top: auto;
    bottom: 19px;
    width: calc(100% - 16px);
    max-height: calc(100% - 31px);
    padding: 12px 15px;
  }
  .detail .section-title {
    margin-bottom: 7px;
  }
  .detail input[type='range'] {
    margin: 8px 0;
  }
  .stat-row {
    padding: 6px 0;
  }
  footer {
    padding: 12px 18px;
  }
  .maplibregl-popup-content {
    padding: 10px 12px;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  #city-block {
    padding: 18px 20px;
  }
  #layer-content {
    padding: 15px 20px;
  }
  .layer {
    padding: 9px 0;
  }
}
.price-row {
  overflow-wrap: anywhere;
}
.price-row b {
  white-space: normal;
  text-align: end;
}

.stat-values {
  text-align: end;
}
