.elf-destination-map {
  --map-ink: #1e3c54;
  --map-blue: #215980;
  --map-border: #d7e4ed;
  --map-water: #edf5fa;
  margin-block: 2rem;
  color: var(--map-ink);
  background: #fff;
  border: 1px solid var(--map-border);
  border-radius: 1rem;
}

body.elf-site-refresh main#main-content .elf-destination-map {
  padding-inline: clamp(.85rem, 2.5vw, 2rem) !important;
}

.elf-destination-map > h2 {
  margin: 0 0 .45rem;
}

.elf-destination-map > p {
  margin-bottom: 1.25rem;
}

.elf-destination-map-layout {
  display: grid;
  align-items: start;
  gap: 1rem;
}

.elf-destination-map-layout-france {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.elf-destination-map-layout-world {
  grid-template-columns: minmax(0, 2.2fr) minmax(15rem, 1fr);
}

.elf-destination-map-stage {
  margin: 0;
  background: var(--map-water);
  border: 1px solid var(--map-border);
  border-radius: .75rem;
}

.elf-destination-map-stage > figcaption {
  margin: 0;
  padding: .45rem .75rem;
  color: #405c71;
  border: 0;
  font-size: .75rem;
  text-align: right;
}

.elf-destination-map-france {
  display: block;
  width: 100%;
  max-width: 31rem;
  height: auto;
  margin-inline: auto;
}

.elf-destination-map-france path {
  fill: #d8e5ee;
  fill-rule: evenodd;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.elf-destination-map-france a path {
  fill: #b8d5e8;
}

.elf-destination-map-france a:nth-of-type(even) path {
  fill: #c9e0ef;
}

.elf-destination-map-france a:is(:hover, :focus-visible) path {
  fill: var(--map-blue);
  stroke: var(--map-ink);
}

.elf-destination-map-france text {
  fill: #173951;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

.elf-destination-map-france a:is(:hover, :focus-visible) text {
  fill: #fff;
}

.elf-destination-map-world {
  position: relative;
  aspect-ratio: 5 / 2;
}

.elf-destination-map-world > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem .75rem 0 0;
}

.elf-destination-map-marker {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  padding: 0;
  color: var(--map-ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.elf-destination-map-marker::before {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: auto;
  content: "";
  background: var(--map-blue);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--map-blue);
}

.elf-destination-map-marker:is(:hover, :focus-visible, [aria-pressed="true"]) {
  z-index: 1;
}

.elf-destination-map-marker:is(:hover, :focus-visible, [aria-pressed="true"])::before {
  background: #9a3d16;
  box-shadow: 0 0 0 2px #9a3d16;
}

.elf-destination-map-marker-label {
  position: absolute;
  top: 50%;
  left: calc(50% + .7rem);
  width: max-content;
  max-width: 9rem;
  transform: translateY(-50%);
  padding: .25rem .5rem;
  background: #fff;
  border: 1px solid var(--map-border);
  border-radius: .35rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.elf-destination-map-marker[data-map-zone="afrique-ouest"] .elf-destination-map-marker-label {
  right: calc(50% + .7rem);
  left: auto;
}

.elf-destination-map-marker[aria-pressed="true"] .elf-destination-map-marker-label {
  color: #fff;
  background: var(--map-blue);
  border-color: var(--map-blue);
}

.elf-destination-map-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--map-border);
  border-radius: .75rem;
}

.elf-destination-map-panel :is(h3, h4) {
  margin: 0 0 .5rem;
  font-size: 1.125rem;
}

.elf-destination-map-panel h4 {
  margin-top: .75rem;
  font-size: .95rem;
}

.elf-destination-map-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.elf-destination-map-links li + li {
  border-top: 1px solid var(--map-border);
}

.elf-destination-map-links a {
  display: block;
  padding: .42rem .35rem;
  color: var(--map-blue);
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.elf-destination-map-links a:is(:hover, :focus-visible) {
  background: var(--map-water);
}

.elf-destination-map-picker {
  margin-bottom: .9rem;
}

.elf-destination-map-picker label {
  display: block;
  margin-bottom: .3rem;
  font-weight: 700;
}

.elf-destination-map-zone + .elf-destination-map-zone:not([hidden]) {
  margin-top: 1rem;
}

.elf-destination-map-zone[hidden] + .elf-destination-map-zone {
  margin-top: 0;
}

.elf-destination-map-zone details {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--map-border);
}

.elf-destination-map-zone summary {
  color: var(--map-blue);
  font-weight: 700;
  cursor: pointer;
}

.elf-destination-map :is(a, button, select, summary):focus-visible {
  outline: 2px solid var(--map-blue);
  outline-offset: 2px;
}

.elf-destination-map-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 767px) {
  .elf-destination-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .elf-destination-map-marker-label {
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-width: 375px) {
  .elf-destination-map-marker {
    width: 1.75rem;
    height: 1.75rem;
  }
}
