@font-face {
  font-family: Garden;
  src: local('Arial');
  font-display: swap;
}
:root {
  --ink: #213f31;
  --forest: #194c3a;
  --muted: #5f6f5e;
  --cream: #fbfaf5;
  --line: #e4e8dc;
  --gold: #dfb363;
  --rust: #b96843;
  --panel: 382px;
  font-family: Garden, Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  overscroll-behavior-y: none;
}
body {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  margin: 0;
  background: #edf0e5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #c17f38;
  outline-offset: 3px;
}
button {
  border: 0;
}
a {
  color: var(--forest);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  top: -100px;
  right: 20px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.app {
  height: 100dvh;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel);
  direction: ltr;
  overflow: hidden;
}
.sidebar {
  grid-column: 2;
  grid-row: 1;
  direction: rtl;
  background: var(--cream);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid #d7ddcd;
  box-shadow: -6px 0 26px #334a3110;
  padding-right: env(safe-area-inset-right, 0px);
}
.brandbar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 25px 25px 17px;
}
.brandmark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.wordmark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.brandbar small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
  letter-spacing: 0.1px;
}
.about-button {
  margin-inline-start: auto;
  background: transparent;
  border: 1px solid #dce2d3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font: italic 17px Georgia;
}
.sidebar-intro {
  padding: 5px 25px 19px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #738365;
  text-transform: uppercase;
}
.sidebar-intro h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin: 10px 0 9px;
  font-weight: 800;
}
.sidebar-intro p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.search-wrap {
  margin: 0 22px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d9dfd1;
  border-radius: 13px;
  background: white;
  padding: 0 13px;
  height: 48px;
  box-shadow: 0 3px 8px #304b3210;
}
.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: 0;
  font-size: 14px;
  color: var(--ink);
}
.search-wrap:focus-within {
  border-color: #718c58;
  box-shadow: 0 0 0 3px #79956816;
}
.search-wrap input::placeholder {
  color: #899281;
}
/* The app draws its own clear button; the native search cancel glyph would double it. */
#search::-webkit-search-cancel-button,
#search::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-clear {
  background: none;
  font-size: 22px;
  width: 25px;
}
.tabs {
  display: flex;
  margin: 0 22px;
  border-bottom: 1px solid var(--line);
  gap: 21px;
}
.tab {
  background: transparent;
  padding: 9px 0 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  color: var(--muted);
}
.tab.active {
  color: var(--forest);
}
.tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--forest);
}
.count {
  font-size: 10px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: #e7edde;
}
.panel-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 18px 22px 14px;
  scrollbar-width: thin;
  scrollbar-color: #ccd4c2 transparent;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}
