
:root {
  --ink: #173740;
  --lagoon: #225b5b;
  --shell: #f7f3e9;
  --paper: #fffcf5;
  --sandline: #ded8c9;
  --quiet: #4c6668;
}
body { background: var(--paper); color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid #c78654; outline-offset: 4px; }
.hero {
  position: relative; display: grid;
  grid-template: auto 1fr auto / minmax(0, .87fr) minmax(0, 1.13fr);
  min-height: min(810px, 100svh); padding: 0; gap: 0;
  background: var(--shell); color: var(--ink);
}
.hero .wrap { width: auto; margin: 0; max-width: none; }
.hero-photo {
  grid-area: 1 / 2 / 4 / 3; position: static; z-index: 0;
  width: 100%; height: 100%; min-height: 0; aspect-ratio: auto;
  object-fit: cover; object-position: 54% center;
}
.hero-shade { display: none; }
.hero .masthead {
  grid-area: 1 / 1; align-self: start; padding: 30px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--sandline);
}
.hero .wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-size: 11px; letter-spacing: .16em;
}
.hero .wordmark::before {
  content: ""; width: 9px; height: 9px; border: 1px solid var(--lagoon); border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--shell), inset 0 0 0 6px var(--lagoon);
}
.hero .language-switch { background: transparent; border-color: var(--sandline); }
.hero .language-switch button { min-width: 36px; min-height: 36px; padding: 0; }
.hero .language-switch button.active { background: var(--ink); color: white; }
.hero-copy {
  grid-area: 2 / 1; align-self: center;
  padding: clamp(36px, 6vw, 95px) clamp(24px, 5vw, 80px);
}
.hero-copy .eyebrow { color: var(--lagoon); margin-bottom: 22px; }
.hero-copy h1 {
  font-size: clamp(68px, 7.65vw, 125px); line-height: .84;
  letter-spacing: -.062em; text-wrap: balance; max-width: 7em;
}
.hero-description { color: var(--quiet); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.65; }
.hero-cta {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 50px; border-radius: 40px; background: var(--lagoon); color: white;
  padding: 10px 24px; font-size: 12px; letter-spacing: .025em; text-transform: none;
  transition: background .2s, transform .2s;
}
.hero-cta span:last-child { display: none; }
.hero .hero-bottom {
  grid-area: 3 / 1; padding: 20px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--sandline);
}
.hero .hero-bottom > span:first-child {
  font: 600 11px/1.5 "DM Sans", sans-serif; letter-spacing: .12em;
}
.hero-ai, .photo-credit {
  font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .09em;
}
.hero-ai {
  z-index: 1; right: 24px; bottom: 24px; margin: 0;
  padding: 7px 10px; border-radius: 4px; background: #193438; color: white;
}
.section-navigation {
  position: sticky; top: 0; z-index: 2; background: var(--paper); margin: 0;
  border-bottom: 1px solid var(--sandline);
}
.section-nav {
  justify-content: flex-start; gap: 4px 8px; padding: 10px 0; border: none;
}
.section-nav a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 6px 13px;
  font-size: 12px; letter-spacing: 0; text-transform: none; text-decoration: none; border-radius: 24px;
}
.section-nav a[aria-current="location"] {
  color: var(--ink); background: #e5eeea; text-decoration: none;
}
#wifi {
  margin-block: clamp(38px, 6vw, 85px); padding: 0; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  grid-template-areas: "title fields" "note fields";
  gap: 12px 40px; background: #e8eee8; border: 1px solid #d5dfd6;
  border-radius: 24px; padding: clamp(24px, 4vw, 54px); align-items: center;
}
#wifi-title { grid-area: title; align-self: end; max-width: 13ch; font-size: clamp(46px, 5.2vw, 78px); line-height: .91; }
.wifi-note { grid-area: note; align-self: start; max-width: 33ch; color: var(--quiet); font-size: 14px; }
.wifi-fields {
  grid-area: fields; background: var(--paper); border: 1px solid #cfdbd4;
  border-radius: 16px; padding: clamp(16px, 3vw, 32px);
  display: grid; grid-template-columns: 1fr; gap: 3px;
}
.wifi-fields .wifi-label { font-size: 12px; color: var(--quiet); font-weight: 600; }
#wifi-password, #wifi-network { font-size: clamp(16px, 1.55vw, 22px); line-height: 1.5; color: var(--ink); }
#wifi-copy {
  justify-self: start; margin-top: 12px; background: var(--lagoon); color: white; border: none;
  border-radius: 30px; padding: 10px 17px; font: 600 13px "DM Sans", sans-serif;
  transition: background .2s, transform .2s;
}
#wifi-status { min-height: 1.3em; font-size: 13px; margin: 3px 0 0; color: #155346; }
#arrival { padding-top: 30px; }
.gallery-section { background: var(--shell); }
.gallery-section .section-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--sandline); padding-bottom: 24px;
}
.gallery-section h2 { max-width: 12ch; }
.gallery-section .section-intro { max-width: 34ch; color: var(--quiet); }
.photo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.photo-grid .photo-slot { grid-column: span 2; margin: 0; }
.photo-grid .photo-slot:nth-child(-n+2) { grid-column: span 3; }
.photo-button { overflow: hidden; border-radius: 12px; }
.photo-slot img { aspect-ratio: 4 / 3; transition: transform .24s; }
.photo-grid .photo-slot:nth-child(-n+2) img { aspect-ratio: 16 / 10; }
.photo-grid figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 10px 0 0; }
.photo-credit { color: var(--quiet); margin: 0; }
#photo-dialog {
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: clamp(12px, 2.5vw, 32px); background: #10272d; border: 0; color: #faf4e9;
}
#photo-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 9px; }
#photo-dialog .photo-controls:first-child { justify-content: flex-end; }
#photo-dialog .photo-controls button {
  background: #203d43; color: white; border: 1px solid #61787a; border-radius: 24px;
  min-width: 96px; padding: 8px 18px; font: 600 13px "DM Sans", sans-serif;
  transition: background .2s, transform .2s;
}
#photo-dialog #photo-large { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
#photo-caption { display: grid; justify-items: center; gap: 2px; margin: 2px 0; font: 400 28px/1.05 "Cormorant Garamond", Georgia, serif; }
#photo-caption .photo-credit { color: #d3ded7; }
@media (hover: hover) {
  .hero-cta:hover, #wifi-copy:hover { background: #163f41; }
  .photo-button:hover img { transform: scale(1.035); }
  .section-nav a:hover { background: #e9eee8; }
  #photo-dialog .photo-controls button:hover { background: #335359; }
}
.hero-cta:active, #wifi-copy:active, #photo-dialog button:active { transform: scale(.97); }
@media (max-width: 760px) {
  .hero { display: grid; grid-template: auto auto 1fr auto / minmax(0, 1fr); min-height: auto; }
  .hero .masthead { grid-area: 1 / 1; padding: 12px 20px; }
  .hero-photo { grid-area: 2 / 1; height: auto; aspect-ratio: 1.22; object-position: center; }
  .hero-ai { grid-area: 2 / 1; position: static; align-self: end; justify-self: end; margin: 0 12px 12px 0; }
  .hero-copy { grid-area: 3 / 1; padding: 28px 22px; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero-copy h1 { font-size: clamp(62px, 14vw, 95px); max-width: 10em; }
  .hero-description { margin-top: 12px; }
  .hero-cta { margin-top: 15px; }
  .hero .hero-bottom { grid-area: 4 / 1; padding: 12px 22px; }
  .section-nav { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: thin; gap: 2px; }
  .section-nav a { min-height: 44px; flex: 0 0 auto; padding: 6px 10px; }
  #wifi { grid-template-columns: 1fr; grid-template-areas: "title" "fields" "note"; gap: 12px; padding: 20px; border-radius: 18px; }
  #wifi-title { max-width: 100%; }
  .wifi-note { margin: 0; }
  .wifi-fields { padding: 14px; }
  .gallery-section .section-heading { display: block; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .photo-grid .photo-slot:nth-child(n) { grid-column: span 1; }
  .photo-grid .photo-slot:first-child { grid-column: 1 / -1; }
  .photo-grid .photo-slot:not(:first-child) img { aspect-ratio: 1.15; }
  .photo-grid figcaption { gap: 3px; flex-direction: column; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-cta:active, #wifi-copy:active, #photo-dialog button:active { transform: none; }
}


#wifi-copy[data-copied=true]{background:#dcebe1;color:#17463c}
#wifi-copy[data-copied=true]::after{content:'\2713';margin-inline-start:.55em}

.viewer-stage { display: contents; }
@media (max-width: 760px) {
  #photo-dialog[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
  .viewer-stage { display: flex; flex-direction: column; justify-content: center; min-height: 0; gap: 10px; }
  #photo-dialog #photo-large { display: block; height: auto; max-height: 90%; }
}

/* Whole-guide rhythm and motion */
html { scroll-padding-top: 85px; }
.hero { overflow: hidden; }
.hero-copy h1, .hero-description { overflow-wrap: anywhere; }
.hero-copy .hero-description { max-width: 39ch; }
.demo-note { margin: 20px auto 0; color: var(--quiet); font-size: 13px; line-height: 1.65; }
#wifi-title { text-wrap: balance; }
.wifi-label { display: block; margin-top: 8px; }
.wifi-fields:has(button[data-copied=true]) { border-color: #7a9a88; }
#arrival { padding-top: clamp(42px, 7vw, 94px); }
#arrival .section-heading, #recommendations .section-heading { max-width: 100%; }
#arrival .arrival-list {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px;
}
#arrival .arrival-item {
  display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; padding: 24px;
  min-height: 185px; border: 1px solid var(--sandline); border-radius: 12px; background: var(--shell);
}
#arrival .arrival-item svg { color: var(--lagoon); }
.rules-list li { gap: 0; }
.rules-list .rule-number { display: none; }
#practical .section-heading, #recommendations .section-heading { border-bottom: 1px solid var(--sandline); padding-bottom: 16px; }
.practical-list > div { grid-template-columns: minmax(0,220px) minmax(0,1fr); gap: 18px; }
#contact .contact-layout { align-items: start; }
#contact .contact-details { display: grid; gap: 13px; }
#contact-links { justify-items: start; }
#contact-links a, #map-link {
  display: inline-flex; min-height: 44px; align-items: center; padding: 7px 14px;
  border: 1px solid currentColor; border-radius: 24px; font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s;
}
#map-link { margin-top: 16px; }
.photo-button { position: relative; }
.photo-open {
  position: absolute; right: 12px; bottom: 12px; width: 36px; aspect-ratio: 1; display: grid;
  place-items: center; border-radius: 50%; color: white; background: #193438; font: 400 21px/1 'DM Sans',sans-serif;
  transition: transform .24s; pointer-events: none;
}
.photo-button:active .photo-open { transform: scale(.88); }
@media (hover: hover) {
  #contact-links a:hover, #map-link:hover { background: white; color: var(--ink); }
  .photo-button:hover .photo-open { transform: scale(1.13); }
}
@media (max-width:760px) {
  .hero .language-switch button { min-width: 42px; min-height: 42px; }
  #arrival .arrival-list { grid-template-columns: 1fr; }
  #arrival .arrival-item { min-height: auto; padding: 18px 20px; grid-template-columns: auto 1fr; }
  .practical-list > div { grid-template-columns: 1fr; }
  #contact .contact-layout, .split-heading { gap: 20px; }
}
@media (prefers-reduced-motion:no-preference) {
  .hero-photo { animation: welcome-photo 950ms cubic-bezier(.2,.6,.2,1) both; }
  .hero-copy > * { animation: welcome-copy 480ms cubic-bezier(.2,.6,.2,1) both; }
  .hero-copy h1 { animation-delay: 50ms; }
  .hero-copy .hero-description { animation-delay: 100ms; }
  .hero-copy .hero-cta { animation-delay: 145ms; }
  #photo-dialog[open] { animation: welcome-dialog 220ms ease-out both; }
  @keyframes welcome-photo { from { transform: scale(1.035); } to { transform: scale(1); } }
  @keyframes welcome-copy { from { opacity:.62; transform:translateY(12px); } to { opacity:1; transform:none; } }
  @keyframes welcome-dialog { from { opacity:.72; } to { opacity:1; } }
}


.hero-description { margin-top: 20px; }
@media (min-width:761px) { .hero-ai { position:absolute; } }
@media (max-width:760px) { .hero-description { margin-top: 12px; } }
