:root {
  --ink:#18363d;
  --muted:#6c797c;
  --teal:#147965;
  --line:#e3e8e6;
  --paper:#f7f9f7;
  --navy:#132e35;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
button,input {
  font:inherit;
}
button,a,input {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #d09b37;
  outline-offset:3px;
}
button {
  transition:background .16s,box-shadow .16s;
}
.header {
  height:91px;
  background:white;
  border-bottom:1px solid var(--line);
  padding:0 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:var(--ink);
  font-size:26px;
  font-weight:750;
  letter-spacing:-1px;
}
.brand small {
  display:block;
  font-size:8px;
  letter-spacing:1.7px;
  font-weight:650;
  margin-top:0;
}
.brand-mark {
  width:41px;
  height:45px;
  border-radius:12px 12px 12px 3px;
  background:var(--teal);
  color:white;
  font-size:31px;
  text-align:center;
  line-height:43px;
  letter-spacing:-4px;
  padding-right:5px;
}
.brand-mark span {
  color:#b7e0b8;
}
.header-right {
  display:flex;
  gap:28px;
  align-items:center;
}
.division {
  font-size:9px;
  letter-spacing:1.7px;
  color:var(--muted);
}
.prototype-label {
  font-size:11px;
  background:#f0f5f2;
  border:1px solid var(--line);
  padding:7px 11px;
  border-radius:5px;
  display:flex;
  align-items:center;
  gap:7px;
}
.dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--teal);
}
main {
  max-width:1536px;
  margin:auto;
  padding:0 5%;
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:43px 0 35px;
  gap:25px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--teal);
  margin:0 0 9px;
}
h1 {
  font-size:clamp(36px,4vw,51px);
  line-height:1.12;
  letter-spacing:-2px;
  margin:0 0 14px;
  font-weight:650;
}
.intro-copy {
  color:var(--muted);
  margin:0;
  font-size:14px;
}
.mobile-break {
  display:none;
}
.find-action {
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}
.primary {
  background:var(--teal);
  color:#fff;
  border:0;
  border-radius:7px;
  padding:16px 22px;
  display:flex;
  align-items:center;
  gap:15px;
  font-weight:650;
  box-shadow:0 4px 8px #14796518;
}
.primary:hover {
  background:#0c6150;
}
.primary:disabled {
  opacity:.65;
  cursor:wait;
}
.primary span:first-child {
  font-size:25px;
  line-height:1;
}
.find-action>span {
  font-size:11px;
  color:var(--muted);
}
.discovery {
  background:white;
  border:1px solid #dce3df;
  border-radius:11px;
  overflow:hidden;
  box-shadow:0 8px 30px #18363d05;
}
.toolbar {
  padding:16px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
}
.location {
  display:flex;
  gap:12px;
  align-items:center;
}
.location-icon {
  font-size:25px;
  color:var(--teal);
  background:#eef5f1;
  border-radius:7px;
  width:36px;
  text-align:center;
}
.small-label {
  display:block;
  font-size:8px;
  letter-spacing:1.5px;
  color:var(--muted);
}
.location strong {
  font-size:12px;
  font-weight:600;
}
.text-button {
  background:none;
  border:0;
  color:var(--muted);
  font-size:11px;
  padding:9px;
}
.text-button:hover {
  color:var(--teal);
  background:#f1f6f3;
  border-radius:4px;
}
.workspace {
  display:grid;
  grid-template-columns:365px minmax(0,1fr);
  height:530px;
}
.results {
  display:flex;
  flex-direction:column;
  min-height:0;
  border-right:1px solid var(--line);
}
.results-head {
  padding:21px 20px 16px;
}
h2 {
  font-size:16px;
  letter-spacing:-.3px;
  margin:0;
}
h2 span {
  display:inline-block;
  font-size:10px;
  vertical-align:middle;
  margin-left:5px;
  background:#edf3ef;
  border-radius:4px;
  padding:2px 6px;
  color:var(--teal);
}
.results-head p {
  font-size:10px;
  color:var(--muted);
  margin:4px 0 16px;
}
.search-box {
  height:37px;
  border:1px solid var(--line);
  border-radius:5px;
  display:flex;
  gap:9px;
  align-items:center;
  padding:0 11px;
}
.search-box span {
  font-size:23px;
  color:#7b8786;
}
.search-box input {
  width:100%;
  min-width:0;
  border:0;
  outline-offset:5px;
  font-size:11px;
  background:transparent;
  color:var(--ink);
}
.filters {
  display:flex;
  gap:6px;
  margin-top:12px;
  flex-wrap:wrap;
}
.filters button {
  border:1px solid var(--line);
  border-radius:5px;
  background:#fff;
  padding:5px 8px;
  font-size:10px;
  color:#56696b;
}
.filters button[aria-pressed=true] {
  background:#e7f4ed;
  border-color:#67a28f;
  color:#10654f;
}
.restroom-list {
  overflow-y:auto;
  flex:1;
  scrollbar-width:thin;
}
.restroom-card {
  display:block;
  width:100%;
  text-align:left;
  border:0;
  border-top:1px solid var(--line);
  border-left:3px solid transparent;
  background:white;
  padding:17px 18px;
  color:var(--ink);
}
.restroom-card:hover {
  background:#f5f9f6;
}
.restroom-card.selected {
  background:#f0f7f3;
  border-left-color:var(--teal);
}
.card-top {
  display:flex;
  gap:10px;
  align-items:start;
}
.card-number {
  border:1px solid #d6e2dc;
  border-radius:7px;
  width:29px;
  height:31px;
  display:grid;
  place-items:center;
  color:var(--teal);
  background:white;
  font-size:12px;
  flex-shrink:0;
}
.card-content {
  flex:1;
  min-width:0;
}
.card-title {
  font-weight:650;
  display:block;
  font-size:12px;
}
.card-category {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:2px;
}
.distance {
  text-align:right;
  white-space:nowrap;
  font-weight:650;
  font-size:11px;
}
.distance small {
  font-weight:400;
  color:var(--muted);
  display:block;
  font-size:9px;
}
.card-tags {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:11px 0 0 39px;
}
.tag {
  font-size:9px;
  border-radius:3px;
  background:#f2f5f3;
  color:#586e65;
  padding:2px 5px;
}
.selected .tag {
  background:white;
}
.results-foot {
  font-size:9px;
  color:var(--muted);
  padding:10px 16px;
  border-top:1px solid var(--line);
  background:#fcfdfb;
}
.results-foot span {
  margin-right:5px;
}
.map-panel {
  position:relative;
  isolation:isolate;
  background:#e7ede5;
  min-width:0;
}
#map {
  height:100%;
  width:100%;
}
.map-caption,.map-fit,.map-legend {
  position:absolute;
  z-index:500;
  background:#fff;
  box-shadow:0 2px 10px #18363d13;
  border:1px solid #dce4df;
  border-radius:5px;
}
.map-caption {
  left:16px;
  top:16px;
  padding:8px 11px;
  font-size:8px;
  letter-spacing:1px;
  display:flex;
  align-items:center;
  gap:7px;
}
.map-fit {
  right:12px;
  bottom:52px;
  padding:8px 10px;
  color:var(--ink);
  font-size:16px;
}
.map-fit span {
  font-size:10px;
  vertical-align:middle;
}
.map-legend {
  left:16px;
  bottom:26px;
  display:flex;
  gap:15px;
  font-size:9px;
  padding:9px 11px;
}
.map-legend span {
  display:flex;
  align-items:center;
  gap:6px;
}
.legend-pin,.legend-origin {
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block;
  background:var(--teal);
}
.legend-origin {
  background:#477dbb;
  border:2px solid #bcd1ee;
}
.toilet-marker {
  background:var(--teal);
  color:#fff;
  border:3px solid white;
  box-shadow:0 2px 7px #12392f45;
  border-radius:50% 50% 50% 5px;
  transform:rotate(-45deg);
  display:grid;
  place-items:center;
}
.toilet-marker span {
  transform:rotate(45deg);
  font-weight:700;
  font-size:12px;
}
.origin-marker {
  border:3px solid white;
  border-radius:50%;
  background:#477dbb;
  box-shadow:0 0 0 7px #477dbb25;
}
.leaflet-popup-content-wrapper {
  border-radius:9px;
  color:var(--ink);
}
.leaflet-popup-content {
  font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  width:235px!important;
  margin:18px;
}
.popup-kicker {
  font-size:8px;
  letter-spacing:1.5px;
  color:var(--teal);
  margin-bottom:5px;
}
.popup-title {
  font-size:16px;
  margin:0 0 3px;
  line-height:1.3;
}
.popup-address {
  color:var(--muted);
  font-size:11px;
}
.popup-description {
  margin:12px 0!important;
}
.popup-meta {
  border-top:1px solid var(--line);
  padding-top:9px;
  color:var(--muted);
  font-size:10px;
}
.popup-demo {
  font-size:9px;
  color:#806b40;
  margin-top:9px;
}
.status {
  padding:11px 20px;
  font-size:10px;
  color:#64776e;
  background:#fafcf9;
  border-top:1px solid var(--line);
}
.assurance {
  display:flex;
  align-items:center;
  gap:13px;
  padding:27px 0;
}
.assurance-symbol {
  font-size:34px;
  color:#8caa99;
}
.assurance strong {
  font-size:12px;
  font-weight:600;
}
.assurance p {
  font-size:11px;
  color:var(--muted);
  margin:3px 0 0;
}
.assurance-note {
  margin-left:auto;
  font-size:8px;
  letter-spacing:1.5px;
  color:#8b9792;
}
footer {
  display:flex;
  gap:25px;
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding:18px 5%;
  font-size:9px;
  color:#7c8984;
}
.footer-note {
  color:#536b60;
}
.skip-link {
  position:absolute;
  top:-100px;
  z-index:2000;
  background:white;
  padding:12px;
}
.skip-link:focus {
  top:10px;
}
.empty {
  padding:30px 20px;
  font-size:12px;
  color:var(--muted);
}
.noscript {
  padding:20px;
  color:#9b3c2d;
}
.leaflet-control-zoom {
  border:1px solid #dce4df!important;
  box-shadow:0 2px 10px #18363d13!important;
}
.leaflet-top.leaflet-right {
  top:6px;
  right:3px;
}
@media(min-width:1550px) {
  .workspace {
    height:610px;
  }
}
@media(max-width:1000px) {
  .division {
    display:none;
  }
  .workspace {
    grid-template-columns:320px minmax(0,1fr);
  }
  main {
    padding:0 3%;
  }
  .header {
    padding:0 3%;
  }
  .assurance-note {
    display:none;
  }
}
@media(max-width:700px) {
  .header {
    height:77px;
    padding:0 5%;
  }
  .brand {
    font-size:23px;
  }
  .brand small {
    font-size:7px;
  }
  .brand-mark {
    width:35px;
    height:39px;
    font-size:27px;
    line-height:37px;
  }
  .prototype-label {
    font-size:9px;
    padding:5px 7px;
  }
  .intro {
    display:block;
    padding:29px 2% 25px;
  }
  .intro-copy {
    font-size:12px;
  }
  .mobile-break {
    display:block;
  }
  .find-action {
    margin-top:23px;
    align-items:stretch;
  }
  .primary {
    justify-content:center;
    padding:14px;
  }
  .find-action>span {
    text-align:center;
    font-size:10px;
  }
  .workspace {
    display:flex;
    flex-direction:column;
    height:auto;
  }
  .map-panel {
    height:350px;
    order:-1;
  }
  .results {
    border-right:0;
  }
  .results-head {
    padding:18px;
  }
  .restroom-list {
    max-height:385px;
  }
  .toolbar {
    padding:12px;
  }
  .text-button {
    font-size:10px;
  }
  .location strong {
    font-size:11px;
  }
  .map-caption {
    font-size:7px;
    left:10px;
    top:10px;
  }
  .map-legend {
    left:10px;
  }
  .assurance {
    padding:22px 6px;
  }
  .assurance p {
    font-size:10px;
    max-width:260px;
  }
  .status {
    padding:12px;
    font-size:10px;
  }
  footer {
    flex-wrap:wrap;
    gap:7px 15px;
    padding:17px 5%;
  }
  footer span:nth-child(2) {
    display:none;
  }
  .footer-note {
    margin-left:auto;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
/* Map-first application shell. Existing palette and component styles retained. */
html,body {
  height:100%;
  overflow:hidden;
}
body {
  height:100dvh;
}
main {
  max-width:none;
  padding:0;
  height:100%;
}
.header {
  position:fixed;
  z-index:900;
  top:16px;
  left:16px;
  height:62px;
  padding:10px 15px;
  gap:13px;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 3px 16px #18363d18;
}
.brand {
  font-size:20px;
  gap:9px;
}
.brand small {
  font-size:7px;
  letter-spacing:1px;
}
.brand-mark {
  height:32px;
  width:30px;
  font-size:24px;
  line-height:30px;
  border-radius:8px 8px 8px 2px;
}
.icon-button {
  background:white;
  border:0;
  color:var(--ink);
  font-size:24px;
  width:35px;
  height:40px;
  border-radius:5px;
}
.icon-button:hover {
  background:#eef5f1;
}
#navigation {
  position:absolute;
  top:70px;
  left:0;
  background:white;
  box-shadow:0 8px 25px #18363d25;
  border:1px solid var(--line);
  border-radius:8px;
  width:245px;
  padding:7px;
}
#navigation button {
  display:block;
  width:100%;
  text-align:left;
  padding:12px;
  border:0;
  background:white;
  color:var(--ink);
  border-radius:4px;
}
#navigation button:hover {
  background:#eef5f1;
}
[hidden] {
  display:none!important;
}
.discovery {
  border:0;
  border-radius:0;
  height:100%;
  position:relative;
  overflow:hidden;
}
.workspace {
  display:block;
  height:100%;
}
.map-panel {
  position:absolute;
  inset:0;
  height:100%;
}
#map {
  height:100%;
}
.toolbar {
  position:absolute;
  z-index:600;
  top:16px;
  left:300px;
  right:65px;
  width:max-content;
  max-width:calc(100% - 375px);
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 3px 16px #18363d18;
  padding:8px;
  gap:14px;
  flex-wrap:wrap;
}
.toolbar .primary {
  padding:10px 14px;
  font-size:12px;
  white-space:nowrap;
}
.location-icon {
  display:none;
}
.toolbar .location {
  padding-right:4px;
}
.toolbar .text-button {
  font-size:10px;
}
.results {
  position:absolute;
  z-index:650;
  top:94px;
  left:16px;
  width:350px;
  max-height:calc(100% - 180px);
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 5px 24px #18363d20;
  overflow:hidden;
}
.panel-toggle {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  width:100%;
  padding:13px 16px;
  background:var(--navy);
  color:white;
  border:0;
  font-size:12px;
  font-weight:600;
  flex-shrink:0;
}
#panel-toggle-label {
  font-size:10px;
  font-weight:400;
}
.panel-content {
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
}
.selected-details {
  padding:16px;
  background:#eef6f1;
  border-bottom:1px solid #d1e2d7;
}
.selected-details .popup-description {
  font-size:11px;
}
.selected-details .popup-title {
  font-size:17px;
}
.selected-details .popup-meta {
  font-size:10px;
}
.rating {
  font-weight:650;
  color:#155f4e;
  font-size:12px;
  margin:9px 0 5px;
}
.availability {
  font-size:11px;
  color:#665329;
  margin:6px 0;
}
.results-head {
  padding:14px 16px;
}
.results-head p {
  margin-bottom:10px;
}
.restroom-list {
  overflow:visible;
  flex:none;
}
.restroom-card {
  padding:13px 14px;
  position:relative;
}
.restroom-card.selected .card-title:before {
  content:'✓ Selected · ';
  color:#13664f;
  font-size:10px;
}
.results-foot {
  font-size:10px;
  flex-shrink:0;
}
.status {
  position:absolute;
  z-index:600;
  bottom:26px;
  left:16px;
  max-width:min(650px,calc(100% - 32px));
  border:1px solid var(--line);
  border-radius:6px;
  box-shadow:0 2px 10px #18363d13;
  background:white;
  font-size:11px;
  padding:9px 12px;
  max-height:65px;
  overflow:auto;
}
.map-caption {
  top:94px;
  left:auto;
  right:65px;
}
.map-fit {
  right:12px;
  bottom:auto;
  top:155px;
}
.map-legend {
  left:auto;
  right:12px;
  bottom:105px;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:10px;
  padding:10px;
}
.band-key,.selected-key {
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  font-style:normal;
  font-size:10px;
  color:white;
  background:var(--teal);
  border-radius:50%;
}
.band-key.mid {
  background:#f4c542;
  color:var(--ink);
  border-radius:3px;
}
.band-key.far {
  background:#b93832;
  border-radius:0;
}
.selected-key {
  background:white;
  color:var(--ink);
  outline:2px solid var(--navy);
}
.toilet-marker {
  transform:none;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--teal);
  color:white;
}
.toilet-marker span {
  transform:none;
  font-size:10px;
}
.toilet-marker.band-mid {
  border-radius:6px;
  background:#f4c542;
  color:var(--ink);
}
.toilet-marker.band-far {
  border-radius:0;
  background:#b93832;
}
/* Selection adds an outline without changing band color, label, or shape. */
.toilet-marker.active {
  outline:3px solid var(--navy);
  box-shadow:0 0 0 6px white;
}
.leaflet-top.leaflet-right {
  top:10px;
  right:3px;
}
.leaflet-control-attribution {
  font-size:9px!important;
}
dialog {
  max-width:min(440px,calc(100vw - 32px));
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  color:var(--ink);
  box-shadow:0 20px 80px #102d3540;
}
dialog::backdrop {
  background:#132e3570;
}
dialog p {
  color:#52696b;
  font-size:14px;
  line-height:1.7;
}
#close-dialog {
  float:right;
  margin:-12px -12px 10px 12px;
}
.noscript {
  position:fixed;
  z-index:1000;
  top:100px;
  left:20px;
  background:white;
}
.empty {
  color:#526566;
}
@media(max-width:900px) {
  .toolbar .location,.toolbar .text-button {
    display:none;
  }
  .toolbar {
    left:auto;
    right:65px;
    max-width:none;
  }
  .results {
    width:320px;
  }
}
@media(max-width:700px) {
  .header {
    top:10px;
    left:10px;
    height:54px;
    padding:7px 10px;
    gap:5px;
  }
  .brand {
    font-size:17px;
  }
  .brand-mark {
    display:none;
  }
  .brand small {
    font-size:6px;
  }
  .toolbar {
    top:74px;
    left:10px;
    right:auto;
    padding:5px;
  }
  .toolbar .primary {
    font-size:12px;
    padding:9px 12px;
  }
  .toolbar .text-button {
    display:block;
  }
  .map-caption {
    display:none;
  }
  .results {
    top:auto;
    bottom:0;
    left:0;
    width:100%;
    max-height:55dvh;
    border-radius:14px 14px 0 0;
    padding-bottom:env(safe-area-inset-bottom);
    border-bottom:0;
  }
  .panel-toggle {
    padding:13px 17px;
    min-height:46px;
  }
  .panel-content {
    max-height:calc(55dvh - 46px - env(safe-area-inset-bottom));
  }
  .status {
    top:124px;
    left:10px;
    bottom:auto;
    max-width:calc(100% - 75px);
    max-height:54px;
    font-size:10px;
    padding:7px 9px;
  }
  .map-legend {
    top:186px;
    bottom:auto;
    right:10px;
    font-size:9px;
    padding:6px;
    gap:3px;
  }
  .map-legend .band-key,.map-legend .selected-key {
    width:14px;
    height:14px;
    font-size:8px;
  }
  .map-fit {
    top:125px;
    right:10px;
  }
  .map-fit span {
    display:none;
  }
  .leaflet-control-attribution {
    max-width:100%;
    font-size:8px!important;
  }
  .selected-details {
    padding:12px 16px;
  }
  .selected-details .popup-description {
    margin:7px 0!important;
  }
  .map-panel {
    height:100%;
  }
  .location strong {
    font-size:11px;
  }
}
@media(max-height:550px) and (min-width:701px) {
  .results {
    max-height:calc(100% - 110px);
  }
  .status {
    bottom:15px;
    left:380px;
    max-width:calc(100% - 510px);
  }
}
@media (max-width: 700px) and (max-height: 550px) {
  .results {
    max-height: 45dvh;
  }
  .panel-content {
    max-height: calc(45dvh - 46px - env(safe-area-inset-bottom));
  }
  .map-legend {
    top: 74px;
    right: 10px;
  }
  .map-fit {
    top: 10px;
    right: 55px;
  }
  .toolbar {
    top: 68px;
  }
  .status {
    top: 115px;
    max-width: calc(100% - 135px);
  }
}
@media (max-width: 700px) {
  /* Keep mandatory map attribution visible above the bottom sheet. */
  .leaflet-bottom.leaflet-right {
    bottom: var(--panel-height, 55dvh);
  }
}
.results-head > .text-button {
  margin-top: 8px;
  padding: 5px 0;
  font-size: 10px;
}
@media (max-width: 700px) {
  .map-legend {
    top: 74px;
    font-size: 10px;
    gap: 4px;
  }
  .map-legend .band-key,
  .map-legend .selected-key {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .map-fit {
    top: 10px;
    right: 55px;
    min-width: 40px;
    min-height: 40px;
  }
  .status {
    max-width: calc(100% - 135px);
  }
  .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    line-height: 38px;
  }
}

.map-legend-title {
  max-width: 110px;
  font-size: 10px;
  line-height: 1.3;
  margin-bottom: 3px;
}
.card-rating {
  display: block;
  margin-top: 5px;
  color: #155f4e;
  font-size: 10px;
  font-weight: 600;
}
