:root {
  color-scheme: light;
  --ink: #162d2a;
  --muted: #4c625e;
  --surface: #fff;
  --line: #d0ddd8;
  --brand: #136849;
  --brand-dark: #103c32;
  --focus: #167a5c;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #eef4f1; font: 1rem/1.45 system-ui, sans-serif; }
header { background: var(--brand-dark); color: white; }
.header-inner, main { width: min(100% - 2rem, 91rem); margin: auto; }
.header-inner { padding: 1.4rem 0 1.6rem; }
h1, header p { margin: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.55rem); line-height: 1.15; letter-spacing: -.045em; }
header p { margin-top: .35rem; color: #d2eade; }
main { padding-top: 1rem; }
.toolbar {
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 4px 18px #123d3610;
}
.location, .controls { padding: .85rem 1rem; }
.location { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; border-bottom: 1px solid var(--line); }
.location form { display: flex; flex: 1 1 28rem; align-items: end; gap: .5rem; min-width: 0; }
.address-field { flex: 1; min-width: 0; }
.field { display: grid; gap: .3rem; color: var(--muted); font-size: .875rem; font-weight: 650; }
.field input, .field select, .location button {
  min-height: 2.65rem;
  border: 1px solid #aebfb7;
  border-radius: .65rem;
  padding: .45rem .7rem;
  color: var(--ink);
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
}
.field input, .field select { width: 100%; font-weight: 500; }
.field select {
  appearance: none;
  padding-right: 1.95rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right .95rem center, right .65rem center;
  background-size: .32rem .32rem;
  background-repeat: no-repeat;
  background-color: #f7faf8;
  text-overflow: ellipsis;
}
.location button { cursor: pointer; white-space: nowrap; font-weight: 650; }
.location button:hover { background-color: #e7f3ed; }
.location #address-submit { background: var(--brand); border-color: var(--brand); color: white; }
.location #address-submit:hover { background: var(--brand-dark); }
.location button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#location-status, #address-results { flex-basis: 100%; margin: 0; color: var(--muted); }
#location-status:empty { display: none; }
#address-results { padding: 0; list-style: none; }
#address-results li + li { margin-top: .25rem; }
#address-results button { max-width: 100%; text-align: left; white-space: normal; }
.filter-fields { display: grid; grid-template-columns: minmax(6rem, .65fr) minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: .7rem; }
.filter-toggles { display: flex; flex-wrap: wrap; gap: .45rem .7rem; margin-top: .75rem; }
.filter-toggles label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .65rem .22rem .45rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  font-size: .9rem;
  cursor: pointer;
}
.filter-toggles label:has(input:checked) { background: #e7f3ed; border-color: #b7d6c7; }
.filter-toggles input { margin: 0; width: 1rem; height: 1rem; accent-color: var(--brand); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: var(--surface); }
#map, aside { height: min(67vh, 55rem); min-height: 24rem; }
aside { overflow: auto; padding: 0 1rem 1rem; border-left: 1px solid var(--line); }
#status { margin: 0 -.95rem; padding: .8rem 1rem; background: #f5faf7; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 650; color: var(--muted); }
footer { padding: .8rem 0; color: var(--muted); font-size: .875rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin: 0; }
article { border-top: 1px solid var(--line); padding: .65rem 0; }
article p { margin: .25rem 0; }
a { color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: .3rem .85rem; }
.station {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--brand);
  color: white;
  font: 700 .83rem/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 5px #25463c88;
}
.station-bolt {
  width: 12px;
  height: 16px;
  background: #ffe487;
  clip-path: polygon(55% 0, 100% 0, 70% 40%, 100% 40%, 28% 100%, 44% 58%, 0 58%);
}
.station.empty { background: #526b66; }
@media (max-width: 720px) {
  .header-inner, main { width: min(100% - 1rem, 91rem); }
  .header-inner { padding: 1rem 0; }
  main { padding-top: .65rem; }
  .location, .controls { padding: .7rem; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .layout { grid-template-columns: 1fr; }
  #map { height: 53vh; min-height: 18rem; }
  aside { height: auto; min-height: 8rem; border-left: 0; border-top: 1px solid var(--line); }
}
