:root {
  color-scheme: light;
  --ink: #172b25;
  --muted: #586960;
  --line: #dbe2dc;
  --panel: #fcfdf9;
  --forest: #204939;
  --shadow: 0 4px 22px #101f242b, 0 1px 3px #101f241a;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  background: #9dac85;
  color: var(--ink);
  font:
    15px/1.4 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
summary,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: transparent;
}
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
#mini-surface:focus-visible {
  outline: 3px solid #cf9228;
  outline-offset: -3px;
}
button:hover,
summary:hover {
  background: #eaf0e9;
}
button:disabled {
  opacity: 0.55;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
#map {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
}
.openseadragon-canvas canvas {
  image-rendering: pixelated;
}
.edge-mist,
.airport-layer,
.focus-bands {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.edge-mist {
  z-index: 4;
  width: 100%;
  height: 100%;
}
.airport-layer {
  z-index: 2;
  overflow: hidden;
}
.airport-layer .apron,
.jet {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  image-rendering: pixelated;
}
.jet {
  width: 112px;
  height: 112px;
  background-image: url("airport/jets.webp");
  background-repeat: no-repeat;
}
.jet.shadow {
  filter: brightness(0.12);
}
.aircraft-off .jet {
  display: none;
}
.focus-bands {
  z-index: 3;
  display: none;
}
.tilt-focus .focus-bands {
  display: block;
}
.focus-bands::before,
.focus-bands::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: min(14%, 96px);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: linear-gradient(var(--fade), black, transparent);
}
.focus-bands::before {
  top: 0;
  --fade: to bottom;
}
.focus-bands::after {
  bottom: 0;
  --fade: to top;
}
header,
.explore,
#navigator,
.zoom-controls {
  position: fixed;
  z-index: 6;
  border: 1px solid #ffffffbc;
  background: var(--panel);
  box-shadow: var(--shadow);
}
header {
  z-index: 9;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 5px 6px 5px 5px;
  border-radius: 15px;
}
h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
  padding: 9px 14px;
  background: var(--forest);
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 720;
  letter-spacing: -0.06em;
}
h1 span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  color: #cddccf;
}
.search {
  position: relative;
  min-width: 0;
}
.search::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 12px;
  top: 12px;
  border: 1.7px solid #52645b;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}
