/* The host owns the section layout and map height. These styles stay inside the hiking component. */
#hiking-map {
  background: #e8eee7;
  color: #13262f;
  border-radius: 18px;
  isolation: isolate;
  font-family: inherit;
}
#hiking-map .leaflet-container,
#hiking-map .leaflet-control,
#hiking-map .leaflet-popup-content,
#hiking-map .leaflet-tooltip { font-family: inherit; }
#hiking-map .leaflet-control-zoom { border: 1px solid #d9e1d6; box-shadow: 0 3px 13px #13262f12; }
#hiking-map .leaflet-control-zoom a { color: #13262f; background: #fff; border-color: #e4e9e1; }
#hiking-map .leaflet-control-attribution { background: #ffffffdb; color: #5f6f65; font-size: 9px; }
#hiking-map .leaflet-control-attribution a { color: #486842; }
#hiking-map .leaflet-popup-content { margin: 13px 16px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
#hiking-map .leaflet-popup-content p { margin: 7px 0; }
#hiking-map .leaflet-popup-content a { color: #4e6e44; }
#hike-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-route-tab {
  --tm-route-color: #66815b;
  appearance: none;
  border: 1px solid #d8e1d5;
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: #526451;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.tm-route-tab::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--tm-route-color); }
.tm-route-tab:hover { border-color: #a3c1c7; }
.tm-route-tab.is-active { background: #edf5f5; color: #13262f; border-color: #a3c1c7; box-shadow: none; }
.tm-route-tab:focus-visible,
#hike-fit:focus-visible,
#hike-compare:focus-visible { outline: 3px solid #a3c1c7; outline-offset: 3px; }
.tm-route-tab--compare::before { background: linear-gradient(90deg, #66815b 50%, #c16b32 50%); }
#hike-metrics { color: #13262f; }
.tm-metric-row + .tm-metric-row { margin-top: 0; padding-top: 4px; border-top: 0; }
.tm-metric-route { margin: 0 0 9px; font-size: 13px; font-weight: 600; color: var(--tm-route-color, #66815b); }
.tm-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tm-metric { min-width: 0; }
.tm-metric-value { margin: 0; font-size: clamp(20px, 2.1vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tm-metric-unit { margin-left: 4px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.tm-metric-label { margin-top: 6px; color: #68786a; font-size: 11px; line-height: 1.5; }
.tm-metric-note { margin: 10px 0 0; color: #74806f; font-size: 11px; line-height: 1.65; }
.tm-route-headline { margin: 0 0 7px; color: #13262f; font-size: 16px; line-height: 1.5; font-weight: 600; }
.tm-route-description,
.tm-route-intro { margin: 0; color: #5e6e61; font-size: 13px; line-height: 1.8; }
.tm-route-intro { margin-bottom: 17px; }
.tm-route-order { margin: 10px 0 0; color: #47613e; font-size: 12px; line-height: 1.9; }
.tm-route-note { margin: 9px 0 0; color: #7b8578; font-size: 11px; line-height: 1.75; }
.tm-route-explanation + .tm-route-explanation { margin-top: 19px; padding-top: 17px; border-top: 1px solid #e0e7dc; }
#hike-station { min-width: 0; }
#hike-station .station-diagram { margin-left: 0; margin-right: 0; }
.tm-source-entry + .tm-source-entry { margin-top: 18px; padding-top: 15px; border-top: 1px solid #dce5d7; }
.tm-source-title { margin: 0 0 8px; color: #344a34; font-size: 12px; line-height: 1.65; }
.tm-source-copy,
.tm-source-coordinate { color: #71806d; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.tm-source-copy strong { color: #52674b; font-weight: 600; }
.tm-source-link,
.tm-source-copy a { color: #4e6e44; text-underline-offset: 3px; }
.tm-source-link { display: inline-block; margin-top: 8px; font-size: 12px; }
.tm-source-coordinate { margin: 15px 0 0; }
#hike-map-status { color: #56664f; background: #ffffffee; border: 1px solid #dce5d7; border-radius: 10px; padding: 9px 12px; font-size: 12px; line-height: 1.6; }
#hike-map-status[hidden] { display: none !important; }
.tm-map-pin { background: transparent; border: 0; }
.tm-map-pin > span { display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--tm-route-color, #66815b); color: #fff; box-shadow: 0 2px 7px #13262f30; font-size: 11px; font-weight: 600; line-height: 1; }
.tm-map-tooltip { border: 0; border-radius: 7px; padding: 4px 7px; color: #263b2c; background: #fffffff2; box-shadow: 0 2px 9px #13262f15; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.tm-map-tooltip::before { display: none; }
.tm-direction-arrow { background: none; border: 0; pointer-events: none; }
.tm-direction-arrow > span { display: block; width: 22px; height: 22px; font-size: 19px; line-height: 22px; text-align: center; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; transform-origin: center; }
@media (max-width: 600px) {
  #hiking-map { border-radius: 14px; }
  .tm-route-tab { padding: 9px 12px; font-size: 12px; }
  .tm-metric-grid { gap: 9px; }
  .tm-metric-value { font-size: 21px; }
  .tm-metric-label { font-size: 10px; }
  .tm-route-headline { font-size: 15px; }
  .tm-map-tooltip { font-size: 10px; padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-route-tab { transition: none; }
}
