:root {
  --ivory: #f9f7ef;
  --ink: #203b39;
  --deep: #1a413f;
  --tide: #386460;
  --rust: #914b33;
  --line: #ccd0c2;
  --muted: #505f57;
  --gutter: clamp(1.15rem, 4vw, 4.6rem);
}
.destinos-home { background: var(--ivory); color: var(--ink); }
.shell { width: min(94rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.portal-header { border-bottom: 1px solid var(--line); }
.topbar, .topbar nav, .portal-brand { display: flex; align-items: center; }
.topbar { min-height: 4.35rem; justify-content: space-between; gap: .7rem; }
.portal-brand { gap: .55rem; flex-shrink: 0; text-decoration: none; }
.portal-brand > img { width: 2.25rem; height: 2.25rem; }
.portal-brand > span { display: grid; gap: .22rem; }
.portal-brand strong { font: 400 2.15rem/.8 var(--display); letter-spacing: -.045em; }
.portal-brand b { color: var(--rust); font-weight: 400; }
.portal-brand small { font: 700 .56rem/1 var(--body); letter-spacing: .095em; text-transform: uppercase; white-space: nowrap; }
.topbar nav { gap: clamp(1.1rem, 2.5vw, 2.65rem); }
.topbar nav a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: inherit; font: 600 .87rem/1.25 var(--body); text-decoration: none; white-space: nowrap; }
.topbar nav .top-map { text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: .38rem; }
.topbar nav a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: .38rem; }
.topbar nav .top-chat { padding-inline: 1.1rem; border: 1px solid #8c9b8e; border-radius: 3rem; }
.topbar nav .top-chat:hover { background: var(--deep); border-color: var(--deep); color: var(--ivory); text-decoration: none; }

.atlas-route[data-travessia] > .atlas-stage { position: sticky; top: 0; }
.atlas-route[data-travessia]::after { content: ""; display: block; height: var(--percurso-inicial, 0px); }
.atlas-route[data-travessia] .reservation { scroll-margin-top: calc(0px - var(--percurso-restante, var(--percurso-inicial))); }
.atlas-route[data-travessia] .atlas-figure { scroll-margin-top: calc(.75rem - var(--percurso-restante, var(--percurso-inicial))); }
.atlas {
  display: grid;
  grid-template-columns: minmax(13.8rem, .34fr) minmax(0, 1fr);
  grid-template-rows: min-content 1fr;
  grid-template-areas: "intro scene" "directory scene";
  column-gap: clamp(1.6rem, 3.9vw, 4.5rem);
  align-items: start;
  padding-block: clamp(1.6rem, 4vh, 3.35rem) clamp(1.75rem, 5vw, 4.8rem);
  scroll-margin-top: 5rem;
}
.atlas-heading { grid-area: intro; padding-top: clamp(.3rem, 1.6vw, 1.85rem); }
.place-line, .small-label { font: 730 .68rem/1.35 var(--body); text-transform: uppercase; letter-spacing: .145em; }
.place-line { display: flex; align-items: center; gap: .52rem; color: var(--rust); }
.location-dot { width: .53rem; height: .53rem; border: 1px solid var(--rust); border-radius: 50%; background: var(--rust); box-shadow: inset 0 0 0 1px var(--ivory); }
.atlas-heading h1, .reservation h2, .portal-footer h2 { font-family: var(--display); font-weight: 400; }
.atlas-heading h1 { margin: clamp(.72rem, 1.2vw, 1.25rem) 0 clamp(.9rem, 1.55vw, 1.55rem); font-size: clamp(4.45rem, 6.75vw, 7.7rem); line-height: .87; letter-spacing: -.055em; }
.atlas[data-camera-ativa] .atlas-heading h1 { transform-origin: left center; transform: translateY(calc(-.11em * var(--atlas-progresso, 0))) scale(calc(1 - .06 * var(--atlas-progresso, 0))); }
.atlas-heading h1 em { display: block; white-space: nowrap; color: var(--tide); font-weight: 400; }
.atlas-intro { max-width: 21em; color: var(--muted); font-size: clamp(.9rem, 1.13vw, 1.12rem); line-height: 1.5; text-wrap: pretty; }

.atlas-figure { grid-area: scene; min-width: 0; scroll-margin-top: .75rem; }
.atlas-window { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate; background: #bbac8e; }
.atlas-plane, .atlas-camera, .atlas-camera picture, .atlas-camera img { display: block; width: 100%; height: 100%; }
.atlas-plane, .atlas-camera { position: relative; }
.atlas-camera {
  transform-origin: 53% 43%;
  transform: translate3d(var(--camera-x, 0%), var(--camera-y, 0%), 0) rotate(var(--camera-angle, 0deg)) scale(var(--camera-scale, 1));
}
.atlas-camera img { object-fit: fill; }
.atlas-figure figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .32rem 1.3rem; padding-block: .72rem .15rem; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.camera-cue { display: none; align-items: baseline; gap: .46rem; color: var(--deep); font-weight: 680; }
.camera-cue > span { color: var(--rust); font-size: .95rem; line-height: 1; }
.camera-meter { align-self: center; position: relative; width: 2rem; height: 2px; background: var(--line); }
.camera-meter::after { content: ""; position: absolute; inset: 0; background: var(--tide); transform-origin: left; transform: scaleX(var(--atlas-progresso, 0)); }
.atlas[data-camera-ativa] .camera-cue { display: inline-flex; }

.atlas-pin {
  --pin-ink: #3b4838;
  --pin-fill: #fcf6e8;
  --pin-accent: #8c4b32;
  --label-offset: .68rem;
  position: absolute;
  z-index: 1;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  color: var(--pin-ink);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pin-stay { --pin-ink: #fffbeb; --pin-fill: #204d47; --pin-accent: #204d47; z-index: 2; }
.pin-stem, .pin-origin, .pin-label { position: absolute; }
.pin-stem { left: 50%; top: 50%; width: calc(var(--label-offset) * 1.65); height: 2px; transform-origin: 0 50%; transform: rotate(-45deg); background: var(--pin-accent); }
.pin-mountain .pin-stem { transform: rotate(-135deg); }
.pin-stay .pin-stem { width: 1rem; transform: rotate(90deg); }
.pin-origin { z-index: 1; left: 50%; top: 50%; width: .8rem; height: .8rem; transform: translate(-50%, -50%); border: 2px solid #fff9eb; border-radius: 50%; background: var(--pin-accent); box-shadow: 0 0 0 1px var(--pin-accent), 0 2px 3px #3d321c45; }
.pin-label { left: calc(50% + var(--label-offset)); bottom: calc(50% + var(--label-offset)); padding: .27rem .62rem .29rem; border: 1px solid #6e604b78; border-radius: 2px; background: var(--pin-fill); box-shadow: 0 2px 4px #382d2140; color: var(--pin-ink); font: 690 clamp(.77rem, 1.04vw, 1.02rem)/1.2 var(--body); white-space: nowrap; }
.pin-mountain .pin-label { left: auto; right: calc(50% + var(--label-offset)); }
.pin-stay .pin-label { top: calc(50% + .72rem); bottom: auto; left: 50%; transform: translateX(-50%); border-color: #163b35; }
.atlas-pin:is(:focus-visible, :hover, .is-lit) { z-index: 3; outline: none; }
.atlas-pin:is(:focus-visible, :hover, .is-lit) .pin-label { outline: 2px solid var(--pin-accent); outline-offset: 2px; }
.atlas-pin:is(:focus-visible, :hover, .is-lit) .pin-origin { box-shadow: 0 0 0 2px var(--pin-accent), 0 0 0 5px #fffbebbd; }

.atlas-directory { grid-area: directory; margin-top: clamp(1.3rem, 2.65vw, 3.15rem); border-top: 1px solid #9fac9e; }
.directory-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(.55rem, .95vw, 1rem); align-items: center; min-height: 3.85rem; padding-block: clamp(.58rem, .82vw, .9rem); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.directory-image { display: block; width: clamp(2.7rem, 4.1vw, 4.35rem); aspect-ratio: 1.14; overflow: hidden; background: #c4cbbb; }
.directory-image img { width: 100%; height: 100%; object-fit: cover; }
.directory-entry[data-destino="duplex-ipanema"] img { object-position: 47% 59%; }
.directory-entry[data-destino="botafogo"] img { object-position: 58% 55%; }
.directory-entry[data-destino="vista-cristo"] img { object-position: 48% 24%; }
.entry-copy { min-width: 0; }
.entry-copy strong { display: block; font: 400 clamp(1.65rem, 2.42vw, 2.85rem)/1 var(--display); letter-spacing: -.034em; }
.entry-copy small { display: flex; align-items: center; gap: .32rem; margin-top: .2rem; color: var(--muted); font: 560 clamp(.7rem, .85vw, .85rem)/1.3 var(--body); }
.entry-copy i { width: .4rem; height: .4rem; background: #38755d; border-radius: 50%; }
.entry-arrow { margin-right: .1rem; color: var(--tide); font-size: 1.1rem; }
.directory-entry:is(:focus-visible, :hover, .is-lit) .entry-copy strong { color: var(--rust); }
.directory-entry:is(:focus-visible, :hover, .is-lit) .entry-arrow { color: var(--rust); }

.reservation { background: #eaf0e7; border-block: 1px solid #d1dbcf; }
.reservation-band { display: grid; grid-template-columns: minmax(7.5rem, .57fr) minmax(0, 1.3fr) minmax(11rem, .78fr); align-items: center; gap: clamp(1.7rem, 4.6vw, 5.5rem); padding-block: clamp(3rem, 5.7vw, 5.6rem); }
.stay-photo { overflow: hidden; width: 100%; max-width: 17rem; aspect-ratio: .94; background: #ded7c6; }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.small-label { color: var(--rust); margin-bottom: .65rem; }
.reservation h2, .portal-footer h2 { font-size: clamp(3.2rem, 4.75vw, 5.7rem); line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.reservation h2 em { color: var(--tide); font-weight: 400; }
.stay-copy > p:not(.small-label) { margin-top: .8rem; max-width: 31rem; color: #41564c; line-height: 1.5; }
.stay-cta, .stay-address { display: flex; width: fit-content; align-items: center; gap: .55rem; min-height: 44px; color: var(--ink); text-underline-offset: .2em; }
.stay-cta { margin-top: .65rem; font-size: .95rem; font-weight: 720; }
.stay-address { color: var(--muted); font-size: .8rem; }
.stay-cta:hover, .stay-address:hover, .channel-box a:hover { color: var(--rust); }
.channel-box { border-left: 1px solid #b8c7b9; padding-left: clamp(1.3rem, 3vw, 3.1rem); }
.channel-box p { margin-bottom: .44rem; color: var(--muted); font-size: .86rem; }
.channel-box a { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 44px; border-bottom: 1px solid #b8c7b9; font-weight: 680; font-size: 1.08rem; text-decoration: none; }
.channel-box .lead-link { width: fit-content; margin-top: .33rem; border: 0; font-weight: 540; font-size: .83rem; text-decoration: underline; text-underline-offset: .2em; }

.portal-footer { background: var(--deep); color: #f9f8ef; }
.footer-main { display: grid; grid-template-columns: 1fr minmax(15rem, .77fr); gap: 3rem; align-items: start; padding-block: clamp(2.8rem, 6.1vw, 6.3rem); }
.portal-footer .small-label { color: #edb99d; }
.portal-footer h2 em { color: #c5d5b7; font-weight: 400; }
.footer-main address { margin: 0; display: grid; gap: .1rem; }
.footer-main address a { display: flex; min-height: 44px; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid #67807c; color: inherit; text-decoration: none; }
.footer-main address small { color: #c5d3c7; font: 500 .8rem/1.4 var(--body); }
.footer-main address strong { font: 570 .9rem/1.4 var(--body); overflow-wrap: anywhere; }
.portal-footer .imprint { align-items: start; gap: .35rem 1.25rem; padding-block: 1rem; border-top: 1px solid #607c73; color: #d3ded4; font: 480 .77rem/1.5 var(--body); }
.portal-footer .imprint > span { padding-block: .65rem; }
.imprint details { max-width: 36rem; }
.imprint summary { padding-block: .62rem; min-height: 44px; }
.imprint details p { padding-bottom: 1rem; }
.imprint a { color: inherit; }
.portal-footer .motion-toggle { padding: .56rem 0; }

@media (max-width: 54rem) {
  .atlas { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "intro" "scene" "directory"; padding-block: 1.65rem 2.25rem; }
  .atlas-heading { padding-top: 0; margin-bottom: 1.1rem; }
  .atlas-heading h1 { margin: .43rem 0 .4rem; font-size: clamp(3.15rem, 7.9vw, 5.8rem); line-height: .98; }
  .atlas-heading h1 em { display: inline; margin-left: .055em; }
  .atlas-intro { max-width: none; font-size: .95rem; }
  .atlas-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; border-bottom: 1px solid var(--line); }
  .directory-entry { border: 0; min-height: 4.2rem; padding: .65rem .8rem; }
  .directory-entry:first-child { padding-left: 0; }
  .directory-entry:last-child { padding-right: 0; }
  .directory-entry + .directory-entry { border-left: 1px solid var(--line); }
  .directory-image { width: 2.7rem; }
  .entry-copy strong { font-size: clamp(1.5rem, 3.4vw, 2rem); }
  .entry-copy small { font-size: .7rem; }
  .reservation-band { gap: 1.55rem; grid-template-columns: minmax(6rem, .55fr) minmax(0, 1.4fr) minmax(8.5rem, .86fr); }
}
@media (max-width: 42rem) {
  :root { --gutter: clamp(1.05rem, 4.6vw, 1.75rem); }
  .topbar { min-height: 3.65rem; }
  .topbar nav { gap: clamp(.85rem, 4vw, 1.5rem); }
  .topbar nav a { font-size: .8rem; }
  .topbar nav .top-contact, .topbar nav .top-map { display: none; }
  .topbar nav .top-chat { gap: .3rem; padding-inline: .8rem; }
  .portal-brand > img { width: 1.9rem; height: 1.9rem; }
  .portal-brand strong { font-size: 1.86rem; }
  .portal-brand small { font-size: .5rem; }
  .atlas { padding-block: 1.35rem 1.8rem; }
  .atlas-heading { margin-bottom: .96rem; }
  .place-line, .small-label { font-size: .63rem; }
  .atlas-heading h1 { font-size: clamp(3.14rem, 10.8vw, 4.55rem); }
  .atlas-intro { font-size: .87rem; line-height: 1.4; }
  .atlas-figure { margin-inline: calc(0rem - var(--gutter)); }
  .atlas-figure figcaption { margin-inline: var(--gutter); padding-block: .58rem .08rem; gap: .24rem .78rem; font-size: .7rem; }
  .atlas-pin { --label-offset: .57rem; }
  .pin-label { padding: .22rem .44rem .24rem; font-size: .79rem; }
  .pin-origin { width: .65rem; height: .65rem; }
  .atlas-directory { display: block; margin-top: .77rem; border-bottom: 0; }
  .directory-entry, .directory-entry:first-child, .directory-entry:last-child { min-height: 3.34rem; padding: .4rem .15rem .4rem 0; gap: .75rem; border: 0; border-bottom: 1px solid var(--line); }
  .directory-image { width: 2.65rem; aspect-ratio: 1.22; }
  .entry-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem .5rem; }
  .entry-copy strong { font-size: 1.62rem; }
  .entry-copy small { margin: 0; font-size: .72rem; }
  .entry-arrow { font-size: 1rem; }
  .reservation-band { grid-template-columns: minmax(4.7rem, .55fr) minmax(0, 1.28fr); align-items: start; gap: 1.14rem; padding-block: 2.2rem; }
  .stay-photo { aspect-ratio: .67; }
  .reservation h2, .portal-footer h2 { font-size: clamp(2.6rem, 7.75vw, 3.85rem); }
  .small-label { margin-bottom: .4rem; }
  .stay-copy > p:not(.small-label) { margin-top: .52rem; font-size: .85rem; }
  .stay-cta { margin-top: .24rem; font-size: .8rem; }
  .stay-address { min-height: 36px; font-size: .72rem; }
  .channel-box { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.05rem; border: 0; border-top: 1px solid #b8c7b9; padding: .8rem 0 0; }
  .channel-box p { flex: 1 0 100%; margin: 0; font-size: .78rem; }
  .channel-box a { border: 0; gap: .25rem; font-size: .91rem; }
  .channel-box .lead-link { margin: 0; font-size: .77rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.1rem; padding-block: 2.4rem; }
  .footer-main address strong { font-size: .84rem; }
}
@media (max-width: 22rem) {
  .topbar nav .top-stay { display: none; }
  .atlas-intro { font-size: .82rem; }
  .atlas-figure figcaption { row-gap: .12rem; }
  .entry-copy { column-gap: .35rem; }
  .entry-copy strong { font-size: 1.41rem; }
  .entry-copy small { font-size: .66rem; }
  .channel-box { column-gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .atlas-camera { transform: none; }
  :root:not([data-motion="full"]) .atlas[data-camera-ativa] .camera-cue { display: none; }
}
:root[data-motion="reduced"] .atlas-camera { transform: none; }
:root[data-motion="reduced"] .atlas .camera-cue { display: none; }