.search::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 22px;
  top: 23px;
  background: #52645b;
  width: 6px;
  height: 1.7px;
  transform: rotate(45deg);
}
#q {
  border: 1px solid transparent;
  border-radius: 9px;
  background: #edf1ec;
  width: clamp(165px, 22vw, 300px);
  max-width: 100%;
  height: 38px;
  padding: 0 12px 0 35px;
  font-size: 14px;
}
#q:focus {
  background: #fff;
  border-color: #759385;
}
#results:not(:empty),
.menu {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 5px;
}
#results:not(:empty) {
  top: calc(100% + 10px);
  width: max-content;
  min-width: 100%;
  max-width: min(360px, 90vw);
  max-height: 42dvh;
  overflow: auto;
}
#results button,
.menu-actions button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 9px;
  border-radius: 7px;
  font-size: 14px;
}
.map-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding-left: 6px;
}
header button,
summary,
.mini-bar button,
.actions button,
.zoom-controls button {
  border-radius: 8px;
  font-weight: 600;
}
#language,
summary,
#share {
  padding: 8px 11px;
  min-height: 38px;
  white-space: nowrap;
  font-size: 14px;
}
#language {
  color: var(--forest);
}
#share {
  background: var(--forest);
  color: white;
}
#share:hover {
  background: #326449;
}
details {
  position: relative;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after,
#places::after {
  content: "";
  display: inline-block;
  vertical-align: 3px;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  margin-left: 8px;
}
details[open] summary::after,
#places[aria-expanded="true"]::after {
  transform: rotate(225deg);
  vertical-align: 0;
}
.menu {
  top: calc(100% + 10px);
  right: 0;
  width: 216px;
  max-height: calc(100dvh - 120px);
  overflow: auto;
}
.menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
}
.menu label:hover {
  background: #eef3ec;
}
.menu input {
  margin: 0;
  accent-color: var(--forest);
  width: 16px;
  height: 16px;
}
.rail-key {
  width: 14px;
  border-top: 2px dashed #8a295b;
}
.menu-actions {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.zoom-controls {
  right: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 12px;
  padding: 3px;
}
.zoom-controls button {
  width: 37px;
  height: 36px;
  font-size: 21px;
  line-height: 1;
}
.explore {
  bottom: 24px;
  left: 16px;
  width: min(700px, calc(100vw - 250px));
  border-radius: 14px;
  padding: 7px;
  overflow: hidden;
}
.explore:has(#cards[hidden]) {
  width: auto;
}
.actions,
.place-scroll,
.mini-bar {
  display: flex;
  align-items: center;
}
.actions,
.mini-bar {
  justify-content: space-between;
}
.actions button {
  padding: 4px 8px;
}
#places {
  font-size: 16px;
  letter-spacing: -0.025em;
}
.place-scroll button {
  width: 31px;
  height: 28px;
  line-height: 16px;
  font-size: 22px;
  color: var(--muted);
}
.explore:has(#cards[hidden]) .place-scroll {
  display: none;
}
#cards {
  display: flex;
  gap: 7px;
  overflow: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 6px 1px 2px;
}
#cards::-webkit-scrollbar { display:none; }
#cards button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #ffffff0e;
  font-size: 14px;
  scroll-snap-align: start;
}
#cards button:hover { background: #ffffff25; }
#navigator {
  bottom: 25px;
  right: 16px;
  width: clamp(150px, 17vw, 205px);
  border-radius: 13px;
  padding: 5px;
}
.mini-bar {
  padding: 0 3px 4px;
  gap: 3px;
}
.mini-bar strong,
.mini-bar button {
  font-size: 12px;
}
.mini-bar button {
  padding: 4px;
  color: var(--forest);
}
#mini-surface {
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  aspect-ratio: 55552/32512;
  background: #9dac85;
  border-radius: 8px;
}
#mini-image {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}
#mini-window {
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid #ffe4a4;
  box-shadow: 0 0 0 1px #30473d;
  pointer-events: none;
}
footer,
#status {
  position: fixed;
  z-index: 7;
  font-size: 12px;
}
footer {
  right: 8px;
  bottom: 2px;
  padding: 1px 6px;
  background: #f8fbf3eb;
  border-radius: 4px;
  color: #39493f;
}
#status {
  left: 50%;
  top: 77px;
  transform: translateX(-50%);
  margin: 0;
  pointer-events: none;
}
#status:not(:empty) {
  background: var(--forest);
  color: white;
  border-radius: 9px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  width: min(420px, 94vw);
  padding: 20px;
}
dialog::backdrop {
  background: #17282085;
}
dialog h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
textarea {
  display: block;
  width: 100%;
  margin: 9px 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
dialog .actions {
  justify-content: flex-end;
  gap: 6px;
}
#submit {
  background: var(--forest);
  color: white;
}
@media (max-width: 760px) {
  .zoom-controls button, .place-scroll button { min-width: 44px; min-height: 44px; }
  header {
    top: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: unset;
    gap: 4px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 18px;
    padding: 9px 10px;
  }
  h1 span {
    display: none;
  }
  .search {
    flex: 1;
  }
  .map-tools {
    padding-left: 3px;
    gap: 1px;
  }
  #q {
    width: 100%;
    min-width: 0;
  }
  #language,
  summary,
  #share {
    padding: 7px;
    font-size: 13px;
  }
  .zoom-controls {
    top: 70px;
    right: 8px;
  }
  .explore {
    left: 8px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    padding: 5px;
    border-radius: 12px;
  }
  #cards {
    gap: 5px;
    padding-top: 3px;
  }
  #cards button {
    min-height: 44px;
  }
  #navigator {
    right: 8px;
    bottom: calc(144px + env(safe-area-inset-bottom));
    width: 118px;
    border-radius: 10px;
  }
  .mini-bar {
    padding: 0 0 2px;
  }
  .mini-bar strong,
  .mini-bar button {
    font-size: 11px;
  }
  body:has(#cards[hidden]) #navigator {
    bottom: calc(59px + env(safe-area-inset-bottom));
  }
  footer {
    bottom: env(safe-area-inset-bottom);
  }
  .focus-bands::before,
  .focus-bands::after {
    height: min(9%, 54px);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}
