.tour-to-map {width:100%;max-width:1950px;margin:auto auto 0;display:flex;justify-content:flex-end;padding:0 0 clamp(26px,3.4vw,66px)}
.tour-to-map a {display:inline-flex;align-items:center;gap:13px;min-height:44px;font-size:.9rem}
.tour-to-map a:hover {text-decoration:underline;text-underline-offset:4px}
main {--day-water-depth:clamp(255px,46svh,520px)}
.atlas {--sea:var(--island-sea);--map-type:#f3f0df;--sea-feather:clamp(54px,9svh,100px);--sea-overlap:var(--sea-feather);position:relative;z-index:2;isolation:isolate;background:var(--sea);color:var(--map-type);overflow-anchor:none}
.atlas:focus {outline:0}
.atlas [hidden] {display:none!important}
.atlas-stage {position:relative;min-height:580px;height:min(100svh,1080px);overflow:hidden}
.atlas-intro {position:absolute;z-index:3;inset:clamp(97px,14svh,170px) auto auto var(--gutter);width:min(26vw,390px);pointer-events:none}
.atlas-intro h2 {max-width:9ch;margin:0 0 .22em -.045em;font:500 clamp(3.15rem,5.65vw,7.1rem)/.94 var(--serif);letter-spacing:-.058em}
.atlas-intro p {max-width:28ch;font-size:clamp(.91rem,1.02vw,1.12rem);line-height:1.52;color:#d9e1d9;text-wrap:pretty}
.atlas-field {position:absolute;inset:0;overflow:hidden}
.atlas-poster,.atlas-poster img,.atlas-surface,.atlas-labels {position:absolute;inset:0;width:100%;height:100%}
.atlas-poster img {object-fit:contain;background:var(--sea)}
.atlas-surface,.atlas-labels {visibility:hidden}
.atlas.is-live .atlas-surface,.atlas.is-live .atlas-labels {visibility:visible}
.atlas.is-live .atlas-poster {visibility:hidden}
.atlas-surface {cursor:grab;touch-action:pan-y pinch-zoom}
.atlas-surface:active {cursor:grabbing}
.atlas-surface:focus-visible {outline-offset:-4px}
.atlas-labels {z-index:2;pointer-events:none}
.atlas-island-label,.atlas-marker {position:absolute;left:0;top:0;will-change:transform}
.atlas-island-label {font:500 clamp(1.55rem,2.35vw,2.8rem)/1 var(--serif);letter-spacing:-.035em;color:#fff9e8;text-shadow:0 1px 3px #24392f,0 1px 13px #1d2b2b,0 0 16px #23332a}
.atlas-marker {pointer-events:auto;inline-size:44px;block-size:44px;margin:-22px;display:grid;place-items:center;color:#fff9e7;outline-offset:4px}
.atlas-point {width:12px;height:12px;border:2px solid #fff8dc;background:#bf8a42;border-radius:50%;box-shadow:0 0 0 6px rgb(242 214 157/.21),0 2px 6px #223537}
.atlas-callout {position:absolute;bottom:calc(50% + 32px);left:calc(50% + 16px);display:grid;gap:0;text-align:left;white-space:nowrap}
.atlas-callout::before {content:"";position:absolute;top:100%;left:0;width:1px;height:35px;transform:rotate(27deg);transform-origin:top;background:#f7e5be;box-shadow:0 0 2px #364036}
.atlas-callout>span {align-self:start;justify-self:start;display:inline-block;font:500 clamp(1.22rem,1.8vw,2.2rem)/1.2 var(--serif);letter-spacing:-.027em;text-shadow:0 1px 3px #182e30,0 1px 10px #162d31}
.atlas-callout i {font:400 .65em/1 Aktiv,sans-serif;vertical-align:middle}
.atlas-callout img {display:none}
.atlas[data-view="villa"] .atlas-callout {bottom:calc(50% + 38px);left:calc(50% + 19px)}
.atlas[data-view="villa"] .atlas-callout::before {height:43px}
.atlas[data-view="villa"] .atlas-callout img[src] {display:block;width:clamp(78px,7.5vw,120px);height:auto;aspect-ratio:1.65;object-fit:cover;object-position:center 48%;border:1px solid #eee6d2;margin-bottom:5px;box-shadow:0 3px 14px rgb(22 38 40/.3)}
.atlas-marker:hover .atlas-callout>span,.atlas-marker:focus-visible .atlas-callout>span {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.atlas-controls {position:absolute;z-index:2;inset:auto var(--gutter) max(25px,5svh);display:flex;justify-content:space-between;align-items:flex-end;gap:16px;pointer-events:none}
.atlas-controls>* {pointer-events:auto}
.atlas-presets {display:inline-flex;min-height:46px;padding:2px;gap:1px;background:#163039ed;border:1px solid #a5b3a6;border-radius:32px}
.atlas-controls button {cursor:pointer;font:400 .88rem/1 Aktiv,sans-serif;border:0;min-height:44px;color:inherit;background:transparent}
.atlas-presets button {padding:0 clamp(14px,1.8vw,30px);border-radius:28px}
.atlas-presets button[aria-pressed="true"] {color:#223634;background:#efe9d5}
.atlas-presets button:hover:not([aria-pressed="true"]) {background:rgb(237 232 207/.12)}
.atlas-navigation {display:flex;align-items:center;gap:2px;padding:1px 3px;background:rgb(18 44 49/.92);border:1px solid #899e94;border-radius:30px}
.atlas:not(.is-live) .atlas-navigation {display:none}
.atlas-navigation button {display:grid;place-items:center;width:44px;min-height:44px;border-radius:50%;font-size:1.3rem}
.atlas-navigation button:disabled {opacity:.4;cursor:default}
.atlas-navigation button:hover:not(:disabled) {background:rgb(237 232 207/.1)}
.atlas-navigation .atlas-north {position:relative;align-content:center;gap:2px}
.atlas-north span {font-size:.65rem;line-height:1}
.atlas-north i {display:block;width:7px;height:13px;clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%);background:#ede6ce}
.atlas-credits-wrap {position:relative;padding:0 var(--gutter)}
.atlas-credits {position:relative;z-index:2;max-width:70ch;color:#d0d9d9;font-size:.76rem;line-height:1.5;padding-bottom:9px}
.atlas-credits summary {display:list-item;width:fit-content;cursor:pointer;padding:10px 0;min-height:38px}
.atlas-credits p {margin:0 0 10px}
.atlas-credits a {text-decoration:underline;text-underline-offset:3px}
.villa-footer {padding:0 var(--gutter);color:var(--gallery-ink);background:var(--gallery-paper)}
.villa-footer .tour-footer {border-top:0}
.enhanced .mast:is(.over-islands,.over-daybook) {color:#f3f0df}
.enhanced .mast:is(.over-islands,.over-daybook)::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:0 0 -14px;
  background:linear-gradient(to bottom,rgb(var(--island-sea-rgb) / .82),rgb(var(--island-sea-rgb) / .56) 45%,transparent)
}
.mast:is(.over-islands,.over-daybook) .signature img {filter:none}

/* One offshore render spans the canvas edge, map credits and the day heading.
   The day section paints over it gradually, so opening the credits keeps the join intact. */
.day-sea {display:none}
@supports (mask-image:linear-gradient(black,transparent)) or (-webkit-mask-image:linear-gradient(black,transparent)) {
  .day-sea {
    position:absolute;z-index:1;display:block;pointer-events:none;overflow:hidden;
    inset:calc(0px - var(--sea-overlap)) 0 calc(0px - var(--day-water-depth));
    background:var(--island-sea);
    --water-edge:linear-gradient(to bottom,transparent,rgb(0 0 0 / .20) calc(var(--sea-feather)*.34),black var(--sea-feather));
    -webkit-mask-image:var(--water-edge);mask-image:var(--water-edge)
  }
  .day-sea img {
    position:absolute;top:-20px;width:100%;height:calc(100% + 40px);
    object-fit:cover;object-position:50% 54%;opacity:.58;
    --glint:linear-gradient(to bottom,transparent,rgb(0 0 0 / .22) var(--sea-overlap),black calc(var(--sea-overlap) + clamp(110px,16svh,185px)));
    -webkit-mask-image:var(--glint);mask-image:var(--glint)
  }
  .motion .day-sea img {transform:translate3d(0,var(--water-drift,0px),0)}
  .daybook {
    background:linear-gradient(to bottom,transparent,
      rgb(var(--island-sea-rgb) / .15) calc(var(--day-water-depth)*.28),
      rgb(var(--island-sea-rgb) / .68) calc(var(--day-water-depth)*.63),
      var(--island-sea) calc(var(--day-water-depth) - 2px))
  }
}
@media (max-width:740px),(max-aspect-ratio:9/10) {
  .atlas {--sea-feather:clamp(32px,6svh,64px)}
  .enhanced .atlas {--sea-overlap:calc(60px + var(--sea-feather))}
  .atlas-stage {display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:auto;min-height:0;overflow:hidden}
  .atlas-intro {position:static;width:auto;z-index:1;padding:clamp(82px,10svh,132px) var(--gutter) 2px}
  .atlas-intro h2 {max-width:none;font-size:clamp(2rem,8.5vw,5.2rem);line-height:1;margin-bottom:.2em}
  .atlas-intro p {max-width:38ch;font-size:clamp(.88rem,2.4vw,1.05rem);line-height:1.45}
  .atlas-field {position:relative;inset:auto;min-height:300px;height:clamp(295px,53svh,690px)}
  .atlas-controls {position:relative;inset:auto;align-items:center;gap:7px;padding:2px var(--gutter) 8px}
  .enhanced .atlas-controls {min-height:60px}
  .atlas-presets button {padding-inline:clamp(10px,3.4vw,22px)}
  .atlas-navigation {flex:none;gap:0;padding-inline:1px}
  .atlas-island-label {font-size:clamp(1.3rem,5.1vw,2.75rem)}
  .atlas-callout>span {font-size:clamp(1.1rem,4.4vw,2rem)}
  .atlas-credits-wrap {padding-bottom:4px}
}
@media (max-width:350px) {
  .atlas-controls {padding-inline:12px}
  .atlas-controls button {font-size:.78rem}
  .atlas-navigation .atlas-zoom {font-size:1.2rem}
}
@media (max-height:570px) and (min-aspect-ratio:11/10) {
  .atlas-stage {height:min(105svh,610px);min-height:350px}
  .atlas-intro {top:72px}
  .atlas-intro h2 {font-size:clamp(2.2rem,5.3vw,4.1rem)}
  .atlas-controls {bottom:14px}
}

.atlas-stage::before {content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(90deg,rgb(11 32 46/.61),rgb(13 37 50/.26) 23%,transparent 44%)}
.atlas-still-link {display:none;align-items:center;gap:6px;min-height:44px;font-size:.8rem;text-decoration:underline;text-underline-offset:3px}
.atlas[data-view="villa"]:not(.is-live) .atlas-still-link {display:inline-flex}
@media (max-width:740px),(max-aspect-ratio:9/10) {
  .atlas-stage::before {display:none}
  .atlas-field::after {content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(to bottom,var(--sea),transparent 6%)}
  .atlas-intro {padding-top:clamp(83px,10svh,132px)}
  .atlas-still-link {flex:0 1 136px;min-width:0;justify-content:flex-end;line-height:1.25}
}