.filter {
  background: #eef1e6;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12px;
  color: #54694c;
}
.filter.active {
  background: var(--forest);
  color: white;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 11px;
  gap: 10px;
}
.section-heading h2 {
  font-size: 15px;
  margin: 0;
}
.section-heading span,
.origin-caption {
  font-size: 11px;
  color: var(--muted);
}
.origin-caption {
  line-height: 1.55;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.origin-caption button {
  font-size: 11px;
  background: none;
  text-decoration: underline;
  color: var(--forest);
  padding: 0;
}
.destination {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 11px 10px;
  margin-bottom: 8px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.destination:hover {
  border-color: #afbf9c;
  transform: translateY(-1px);
}
.destination-main {
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  gap: 11px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-align: right;
}
.animal-icon {
  background: #f0f2e5;
  border-radius: 11px;
  width: 43px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 25px;
  flex: none;
}
.destination-copy {
  flex: 1;
  min-width: 0;
}
.destination-copy b {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.destination-copy small {
  display: block;
  font-size: 10px;
  color: #829074;
  margin-top: 4px;
}
.destination-copy .walk {
  color: #536d4d;
  font-size: 11px;
}
.favorite-button {
  background: none;
  color: #7d8069;
  font-size: 24px;
  line-height: 1;
  width: 34px;
  height: 40px;
  flex: none;
}
.detail-heading-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.share-button {
  background: none;
  color: #4b6348;
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.share-button:hover {
  background: #e8efdf;
}
.filter-count {
  font-size: 10px;
  opacity: 0.75;
  margin-inline-start: 2px;
}
/* Nearest destinations strip: phones only, and only while the sheet is collapsed. */
.peek-row {
  display: none;
}
.favorite-button[aria-pressed='true'] {
  color: #b78632;
}
.empty {
  padding: 25px 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin: 8px;
}
.empty .large {
  font-size: 34px;
}
.secondary,
.primary {
  min-height: 44px;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.primary {
  background: var(--forest);
  color: #fff;
}
.secondary {
  background: #e9eddf;
  color: var(--forest);
}
.secondary.light {
  background: white;
  border: 1px solid var(--line);
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 8px;
}
.actions > * {
  flex: 1;
}
.muted {
  color: var(--muted);
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 12px 22px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  font-size: 10px;
  color: #7e8974;
}
.sidebar-footer a {
  text-decoration: none;
  color: #667859;
}
.footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #90a878;
  display: inline-block;
  margin-left: 4px;
}
.map-area {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  direction: rtl;
  overflow: hidden;
}
.map-stage {
  position: absolute;
  inset: 0;
  touch-action: none;
  overflow: hidden;
}
.map-stage > canvas {
  display: block;
  outline: none;
}
.map-stage.picking {
  cursor: crosshair;
}
.map-stage.picking .map-labels {
  pointer-events: none;
}
.map-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  direction: rtl;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 5px 5px;
  background: #fffffff0;
  box-shadow: 0 2px 7px #3550301a;
  border: 1px solid #d1d7c3;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: auto;
  font-size: 10px;
  font-weight: 700;
  max-width: 180px;
  min-height: 29px;
}
.pin-symbol {
  font-size: 15px;
  line-height: 1;
}
.pin-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-pin.compact {
  width: 18px;
  height: 18px;
  min-height: 18px;
  border-radius: 50%;
  padding: 0;
  background: #6c8658;
  border: 2px solid #fafaf3;
  box-shadow: 0 1px 5px #233d1b22;
}
.map-pin.compact .pin-text,
.map-pin.compact .pin-symbol {
  display: none;
}
.map-pin:hover,
.map-pin:focus-visible {
  background: #fff8da;
  border-color: #9eab85;
  z-index: 10 !important;
}
.map-pin.selected {
  background: #194c3a;
  border-color: #194c3a;
  color: #fff;
  padding: 8px 11px;
  font-size: 12px;
  box-shadow: 0 3px 12px #194c3a33;
}
.map-pin.favorite {
  border-color: #c9a34f;
}
.entrance-pin {
  background: #194c3a;
  color: white;
  border-color: #194c3a;
}
.entrance-pin .pin-symbol {
  font-size: 17px;
}
.map-top {
  position: absolute;
  top: 25px;
  left: calc(26px + env(safe-area-inset-left, 0px));
  right: 26px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  pointer-events: none;
  z-index: 8;
  gap: 12px;
}
.map-top > * {
  pointer-events: auto;
}
.map-title {
  padding: 10px 14px;
  background: #f9faf2db;
  backdrop-filter: blur(12px);
  border: 1px solid #dde2d1;
  border-radius: 12px;
  box-shadow: 0 2px 8px #3d553010;
}
.map-title b {
  display: block;
  font-size: 13px;
}
.map-title span {
  font-size: 10px;
  color: #738364;
  display: block;
  margin-top: 4px;
}
.view-toggle {
  display: flex;
  gap: 3px;
  background: #fbfcf7;
  border: 1px solid #dce2d0;
  border-radius: 11px;
  padding: 4px;
  box-shadow: 0 3px 14px #243e2910;
}
.view-toggle button {
  background: none;
  border-radius: 7px;
  min-width: 45px;
  height: 32px;
  font-size: 12px;
  font-weight: 700;
}
.view-toggle button[aria-pressed='true'] {
  background: var(--forest);
  color: white;
}
.map-tools {
  position: absolute;
  bottom: 74px;
  left: calc(25px + env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 8;
}
.tool-group {
  padding: 4px;
  background: #fffffff2;
  border: 1px solid #d9e0cc;
  border-radius: 12px;
  box-shadow: 0 3px 12px #32462f10;
  display: flex;
  flex-direction: column;
}
.map-tool {
  width: 39px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  font-size: 23px;
  border-radius: 8px;
}
.map-tool:hover {
  background: #eff3e8;
}
.tool-divider {
  height: 1px;
  background: #e7ebdf;
  margin: 1px 5px;
}
.north {
  align-self: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
  margin-bottom: 4px;
}
.north svg {
  width: 21px;
  height: 26px;
}
.map-legend {
  position: absolute;
  bottom: 23px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 8;
  background: #fbfcf5e8;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 10px;
  color: #617457;
  border: 1px solid #e0e6d5;
  pointer-events: none;
}
.legend-key {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legend-path {
  width: 18px;
  height: 5px;
  border: 1px solid #cabd9d;
  background: #fff9e4;
  border-radius: 4px;
}
.legend-water {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #70b9ba;
}
.legend-zone {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #bacb9e;
}
.map-note {
  position: absolute;
  bottom: 25px;
  left: calc(27px + env(safe-area-inset-left, 0px));
  color: #829073;
  font-size: 9px;
  z-index: 7;
  pointer-events: none;
}
.map-touched .map-help {
  display: none;
}
.map-help {
  position: absolute;
  bottom: 76px;
  right: 26px;
  color: #5f6b57;
  font-size: 10px;
  pointer-events: none;
  z-index: 6;
}
.detail-back {
  background: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0 0 15px;
  color: var(--muted);
}
/* A model portrait (3D map mode) wherever the 2D mode shows an icon: transparent WebP, contained. */
.figure-portrait {
  display: block;
  object-fit: contain;
}
.animal-icon .figure-portrait {
  width: 43px;
  height: 45px;
}
.detail-hero.detail-figure {
  display: block;
  padding: 8px;
}
.detail-figure[data-action] {
  cursor: pointer;
}
.detail-figure .figure-portrait {
  width: 100%;
  height: 100%;
}
.chip-figure,
.title-figure {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}
.chip-figure .figure-portrait {
  width: 26px;
  height: 26px;
}
.title-figure .figure-portrait {
  width: 30px;
  height: 30px;
}
.detail-extras ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  padding: 0;
  margin: 2px 0 8px;
}
.detail-extras li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #3f5638;
}
.detail-extras .figure-portrait {
  width: 34px;
  height: 34px;
}
/* The same box whether it holds the icon (2D, or a place without a model) or the model's portrait. */
.detail-hero {
  border-radius: 13px;
  background: linear-gradient(135deg, #e1e9d4, #f1ecd7);
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 66px;
}
.detail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 2px;
}
.detail-kicker span {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #7c876e;
}
.detail-title {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 7px;
  letter-spacing: -0.5px;
}
.detail-stats {
  display: flex;
  gap: 0;
  padding: 13px 0;
  margin: 7px 0 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-stats > div {
  flex: 1;
}
.detail-stats > div + div {
  border-right: 1px solid var(--line);
  padding-right: 13px;
}
.detail-stats b {
  font-size: 18px;
  display: block;
}
.detail-stats small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.caption {
  font-size: 10px;
  color: #5f6f56;
  line-height: 1.55;
  margin: 8px 0;
}
.guide-card {
  margin: 20px 0 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f0f3e8;
}
.guide-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.guide-card p,
.guide-card details {
  font-size: 13px;
  line-height: 1.8;
  color: #54664a;
}
.guide-card summary {
  cursor: pointer;
  font-size: 12px;
}
.guide-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}
.guide-controls button {
  background: white;
  border: 1px solid #d8dfcb;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
}
.note {
  background: #f2ead7;
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: #796642;
  margin: 12px 0;
}
.note.green {
  background: #e8eddf;
  color: #4c6747;
}
.text-link {
  background: none;
  padding: 0;
  text-decoration: underline;
  color: var(--forest);
  font-size: 12px;
}
.route-status {
  border: 1px solid #d5ddc7;
  border-radius: 12px;
  padding: 15px;
  margin: 0 0 15px;
  background: #edf2e5;
}
.route-status strong {
  display: block;
  font-size: 16px;
  margin-bottom: 7px;
}
.route-status p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0 0 10px;
  color: #5d7152;
}
.route-status .actions {
  margin-top: 11px;
}
.route-status .primary {
  background: #b35e3b;
}
.plan-settings {
  display: flex;
  gap: 10px;
  margin: 13px 0;
}
.plan-settings label {
  font-size: 11px;
  color: #63775a;
  flex: 1;
}
.plan-settings input,
.plan-settings select {
  display: block;
  width: 100%;
  padding: 9px;
  border: 1px solid #d5dfc8;
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  margin-top: 5px;
}
.plan-stop {
  display: flex;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stop-number {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: #dfe9d1;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}
.plan-stop b {
  font-size: 13px;
}
.plan-stop small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  line-height: 1.7;
  margin-top: 4px;
}
.schedule-row {
  display: flex;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.schedule-time {
  font-size: 16px;
  font-weight: 700;
  color: #5a6b4a;
  direction: ltr;
  min-width: 43px;
}
.schedule-row b {
  font-size: 13px;
}
.schedule-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.toast {
  position: fixed;
  left: calc((100vw - var(--panel)) / 2);
  bottom: 90px;
  transform: translateX(-50%);
  background: #213f31;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 30px #213f3130;
  font-size: 13px;
  z-index: 80;
  max-width: min(440px, 85vw);
  text-align: center;
  line-height: 1.6;
  pointer-events: none;
}
.loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  z-index: 15;
  background: #edf0e5;
  font-size: 14px;
  color: #617750;
}
.loading img {
  width: 54px;
  height: 54px;
  animation: breathe 1.6s infinite;
}
.loading button {
  pointer-events: auto;
}
.mobile-grip {
  display: none;
}
.mobile-brand {
  display: none;
}
.about-dialog {
  border: 0;
  border-radius: 18px;
  padding: 28px;
  background: var(--cream);
  color: var(--ink);
  max-width: 480px;
  width: calc(100% - 30px);
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 20px 90px #17332140;
  direction: rtl;
}
.about-dialog::backdrop {
  background: #152e2260;
  backdrop-filter: blur(4px);
}
.about-dialog h2 {
  font-size: 25px;
  margin: 0 0 16px;
}
.about-dialog h3 {
  font-size: 15px;
  margin: 20px 0 7px;
}
.about-dialog p,
.about-dialog li {
  font-size: 13px;
  line-height: 1.8;
  color: #5f7056;
}
.about-dialog a {
  font-size: 12px;
}
.about-close {
  float: left;
  border: 0;
  background: #e7eddd;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
}
.noscript {
  position: fixed;
  z-index: 99;
  inset: 15%;
  background: white;
  padding: 30px;
  border-radius: 16px;
  direction: rtl;
}
.noscript p {
  line-height: 1.8;
}
@keyframes breathe {
  50% {
    opacity: 0.5;
    transform: scale(0.96);
  }
}
@media (min-width: 1500px) {
  :root {
    --panel: 410px;
  }
  .brandbar {
    padding-top: 30px;
  }
  .sidebar-intro {
    padding-bottom: 24px;
  }
  .sidebar-intro h1 {
    font-size: 31px;
  }
  .destination {
    padding: 13px 11px;
  }
}
@media (max-width: 760px) {
  :root {
    --panel: 0px;
  }
  .app {
    /* One collapsed height for the sheet and the map inset above it, including the home-indicator zone. */
    --sheet-peek: calc(230px + env(safe-area-inset-bottom, 0px));
    display: block;
    min-height: 0;
    height: 100dvh;
  }
  .map-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--sheet-peek);
  }
  .sidebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--sheet-peek);
    border: 0;
    border-top: 1px solid #d6dfca;
    border-radius: 23px 23px 0 0;
    box-shadow: 0 -7px 25px #36532d13;
    transition: height 0.2s;
    max-height: calc(100dvh - 90px);
  }
  .sidebar.expanded {
    height: 64dvh;
  }
  .brandbar,
  .sidebar-footer {
    display: none;
  }
  .mobile-grip {
    display: block;
    width: 100%;
    height: 25px;
    flex: none;
    background: none;
    padding: 10px;
    touch-action: none;
  }
  .tabs {
    touch-action: none;
  }
  .sidebar.dragging {
    transition: none;
  }
  .mobile-grip:after {
    content: '';
    display: block;
    width: 34px;
    height: 4px;
    background: #c7d0bd;
    border-radius: 4px;
    margin: auto;
  }
  .search-wrap {
    height: 42px;
    margin: 0 17px 9px;
    border-radius: 11px;
  }
  .tabs {
    margin: 0 18px;
    justify-content: space-around;
    gap: 0;
    flex: none;
  }
  .tab {
    padding: 7px 0 10px;
  }
  .panel-scroll {
    padding: 13px 17px calc(env(safe-area-inset-bottom, 0px) + 14px);
  }
  .sidebar:not(.expanded) .panel-scroll {
    overflow: hidden;
  }
  .filters {
    flex-wrap: nowrap;
    overflow: auto;
    scrollbar-width: none;
    margin: 0 0 13px;
    gap: 6px;
  }
  .filter {
    white-space: nowrap;
    font-size: 11px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .favorite-button,
  .share-button,
  .about-close {
    width: 44px;
    height: 44px;
  }
  .detail-back {
    min-height: 44px;
    margin: -6px 0 4px;
  }
  .text-link,
  .origin-caption button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* The caption's own margins absorb the taller target, so the list does not drop. */
  .origin-caption button {
    margin-block: -10px;
  }
  /* Links inside a sentence grow their hit area without opening the line. */
  .detail-route-summary .text-link,
  .trip-active .text-link {
    display: inline-block;
    min-height: 0;
    padding-block: 12px;
    margin-block: -12px;
  }
  .search-clear {
    width: 38px;
    min-height: 38px;
  }
  .peek-row {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -17px 12px;
    padding: 0 17px;
  }
  .peek-row::-webkit-scrollbar {
    display: none;
  }
  .peek-origin {
    flex: none;
    font-size: 10px;
    color: #4f6047;
    white-space: nowrap;
  }
  .peek-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 6px 11px;
    background: #e8efdf;
    color: #194c3a;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  .peek-chip small {
    font-weight: 400;
    color: #4f6047;
    font-size: 11px;
  }
  .sidebar.expanded .peek-row {
    display: none;
  }
  .map-top {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 15px;
    right: 15px;
  }
  .map-title {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    background: #fbfcf4ed;
    border: 1px solid #dce2d0;
    border-radius: 11px;
    box-shadow: 0 2px 8px #314c2910;
  }
  .mobile-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .mobile-brand b {
    font-size: 15px;
  }
  .mobile-brand small {
    font-size: 9px;
    display: block;
    color: #728263;
    margin-top: 2px;
  }
  .mobile-brand button {
    position: relative;
    margin-right: 6px;
    background: none;
    border: 1px solid #dce2d0;
    border-radius: 50%;
    font: italic 14px Georgia;
    width: 30px;
    height: 30px;
  }
  /* The visible circle stays small; the brand pill's padding holds a 44px hit area. */
  .mobile-brand button::before {
    content: '';
    position: absolute;
    inset: -8px;
  }
  .view-toggle {
    padding: 3px;
  }
  .view-toggle button {
    position: relative;
    min-width: 44px;
    height: 38px;
    font-size: 11px;
  }
  .view-toggle button::before {
    content: '';
    position: absolute;
    inset: -3px 0;
  }
  .map-tools {
    left: 14px;
    bottom: 51px;
    gap: 7px;
  }
  .map-tool {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }
  .north {
    font-size: 11px;
  }
  .north svg {
    width: 16px;
    height: 20px;
  }
  .map-legend {
    bottom: 12px;
    right: 14px;
    padding: 8px 10px;
    gap: 9px;
    font-size: 9px;
  }
  .map-note {
    display: none;
  }
  .map-help {
    bottom: 54px;
    right: 14px;
    font-size: 9px;
    max-width: 130px;
    text-align: right;
  }
  .map-pin {
    font-size: 9px;
    max-width: 139px;
    padding: 4px 7px 4px 4px;
    gap: 4px;
    min-height: 26px;
  }
  .pin-symbol {
    font-size: 13px;
  }
  .map-pin.compact {
    width: 14px;
    height: 14px;
    min-height: 14px;
  }
  .map-pin.selected {
    font-size: 10px;
    padding: 7px;
  }
  .toast {
    left: 50%;
    bottom: 215px;
    max-width: 86vw;
    width: max-content;
  }
  .detail-hero {
    height: 142px;
  }
  .detail-title {
    font-size: 23px;
  }
  .loading {
    padding: 70px 30px;
    text-align: center;
  }
  .destination {
    margin-bottom: 7px;
  }
  .panel-scroll:has(.detail-view) {
    padding-top: 13px;
  }
  .sidebar:has(.detail-view).expanded {
    height: 68dvh;
  }
}
@media (max-height: 600px) and (min-width: 761px) {
  .brandbar {
    padding-top: 15px;
    padding-bottom: 11px;
  }
  .search-wrap {
    margin-bottom: 8px;
  }
  .panel-scroll {
    padding-top: 12px;
  }
  .map-tools {
    bottom: 60px;
  }
  .map-title {
    display: none;
  }
}
/* Phones and short screens drop the intro copy but keep its h1, the page heading, for screen readers. */
@media (max-width: 760px), (max-height: 600px) and (min-width: 761px) {
  .sidebar-intro {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .sidebar-intro > :not(h1) {
    display: none;
  }
}
@media (max-width: 760px), (pointer: coarse) {
  /* iOS zooms into any focused field under 16px; landscape phones are wider than the phone layout. */
  .search-wrap input,
  .plan-settings input,
  .plan-settings select {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .app:has(.sidebar.expanded) .map-area {
    bottom: min(64dvh, calc(100dvh - 90px));
  }
  .app:has(.sidebar.expanded .detail-view) .map-area {
    bottom: min(68dvh, calc(100dvh - 90px));
  }
  .app:has(.sidebar.expanded) .map-tools {
    bottom: 10px;
    left: 12px;
    flex-direction: row;
    gap: 6px;
  }
  .app:has(.sidebar.expanded) .map-tools .north,
  .app:has(.sidebar.expanded) .map-help,
  .app:has(.sidebar.expanded) .map-legend {
    display: none;
  }
  .app:has(.sidebar.expanded) .tool-group {
    flex-direction: row;
    padding: 2px;
    border-radius: 9px;
  }
  .app:has(.sidebar.expanded) .tool-divider {
    width: 1px;
    height: 24px;
    margin: 10px 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.map-stage {
  user-select: none;
  -webkit-user-select: none;
}
button.north {
  pointer-events: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  border-radius: 10px;
  background: #fffffff0;
  border: 1px solid #d9e0cc;
}
button.north:hover {
  background: #eff3e8;
}
.map-label-leader {
  position: absolute;
  left: 0;
  top: 0;
  height: 1.5px;
  transform-origin: 0 50%;
  background: #5e7454;
  box-shadow: 0 0 0 1px #f9faf0b3;
  pointer-events: none;
  z-index: 1;
}
.map-label-leader:before {
  content: '';
  position: absolute;
  left: -2px;
  top: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #49683d;
  box-shadow: 0 0 0 1px #ffffffe6;
}
.map-label-leader[hidden] {
  display: none;
}

.legend-deck {
  background: #c49d6e;
  border: 1px solid #806348;
}
.detail-model-button {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #ccd6c1;
  border-radius: 11px;
  background: #e9efdf;
  padding: 11px;
  font-weight: 700;
  font-size: 13px;
  margin: 16px 0;
  color: #294e35;
}
.detail-model-button span {
  font-size: 21px;
  font-weight: 400;
}
.animal-dialog {
  border: 1px solid #dbe1d1;
  padding: 0;
  border-radius: 22px;
  background: #eef0e8;
  color: var(--ink);
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  box-shadow: 0 24px 90px #162b3255;
  direction: rtl;
}
.animal-dialog::backdrop {
  background: #1b302866;
  backdrop-filter: blur(7px);
}
.animal-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px 8px;
}
.animal-viewer-header small {
  font-size: 11px;
  color: var(--muted);
}
.animal-viewer-header h2 {
  font-size: 25px;
  margin: 5px 0;
}
.animal-viewer-stage {
  height: min(52dvh, 460px);
  min-height: 220px;
  touch-action: none;
  /* A soft light-to-sage floor behind the transparent 3D canvas. */
  background: radial-gradient(120% 70% at 50% 78%, #f7f8f2 0%, #eef0e7 45%, #e1e5d6 100%);
}
.animal-viewer-stage canvas {
  display: block;
  outline: none;
}
.animal-viewer-loading {
  position: absolute;
  top: 45%;
  left: 20px;
  right: 20px;
  text-align: center;
  pointer-events: none;
  font-size: 14px;
}
.animal-viewer-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
}
.animal-viewer-tools button {
  min-width: 43px;
  min-height: 43px;
  border: 1px solid #d3dbc9;
  background: #fbfcf7;
  border-radius: 11px;
  padding: 8px 13px;
  font-size: 18px;
}
.animal-viewer-tools button:last-child {
  font-size: 12px;
}
.animal-viewer-help {
  text-align: center;
  margin: 6px 16px 12px;
  font-size: 12px;
  color: var(--muted);
}
.animal-viewer-credit {
  text-align: center;
  font-size: 10px;
  padding: 0 20px 21px;
  color: var(--muted);
}
.animal-viewer-credit a {
  color: inherit;
}
@media (max-width: 760px) {
  .animal-viewer-header {
    padding: 17px 18px 5px;
  }
  .animal-viewer-header h2 {
    font-size: 21px;
  }
  .animal-viewer-stage {
    height: 49dvh;
  }
  .animal-viewer-tools {
    gap: 6px;
  }
  .animal-viewer-tools button {
    padding: 7px 10px;
  }
  .animal-dialog {
    border-radius: 17px;
  }
}
@media (max-height: 600px) and (min-width: 600px) {
  .app {
    min-height: 0;
  }
  .animal-dialog[open] {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    overflow: hidden;
  }
  .animal-viewer-header {
    flex: none;
    padding: 9px 18px 3px;
  }
  .animal-viewer-header h2 {
    font-size: 20px;
    margin: 2px 0;
  }
  .animal-viewer-stage {
    flex: 1;
    min-height: 0;
    height: auto;
  }
  .animal-viewer-tools {
    flex: none;
    padding: 4px 12px;
  }
  .animal-viewer-help {
    flex: none;
    margin: 3px 12px 5px;
  }
  .animal-viewer-credit {
    flex: none;
    padding: 0 16px 8px;
  }
}

/* The animal is the map symbol; its caption stays light and close to its feet. */
.map-pin,
.map-pin.compact,
.map-pin.selected,
.map-pin.favorite,
.map-pin.entrance-pin,
.map-pin:hover,
.map-pin:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 3px;
  padding: 0;
  min-height: 20px;
  gap: 4px;
  justify-content: center;
  color: #244c36;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}
.map-pin .pin-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 1px #fafbef,
    0 -1px 1px #fafbef,
    1px 0 1px #fafbef,
    -1px 0 1px #fafbef;
}
.map-pin .pin-symbol {
  display: block;
  flex: none;
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 1px 2px #fafbef;
}
.map-pin.caption-only .pin-symbol,
.map-pin.model-pin .pin-symbol {
  display: none;
}
.map-pin.quiet .pin-text,
.map-pin.symbol-only .pin-text {
  display: none;
}
.map-pin.model-pin.quiet {
  pointer-events: none;
}
.map-pin.caption-visible .pin-text {
  display: block;
}
.map-pin.symbol-only {
  min-width: 26px;
  min-height: 26px;
}
.map-pin.active-caption,
.map-pin.selected {
  color: #173f2c;
}
.map-pin.active-caption .pin-text,
.map-pin.selected .pin-text {
  text-decoration-line: underline;
  text-decoration-color: #b58441;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.map-pin:focus-visible {
  outline: 2px solid #a96729;
  outline-offset: 3px;
  pointer-events: auto;
}
.map-pin:focus-visible .pin-text {
  display: block;
}
.map-pin.favorite:not(.active-caption):not(.quiet)::after {
  content: '★';
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  color: #956c2e;
  font-size: 8px;
  line-height: 1;
  text-shadow: 0 1px 1px #fafbef;
  pointer-events: none;
}
.map-pin.entrance-pin .pin-symbol {
  display: block;
  font-size: 14px;
}
.map-pin.entrance-pin .pin-text {
  font-size: 10px;
}
.animal-focus-ring {
  position: absolute;
  left: 0;
  top: 0;
  border: 1.5px solid #8e723fa6;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px #f8faeaa6;
  pointer-events: none;
  z-index: 1;
}
.animal-focus-ring[hidden] {
  display: none;
}

/* Restrooms remain recognizable while animal captions stay quiet. */
:root {
  --restroom: #5c407f;
  --restroom-pale: #f1ebf7;
}
.map-pin.restroom-pin.restroom-target {
  outline: 3px solid #d9b45e;
  outline-offset: 3px;
  box-shadow: 0 0 0 8px #fffaf0b3;
  z-index: 7 !important;
}
.restroom-shortcut {
  position: fixed;
  z-index: 35;
  top: 104px;
  right: calc(var(--panel) + 26px);
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 59px;
  max-width: calc(100vw - var(--panel) - 110px);
  padding: 10px 13px;
  background: #fffaf0;
  border: 1px solid #d7bf8c;
  border-radius: 15px;
  box-shadow: 0 4px 16px #4533291f;
  text-align: right;
  color: #493466;
  direction: rtl;
}
.restroom-shortcut > b,
.restroom-shortcut b {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}
.restroom-shortcut small {
  display: block;
  font-size: 10px;
  color: #79694e;
  margin-top: 4px;
  line-height: 1.3;
}
.restroom-shortcut > span:last-child {
  margin-inline-start: 5px;
  font-size: 21px;
}
.restroom-badge {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  flex: none;
  background: var(--restroom);
  color: white;
  font:
    bold 12px Arial,
    sans-serif;
  letter-spacing: 0.5px;
  direction: ltr;
}
.restroom-shortcut:hover {
  background: #fff3d9;
  border-color: #bea065;
}
.restroom-shortcut.detour-active {
  border-color: #8d6eac;
  background: #f8f3fe;
}
.map-pin.restroom-pin,
.map-pin.restroom-pin.compact,
.map-pin.restroom-pin.selected,
.map-pin.restroom-pin:hover,
.map-pin.restroom-pin:focus-visible {
  width: 34px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  background: var(--restroom);
  border: 2px solid #fffdf4;
  border-radius: 9px;
  box-shadow: 0 2px 7px #46305a38;
  color: white;
  pointer-events: auto;
}
.map-pin.restroom-pin .pin-symbol {
  display: block;
  font:
    bold 10px Arial,
    sans-serif;
  color: white;
  text-shadow: none;
  letter-spacing: 0.2px;
  direction: ltr;
}
.map-pin.restroom-pin .pin-text {
  display: none;
}
.map-pin.restroom-pin.selected,
.map-pin.restroom-pin:focus-visible {
  outline: 2px solid #b798cc;
  outline-offset: 2px;
  background: #472c67;
}
.map-pin.restroom-pin:after {
  display: none;
}
/* Browsing: restroom pins step back to an outlined badge; hover, focus, selection and the detour target keep the full pin. */
body.wc-quiet .map-pin.restroom-pin:not(.restroom-target):not(.selected):not(:hover):not(:focus-visible) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
body.wc-quiet .map-pin.restroom-pin:not(.restroom-target):not(.selected):not(:hover):not(:focus-visible) .pin-symbol {
  display: grid;
  place-items: center;
  width: 24px;
  height: 18px;
  margin: auto;
  border: 1.5px solid var(--restroom);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--restroom);
  font-size: 9px;
  opacity: 0.9;
}
.restroom-dialog {
  width: min(500px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  padding: 23px;
  border: 1px solid #e0d4e9;
  border-radius: 22px;
  background: #fcfaf6;
  color: var(--ink);
  box-shadow: 0 24px 90px #241b3955;
  overflow: auto;
  overscroll-behavior: contain;
  direction: rtl;
}
.restroom-dialog::backdrop {
  background: #202a3159;
  backdrop-filter: blur(5px);
}
.restroom-dialog-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 19px;
}
.restroom-dialog-header > div {
  flex: 1;
}
.restroom-dialog-header small {
  display: block;
  font-size: 11px;
  color: #8b7a64;
}
.restroom-dialog h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 5px 0 0;
  letter-spacing: -0.3px;
}
.restroom-close {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee8f1;
  font-size: 24px;
  color: var(--restroom);
}
.restroom-origin {
  border: 1px solid #dfd8e7;
  background: #f4eff9;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #5e4d6e;
}
.restroom-origin.needs-location {
  background: #fff4dd;
  border-color: #e6d4ad;
  color: #715938;
}
.restroom-origin p {
  margin: 0 0 5px;
}
.restroom-origin > b {
  font-weight: 700;
  font-size: 12px;
}
.restroom-location-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.restroom-location-actions .secondary {
  min-height: 40px;
  padding: 9px 13px;
  background: #fff;
  color: #624578;
  border: 1px solid #e0d6e7;
}
.restroom-location-actions .text-link {
  font-size: 12px;
}
.restroom-reassurance,
.restroom-dialog-resume {
  font-size: 12px;
  line-height: 1.7;
  margin: 15px 0;
  color: #6c7660;
}
.restroom-dialog-resume {
  display: grid;
  gap: 7px;
}
.restroom-dialog-resume .secondary {
  color: var(--restroom);
  background: var(--restroom-pale);
}
.restroom-options {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.restroom-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid #e4e0e8;
  border-radius: 14px;
  background: #fff;
}
.restroom-option.nearest {
  border: 1.5px solid #a990bd;
  background: #faf6ff;
}
.restroom-option h3 {
  font-size: 14px;
  margin: 0 0 6px;
  line-height: 1.4;
}
.restroom-option p {
  font-size: 11px;
  color: #6d775e;
  margin: 0;
  line-height: 1.5;
}
.restroom-option p b {
  font-size: 15px;
  color: var(--restroom);
}
.restroom-option .primary {
  background: var(--restroom);
}
.restroom-option button {
  flex: none;
  font-size: 12px;
  min-height: 45px;
  padding: 11px;
}
.restroom-option .secondary {
  background: #f1ecf6;
  color: var(--restroom);
}
.restroom-nearest {
  display: block;
  width: fit-content;
  font-size: 10px;
  color: #745194;
  margin-bottom: 7px;
}
.restroom-footnote {
  font-size: 10px;
  line-height: 1.6;
  color: #7a7c71;
  margin: 15px 0 0;
}
.restroom-status {
  background: #f6f0fb;
  border-color: #d5c7e1;
}
.restroom-status-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.restroom-status-heading strong {
  margin: 0;
  color: var(--restroom);
}
.restroom-status .restroom-saved {
  color: #6a507d;
  font-size: 11px;
}
.restroom-status-actions {
  display: grid;
  gap: 8px;
}
.restroom-status-actions .primary {
  background: var(--restroom);
}
.restroom-status-actions .secondary {
  background: #e8ddf1;
  color: var(--restroom);
}
.restroom-status-actions .text-link {
  min-height: 34px;
}
@media (max-width: 760px) {
  .restroom-shortcut {
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    right: 15px;
    max-width: calc(100vw - 88px);
    min-height: 55px;
    padding: 9px 11px;
    gap: 9px;
    border-radius: 13px;
  }
  .restroom-shortcut b {
    font-size: 13px;
  }
  .restroom-shortcut small {
    font-size: 9px;
  }
  .restroom-shortcut .restroom-badge {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 11px;
  }
  /* Phones: the shortcut is a badge while browsing and while walking; a restroom leg keeps the full card. */
  body:not(.walking-navigation) .restroom-shortcut:not(.detour-active),
  .walking-navigation .restroom-shortcut.compact {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    max-width: 46px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 50%;
  }
  body:not(.walking-navigation) .restroom-shortcut:not(.detour-active) > span:not(.restroom-badge),
  .walking-navigation .restroom-shortcut.compact > span:not(.restroom-badge) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  body:not(.walking-navigation) .restroom-shortcut:not(.detour-active) .restroom-badge,
  .walking-navigation .restroom-shortcut.compact .restroom-badge {
    width: 34px;
    height: 34px;
  }
  .restroom-dialog {
    padding: 18px;
    border-radius: 18px;
    max-height: calc(100dvh - 20px);
  }
  .restroom-dialog h2 {
    font-size: 20px;
  }
  .restroom-option {
    padding: 12px;
    gap: 8px;
  }
  .restroom-option h3 {
    font-size: 13px;
  }
  .restroom-option button {
    font-size: 11px;
    padding: 10px;
  }
  .restroom-dialog-header {
    gap: 9px;
  }
  .restroom-dialog-header > .restroom-badge {
    width: 31px;
    height: 31px;
  }
  .restroom-close {
    width: 44px;
    height: 44px;
  }
  .restroom-status-actions .text-link {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .restroom-option {
    align-items: stretch;
    flex-direction: column;
  }
  .restroom-option button {
    width: 100%;
  }
  .restroom-dialog h2 {
    font-size: 18px;
  }
  .restroom-shortcut small {
    font-size: 8px;
  }
}
@media (max-height: 420px) and (max-width: 760px) {
  .restroom-shortcut {
    top: calc(env(safe-area-inset-top, 0px) + 69px);
    min-height: 42px;
    padding: 6px 10px;
  }
  .restroom-shortcut small {
    display: none;
  }
}

/* Walking directions leave the map in front, with a glanceable next turn. */
.walk-details-close,
.walk-skip {
  display: none;
}
.walking-navigation .skip:not(.walk-skip) {
  display: none;
}
.walking-navigation .walk-skip {
  display: block;
}
.walk-navigation {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  direction: rtl;
}
.walk-navigation button,
.walk-turn-card,
.walk-footer {
  pointer-events: auto;
}
.walk-turn-card {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100% - 32px));
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 15px 19px;
  background: #194c3a;
  color: #fffdf4;
  border: 1px solid #3b6751;
  border-radius: 19px;
  box-shadow: 0 7px 26px #1c3e3029;
  flex-wrap: wrap;
}
body.nav-then {
  --walk-then: 22px;
}
.walk-turn-then {
  flex: 0 0 100%;
  margin-top: 2px;
  font-size: 13px;
  color: #d9e7d5;
}
.walk-turn-then[hidden] {
  display: none;
}
/* Step list: the same junction instructions the turn card will show, in order. */
.walk-steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.walk-steps li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.45;
  color: #3f5140;
}
.walk-steps li[aria-current] {
  font-weight: 700;
  color: #194c3a;
}
.walk-steps .step-symbol {
  flex: none;
  width: 18px;
  text-align: center;
  font-size: 15px;
}
.walk-steps-details,
.preview-steps {
  font-size: 12px;
  margin: 6px 0 4px;
}
.walk-steps-details summary,
.preview-steps summary {
  cursor: pointer;
  color: #4b6348;
  font-weight: 700;
  padding: 4px 0;
}
.preview-steps[hidden] {
  display: none;
}
.preview-steps .walk-steps {
  max-height: 150px;
  overflow: auto;
  padding: 2px 0 4px;
}
.walk-turn-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  font:
    700 48px/1 Arial,
    sans-serif;
  direction: ltr;
}
.walk-turn-copy {
  min-width: 0;
}
.walk-turn-copy > b {
  display: block;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.walk-turn-copy > b:empty {
  display: none;
}
.walk-turn-copy h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  margin: 5px 0 0;
}
.walk-turn-copy > b:empty + h2 {
  font-size: 20px;
  margin: 0;
}
.walk-footer {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100% - 32px));
  background: #fffdf7;
  border: 1px solid #d9dfcf;
  border-radius: 18px;
  box-shadow: 0 7px 25px #1c3e3026;
  overflow: hidden;
}
.walk-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 17px 9px;
}
.walk-destination-button {
  display: grid;
  gap: 2px;
  position: relative;
  min-width: 0;
  max-width: 65%;
  padding: 0 0 0 36px;
  min-height: 43px;
  background: none;
  text-align: right;
}
.walk-kicker {
  font-size: 10px;
  color: #75826c;
}
.walk-destination-button > b {
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.walk-details-hint {
  position: absolute;
  left: 0;
  bottom: 1px;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.walk-remaining {
  font-size: 15px;
  color: #194c3a;
  line-height: 1.5;
  text-align: left;
  font-variant-numeric: tabular-nums;
  white-space: pre-line;
  flex-shrink: 0;
  max-width: 45%;
}
.walk-origin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 17px 7px;
}
.walk-origin p {
  font-size: 10px;
  line-height: 1.45;
  color: #6c7863;
  margin: 0;
  max-width: calc(100% - 102px);
}
.walk-origin button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  flex: none;
  padding: 7px 9px;
  background: #edf2e6;
  border-radius: 9px;
  color: #385c41;
  font-size: 11px;
  font-weight: 700;
}
#walk-voice[hidden] {
  display: none;
}
.walk-origin button[aria-pressed='true'] {
  background: #194c3a;
  color: #fffdf4;
}
.walk-actions {
  display: flex;
  border-top: 1px solid #e7ebdf;
  padding: 0 8px;
  background: #fafbf4;
}
.walk-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  min-height: 43px;
  background: none;
  font-size: 11px;
  color: #60745a;
}
.walk-actions button + button {
  border-right: 1px solid #e7ebdf;
}
.walk-actions #walk-stop {
  color: #805c4a;
}
.walk-actions #walk-stop span {
  font-size: 20px;
  line-height: 1;
}
.walk-origin-copy {
  min-width: 0;
  max-width: calc(100% - 102px);
}
.walk-origin .walk-origin-copy p {
  max-width: none;
}
.walk-origin .walk-heading-status {
  font-weight: 700;
  color: #385c41;
  margin: 0 0 3px;
}
.walk-recenter {
  position: absolute;
  right: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 192px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  min-height: 44px;
  background: #fffdf7;
  border: 1px solid #d4ddcb;
  border-radius: 25px;
  color: #194c3a;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 16px #1c3e3021;
}
.walk-navigation button:hover {
  background: #edf2e6;
}
.walk-recenter:focus-visible,
.walk-navigation button:focus-visible {
  outline-offset: -4px;
}
.walking-navigation .app {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.walking-navigation .map-area {
  grid-column: 1;
  grid-row: 1;
  inset: 0;
}
.walking-navigation:not(.walking-details) .sidebar {
  display: none;
}
.walking-navigation .map-title,
.walking-navigation .mobile-brand,
.walking-navigation .map-help,
.walking-navigation .map-legend,
.walking-navigation .map-note {
  display: none;
}
.walking-navigation .map-top {
  top: calc(env(safe-area-inset-top, 0px) + 120px + var(--walk-then, 0px));
  right: 20px;
  left: 20px;
  justify-content: flex-end;
  z-index: 32;
}
.walking-navigation .view-toggle button {
  min-height: 36px;
}
.walking-navigation .restroom-shortcut {
  top: calc(env(safe-area-inset-top, 0px) + 118px + var(--walk-then, 0px));
  right: 20px;
  max-width: calc(100vw - 145px);
  min-height: 48px;
  padding: 7px 11px;
  gap: 8px;
  border-radius: 13px;
}
.walking-navigation .restroom-shortcut .restroom-badge {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.walking-navigation .restroom-shortcut b {
  font-size: 13px;
}
.walking-navigation .restroom-shortcut small {
  font-size: 9px;
  margin-top: 2px;
}
.walking-navigation .map-tools {
  left: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 205px);
  z-index: 32;
}
.walking-navigation .map-tool {
  min-height: 38px;
}
.walking-navigation .map-tools .north {
  display: none;
}
.walking-navigation .toast {
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 190px);
}
.walking-navigation.walking-details .sidebar {
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--panel);
  height: auto;
  max-height: none;
  z-index: 40;
  box-shadow: -8px 0 35px #213f3130;
}
.walking-navigation.walking-details .walk-details-close {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  flex: none;
  background: #eaf0e1;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
}
.walking-navigation.walking-details .sidebar-intro,
.walking-navigation.walking-details .brandbar {
  display: none;
}
.walking-navigation.walking-details .search-wrap {
  margin-top: 16px;
}
@media (min-width: 761px) {
  .walking-navigation.walking-details .walk-navigation {
    right: var(--panel);
  }
  .walking-navigation.walking-details .restroom-shortcut {
    right: calc(var(--panel) + 20px);
    max-width: calc(100vw - var(--panel) - 145px);
  }
}
@media (max-width: 760px) {
  .walking-navigation .app .map-area,
  .walking-navigation .app:has(.sidebar.expanded) .map-area,
  .walking-navigation .app:has(.sidebar.expanded .detail-view) .map-area {
    position: absolute;
    inset: 0;
  }
  .walk-turn-card {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    width: calc(100% - 24px);
    min-height: 86px;
    border-radius: 16px;
    padding: 13px 16px;
    gap: 13px;
  }
  .walk-turn-symbol {
    font-size: 44px;
    width: 44px;
  }
  .walk-turn-copy > b {
    font-size: 25px;
  }
  .walk-turn-copy h2 {
    font-size: 15px;
  }
  .walk-footer {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    width: calc(100% - 24px);
    border-radius: 16px;
  }
  .walk-summary {
    padding: 11px 14px 7px;
    gap: 10px;
  }
  .walk-destination-button > b {
    font-size: 14px;
  }
  .walk-remaining {
    font-size: 14px;
  }
  .walk-origin {
    padding: 0 14px 6px;
    gap: 7px;
  }
  .walk-origin p {
    font-size: 10px;
  }
  .walk-origin button {
    min-height: 40px;
  }
  .walk-actions button {
    min-height: 42px;
  }
  .walking-navigation .map-top {
    top: calc(env(safe-area-inset-top, 0px) + 109px + var(--walk-then, 0px));
    left: 14px;
    right: 14px;
  }
  .walking-navigation .restroom-shortcut {
    top: calc(env(safe-area-inset-top, 0px) + 107px + var(--walk-then, 0px));
    right: 14px;
    min-height: 47px;
    max-width: calc(100vw - 120px);
  }
  .walking-navigation .restroom-shortcut small {
    font-size: 11px;
  }
  .walking-navigation .restroom-shortcut > span:last-child {
    display: none;
  }
  .walking-navigation .map-tools,
  .walking-navigation .app:has(.sidebar.expanded) .map-tools {
    left: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 197px);
    flex-direction: column;
    gap: 6px;
  }
  .walking-navigation .app:has(.sidebar.expanded) .map-tools .tool-group {
    flex-direction: column;
    padding: 4px;
    border-radius: 12px;
  }
  .walking-navigation .map-tools .tool-divider,
  .walking-navigation .app:has(.sidebar.expanded) .map-tools .tool-divider {
    width: auto;
    height: 1px;
    margin: 3px 5px;
  }
  /* The walking column shares short phones with the turn card: a 38px face, a 44px hit area. */
  .walking-navigation .map-tool,
  .walking-navigation .app:has(.sidebar.expanded) .map-tool {
    position: relative;
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
  .walking-navigation:not(.nav-preview) .map-tool::before {
    content: '';
    position: absolute;
    inset: -3px;
  }
  .walk-recenter {
    right: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 180px);
    font-size: 11px;
    min-height: 42px;
    padding: 9px 12px;
  }
  .walking-navigation.walking-details .sidebar,
  .walking-navigation.walking-details .sidebar.expanded,
  .walking-navigation.walking-details .sidebar:has(.detail-view).expanded {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 66dvh;
    max-height: calc(100dvh - 170px);
    border-radius: 19px 19px 0 0;
  }
  .walking-navigation.walking-details .sidebar .mobile-grip {
    display: none;
  }
  .walking-navigation.walking-details .sidebar .panel-scroll {
    overflow: auto;
  }
  .walking-navigation.walking-details .walk-details-close {
    min-height: 46px;
    padding: 10px 17px;
  }
  .walking-navigation.walking-details .search-wrap {
    margin-top: 10px;
  }
  .walking-navigation.walking-details .walk-footer,
  .walking-navigation.walking-details .walk-recenter {
    visibility: hidden;
  }
}
@media (max-width: 360px) {
  .walk-destination-button {
    max-width: 60%;
  }
  .walk-destination-button > b {
    font-size: 13px;
  }
  .walk-remaining {
    font-size: 12px;
  }
  .walking-navigation .restroom-shortcut small {
    display: none;
  }
  .walk-origin p {
    font-size: 9px;
  }
}
@media (max-height: 560px) and (min-width: 600px) {
  .walk-turn-card {
    left: auto;
    right: calc(14px + env(safe-area-inset-right, 0px));
    transform: none;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    width: min(300px, 42vw);
    min-height: 76px;
    padding: 11px 14px;
    gap: 12px;
  }
  .walk-turn-symbol {
    font-size: 40px;
    width: 40px;
  }
  .walk-turn-copy > b {
    font-size: 23px;
  }
  .walk-turn-copy h2 {
    font-size: 13px;
  }
  .walk-footer {
    left: auto;
    right: calc(14px + env(safe-area-inset-right, 0px));
    transform: none;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    width: min(300px, 42vw);
  }
  .walk-summary {
    padding: 8px 12px 4px;
  }
  .walk-destination-button {
    min-height: 35px;
  }
  .walk-destination-button > b {
    font-size: 13px;
  }
  .walk-remaining {
    font-size: 13px;
  }
  .walk-origin {
    padding: 0 12px 4px;
  }
  .walk-origin p {
    font-size: 9px;
  }
  .walk-origin button {
    min-height: 35px;
    font-size: 10px;
    padding: 6px;
  }
  .walk-actions button {
    min-height: 35px;
    font-size: 10px;
  }
  .walking-navigation .map-top {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: calc(14px + env(safe-area-inset-left, 0px));
    right: auto;
  }
  .walking-navigation .restroom-shortcut {
    top: calc(env(safe-area-inset-top, 0px) + 63px);
    right: auto;
    left: calc(14px + env(safe-area-inset-left, 0px));
    max-width: 210px;
    min-height: 43px;
    padding: 6px 9px;
  }
  .walking-navigation .restroom-shortcut small {
    display: none;
  }
  .walking-navigation .map-tools,
  .walking-navigation .app:has(.sidebar.expanded) .map-tools {
    left: calc(14px + env(safe-area-inset-left, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    flex-direction: row;
    gap: 6px;
  }
  .walking-navigation .map-tools .tool-group,
  .walking-navigation .app:has(.sidebar.expanded) .map-tools .tool-group {
    flex-direction: row;
  }
  .walking-navigation .map-tools .tool-divider,
  .walking-navigation .app:has(.sidebar.expanded) .map-tools .tool-divider {
    width: 1px;
    height: 22px;
    margin: 6px 1px;
  }
  .walk-recenter {
    right: auto;
    left: calc(14px + env(safe-area-inset-left, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 65px);
    min-height: 39px;
  }
  .walking-navigation .toast {
    left: 30%;
    bottom: 70px;
    max-width: 45vw;
  }
}

/* Navigation entry: a fitted route preview with an explicit start, then the follow HUD. */
.walk-preview {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 32px));
  max-height: min(64vh, 470px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: #fffdf7;
  border: 1px solid #d9dfcf;
  border-radius: 18px;
  box-shadow: 0 7px 25px #1c3e3026;
  pointer-events: auto;
  overflow: hidden;
}
.walk-preview[hidden] {
  display: none;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
}
.preview-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #5d7152;
}
.preview-close {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: #eef1e7;
  color: #385c41;
  font-size: 24px;
  line-height: 1;
  margin: -8px -10px -8px 0;
}
.preview-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: #194c3a;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
}
.preview-metrics {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  color: #213f31;
  unicode-bidi: plaintext;
  flex: none;
}
.preview-metrics b {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.origin-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f4e3bd;
  color: #5c3f0a;
  flex: none;
}
.origin-chip[data-kind='manual'] {
  background: #dfeedd;
  color: #245c2e;
}
.origin-chip[data-kind='gps'] {
  background: #dcebf8;
  color: #174a73;
}
.origin-chip[data-kind='stale'] {
  background: #e6e6e0;
  color: #3f453d;
}
.preview-note {
  font-size: 12px;
  line-height: 1.5;
  color: #5a6852;
  margin: 0;
}
.preview-caution {
  font-size: 12px;
  line-height: 1.5;
  background: #f2ead7;
  color: #6c562e;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0;
}
.preview-stops {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 138px;
  border-top: 1px solid var(--line);
  min-height: 0;
}
.preview-stops li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.preview-stops li > span:last-child {
  display: grid;
  min-width: 0;
}
.preview-stops li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-stops li small {
  font-size: 11px;
  color: #5d7152;
}
.preview-stops li[aria-current] b {
  color: #194c3a;
}
.preview-stops .preview-more {
  color: #5d7152;
  font-size: 12px;
  justify-content: center;
}
.preview-foot {
  display: grid;
  gap: 8px;
  flex: none;
  margin-top: 4px;
}
.preview-actions {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
}
.preview-start {
  min-height: 48px;
  border-radius: 12px;
  background: #b35e3b;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.walk-navigation .preview-start:hover {
  background: #9c4f30;
}
.walk-navigation .preview-start:disabled:hover {
  background: #b35e3b;
}
.preview-secondary,
.preview-origin button:not(.text-link) {
  min-height: 44px;
  border-radius: 10px;
  background: #edf2e6;
  color: #385c41;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}
.preview-origin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
}
.preview-origin .text-link {
  font-size: 12px;
  min-height: 44px;
}
.walk-navigation .preview-origin .text-link:hover {
  background: none;
}
.walk-simulation {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 18px + 92px + var(--walk-then, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100% - 32px));
  padding: 6px 12px;
  background: #fff3d6;
  color: #6b4a12;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
  margin: 0;
  pointer-events: none;
}
/* The route in the visitor's own direction, under the turn card (NavigationSession.detour). */
.walk-detour {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 18px + 92px + var(--walk-then, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100% - 32px));
  padding: 10px 12px;
  background: #fffdf7;
  color: #194c3a;
  border: 2px solid #2f7d4f;
  border-radius: 14px;
  box-shadow: 0 6px 18px #1c3e3030;
  box-sizing: border-box;
}
.walk-detour[hidden] {
  display: none;
}
/* While the offer is up it owns the strip under the turn card; the view switch and the WC shortcut step aside. */
body.nav-detour .view-toggle,
body.nav-detour .restroom-shortcut {
  visibility: hidden;
}
.walk-detour p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.walk-detour-actions {
  display: flex;
  gap: 8px;
}
.walk-detour-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #d4ddcb;
  border-radius: 22px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.walk-navigation .walk-detour-actions #walk-detour-take {
  background: #2f7d4f;
  border-color: #2f7d4f;
  color: #fff;
}
.walk-next-hint {
  display: block;
  padding: 0 17px 6px;
  font-size: 12px;
  color: #5d7152;
}
.walk-next {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  min-height: 48px;
  border-radius: 12px;
  background: #194c3a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.walk-navigation .walk-next:hover {
  background: #12392b;
}
/* Filled buttons: the gold ring disappears on their fill, so focus shows as white inside and dark outside. */
.walk-navigation .preview-start:focus-visible,
.walk-navigation .walk-next:focus-visible,
.walk-navigation #walk-voice[aria-pressed='true']:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  box-shadow: 0 0 0 3px #213f31;
}
/* The voice toggle keeps one label; its state is the fill. */
#walk-voice[aria-pressed='false'] {
  background: none;
  box-shadow: inset 0 0 0 1.5px #7d8f72;
  color: #385c41;
}
#walk-voice[aria-pressed='false']:hover {
  background: #edf2e6;
}
#walk-voice[aria-pressed='true'] {
  background: #194c3a;
  color: #fffdf4;
}
#walk-voice[aria-pressed='true']:hover {
  background: #12392b;
}
.walk-kicker {
  font-size: 12px;
  color: #5d7152;
}
.walk-details-hint {
  font-size: 11px;
}
.walk-origin p {
  font-size: 12px;
}
.walking-navigation .walk-footer .walk-actions button {
  min-height: 48px;
  font-size: 13px;
}
.walk-actions #walk-arrived {
  color: #385c41;
  font-weight: 700;
}
.walk-actions #walk-stop {
  font-weight: 700;
}
.nav-preview .walk-turn-card,
.nav-preview .walk-footer,
.nav-preview .walk-recenter,
.nav-preview .walk-simulation {
  display: none;
}
.walking-navigation .map-tools {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--walk-footer-h, 195px) + 30px);
}
.walking-navigation .toast {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--walk-footer-h, 195px) + 20px);
}
.walk-recenter {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--walk-footer-h, 195px) + 24px);
}
.walking-navigation.nav-preview .map-tools {
  top: calc(env(safe-area-inset-top, 0px) + 178px);
  bottom: auto;
  left: 20px;
  flex-direction: column;
}
.walking-navigation.nav-preview .toast {
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  bottom: auto;
}
@media (max-width: 760px) {
  .walk-preview {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    max-height: 58dvh;
    padding: 14px;
    border-radius: 16px;
  }
  .preview-title {
    font-size: 20px;
  }
  .preview-metrics {
    font-size: 15px;
  }
  .preview-metrics b {
    font-size: 24px;
  }
  .preview-start {
    min-height: 56px;
    font-size: 17px;
  }
  .preview-secondary,
  .preview-origin button:not(.text-link) {
    min-height: 48px;
  }
  .walk-simulation {
    top: calc(env(safe-area-inset-top, 0px) + 12px + 92px + var(--walk-then, 0px));
    width: calc(100% - 24px);
  }
  .walking-navigation .walk-footer .walk-actions button {
    min-height: 48px;
    font-size: 13px;
  }
  .walk-origin button {
    min-height: 48px;
  }
  .walk-origin p {
    font-size: 12px;
  }
  .walk-next {
    min-height: 52px;
  }
  .walking-navigation .map-tools,
  .walking-navigation .app:has(.sidebar.expanded) .map-tools {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--walk-footer-h, 200px) + 22px);
  }
  .walking-navigation .toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--walk-footer-h, 200px) + 18px);
  }
  .walk-recenter {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--walk-footer-h, 200px) + 20px);
  }
  /* The preview card owns the bottom; the tools become a short row under the top controls. */
  .walking-navigation.nav-preview .map-tools,
  .walking-navigation.nav-preview .app:has(.sidebar.expanded) .map-tools {
    top: calc(env(safe-area-inset-top, 0px) + 165px);
    bottom: auto;
    left: 14px;
    flex-direction: row;
    gap: 6px;
  }
  .walking-navigation.nav-preview .map-tools .tool-group,
  .walking-navigation.nav-preview .app:has(.sidebar.expanded) .map-tools .tool-group {
    flex-direction: row;
    padding: 2px;
    border-radius: 9px;
  }
  .walking-navigation.nav-preview .map-tools .tool-divider,
  .walking-navigation.nav-preview .app:has(.sidebar.expanded) .map-tools .tool-divider {
    width: 1px;
    height: 24px;
    margin: 10px 1px;
  }
  .walking-navigation.nav-preview .map-tool,
  .walking-navigation.nav-preview .app:has(.sidebar.expanded) .map-tool {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .walking-navigation.nav-preview .toast {
    top: calc(env(safe-area-inset-top, 0px) + 218px);
    bottom: auto;
  }
  .walking-navigation.walking-details .walk-preview {
    visibility: hidden;
  }
  /* The canvas ends above the preview card, so the fitted route lands in the visible band and not under the card. */
  .walking-navigation.nav-preview:not(.walking-details) .map-stage {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--walk-preview-h, 300px) + 22px);
  }
  /* Short phones: the whole card scrolls and the buttons stay pinned to its bottom edge. */
  .walk-preview {
    overflow: auto;
  }
  .walk-preview > * {
    flex: none;
  }
  .preview-stops {
    max-height: none;
    min-height: auto;
    overflow: visible;
  }
  /* Keep the transient message clear of the tool column on the left. */
  .walking-navigation .toast {
    left: calc(50% + 26px);
    max-width: calc(100vw - 88px);
  }
  .preview-foot {
    position: sticky;
    bottom: -14px;
    background: #fffdf7;
    margin: 4px -14px -14px;
    padding: 6px 14px 14px;
    box-shadow: 0 -8px 10px -8px #1c3e3020;
  }
}
@media (max-width: 360px) {
  .walk-origin p {
    font-size: 11px;
  }
}
@media (max-height: 560px) and (min-width: 600px) {
  .walk-preview {
    left: auto;
    right: calc(14px + env(safe-area-inset-right, 0px));
    transform: none;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    width: min(340px, 44vw);
    max-height: none;
    padding: 12px;
    overflow: auto;
  }
  .preview-title {
    font-size: 18px;
  }
  .preview-metrics {
    font-size: 14px;
  }
  .preview-metrics b {
    font-size: 20px;
  }
  .preview-actions {
    grid-template-columns: 1fr;
  }
  .preview-stops {
    max-height: none;
    overflow: visible;
  }
  .walking-navigation.nav-preview .map-tools {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    left: calc(14px + env(safe-area-inset-left, 0px));
    flex-direction: row;
  }
  .walking-navigation.nav-preview .toast {
    top: auto;
    bottom: 70px;
  }
  .walk-simulation {
    left: auto;
    right: calc(14px + env(safe-area-inset-right, 0px));
    transform: none;
    top: calc(env(safe-area-inset-top, 0px) + 10px + 82px + var(--walk-then, 0px));
    width: min(300px, 42vw);
    font-size: 11px;
    padding: 4px 10px;
  }
  .walk-next {
    min-height: 44px;
    font-size: 13px;
    margin-bottom: 6px;
  }
  .walk-next-hint {
    font-size: 11px;
    padding-bottom: 4px;
  }
  .walking-navigation .walk-footer .walk-actions button {
    min-height: 40px;
    font-size: 11px;
  }
  .walk-origin p {
    font-size: 10px;
  }
  .walk-kicker {
    font-size: 11px;
  }
  .walking-navigation .map-tools,
  .walking-navigation .app:has(.sidebar.expanded) .map-tools {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  }
  .walk-recenter {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 65px);
  }
  .walking-navigation .toast {
    bottom: 70px;
  }
}
/* The simulation ribbon sits under the turn card; the top controls make room for it. */
.walking-navigation.nav-sim .map-top {
  top: calc(env(safe-area-inset-top, 0px) + 152px + var(--walk-then, 0px));
}
.walking-navigation.nav-sim .restroom-shortcut {
  top: calc(env(safe-area-inset-top, 0px) + 150px + var(--walk-then, 0px));
}
@media (max-width: 760px) {
  .walking-navigation.nav-sim .map-top {
    top: calc(env(safe-area-inset-top, 0px) + 141px + var(--walk-then, 0px));
  }
  .walking-navigation.nav-sim .restroom-shortcut {
    top: calc(env(safe-area-inset-top, 0px) + 139px + var(--walk-then, 0px));
  }
}
@media (max-height: 560px) and (min-width: 600px) {
  .walking-navigation.nav-sim .map-top {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
  }
  .walking-navigation.nav-sim .restroom-shortcut {
    top: calc(env(safe-area-inset-top, 0px) + 63px);
  }
  .walking-navigation.walking-details .restroom-shortcut {
    right: auto;
    left: calc(14px + env(safe-area-inset-left, 0px));
  }
}
