@import url("assets/geography/leaflet/leaflet.css") layer(geography);

.geo-workbench, .geo-workbench *, .geo-workbench *::before, .geo-workbench *::after, #map-close {
  font-family:var(--trip-font, system-ui, sans-serif);
  font-size:12pt;
}
.geo-workbench { min-width:0; color:var(--ink,#412c20); }
.geo-days { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:12px; }
.geo-days button, .geo-expand, .geo-day-detail, .geo-status button {
  color:#5c4731; min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border:1px solid transparent; border-radius:7px; padding:5px 9px; background:transparent;
  font-weight:560; line-height:1.25; cursor:pointer;
}
.geo-days button[aria-pressed="true"] { color:#fff9eb; border-color:#66644e; background:#60604b; }
.geo-days i,.geo-legend i { width:11px; height:3px; display:inline-block; border-radius:3px; background:var(--day-color); }
.geo-days button[aria-pressed="true"] i { box-shadow:0 0 0 1px #e9e2b8; }
.geo-frame { position:relative; isolation:isolate; overflow:hidden; border-radius:10px; border:1px solid #b8b49b; background:var(--surface); }
.geo-canvas { position:relative; width:100%; height:clamp(385px,34vw,495px); min-height:0; background:var(--surface);
  touch-action:pan-y; outline-offset:-3px; z-index:0; }
.geo-canvas.leaflet-touch-zoom.leaflet-touch-drag { touch-action:none; }
.geo-canvas a { color:var(--lake,#8c4a23); }
.geo-canvas .leaflet-image-layer, .geo-canvas .leaflet-tile { max-width:none; max-height:none; border:0; }
.geo-canvas .leaflet-image-layer {filter:saturate(.4) brightness(1.03);}
.geo-canvas .leaflet-marker-icon { max-width:none; margin:0; padding:0; border:0; }
.geo-controls {position:absolute;z-index:3;top:10px;left:10px;display:grid;overflow:hidden;border:1px solid #aa9272;
  background:var(--surface);border-radius:8px;box-shadow:0 1px 5px #59422b25;}
.geo-controls button {display:grid;place-items:center;width:34px;height:34px;border:0;background:transparent;color:#4f3928;padding:7px;cursor:pointer;}
.geo-controls button+button {border-top:1px solid #ceccba;}
.geo-controls button:focus-visible {outline-offset:-3px;}
.geo-workbench svg:not(.leaflet-zoom-animated) { display:block; }
.geo-controls svg,.geo-expand svg {width:19px;height:19px;}
.geo-label-layer {position:absolute;inset:0;z-index:410;overflow:hidden;pointer-events:none;}
.geo-label-layer span {position:absolute;display:block;white-space:nowrap;line-height:1.13;pointer-events:none;}
.geo-stop-name {font-weight:660;color:#352a20;text-shadow:-1px 0 #fff2d7,0 -1px #fff2d7,1px 0 #fff2d7,0 1px #fff2d7,0 0 3px #fff2d7;}
.geo-label-layer .clickable {cursor:pointer;pointer-events:auto;}
.geo-shield {padding:2px 5px 3px; font-weight:660; letter-spacing:-.035em; color:#fffbf0; background:#775a39;
  border:1px solid #f7e7c8; border-radius:4px; box-shadow:0 1px 2px #5b45284b; }
.geo-shield.interstate {background:#405976;border-top:3px solid #984f3d;padding-top:0;}
.geo-shield.us-route {color:#493e2c;background:#fffae9;border-color:#836d4e;}
.geo-region-name {letter-spacing:.12em;font-weight:630;color:#78695c;text-shadow:0 0 4px #f8e9cd;}
.geo-context-city {color:#695b4b;font-weight:450;text-shadow:0 1px 1px #f9eacc,1px 0 1px #f9eacc;}
.geo-dot-marker {display:grid;place-items:center;background:transparent;}
.geo-dot-marker span {width:10px;height:10px;display:block; margin:6px;border:2px solid #fff7de;border-radius:50%;
 background:var(--stop-color,#8d542f);box-shadow:0 0 0 1px #634932;}
.geo-dot-marker:focus-visible {border-radius:50%;outline:2px solid #322520;}
.geo-canvas .leaflet-control-scale { margin-left:10px; margin-bottom:6px; }
.geo-canvas .leaflet-control-scale-line {background:#fff5ded9;color:#554636;line-height:1.13;border-color:#685640;border-width:0 1px 2px;font-size:12pt;white-space:nowrap;overflow:visible;}
.geo-map-footer {display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:4px;}
.geo-legend {display:flex; flex-wrap:wrap; gap:10px; color:#6e5c49; flex:1 1 auto;}
.geo-legend span {display:inline-flex; align-items:center; gap:5px;}
.geo-legend i.drive-key {background:#875d41;width:17px;}
.geo-legend i.walk-key {background:none;width:17px;border-top:3px dotted #875d41;border-radius:0;}
.geo-expand,.geo-day-detail {min-height:36px;padding:3px 0 3px 4px;color:var(--lake,#8c4a23);font-weight:640;}
.geo-expand:hover,.geo-day-detail:hover,.geo-credits summary:hover {text-decoration:underline;}
.geo-credits {margin-top:3px; color:#6c5b49;}
.geo-credits summary {display:list-item;width:max-content;max-width:100%;cursor:pointer;line-height:1.45;}
.geo-credits p {margin:6px 0 2px;line-height:1.5;}
.geo-popup {display:grid;gap:6px;min-width:130px;}
.geo-popup strong {font-size:16pt;line-height:1.28;}
.geo-canvas .leaflet-popup-content-wrapper,.geo-canvas .leaflet-popup-tip {background:var(--surface);color:var(--ink,#412c20);}
.geo-canvas .leaflet-popup-content {margin:13px 26px 14px 16px;}
.geo-canvas a.leaflet-popup-close-button {font-family:var(--trip-font);font-size:16pt;color:#5c412d;}
#map-dialog {position:fixed;inset:0;max-width:1180px;width:95vw;height:fit-content;max-height:95dvh;margin:auto;padding:46px 14px 10px;
  border:1px solid #bfa784;border-radius:14px;background:var(--surface);overflow:auto;}
#map-dialog::backdrop {background:#322416ad;}
#map-close {position:absolute;top:5px;right:12px;min-height:36px;background:transparent;color:#61422a;}
#map-dialog-content {overflow:visible;}
#map-dialog .geo-expand {display:none;}
#map-dialog .geo-canvas {height:clamp(285px,65dvh,720px);}
#map-dialog .geo-days {margin-bottom:7px;}
@media(max-width:600px) {
  .geo-days {gap:3px;}
  .geo-days button {padding-inline:7px;}
  .geo-canvas {height:340px;}
  .geo-controls {top:6px;left:6px;}
  .geo-controls button {width:32px;height:32px;}
  .geo-map-footer {gap:3px 8px;}
  #map-dialog {width:98vw;padding-inline:6px;}
  #map-dialog .geo-canvas {height:clamp(280px,59dvh,600px);}
}
@media(prefers-reduced-motion:reduce) {
  .geo-workbench *, .geo-workbench *::after {transition:none!important;scroll-behavior:auto;}
}

.geo-road-choices {display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin:4px 0 9px;}
.geo-road-choices span {color:#695640;margin-right:3px;}
.geo-road-choices button {min-height:30px;padding:2px 7px;line-height:1.2;border:1px solid #cbc7b2;border-radius:5px;background:#eeecdd;color:#60472f;cursor:pointer;}
.geo-road-choices button:hover,.geo-road-choices button:focus-visible {border-color:#85603c;background:#e4e2cc;}

.geo-sources {margin-top:3px;color:#6c5b49;}
.geo-sources .geo-osm {float:right;margin-left:8px;color:#6c5b49;text-decoration:none;}
.geo-sources .geo-osm:hover {text-decoration:underline;}
.geo-credits p {clear:both;}
.geo-road-choices button[aria-pressed="true"] {background:#5f604d;border-color:#5f604d;color:#fffaeb;}
.geo-canvas .geo-road-callout {background:#69472d;border:1px solid #fff3dc;border-radius:5px;box-shadow:0 1px 4px #412a1840;padding:3px 8px;color:#fff9ed;font-weight:660;}
.geo-canvas .geo-road-callout.leaflet-tooltip-top::before {border-top-color:#69472d;}

.geo-local-street {color:#756654;font-weight:430;text-shadow:0 1px 2px #fff3d9;}

.geo-frame::after {content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;z-index:1;box-shadow:inset 0 0 0 1px #d7cd9d88,inset 0 0 19px #b3a46929;}
.geo-sources {display:flex;flex-wrap:wrap;gap:0 12px;align-items:baseline;}
.geo-sources .geo-osm {order:2;float:none;margin:0 0 0 auto;}
.geo-sources .geo-credits {order:1;min-width:0;}
.geo-sources .geo-credits[open] {flex-basis:100%;}
@media(max-width:420px){.geo-sources .geo-osm {margin-left:0;}}

.geo-name-stem {display:block;position:absolute;height:1px;transform-origin:left center;background:#836f58;pointer-events:none;}
