.atlas-wrap {
  width: min(90%, 1300px);
  margin-inline: auto;
}
.stay-reasons,
.map-atlas {
  --map-ink: #1c4236;
  --map-rust: #93402d;
  --map-paper: #fff9eb;
  color: var(--map-ink);
  padding-block: clamp(3rem, 5.5vw, 6rem);
}
.atlas-kicker {
  font: 600 0.87rem/1.2 var(--label, sans-serif);
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: #704333;
  margin: 0 0 0.6rem;
}
.map-atlas h2,
.stay-reasons h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: 1.04;
  margin: 0;
}
.map-atlas h2 em,
.stay-reasons h2 em {
  color: var(--map-rust);
}
.stay-reasons {
  background: #f2ead8;
}
.reasons-head {
  margin-bottom: 1.6rem;
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: start;
}
.reason-card {
  background: var(--map-paper);
  border: 1px solid #c5bda9;
  overflow: hidden;
  border-radius: 3px;
}
.reason-photos {
  display: flex;
  width: 100%;
  height: clamp(125px, 13vw, 190px);
  overflow: hidden;
}
.reason-shot {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  flex: 1 1 0;
  min-width: 0;
}
.reason-shot:focus-visible {outline-offset: -4px}
.reason-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reason-companion, .reason-pagination { display: none }
.reason-content {
  padding: clamp(1.05rem, 2vw, 1.7rem);
}
.reason-content h3,
.atlas-cards h3 {
  font: 500 clamp(1.65rem, 2.5vw, 2.5rem) / 1.05 var(--serif, Georgia, serif);
  margin: 0.25rem 0 0.8rem;
}
.reason-content p:not(.atlas-kicker),
.atlas-info article > p:not(.atlas-kicker) {
  line-height: 1.52;
  margin: 0.65rem 0 1rem;
}
.reason-content details {
  padding: 0.75rem 0;
  border-block: 1px solid #d1c9b4;
}
.reason-content summary,
.reason-content > a,
.atlas-links a {
  cursor: pointer;
  color: var(--map-ink);
  font-weight: 650;
}
.reason-content > a {
  display: inline-block;
  margin-top: 1rem;
  text-underline-offset: 4px;
}
.reason-content details p:last-child {
  margin-bottom: 0;
}
.map-atlas {
  background: #fcf8ec;
}
.atlas-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}
.atlas-head > p {
  max-width: 29rem;
  margin: 0;
  line-height: 1.55;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  border: 1px solid #a8a88d;
  background: #fff9eb;
}
.atlas-figure {
  min-width: 0;
  margin: 0;
  background: #e8e1c8;
  display: flex;
  flex-direction: column;
}
.atlas-viewport {
  width: 100%;
  height: clamp(345px, 32vw, 480px);
  min-height: 0;
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  isolation: isolate;
  cursor: grab;
}
.atlas-viewport.exploring {
  touch-action: none;
}
.atlas-viewport.dragging {
  cursor: grabbing;
}
.atlas-world {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
}
.atlas-world > img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.atlas-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  height: 45px;
  width: 45px;
  align-items: center;
  justify-content: center;
  display: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff8e0;
  z-index: 2;
  cursor: pointer;
}
.atlas-ready .atlas-pin {
  display: flex;
}
.atlas-pin span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #265749;
  border-radius: 50%;
  border: 2px solid #fff9e7;
  outline: 1px solid #234a39;
  box-shadow: 0 2px 3px #263f2e54;
}
.atlas-pin svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.atlas-pin.pin-suite span {
  background: #8d3527;
  border-radius: 8px 8px 12px 12px;
}
.atlas-pin[aria-pressed="true"] {
  z-index: 3;
}
.atlas-pin[aria-pressed="true"] span {
  outline: 3px solid #863423;
  outline-offset: 2px;
  background: #893f2d;
}
.atlas-leader {
  position: absolute;
  transform-origin: 0 50%;
  height: 2px;
  pointer-events: none;
  background: #315948;
}
.atlas-leader:before {
  content: "";
  position: absolute;
  left: -3px;
  top: -2px;
  background: #fff9e4;
  width: 6px;
  height: 6px;
  border: 2px solid #265749;
  border-radius: 50%;
}
.atlas-compass {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  justify-items: center;
  background: #fffaecd9;
  border-radius: 30px;
  padding: 7px 10px;
  color: #254838;
  pointer-events: none;
  font: 700 0.75rem/1 var(--sans, sans-serif);
}
.atlas-compass i {
  display: block;
  width: 9px;
  height: 15px;
  background: linear-gradient(90deg, #244c3b 50%, #8c9d82 50%);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  margin-top: 3px;
}
.atlas-tools {
  display: none;
  gap: 2px;
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  padding: 3px;
  background: #fff9e9;
  border: 1px solid #999d83;
  border-radius: 5px;
  box-shadow: 0 2px 5px #232e2026;
}
.atlas-ready .atlas-tools {
  display: flex;
}
.atlas-tools button {
  background: transparent;
  border: 0;
  padding: 0 0.65rem;
  min-width: 40px;
  height: 40px;
  color: #1c4236;
  cursor: pointer;
  font: 650 0.9rem var(--sans, sans-serif);
}
.atlas-tools [data-zoom] {
  font-size: 1.4rem;
}
.atlas-tools button:disabled {
  opacity: 0.42;
}
.atlas-tools [data-move] {
  display: none;
}
.atlas-tools button[aria-pressed="true"] {
  background: #234b3c;
  color: white;
}
.atlas-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  background: #e9e3cf;
  border-top: 1px solid #aaa994;
}
.atlas-figure figcaption > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.atlas-figure figcaption i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8d3527;
}
.atlas-figure a,
.atlas-note a {
  color: inherit;
  text-underline-offset: 2px;
}
.atlas-info {
  min-width: 0;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  border-left: 1px solid #abae94;
}
.atlas-nav {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.atlas-ready .atlas-nav {
  display: flex;
}
.atlas-nav button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  color: #244a3c;
  background: #fffaf0;
  border: 1px solid #aaa991;
  border-radius: 3px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font: 600 0.88rem var(--sans, sans-serif);
}
.atlas-nav button svg {
  width: 17px;
  height: 17px;
}
.atlas-nav button[aria-pressed="true"] {
  background: #234b3c;
  color: #fffbe9;
  border-color: #234b3c;
}
.atlas-cards article {
  margin: 0;
}
.atlas-cards article[hidden] {
  display: none;
}
.atlas-links {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.atlas-links a {
  text-underline-offset: 4px;
  font-size: 0.92rem;
}
.atlas-links .atlas-route {
  background: #244b3e;
  color: white;
  border-radius: 3px;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
}
.atlas-note {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5246;
  margin-top: 0.8rem;
  max-width: 72rem;
}
.map-atlas :focus-visible,
.stay-reasons :focus-visible {
  outline: 3px solid #973c23;
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .atlas-tools [data-move] {
    display: block;
  }
}
@media (max-width: 800px) {
  .atlas-layout {
    grid-template-columns: 1fr;
  }
  .atlas-info {
    border-left: 0;
    border-top: 1px solid #abae94;
  }
  .atlas-viewport {
    height: clamp(245px, 58vw, 385px);
  }
  .atlas-head {
    display: block;
  }
  .atlas-head > p {
    margin-top: 0.8rem;
  }
  .reason-grid {
    gap: 0.7rem;
  }
  .reason-content {
    padding: 0.8rem;
  }
  .atlas-nav {
    margin-bottom: 0.9rem;
  }
}
@media (max-width: 650px) {
  .reason-grid {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #9c8c70 transparent;
  }
  .reason-card {
    flex: 0 0 84%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .reason-card:last-child { scroll-snap-align: end; }
  .reason-photos {
    height: auto;
    aspect-ratio: 3 / 2;
    gap: 2px;
    background: var(--map-paper);
  }
  .reason-companion { display: block; }
  .reason-pagination:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .reason-pagination button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .reason-pagination span {
    background: #8c826f;
    width: 7px;
    height: 7px;
    border-radius: 99px;
  }
  .reason-pagination [aria-pressed="true"] span {
    width: 25px;
    background: #36503e;
  }
  .reason-content {
    padding: 1rem;
  }
  .reason-content h3 {
    font-size: 1.65rem;
  }
  .reason-content .atlas-kicker {
    font-size: 0.78rem;
  }
  .reason-content p:not(.atlas-kicker) {
    font-size: 0.95rem;
  }
  .atlas-figure figcaption {
    font-size: 0.77rem;
  }
  .atlas-wrap {
    width: 92%;
  }
  .atlas-info {
    padding: 1rem;
  }
  .atlas-tools {
    bottom: 7px;
    right: 7px;
  }
  .atlas-tools button {
    min-width: 35px;
    padding: 0 0.46rem;
  }
  .atlas-note {
    font-size: 0.85rem;
  }
}
.reasons-head,
.atlas-head {
  background: transparent;
  border: 0;
  z-index: auto;
}
@media (max-width: 800px) {
  .atlas-tools [data-move] {
    display: block;
  }
}
