.dali-atlas {
  --atlas-tone: saturate(.77) sepia(.06);
  --atlas-route: #e52d25;
  --atlas-route-outline: #f9edd3;
  border-bottom: var(--rule);
}

.atlas-head > p {
  max-width: 380px;
  text-wrap: balance;
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(286px, .92fr);
  border: var(--rule);
  background: var(--surface);
}

.atlas-board {
  position: relative;
  min-width: 0;
  align-self: start;
  overflow: hidden;
  isolation: isolate;
  background: var(--stone);
}

.atlas-image {
  width: 100%;
  height: auto;
  filter: var(--atlas-tone);
}

.atlas-ink,
.atlas-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.atlas-pins,
.atlas-index {
  display: none;
}

.dali-atlas.is-interactive .atlas-pins {
  display: block;
}

.dali-atlas.is-interactive .atlas-index {
  display: grid;
}

.atlas-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  display: grid;
  width: 44px;
  height: clamp(26px, 3.5vw, 44px);
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  translate: -50% -50%;
  pointer-events: auto;
  touch-action: manipulation;
  --focus: var(--ivory);
}

.atlas-pin::before,
.atlas-pin::after {
  grid-area: 1 / 1;
  border-radius: 50%;
  content: "";
}

.atlas-pin::before {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--pine);
  opacity: 0;
  scale: .8;
  transition: opacity 300ms ease, scale 400ms var(--ease);
}

.atlas-pin::after {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ivory);
  background: var(--pine);
  box-shadow: 0 0 0 1px var(--pine);
  transition: background-color 240ms ease, scale 320ms var(--ease);
}

.atlas-pin:hover::before,
.atlas-pin[aria-pressed="true"]::before {
  opacity: .92;
  scale: 1;
}

.atlas-pin[aria-pressed="true"] {
  z-index: 1;
}

.atlas-pin[aria-pressed="true"]::after {
  background: var(--bronze);
  scale: 1.12;
}

.atlas-pin:focus-visible {
  z-index: 2;
  outline-offset: -2px;
}

.atlas-origin::after {
  display: none;
}

.atlas-origin::before {
  width: 29px;
  height: 29px;
}

.atlas-guide {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(23px, 3.6vw, 53px);
  border-left: var(--rule);
}

.atlas-detail {
  min-height: 286px;
}

.atlas-travel-mode {
  margin-bottom: 10px;
  color: var(--bronze);
  font-size: .79rem;
  font-weight: 600;
  letter-spacing: .11em;
}

.atlas-place-title {
  margin-bottom: 15px;
  font-size: clamp(1.95rem, 3.1vw, 2.8rem);
  line-height: 1.18;
}

.atlas-description,
.atlas-tip p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.85;
}

.atlas-tip {
  margin-top: 20px;
  padding-top: 14px;
  border-top: var(--rule);
}

.atlas-tip h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .075em;
}

.atlas-map-link {
  margin-top: 12px;
}

.atlas-index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--rule);
}

.atlas-index button {
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-bottom: var(--rule);
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  text-align: left;
  transition: color 250ms ease, background-color 250ms ease;
}

.atlas-index button[aria-pressed="true"],
.atlas-index button:hover {
  background: var(--stone);
  color: var(--pine);
}

.atlas-index button[aria-pressed="true"] {
  box-shadow: inset 2px 0 var(--pine);
}

.atlas-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 17px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.65;
}

.atlas-note a {
  text-decoration: underline;
  text-underline-offset: .24em;
}

@media (max-width: 900px) {
  .atlas-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-guide {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, .85fr);
    gap: clamp(22px, 5vw, 52px);
    border-top: var(--rule);
    border-left: 0;
  }

  .atlas-detail {
    min-height: 0;
  }

  .atlas-index {
    align-self: start;
  }
}

@media (max-width: 560px) {
  .atlas-head h2 {
    font-size: clamp(1.95rem, 8.6vw, 2.4rem);
  }

  .atlas-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .atlas-pin::after {
    width: 9px;
    height: 9px;
  }

  .atlas-pin::before,
  .atlas-origin::before {
    width: 20px;
    height: 20px;
  }

  .atlas-note p {
    flex-basis: 100%;
  }
}