@media (max-width: 540px) {
  header {
    display: grid;
    grid-template-columns: max-content minmax(70px, 1fr) auto;
    gap: 3px;
  }
  .map-tools {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    border: 1px solid #ffffffb3;
    background: var(--panel);
    border-radius: 11px;
    padding: 3px;
    box-shadow: var(--shadow);
  }
  .menu {
    left: 0;
    right: auto;
  }
  .zoom-controls {
    top: 66px;
  }
  .search #results:not(:empty) {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 58px;
    min-width: 0;
    max-width: none;
    width: auto;
    z-index: 2;
  }
  .search:focus-within {
    z-index: 3;
  }
  #status {
    top: 109px;
    width: max-content;
    max-width: 94vw;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .focus-bands {
    visibility: hidden;
  }
}
#conditions {padding:8px;font-size:13px;color:var(--muted)}
#rain-film {position:absolute;inset:0;overflow:hidden;z-index:4;pointer-events:none}
#rain-film::before {content:"";position:absolute;inset:-160px -40px;background-image:url("rain.gif");animation:rainfall .65s linear infinite}
@keyframes rainfall {from{transform:translateY(0)}to{transform:translateY(160px)}}
@media(prefers-reduced-motion:reduce){#rain-film::before{animation:none}}
#rain-film {opacity:.52}

/* Warm paper controls and engraved lettering echo the illustrated map. */
:root {
  --panel: #fffaf0;
  --ink: #24382f;
  --line: #d6cebb;
  --forest: #254d3e;
  --shadow: 0 5px 20px #17291f29, 0 1px 3px #17291f24;
}
header, .explore, .zoom-controls, #navigator {
  border: 1px solid #b9b09c;
  border-radius: 8px;
}
header { padding: 5px 7px; }
h1 {
  background: transparent;
  color: var(--ink);
  font: bold 24px/1.1 Georgia, serif;
  letter-spacing: -.035em;
  padding: 5px 10px 5px 4px;
  border-right: 1px solid var(--line);
  border-radius: 0;
}
h1 span { color: #746247; }
#q { background: #eee9dc; border-radius: 5px; }
#share { border-radius: 5px; }
#effects { border-top: 1px solid var(--line); margin-top: 4px; }
#effects summary { color: var(--forest); }
details:not([open]) > summary::after { transform: rotate(45deg); }
.map-tools #report { padding: 8px 10px; min-height: 38px; font-size: 14px; white-space: nowrap; }
#places { font: bold 17px Georgia, serif; }
#whole-city { border-bottom: 1px solid var(--line); border-radius: 0; }
@media (max-width: 540px) {
  h1 { font-size: 19px; padding: 4px; }
  .map-tools { background: var(--panel); border-color: #b9b09c; border-radius: 7px; }
  #sharing .menu { left: -64px; }
}
@media (max-width: 760px) {
  .map-tools > #sharing > #share,
  .map-tools > details > summary,
  .map-tools > #report {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 9px;
    font-size: 14px;
    line-height: 20px;
  }
}
header h1 { align-items: center; }
header h1 img { display: block; flex: none; }
@media (max-width: 760px) {
  header h1 { gap: 5px; }
  header h1 img { width: 24px; height: 24px; }
}

/* Frost the floating panels once; buttons and map labels use lightweight tints. */
:root {
  --ink: #152d29;
  --muted: #405753;
  --forest: #20554d;
  --line: #bacac5;
  --panel: #f1f6f4;
  --glass: linear-gradient(155deg, #ffffffed, #e3eeebd9);
  --frost: none;
  --shadow: inset 0 1px 0 #ffffffde, 0 3px 8px #142e271f, 0 10px 26px #142e271a;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass: linear-gradient(150deg, #ffffffd9, #e3eeebb5);
    --frost: blur(12px) saturate(1.15);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #f1f6f4; --frost: none; }
}
header, .explore, .zoom-controls, #navigator, .menu, #results:not(:empty), dialog {
  border: 1px solid #ffffffc9;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
header { background: transparent; }
header::before, .explore, .zoom-controls, #navigator, .menu, #results:not(:empty), dialog {
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
header::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
header h1, #places { font-family: system-ui,sans-serif; font-weight: 720; letter-spacing: -.045em; }
header h1 span { color: var(--muted); }
#q { background: #ffffff8c; border: 1px solid #596f662c; border-radius: 22px; }
#share, #submit { background: #20554d; color: white; border-radius: 24px; }
#share:hover, #submit:hover { background: #163f38; }
header button, summary, .actions button, .zoom-controls button { border-radius: 22px; }
#whole-city { border-radius: 14px 14px 6px 6px; }
@media (max-width: 540px) {
  .map-tools {
    background: var(--glass);
    -webkit-backdrop-filter: var(--frost);
    backdrop-filter: var(--frost);
    border-color: #ffffffcf;
    border-radius: 26px;
    box-shadow: var(--shadow);
  }
}

/* Two floating capsules leave the artwork visible between search and tools. */
:root {
  --panel:#31372e; --ink:#f7f7ef; --muted:#c3cabb; --line:#ffffff24;
  --forest:#e4edda; --glass:linear-gradient(148deg,#33392ef5,#36372bec 70%,#263f40ef);
  --shadow:inset 0 1px 0 #ffffff16,0 4px 18px #10171038;
}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
header {display:flex;align-items:center;flex-wrap:nowrap;gap:6px;padding:0;border:0;background:none;box-shadow:none;width:max-content;max-width:calc(100% - 82px)}
header::before {display:none}
header h1 {position:absolute;left:9px;z-index:1;padding:0;border:0;font-size:0;gap:0;pointer-events:none}
header h1 span {display:none}
header h1 img {width:25px;height:25px;border-radius:8px}
header .search {flex:1;min-width:0}
#q,.map-tools {border:1px solid var(--line);background:var(--glass);box-shadow:var(--shadow);border-radius:30px}
#q {color:var(--ink);width:clamp(190px,24vw,350px);height:48px;padding-left:42px}
#q:focus {background:#323b32;color:white}
#q::placeholder {color:#c2c8ba}
.search::before,.search::after {display:none}
header .map-tools {display:flex;position:static;gap:2px;padding:3px;backdrop-filter:none;-webkit-backdrop-filter:none}
.map-tools > details {position:static}
.map-tools > details > summary,.map-tools > #report {height:40px;min-height:40px;display:flex;align-items:center;justify-content:center}
#settings {width:42px;background:#ffffff0e;border-radius:50%}
#settings svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round}
#settings::after,#share::after {display:none}
#share,#report {background:transparent;color:var(--ink)}
#sharing {order:2;border-left:1px solid var(--line)}
#share::before {content:"";width:17px;height:17px;margin-right:6px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='5' cy='12' r='3'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8 11 7-5M8 13l7 5'/%3E%3C/svg%3E") center/contain}
.menu,#results:not(:empty),dialog,.explore,.zoom-controls,#navigator {border-color:var(--line);color:var(--ink)}
.map-tools .menu,#sharing .menu {left:auto;right:0;top:calc(100% + 7px)}
.settings-panel {width:min(344px,calc(100vw - 24px));padding:8px;max-height:calc(100dvh - 92px)}
.setting-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.setting-grid > label,.setting-grid > button,.language-row,#effects {background:#ffffff08;border:1px solid var(--line);border-radius:12px}
.setting-grid > label,.setting-grid > button {display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:8px 10px;font-size:13px;text-align:left;gap:4px}
.setting-grid .rail-key {display:none}
.setting-grid input,.setting-grid > button::after {appearance:none;order:2;flex:none;width:28px;height:17px;border:0;border-radius:12px;background:radial-gradient(circle at 8px 50%,#262825 0 5px,transparent 6px),#777a70}
.setting-grid > button::after {content:""}
.setting-grid input:checked,.setting-grid > button[aria-expanded=true]::after {background:radial-gradient(circle at 20px 50%,#222820 0 5px,transparent 6px),#edf1e5}
#effects {margin-top:8px;padding:2px 4px}
#effects summary,#whole-city,.place-scroll button {color:var(--ink)}
.language-row {display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:5px 8px;font-size:13px}
.language-row button {color:var(--muted);padding:6px 11px}
.language-row [aria-pressed=true] {background:#ffffff25;color:white}
button:hover,summary:hover,.menu label:hover,#share:hover {background:#ffffff1c}
dialog textarea {background:#212922;color:var(--ink)}
#status:not(:empty),#submit {background:#344a42;color:white}
@media(max-width:760px){
  header {width:calc(100% - 16px);max-width:none}
  #q {width:100%}
  .map-tools > #sharing > #share,.map-tools > details > summary,.map-tools > #report {height:44px;min-height:44px}
  .settings-panel {width:min(344px,calc(100vw - 16px))}
}
@media(prefers-reduced-transparency:reduce){:root {--glass:#33392f}}
header h1 {
  position:static;
  display:flex;
  flex:none;
  gap:6px;
  padding:0 6px;
  color:#fff;
  font-size:19px;
  text-shadow:0 1px 4px #16211c,0 0 6px #16211c;
}
#q {padding-left:34px}
.search::before,.search::after {display:block}
.search::before {top:17px;border-color:#c2c8ba}
.search::after {top:28px;background:#c2c8ba}
@media(max-width:600px) {
  header {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px}
  header h1 {background:var(--glass);border-radius:24px;padding:0 10px;height:44px;font-size:17px;text-shadow:none}
  header .map-tools {grid-column:1 / -1;justify-self:start}
  .zoom-controls {top:66px}
  #q {height:44px}
}
@media (max-width: 600px) {
  header { --bar-height: 44px; gap: 4px 0; }
  header::before {
    display: block; inset: 0 0 auto; height: var(--bar-height);
    border: 1px solid var(--line); box-sizing: border-box;
    border-radius: 24px; background: var(--glass); box-shadow: var(--shadow);
  }
  header h1 { height: var(--bar-height); background: none; padding: 0 12px; }
  header .search { border-left: 1px solid var(--line); }
  #q { height: var(--bar-height); background: transparent; border: 0; box-shadow: none; font-size: 16px; }
  header .map-tools {
    justify-self: stretch; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    height: var(--bar-height); gap: 0; padding: 0 3px; border-block: 0;
  }
  #settings, .map-tools > #report, #share { width: 100%; }
  #settings { border-radius: 24px; background: transparent; gap: 5px; }
  #settings-name { position: static; width: auto; height: auto; margin: 0; clip-path: none; }
  .map-tools > #report { border-left: 1px solid var(--line); border-radius: 0; }
  .zoom-controls, #status { top: 104px; }
  .settings-panel { max-height: calc(100dvh - 108px); }
}
#sharing .share-panel {width:min(360px,calc(100vw - 16px));padding:12px;max-height:calc(100dvh - 80px);overflow:auto}
#share-preview {display:block;width:auto;height:auto;max-width:100%;max-height:min(48dvh,420px);margin:auto;border-radius:13px;background:#202a23}
.share-formats {display:flex;width:fit-content;max-width:100%;margin:12px 0;background:#ffffff0e;border-radius:20px;padding:3px}
.share-formats button {padding:6px 10px;font-size:13px;border-radius:16px}
.share-formats [aria-pressed=true] {background:#ffffff28;color:white}
.share-actions {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
.share-actions button {min-width:0;padding:2px;font-size:12px;color:var(--ink)}
.share-actions button::before {display:grid;place-items:center;width:38px;height:38px;margin:0 auto 5px;border:1px solid #ffffff32;border-radius:50%;background:#ffffff0d;font:20px/1 system-ui}
#copy-link::before {content:"⧉";background:#eee;color:#202620}
#to-x::before {content:"𝕏"}
#to-wa::before {content:"☎"}
#postcard::before {content:"↓"}
#share-more::before {content:"•••";font-size:13px}
#clear-spot {margin-top:6px;font-size:12px;color:var(--muted)}
@media(max-width:600px){#sharing .share-panel {max-height:calc(100dvh - 108px)}}
#status:not(:empty) { z-index: 12; }
@media (max-width: 760px), (pointer: coarse) {
  .zoom-controls, #city-fit { display: none; }
}
@media (max-width: 760px), (pointer: coarse) {
  header .map-tools {
    display: flex;
    justify-self: end;
    flex: none;
    width: max-content;
    height: 44px;
    padding: 0 3px;
    gap: 0;
    border-block: 0;
  }
  .map-tools > #layers > #settings,
  .map-tools > #sharing > #share,
  .map-tools > #report {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }
  #settings #settings-name {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; overflow: hidden; clip-path: inset(50%);
  }
  #share::before { width: 20px; height: 20px; margin: 0; }
  #report::before {
    content: ""; width: 21px; height: 21px; background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4c5-4 9 4 15 0v10c-6 4-10-4-15 0'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}
@media (min-width: 500px) and (max-width: 600px) {
  header { grid-template-columns: max-content minmax(0,1fr) auto; }
  header::before { right: 145px; }
  header .map-tools { grid-column: 3; margin-left: 5px; }
}

/* On-map place index. Only the text column intercepts map gestures. */
.explore, .explore:has(#cards[hidden]) {
  left: 12px; bottom: calc(24px + env(safe-area-inset-bottom));
  width: max-content; max-width: min(310px, 62vw);
  border: 0; border-radius: 0; padding: 4px 8px;
  background: transparent; box-shadow: none; overflow: visible;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.explore::before {
  content: ""; position: absolute; inset: -12px -16px -8px -16px;
  z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,#102018b3 0%,#10201882 64%,transparent);
  mask-image: linear-gradient(transparent,#000 14px,#000 calc(100% - 9px),transparent);
}
#cards {
  display: flex; flex-direction: column; align-items: flex-start;
  max-height: min(65dvh,calc(100dvh - 175px)); overflow: auto;
  overscroll-behavior: contain; gap: 0; padding: 0; scroll-snap-type: none;
}
#cards button, #places {
  display: block; max-width: 100%; padding: 4px 2px;
  color: #fff; border: 0; border-radius: 0; background: transparent;
  font: 750 16px/1.32 system-ui,sans-serif;
  text-shadow: 0 2px 2px #142215, 0 0 5px #18251a;
  white-space: normal; text-align: left; min-height: 32px;
}
#places {font-size: 20px; margin-bottom: 3px}
#cards button:is(:hover,:focus-visible), #places:is(:hover,:focus-visible) {background: transparent; text-decoration: underline; text-underline-offset: 3px}
@media (max-width:600px) {
  .explore, .explore:has(#cards[hidden]) {left:6px}
  #cards {max-height:min(57dvh,calc(100dvh - 166px))}
}
.explore:has(#cards[hidden])::before { inset: 0 -12px 0 -12px; mask-image: linear-gradient(transparent,#000 5px,#000 calc(100% - 5px),transparent); }

/* live visitors badge (top right, under the zoom buttons) */
#live-now {
  position: fixed; z-index: 7; right: 16px; top: 148px; margin: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #f8fbf3eb; color: #263c37; box-shadow: 0 1px 4px #0002; pointer-events: none;
}
#live-now .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa65a; box-shadow: 0 0 0 0 #2fa65a88; animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 7px #2fa65a00; } 100% { box-shadow: 0 0 0 0 #2fa65a00; } }
@media (prefers-reduced-motion: reduce) { #live-now .dot { animation: none; } }
/* phones: left side of the second header row (the tool buttons sit on the right) */
@media (max-width: 760px) { #live-now { right: auto; left: 8px; top: 72px; font-size: 11px; padding: 3px 8px; } }
#map.moving canvas.edge-mist { visibility: hidden; }
