.fre-atlas-map-slot {
  --fre-map-ink: #172432;
  --fre-map-slate: #536b80;
  --fre-map-blue: #7793aa;
  --fre-map-paper: #f5f6f4;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  color: #fff;
  background: #293b4a;
  isolation: isolate;
  font-family: inherit;
}

.fre-atlas-map-slot *,
.fre-atlas-map-slot *::before,
.fre-atlas-map-slot *::after { box-sizing: border-box; }
.fre-atlas-map-slot button { font: inherit; }
html.fre-atlas-modal-open { overflow: hidden; }

.fre-atlas-map-fallback,
.fre-atlas-map-live,
.fre-atlas-map-wash { position: absolute; inset: 0; }

.fre-atlas-map-fallback {
  z-index: 1;
  overflow: hidden;
  opacity: 1;
  background: linear-gradient(145deg, #40596a, #172432);
  transition: opacity .55s ease, visibility .55s ease;
}

.fre-atlas-map-fallback--poster img,
.fre-atlas-map-fallback > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.48) contrast(.88) brightness(.68);
}

.fre-atlas-map-fallback--poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(15,31,44,.72), transparent 62%);
}

.fre-map-fallback-label {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(15,31,44,.62);
  font-size: 8px;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(8px);
}

.fre-atlas-map-live {
  z-index: 2;
  opacity: 0;
  background: #304654;
  transition: opacity .55s ease;
}

.fre-atlas-map-wash {
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13,29,42,.48) 0%, transparent 28%), linear-gradient(0deg, rgba(13,29,42,.73) 0%, transparent 42%);
}

