/* The Tour 26 map uses the same visual language as jamesgslater.com. */
:root {
  --navy: #254bd8;
  --navy-deep: #172325;
  --ink: #172325;
  --paper: #f7f5ee;
  --card: #fffdf7;
  --line: #d9ded7;
  --accent: #f36243;
  --accent-deep: #a6331a;
  --muted: #52605e;
  --lime: #d8f36b;
}

html, body { font-family: 'DM Sans', Arial, sans-serif; color: var(--ink); }
::selection { background: var(--lime); color: var(--ink); }
#app { height: 100dvh; min-height: 420px; }
.bar {
  min-height: 60px;
  gap: 12px;
  padding: 9px 16px;
  background: var(--ink);
  box-shadow: 0 7px 24px rgba(23, 35, 37, .18);
}
.bar .ti {
  margin: 0;
  font: 700 17px/1.05 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.055em;
  text-transform: none;
  white-space: nowrap;
}
.bar .ti small {
  margin-top: 5px;
  color: #cbd8d5;
  font: 700 8px/1.1 'DM Sans', Arial, sans-serif;
  letter-spacing: .13em;
}
.bar .stats { gap: 15px; }
.bar .stats .s b { font: 700 16px/1 'Space Grotesk', Arial, sans-serif; }
.bar .stats .s span { color: #cbd8d5; font-size: 8px; letter-spacing: .07em; }
.map-site-links { display: flex; align-items: center; gap: 6px; margin-left: 12px; white-space: nowrap; }
.map-site-links a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  font: 700 11px/1 'DM Sans', Arial, sans-serif;
}
.map-site-links a:hover { background: #ffffff20; }
.map-site-links a:last-child { background: var(--lime); color: var(--ink); }
.map-site-links a:last-child:hover { background: #c5e54f; }

.panel { background: var(--paper); border-color: var(--line); }
.panel .ctrl, .sel, .legend { background: var(--card); border-color: var(--line); }
.btn {
  min-height: 39px;
  border: 1.5px solid var(--blue, #254bd8);
  border-radius: 9px;
  color: #1c3cb3;
  background: #fff;
  font: 700 10.5px/1.2 'DM Sans', Arial, sans-serif;
  letter-spacing: .015em;
}
.btn:hover, .btn.on { border-color: #254bd8; background: #254bd8; color: #fff; }
.btn.amber { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn.amber:hover, .btn.amber.on { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.sel .dh .dl { font: 700 11px 'DM Sans', Arial, sans-serif; color: var(--accent-deep); }
.sel .dh .km { font: 700 14px 'Space Grotesk', Arial, sans-serif; color: #1c3cb3; }
.sel h3 { font: 700 20px/1.1 'Space Grotesk', Arial, sans-serif; letter-spacing: -.04em; }
.sel .dt { color: var(--muted); }
.day { min-height: 52px; border-radius: 10px; }
.day:hover { background: #fff; border-color: var(--line); }
.day.active { background: #e9eeff; border-color: #254bd8; box-shadow: none; }
.day .tx .t { font: 700 13px/1.25 'Space Grotesk', Arial, sans-serif; letter-spacing: -.02em; }
.day .tx .s { color: var(--muted); }
.day .km { font: 700 11px 'Space Grotesk', Arial, sans-serif; color: #1c3cb3; }
.day .rd { font: 700 8px 'DM Sans', Arial, sans-serif; color: var(--accent-deep); }
.legend .lg { color: var(--muted); }
.fab {
  top: 70px;
  background: var(--ink);
  border-radius: 9px;
  font: 700 12px 'DM Sans', Arial, sans-serif;
  letter-spacing: .01em;
}
.panel-close { background: var(--lime); color: var(--ink); }
.leaflet-popup-content { font-family: 'DM Sans', Arial, sans-serif; }
.leaflet-popup-content b { font-family: 'Space Grotesk', Arial, sans-serif; color: #1c3cb3; }

@media (max-width: 1080px) {
  .bar .stats { display: none; }
  .map-site-links { margin-left: auto; }
}
@media (max-width: 720px) {
  .bar { min-height: 60px; padding: 8px 11px; gap: 9px; }
  .bar .ti { font-size: 15px; }
  .bar .ti small { font-size: 7px; letter-spacing: .07em; }
  .panel { top: 60px; }
  .map-site-links a:not(:last-child) { display: none; }
  .map-site-links a:last-child { padding: 8px 9px; font-size: 10px; }
}
@media (max-width: 360px) {
  .bar .ti small { display: none; }
  .map-site-links a:last-child { font-size: 9px; }
}
