:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020f22;
  color: #f4fbff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 70% 12%, rgba(11, 140, 190, 0.18), transparent 36rem),
    radial-gradient(circle at 10% 90%, rgba(0, 189, 214, 0.08), transparent 30rem),
    #020f22;
}

button, a { font: inherit; }
button { cursor: pointer; }

.experience-shell {
  display: grid;
  grid-template-columns: minmax(245px, 0.37fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 4rem);
  min-height: 100vh;
  padding: clamp(1.4rem, 4vw, 4.5rem);
  align-items: center;
}

.intro { max-width: 27rem; }
.eyebrow {
  margin: 0 0 0.7rem;
  color: #32e6fa;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}
h1 span { color: #30dff7; }
h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  letter-spacing: -0.045em;
}
.intro-copy {
  max-width: 34ch;
  color: #bdcee1;
  font-size: 1.03rem;
  line-height: 1.62;
}

.map-facts {
  display: grid;
  gap: 0.7rem;
  margin: 2rem 0 1.2rem;
}
.map-facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(123, 212, 255, 0.16);
}
.map-facts dt { color: #7795ae; font-size: 0.78rem; }
.map-facts dd { margin: 0; color: #e5f7ff; font-size: 0.83rem; font-weight: 650; }
.phase-note {
  margin: 0;
  color: #8ca7bd;
  font-size: 0.76rem;
  line-height: 1.5;
}
.phase-note strong { color: #f9c84b; }

.map-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(90, 205, 255, 0.25);
  border-radius: 1.25rem;
  background: rgba(2, 20, 42, 0.84);
  box-shadow: 0 1.8rem 6rem rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.05);
}
.map-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1.1rem, 2.5vw, 2rem);
  align-items: center;
  border-bottom: 1px solid rgba(90, 205, 255, 0.16);
}
.map-header .eyebrow { margin-bottom: 0.35rem; font-size: 0.6rem; }
.selection-card {
  min-width: min(18rem, 46%);
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(72, 219, 255, 0.38);
  border-radius: 0.6rem;
  background: rgba(0, 69, 104, 0.35);
}
.selection-label { display: block; color: #98b7c9; font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; }
.selection-card strong { display: block; overflow: hidden; margin-top: 0.16rem; color: #fff; font-size: clamp(0.85rem, 1.5vw, 1.05rem); text-overflow: ellipsis; white-space: nowrap; }

.map-stage {
  position: relative;
  aspect-ratio: 1.315 / 1;
  min-height: 27rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(7, 137, 180, 0.32), transparent 48%),
    radial-gradient(ellipse at 20% 75%, rgba(0, 213, 231, 0.1), transparent 38%),
    #031b37;
}
#colombia-map { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; }
#colombia-map.is-dragging { cursor: grabbing; }
.ocean { fill: transparent; }
.map-viewport { filter: drop-shadow(0 0 13px rgba(0, 230, 255, 0.12)); }
.department {
  fill: url(#land-gradient);
  stroke: #36e4f7;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  outline: none;
  transition: fill 150ms ease, filter 150ms ease, stroke-width 150ms ease;
}
.department:hover, .department.is-hovered, .department:focus-visible {
  fill: #148ca1;
  stroke: #c8fbff;
  stroke-width: 2.2;
  filter: url(#map-glow);
}
.department.is-selected {
  fill: #e3b33c;
  stroke: #f9f0bd;
  stroke-width: 2.6;
  filter: url(#map-glow);
}
.department.is-selected.is-hovered { fill: #ffce52; }

.map-controls {
  position: absolute;
  right: 1rem;
  bottom: 2.9rem;
  display: grid;
  gap: 0.35rem;
}
.map-controls button {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(183, 243, 255, 0.65);
  border-radius: 0.56rem;
  background: rgba(2, 22, 48, 0.9);
  color: #ecfbff;
  font-size: 1.25rem;
  transition: background 150ms ease, transform 150ms ease;
}
.map-controls button:hover, .map-controls button:focus-visible { background: #08708d; transform: translateY(-1px); outline: 2px solid #f9cf55; outline-offset: 2px; }
.map-hint {
  position: absolute;
  bottom: 0.7rem;
  left: 1rem;
  right: 4.4rem;
  margin: 0;
  color: #8dafc4;
  font-size: 0.67rem;
}
.map-loading, .map-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.7rem;
  padding: 2rem;
  background: rgba(2, 15, 34, 0.88);
  color: #e7fbff;
  text-align: center;
  z-index: 2;
}
.map-error p { margin: 0; }
.text-button { border: 0; background: transparent; color: #33e8f9; text-decoration: underline; }

.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1.1rem, 2.5vw, 2rem);
  color: #8daac0;
  font-size: 0.7rem;
}
.map-footer p { margin: 0; }
.map-footer a { color: #59e5f7; text-underline-offset: 0.2em; }
.status-dot { display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.3rem; border-radius: 50%; background: #45e4f5; box-shadow: 0 0 0.5rem #45e4f5; }

@media (max-width: 900px) {
  .experience-shell { grid-template-columns: 1fr; align-items: start; }
  .intro { max-width: 42rem; }
  h1 { max-width: none; }
  .map-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-facts div { display: block; }
  .map-facts dd { margin-top: 0.25rem; }
}

@media (max-width: 560px) {
  .experience-shell { gap: 1.4rem; padding: 1rem; }
  .map-facts { grid-template-columns: 1fr; }
  .map-header { align-items: flex-start; flex-direction: column; }
  .selection-card { min-width: 100%; }
  .map-stage { min-height: 23rem; aspect-ratio: auto; }
  .map-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
