:root {
  --paper: #fbf6ec;
  --paper-2: #f4ecdc;
  --ink: #181613;
  --ink-soft: #2c2823;
  --beige: #fcecc8;
  --jungle: #2f5d3a;
  --sunset: #d96f2c;
  --rule: rgba(24, 22, 19, 0.12);
  --shadow: 0 1px 2px rgba(24, 22, 19, 0.04), 0 8px 30px rgba(24, 22, 19, 0.06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(72px + var(--safe-bottom));
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--sunset); }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: calc(28px + var(--safe-top)) 22px 36px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(24, 22, 19, 0.55));
}
.hero-image .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-image .caption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  color: var(--paper);
  font-size: 14px;
  z-index: 2;
  font-family: "Instrument Serif", serif;
  font-style: italic;
}

.kicker { color: var(--jungle); margin-bottom: 14px; }

h1 {
  font-size: clamp(40px, 8.5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 600;
}
h1 .serif {
  color: var(--sunset);
  display: block;
  font-size: 0.62em;
  line-height: 1.05;
  margin-top: 6px;
  font-weight: 400;
}

.lede {
  font-size: 18px;
  max-width: 560px;
  color: var(--ink-soft);
  margin: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  background: var(--beige);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.chip.dark { background: var(--ink); color: var(--paper); }

/* ==================== SECTIONS ==================== */
section {
  padding: 48px 0 8px;
  border-bottom: 1px solid var(--rule);
}
section:last-of-type { border-bottom: 0; }

h2 {
  font-size: clamp(28px, 5.5vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 600;
}
h2 .num {
  color: var(--sunset);
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  margin-right: 10px;
}

.sub {
  color: var(--jungle);
  margin: 0 0 22px;
  font-size: 13px;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 20px 22px 22px; }
.card h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.card .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--jungle);
  margin-bottom: 12px;
}
.card p { margin: 0 0 12px; font-size: 15.5px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  background: var(--beige);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* The pick (dark transport card) */
.pick {
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 24px 24px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.pick .label { color: var(--sunset); margin-bottom: 8px; }
.pick h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.pick .meta { font-family: "JetBrains Mono", monospace; font-size: 12.5px; opacity: 0.78; }
.pick p { margin: 12px 0 0; opacity: 0.9; font-size: 15px; line-height: 1.55; }

/* ==================== TIMELINE ==================== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.stop {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.stop:first-child { border-top: 0; }
.time {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--jungle);
  padding-top: 4px;
}
.stop h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.stop .where {
  color: var(--sunset);
  font-size: 12.5px;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 6px;
}
.stop p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.stop .stop-image {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  height: 130px;
  max-width: 220px;
}
.stop .stop-image img { width: 100%; height: 100%; object-fit: cover; }

/* ==================== RULES BOX ==================== */
.rules {
  background: var(--beige);
  border-radius: 18px;
  padding: 24px 26px;
}
.rules h2 { margin-top: 0; }
.rules ol { margin: 16px 0 0; padding-left: 22px; }
.rules li { margin-bottom: 10px; font-size: 15.5px; }
.rules li strong { color: var(--sunset); }

/* ==================== EATS GRID ==================== */
.eats { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .eats { grid-template-columns: 1fr 1fr; } }
.eat {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.eat .eat-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.eat .eat-image img { width: 100%; height: 100%; object-fit: cover; }
.eat-body { padding: 14px 16px 16px; }
.eat h4 { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; }
.eat .meta { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--jungle); margin-bottom: 8px; }
.eat p { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.eat a.maps {
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  color: var(--sunset);
  text-decoration: none;
}
.eat a.maps:hover { text-decoration: underline; }

/* ==================== BUDGET ==================== */
.budget {
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
}
.row {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.row:first-child { border-top: 0; }
.row.total { background: var(--ink); color: var(--paper); font-weight: 600; }
.row .what { color: var(--ink-soft); }
.row.total .what { color: var(--paper); }
.row .amt { font-family: "JetBrains Mono", monospace; }

/* ==================== MAPS / LEAFLET ==================== */
#leaflet-map {
  height: 420px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  z-index: 0;
}
.maps-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.maps-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  font-size: 14.5px;
  min-height: 48px;
}
.maps-list a:active { background: var(--paper-2); }
.maps-list a .arrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  opacity: 0.6;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin: 12px 0;
  min-height: 52px;
  transition: transform 0.12s ease;
}
.cta-button:hover, .cta-button:active {
  color: var(--paper);
  transform: scale(0.99);
}
.cta-button.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cta-button.sunset { background: var(--sunset); color: var(--paper); }

/* Custom Leaflet popup */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: "Bricolage Grotesque", system-ui, sans-serif !important;
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
}
.leaflet-popup-content strong { color: var(--sunset); display: block; margin-bottom: 2px; }
.leaflet-popup-content a { color: var(--paper); font-size: 12px; font-family: "JetBrains Mono", monospace; }
.leaflet-popup-tip { background: var(--ink) !important; }
.leaflet-popup-close-button { color: var(--paper) !important; }

.pin {
  width: 32px;
  height: 32px;
  background: var(--sunset);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(24,22,19,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.pin.jungle { background: var(--jungle); }
.pin.ink { background: var(--ink); }

/* ==================== GUIDE PAGE ==================== */
.guide-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.guide-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
@media (max-width: 480px) {
  .guide-image { height: 240px; }
}

/* Small square mini-map sitting in the corner of the hero — tap to expand */
.minimap-tile {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 14px rgba(24, 22, 19, 0.3);
  cursor: pointer;
  z-index: 4;
  background: var(--paper-2);
  padding: 0;
  font-family: inherit;
}
.minimap-tile:hover { transform: scale(1.03); transition: transform 0.15s ease; }
.minimap-tile .canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.minimap-tile .corner {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 6;
  background: rgba(24, 22, 19, 0.85);
  color: var(--paper);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.minimap-tile .pin-static {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--sunset);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(24, 22, 19, 0.6), 0 0 0 1px rgba(24, 22, 19, 0.1);
  z-index: 5;
  pointer-events: none;
}

/* Hero credit pill — moved to bottom-LEFT now that minimap takes bottom-right */
.guide-image .credit {
  bottom: 12px !important;
  left: 12px !important;
  right: auto !important;
}

@media (max-width: 480px) {
  .minimap-tile { width: 100px; height: 100px; bottom: 10px; right: 10px; }
}

/* ==================== MAP MODAL ==================== */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.22s ease-out;
}
.map-modal[hidden] { display: none; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.map-modal-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: calc(12px + var(--safe-top)) 14px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.map-modal-bar .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--paper-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}
.map-modal-bar .icon-btn:active { background: var(--beige); }
.map-modal-bar .icon-btn svg { width: 20px; height: 20px; }
.map-modal-bar .title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-modal-bar .locate-me {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.map-modal-bar .locate-me.active { background: var(--sunset); }
.map-modal-bar .locate-me svg { width: 14px; height: 14px; }
#modal-map { flex: 1 1 auto; width: 100%; z-index: 0; }
.map-modal-foot {
  flex: 0 0 auto;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-modal-foot .distance {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--jungle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.map-modal-foot .cta-button { margin: 0; }

/* Pulsing user pin */
.user-pin {
  width: 18px;
  height: 18px;
  background: #2b7be4;
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(43, 123, 228, 0.7);
  animation: userPulse 2s infinite;
}
@keyframes userPulse {
  0%   { box-shadow: 0 0 0 0   rgba(43, 123, 228, 0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(43, 123, 228, 0); }
  100% { box-shadow: 0 0 0 0   rgba(43, 123, 228, 0); }
}
.guide-image img { width: 100%; height: 100%; object-fit: cover; }
.guide-image .credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(24, 22, 19, 0.75);
  color: var(--paper);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}
.guide-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px;
  background: var(--paper-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.guide-gallery::-webkit-scrollbar { display: none; }
.guide-gallery img {
  flex: 0 0 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
}
.guide-body { padding: 22px 22px 24px; }
.guide-body h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.guide-body .thai {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--jungle);
  margin-bottom: 12px;
  font-size: 16px;
}
.guide-body .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.fact {
  background: var(--beige);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.guide-body p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-soft); }
.guide-body h4 {
  margin: 18px 0 8px;
  font-size: 14px;
  color: var(--jungle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.guide-body ul { margin: 0 0 12px; padding-left: 20px; font-size: 15px; color: var(--ink-soft); }
.guide-body ul li { margin-bottom: 6px; }
.guide-body .pull {
  border-left: 3px solid var(--sunset);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  font-family: "Instrument Serif", serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}

/* ==================== BOTTOM TAB BAR ==================== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--rule);
  padding: 10px 12px calc(10px + var(--safe-bottom));
  z-index: 100;
}
.tabbar-inner {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 50px;
  justify-content: center;
}
.tab.active { color: var(--ink); background: var(--beige); }
.tab svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* ==================== FOOTER ==================== */
footer {
  padding: 32px 22px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}
footer .heart { color: var(--sunset); }
footer a { color: var(--ink-soft); }

/* ==================== DETAILS / TOGGLE ==================== */
details { margin-top: 8px; }
details summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--jungle);
  padding: 10px 0;
  list-style: none;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
details summary::after { content: " ↓"; }
details[open] summary::after { content: " ↑"; }

/* ==================== UTILITY ==================== */
.spacer-sm { height: 8px; }
.spacer { height: 16px; }
.spacer-lg { height: 28px; }

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .stop { grid-template-columns: 64px 1fr; gap: 10px; }
  .pick, .card-body, .guide-body { padding-left: 18px; padding-right: 18px; }
  .stop .stop-image { max-width: 160px; height: 110px; }
  .guide-image { height: 180px; }
}

/* ==================== STICKY SUB-NAV (plan page) ==================== */
.subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--rule);
}
.subnav-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.subnav a.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.subnav a:not(.active):hover {
  border-color: var(--rule);
}

/* ==================== MAP PAGE ==================== */
body.map-page {
  padding-bottom: calc(72px + var(--safe-bottom));
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.map-header {
  flex: 0 0 auto;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  z-index: 20;
}
.map-header .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.map-header .back svg { width: 20px; height: 20px; }
.map-header h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.map-header .subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--jungle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#map-fullscreen {
  flex: 0 0 50vh;
  min-height: 320px;
  width: 100%;
  z-index: 0;
}
.places-panel {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  padding: 12px 14px calc(80px + var(--safe-bottom));
}
.places-panel h2 {
  font-size: 14px;
  margin: 6px 4px 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jungle);
}
.place-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  margin-bottom: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.place-card:hover { border-color: rgba(217, 111, 44, 0.3); }
.place-card.active {
  background: var(--beige);
  border-color: var(--sunset);
}
.place-card .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--jungle);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.place-card.headline .num { background: var(--sunset); }
.place-card.station .num { background: var(--ink); }
.place-card .info h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.place-card .info .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--jungle);
  margin-bottom: 6px;
}
.place-card .info p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.place-card .info .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.place-card .info .action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--sunset);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.places-panel .route-cta {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin: 12px 0 4px;
}
