.experience-map-section {
  background: var(--pale);
}

.map-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  margin-bottom: 52px;
}

.map-intro h2 {
  max-width: 700px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.map-story {
  max-width: 650px;
  font-size: 1.12rem;
}

.map-story p:last-child {
  margin-bottom: 0;
  color: var(--green);
  font-family: Manrope, Arial, sans-serif;
  font-weight: 700;
}

.map-shell {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(66, 32, 62, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(66, 32, 62, 0.08);
}

.map-toolbar,
.map-legend,
.map-filters,
.work-countries {
  display: flex;
  align-items: center;
}

.map-toolbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.map-legend {
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--deep);
  font-size: 0.88rem;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: -1px;
}

.legend-work { background: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.legend-travel { background: var(--mauve); }

.map-filters {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--pale);
}

.map-filter {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
  font: 700 0.78rem Manrope, Arial, sans-serif;
}

.map-filter:hover,
.map-filter:focus-visible { background: var(--mint); outline: none; }
.map-filter.active { background: var(--green); color: #fff; }

.world-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.97 / 1;
  border-radius: 24px;
  background: #f7fbfa;
}

.world-map-art,
.map-points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-map-art {
  display: block;
  object-fit: fill;
  opacity: 0.94;
}

.map-point {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.map-point.work {
  z-index: 3;
}

.map-point::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--mauve);
  box-shadow: 0 2px 5px rgba(66, 32, 62, 0.28);
  transition: transform 150ms ease;
}

.map-point.work::before {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(220, 239, 232, 0.78), 0 2px 6px rgba(48, 116, 93, 0.34);
}

.map-point:hover,
.map-point:focus-visible,
.map-point.is-active {
  z-index: 5;
  outline: none;
}

.map-point:hover::before,
.map-point:focus-visible::before,
.map-point.is-active::before { transform: translate(-50%, -50%) scale(1.45); }

.map-point::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(50% + 10px);
  width: max-content;
  max-width: 170px;
  padding: 7px 9px;
  transform: translateX(-50%) translateY(4px);
  transform-origin: bottom center;
  border-radius: 7px;
  background: var(--deep);
  color: #fff;
  font: 600 0.72rem/1.2 Manrope, Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.map-point.edge-right::after {
  right: 50%;
  left: auto;
  transform: translateX(8px) translateY(4px);
}

.map-point.edge-right:hover::after,
.map-point.edge-right:focus-visible::after,
.map-point.edge-right.is-active::after { transform: translateX(8px) translateY(0); }

.map-point.edge-left::after {
  right: auto;
  left: 50%;
  transform: translateX(-8px) translateY(4px);
}

.map-point.edge-left:hover::after,
.map-point.edge-left:focus-visible::after,
.map-point.edge-left.is-active::after { transform: translateX(-8px) translateY(0); }

.map-point.edge-top::after {
  top: calc(50% + 10px);
  bottom: auto;
  transform-origin: top center;
}

.map-point:hover::after,
.map-point:focus-visible::after,
.map-point.is-active::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.world-map[data-filter="work"] .map-point.travel,
.world-map[data-filter="travel"] .map-point.work { opacity: 0.08; pointer-events: none; }

.world-map.has-point-focus .map-point:not(.is-active) { opacity: 0.1; }
.world-map.has-point-focus .map-point.is-active { opacity: 1; }

.travel-country.is-map-linked {
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(144, 110, 140, 0.13);
}

.work-countries {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.work-countries span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font: 700 0.78rem Manrope, Arial, sans-serif;
}

.travel-country-panel {
  max-height: 0;
  margin-top: 0;
  border-top: 1px solid transparent;
  opacity: 0;
  overflow: hidden;
  transition: max-height 260ms ease, margin-top 220ms ease, padding-top 220ms ease, border-color 220ms ease, opacity 180ms ease;
}

.map-shell.travel-list-open .travel-country-panel,
.map-shell.travel-list-preview .travel-country-panel {
  max-height: 900px;
  margin-top: 24px;
  padding-top: 22px;
  border-color: rgba(66, 32, 62, 0.12);
  opacity: 1;
}

.travel-country-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: var(--deep);
  font-family: Manrope, Arial, sans-serif;
}

.travel-country-heading strong { font-size: 0.92rem; }
.travel-country-heading span { color: var(--mauve); font-size: 0.76rem; }

.travel-country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.travel-country {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d9cad6;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  cursor: pointer;
  font: 600 0.74rem/1.2 Manrope, Arial, sans-serif;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.travel-country:hover,
.travel-country:focus-visible,
.travel-country.is-active {
  border-color: var(--mauve);
  background: var(--pale);
  color: var(--plum);
  outline: none;
}

.map-instruction {
  margin: 16px 0 0;
  color: var(--mauve);
  font-size: 0.78rem;
}

@media (max-width: 800px) {
  .map-intro { grid-template-columns: 1fr; }
  .map-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .experience-map-section { padding-inline: 14px; }
  .map-intro { padding-inline: 10px; }
  .map-intro h2 { font-size: 3rem; }
  .map-shell { padding: 14px; border-radius: 20px; }
  .world-map { border-radius: 16px; }
  .map-point { width: 24px; height: 24px; }
  .travel-country-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}