.fre-atlas-map-header {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.fre-atlas-map-eyebrow {
  color: rgba(255,255,255,.86);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.fre-atlas-map-notice {
  max-width: 210px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: rgba(255,255,255,.64);
  background: rgba(23,36,50,.42);
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
  backdrop-filter: blur(8px);
}

.fre-atlas-map-card {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 69px;
  left: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  background: rgba(20,36,48,.72);
  box-shadow: 0 16px 40px rgba(7,19,28,.22);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.fre-atlas-card-toggle {
  position: absolute;
  top: 11px;
  right: 11px;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: rgba(255,255,255,.8);
  background: rgba(13,29,42,.38);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .035em;
  cursor: pointer;
}
.fre-atlas-card-toggle:hover,
.fre-atlas-card-toggle:focus-visible { border-color: #fff; color: #fff; outline: 0; }
.fre-atlas-map-card.is-collapsed { padding-top: 13px; padding-right: 116px; }
.fre-atlas-map-card.is-collapsed > :not(.fre-atlas-card-toggle):not(.fre-atlas-map-number):not(.fre-atlas-segment-title) { display: none; }
.fre-atlas-map-card.is-collapsed .fre-atlas-segment-title { overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }

.fre-atlas-map-number {
  display: block;
  margin-bottom: 4px;
  color: #b8cad5;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.fre-atlas-segment-title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.03;
  padding-right: 92px;
}
.fre-atlas-map-card.is-collapsed .fre-atlas-segment-title { padding-right: 0; }

.fre-atlas-effort {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(136,169,190,.22);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fre-atlas-effort[data-tone="attention"] { background: rgba(213,154,74,.27); }
.fre-atlas-effort[data-tone="crux"] { background: rgba(185,79,67,.3); }
.fre-atlas-effort[data-tone="navigation"] { background: rgba(75,183,229,.28); }
.fre-atlas-effort[data-tone="vehicle"] { background: rgba(167,175,180,.24); }

.fre-atlas-technical-copy {
  margin: 8px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  line-height: 1.45;
}

.fre-atlas-conditions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  margin: 9px 0 0;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.fre-atlas-conditions dt {
  margin: 0;
  color: rgba(255,255,255,.49);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.fre-atlas-conditions dd {
  min-width: 0;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 8px;
  line-height: 1.35;
}

.fre-atlas-profile-header {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-top: 11px;
  color: rgba(255,255,255,.54);
  font-size: 7px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.fre-atlas-profile-legend { color: rgba(255,255,255,.4); text-align: right; }

.fre-atlas-profile {
  display: grid;
  grid-template-columns: repeat(var(--fre-stage-count, 3), minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  min-height: 39px;
  margin-top: 5px;
}

.fre-atlas-profile-step {
  min-width: 0;
  height: 39px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.fre-atlas-profile-step small { font-size: 7px; }
.fre-atlas-profile-bar { display: block; height: 13px; border-radius: 4px 4px 2px 2px; background: #88a9be; opacity: .62; }
.fre-atlas-profile-step[data-tone="attention"] .fre-atlas-profile-bar { height: 21px; background: #d59a4a; }
.fre-atlas-profile-step[data-tone="crux"] .fre-atlas-profile-bar { height: 29px; background: #b94f43; }
.fre-atlas-profile-step:hover,
.fre-atlas-profile-step:focus-visible,
.fre-atlas-profile-step.is-active { border-color: rgba(255,255,255,.58); color: #fff; background: rgba(255,255,255,.1); outline: 0; }
.fre-atlas-profile-step.is-active .fre-atlas-profile-bar { opacity: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.55); }

.fre-atlas-run {
  min-height: 34px;
  margin-top: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  color: #fff;
  background: rgba(19,36,49,.42);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.fre-atlas-run:hover,
.fre-atlas-run:focus-visible { border-color: #fff; background: rgba(255,255,255,.12); outline: 0; }
.fre-atlas-run:disabled { opacity: .42; cursor: not-allowed; }

.fre-atlas-map-controls {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fre-atlas-map-controls::-webkit-scrollbar { display: none; }
.fre-atlas-map-controls button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  background: rgba(22,38,50,.62);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: .2s ease;
}
.fre-atlas-map-controls button:hover,
.fre-atlas-map-controls button:focus-visible,
.fre-atlas-map-controls button.is-active {
  border-color: rgba(255,255,255,.68);
  color: var(--fre-map-ink);
  background: rgba(255,255,255,.92);
  outline: 0;
}

.fre-atlas-view-tools {
  position: absolute;
  z-index: 8;
  top: 52px;
  left: 57px;
  display: flex;
  gap: 5px;
  max-width: calc(100% - 72px);
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.fre-atlas-map-slot.is-map-ready .fre-atlas-view-tools { opacity: 1; pointer-events: auto; }
.fre-atlas-view-tools button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(23,36,50,.72);
  box-shadow: 0 4px 12px rgba(7,19,28,.14);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .035em;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.fre-atlas-view-tools button:hover,
.fre-atlas-view-tools button:focus-visible,
.fre-atlas-view-tools button[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.94); color: var(--fre-map-ink); outline: 0; }
.fre-atlas-view-tools button[hidden] { display: none; }
.fre-atlas-view-tools button:disabled { opacity: .42; cursor: not-allowed; }

.fre-atlas-mode-legend {
  position: absolute;
  z-index: 8;
  top: 125px;
  left: 57px;
  display: flex;
  max-width: calc(100% - 76px);
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(18,34,46,.74);
  font-size: 7px;
  line-height: 1;
  backdrop-filter: blur(9px);
}
.fre-atlas-mode-legend[hidden] { display: none; }
.fre-atlas-mode-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fre-atlas-mode-legend i { display: block; width: 15px; height: 3px; border-radius: 3px; background: #88a9be; }
.fre-atlas-mode-legend span[data-mode="navigation"] i { height: 2px; background: repeating-linear-gradient(90deg, #4bb7e5 0 5px, transparent 5px 8px); }
.fre-atlas-mode-legend span[data-mode="vehicle"] i { height: 2px; background: repeating-linear-gradient(90deg, #a7afb4 0 6px, transparent 6px 10px); }

.fre-atlas-gesture-help {
  position: absolute;
  z-index: 8;
  top: 89px;
  left: 57px;
  max-width: min(315px, calc(100% - 76px));
  opacity: 0;
  pointer-events: none;
  color: #fff;
  font-size: 8px;
}
.fre-atlas-map-slot.is-map-ready .fre-atlas-gesture-help { opacity: 1; pointer-events: auto; }
.fre-atlas-gesture-help summary {
  width: max-content;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(23,36,50,.62);
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(8px);
}
.fre-atlas-gesture-help summary::-webkit-details-marker { display: none; }
.fre-atlas-gesture-help summary::before { content: "?"; display: inline-grid; width: 14px; height: 14px; margin-right: 5px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.fre-atlas-gesture-help summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fre-atlas-gesture-help p {
  margin: 5px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(18,34,46,.9);
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(7,19,28,.2);
  backdrop-filter: blur(10px);
}

.fre-atlas-map-launch {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  color: #fff;
  background: rgba(23,36,50,.68);
  transform: translate(-50%, -50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.fre-atlas-map-launch span { font-size: 17px; }
.fre-atlas-map-launch strong { font-size: 11px; font-weight: 600; white-space: nowrap; }
.fre-atlas-map-slot.is-map-loading .fre-atlas-map-launch strong::after { content: "…"; }

.fre-atlas-map-close {
  position: absolute;
  z-index: 12;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(23,36,50,.7);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.fre-atlas-map-error {
  position: absolute;
  z-index: 10;
  top: 58px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  color: #fff;
  background: rgba(18,34,46,.88);
  box-shadow: 0 12px 28px rgba(5,16,24,.2);
  text-align: left;
  backdrop-filter: blur(12px);
}
.fre-atlas-map-error[hidden] { display: none; }
.fre-atlas-map-error span { max-width: 310px; font-size: 10px; line-height: 1.45; }
.fre-atlas-map-error button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.fre-atlas-landmark {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  color: var(--fre-map-ink);
  filter: drop-shadow(0 2px 5px rgba(255,255,255,.5));
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity .2s ease;
}
.fre-atlas-landmark.is-relevant { opacity: 1; }
.fre-atlas-landmark-dot { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #7793aa; }
.fre-atlas-landmark[data-type="peak"] .fre-atlas-landmark-dot { width: 0; height: 0; border: 0; border-right: 5px solid transparent; border-bottom: 9px solid #b94f43; border-left: 5px solid transparent; border-radius: 0; background: transparent; }
.fre-atlas-landmark[data-type="water"] .fre-atlas-landmark-dot { background: #5e97b6; }
.fre-atlas-landmark[data-type="objective"] .fre-atlas-landmark-dot { background: #d59a4a; }
.fre-atlas-landmark[data-type="town"] { z-index: 4; filter: drop-shadow(0 4px 12px rgba(244,210,140,.65)); }
.fre-atlas-landmark[data-type="town"] .fre-atlas-landmark-dot { width: 12px; height: 12px; background: #d59a4a; box-shadow: 0 0 0 7px rgba(213,154,74,.2); }
.fre-atlas-landmark[data-type="town"] b { border-color: rgba(213,154,74,.55); background: rgba(255,246,226,.96); }
.fre-atlas-landmark[data-type="hiking-end"] .fre-atlas-landmark-dot { background: #88a9be; }
.fre-atlas-landmark[data-type="navigation"] .fre-atlas-landmark-dot { background: #4bb7e5; }
.fre-atlas-landmark[data-type="vehicle"] .fre-atlas-landmark-dot { background: #a7afb4; }
.fre-atlas-landmark b { max-width: 140px; padding: 4px 7px; border: 1px solid rgba(23,36,50,.12); border-radius: 999px; background: rgba(250,252,251,.9); font-size: 8px; font-weight: 650; line-height: 1.2; text-align: center; white-space: nowrap; }

.fre-atlas-map-slot .maplibregl-ctrl-attrib { color: #334957 !important; font-size: 8px !important; }
.fre-atlas-map-slot .maplibregl-ctrl-bottom-right { right: 10px !important; bottom: 292px !important; }
.fre-atlas-map-slot .maplibregl-ctrl-top-left { top: 42px !important; left: 7px !important; }
.fre-atlas-map-slot .maplibregl-ctrl-top-left .maplibregl-ctrl { margin: 10px 0 0 10px !important; }
.fre-atlas-map-slot .maplibregl-ctrl-group { overflow: hidden; border-radius: 10px !important; box-shadow: 0 4px 14px rgba(7,19,28,.18) !important; }

.fre-atlas-map-slot:fullscreen,
.fre-atlas-map-slot.is-browser-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

@media (min-width: 981px) {
  .fre-atlas-map-slot.is-map-ready .fre-atlas-map-live { opacity: 1; }
  .fre-atlas-map-slot.is-map-ready .fre-atlas-map-fallback { opacity: 0; visibility: hidden; }
}

@media (max-width: 980px) {
  .fre-atlas-map-slot { min-height: 330px; }
  .fre-atlas-map-slot.is-mobile-expanded {
    position: fixed;
    z-index: 999999;
    inset: 0;
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }
  .fre-atlas-map-launch { display: inline-flex; }
  .fre-atlas-map-slot.is-mobile-expanded .fre-atlas-map-live,
  .fre-atlas-map-slot.is-mobile-expanded.is-map-ready .fre-atlas-map-live { opacity: 1; }
  .fre-atlas-map-slot.is-mobile-expanded.is-map-ready .fre-atlas-map-fallback { opacity: 0; visibility: hidden; }
  .fre-atlas-map-slot:not(.is-mobile-expanded) .fre-atlas-map-header,
  .fre-atlas-map-slot:not(.is-mobile-expanded) .fre-atlas-map-card,
  .fre-atlas-map-slot:not(.is-mobile-expanded) .fre-atlas-map-controls { opacity: 0; pointer-events: none; }
  .fre-atlas-map-slot:not(.is-mobile-expanded) .fre-atlas-view-tools,
  .fre-atlas-map-slot:not(.is-mobile-expanded) .fre-atlas-gesture-help { opacity: 0; pointer-events: none; }
  .fre-atlas-map-slot.is-mobile-expanded .fre-atlas-map-launch { display: none; }
  .fre-atlas-map-header { right: 80px; }
  .fre-atlas-map-notice { display: none; }
  .fre-atlas-map-card { right: 12px; bottom: 60px; left: 12px; padding: 13px; }
  .fre-atlas-map-card.is-collapsed { padding-right: 110px; }
  .fre-atlas-segment-title { font-size: 25px; }
  .fre-atlas-map-controls { right: 9px; bottom: 9px; left: 9px; }
  .fre-atlas-view-tools { top: 53px; left: 55px; }
  .fre-atlas-view-tools .fre-atlas-fullscreen { display: none; }
  .fre-atlas-gesture-help { top: 90px; left: 55px; }
  .fre-atlas-mode-legend { top: 125px; left: 55px; }
  .fre-atlas-map-slot .maplibregl-ctrl-bottom-right { bottom: 288px !important; }
}

@media (max-width: 700px) {
  .fre-atlas-map-slot { min-height: 285px; border-radius: 14px; }
  .fre-atlas-map-slot.is-mobile-expanded { min-height: 100svh; border-radius: 0; }
  .fre-atlas-map-eyebrow { display: none; }
  .fre-atlas-map-card { bottom: 53px; }
  .fre-atlas-technical-copy { font-size: 9px; line-height: 1.35; }
  .fre-atlas-conditions { margin-top: 7px; padding: 6px 7px; }
  .fre-atlas-conditions dd { font-size: 7px; }
  .fre-atlas-profile-header { margin-top: 8px; }
  .fre-atlas-profile-legend { display: none; }
  .fre-atlas-profile { min-height: 33px; }
  .fre-atlas-profile-step { height: 33px; padding: 3px 5px; }
  .fre-atlas-profile-bar { height: 10px; }
  .fre-atlas-profile-step[data-tone="attention"] .fre-atlas-profile-bar { height: 17px; }
  .fre-atlas-profile-step[data-tone="crux"] .fre-atlas-profile-bar { height: 24px; }
  .fre-atlas-run { min-height: 31px; margin-top: 7px; }
  .fre-atlas-map-controls button { min-height: 31px; padding: 7px 9px; font-size: 8px; }
  .fre-atlas-map-slot .maplibregl-ctrl-bottom-right { display: none; }
  .fre-atlas-map-error { top: 52px; right: 10px; left: 10px; padding: 11px; }
  .fre-atlas-map-error span { font-size: 9px; }
  .fre-atlas-landmark b { max-width: 112px; padding: 3px 6px; font-size: 7px; }
  .fre-atlas-mode-legend { gap: 4px; padding: 5px 7px; font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .fre-atlas-map-slot *,
  .fre-atlas-map-slot *::before,
  .fre-atlas-map-slot *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
