/* Odreeyohan, in the manner of Lalaguna Villas: full-bleed photographs under a navy header that turns solid on
   scroll, bold uppercase Poppins headings, a white page with generous space, navy bands, and one orange action
   (the sun in Odreeyohan's logo) on pill buttons with navy lettering. Mobile first; base styles are for phones.
   Breakpoints: 640px (large phones, small tablets), 900px (tablets landscape, laptops), 1200px (wide). */

:root {
  --paper: #ffffff;      /* page ground */
  --card: #ffffff;
  --sand: #f6f2ea;       /* alternate light band */
  --line: #e8e2d8;       /* hairlines and card borders */
  --navy: #13213a;       /* headings, header, footer, dark bands */
  --navy-2: #1d2f4f;
  --text: #2c3442;       /* body text on white: 11.6:1 */
  --muted: #5a6373;      /* secondary text on white: 6.1:1 */
  --accent: #f88008;     /* the logo's sun: buttons, with navy lettering (6.5:1) */
  --accent-hover: #ff9a2e;
  --accent-text: #a35200;/* small orange-toned words on white: 5.4:1 */
  --gold: #dcb56c;       /* the current-page underline in the header */
  --on-navy: #f7f2e9;
  --on-navy-muted: #c9d2df;
  --brass: #b88a3b;      /* list ring bullets */
  --focus: #1d4f91;      /* keyboard focus on light surfaces */
  --focus-on-dark: #ffd27a;
  --shadow: 0 18px 40px -22px rgb(15 30 55 / 0.35);

  --font-display: var(--font-sans), 'Poppins', system-ui, sans-serif;
  --font-body: var(--font-sans), 'Poppins', system-ui, sans-serif;
  --font-italic: var(--font-sans-italic), 'Poppins', system-ui, sans-serif;

  --gutter: 20px;
  --radius: 22px;
  --radius-sm: 14px;
  --measure: 62ch;
  --frame: 1200px;
  --header-h: 64px;
  /* Side padding that keeps content inside a centred frame on wide screens. */
  --frame-pad: max(var(--gutter), calc((100% - var(--frame)) / 2));

  --t-body: 1rem;
  --t-lead: 1.06rem;
  --t-h3: 1.15rem;
  --t-h2: 1.45rem;
  --t-h1: 2.4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (min-width: 640px) {
  :root { --gutter: 32px; --t-lead: 1.12rem; --t-h3: 1.25rem; --t-h2: 1.75rem; --t-h1: 3.4rem; }
}
@media (min-width: 900px) {
  :root { --gutter: 48px; --t-lead: 1.15rem; --t-h3: 1.3rem; --t-h2: 2rem; --t-h1: 4.6rem; --header-h: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--t-body)/1.75 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--navy); }
img, picture { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); text-wrap: balance; margin: 0 0 14px; }
h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; }
.h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: 0; text-transform: none; margin-top: 40px; }
p { margin: 0 0 16px; max-width: var(--measure); text-wrap: pretty; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-text); }
address { font-style: normal; }

/* Keyboard focus: a clear ring on every control; gold where the surface is navy or a photograph. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-header, .site-footer, .hero, .scene, .lightbox, .band-navy, .sticky-book { --focus: var(--focus-on-dark); }
/* After a tap or click (set by InputModality) no ring is drawn; the next navigation key brings it back. */
html[data-input='pointer'] :focus-visible { outline: none; }
/* <main> (and any other scripted focus target) receives focus so screen readers start at the new content.
   It is not a control, so it never draws a ring: that ring was the thin yellow line around the whole page. */
#main:focus, #main:focus-visible { outline: none; }
[tabindex='-1']:focus, [tabindex='-1']:focus-visible { outline: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--card); color: var(--navy); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.lede { font-size: var(--t-lead); }
.muted { color: var(--muted); }
.fine { font-size: 0.88rem; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
/* Small orange capitals over a heading, on photographs and navy only (orange text is too light on white). */
.eyebrow { margin: 0 0 14px; font: 600 0.78rem/1.4 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
/* The light italic line under a section heading. */
.sub { font: 300 italic 1.08rem/1.6 var(--font-italic); color: var(--muted); }

/* ---------- Buttons and links: orange pills with navy capitals ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 32px; border-radius: 999px; border: 0;
  font: 700 0.88rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-ember { background: var(--accent); color: var(--navy); box-shadow: 0 10px 24px -12px rgb(248 128 8 / 0.7); }
.btn-ember:hover { background: var(--accent-hover); color: var(--navy); }
.btn-small { min-height: 44px; padding: 10px 22px; font-size: 0.76rem; }
/* Outlined channel buttons (call, text, email) read as sentence case. */
.btn-line { background: var(--card); color: var(--navy); border: 1.5px solid var(--navy); justify-content: flex-start; text-align: left; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; box-shadow: none; }
.btn-line:hover { background: var(--navy); color: var(--on-navy); }
.btn-line span { overflow-wrap: anywhere; }
.btn-line .btn-k { display: block; }
.btn-line .btn-v { display: block; font-size: 0.92rem; font-weight: 500; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow .icon { width: 1.1em; height: 1.1em; color: var(--accent-text); transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-light, .link-light:hover { color: #fff; }
.link-light .icon { color: var(--accent); }

/* ---------- Header: transparent over the opening photo, solid navy once the page scrolls ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  min-height: calc(var(--header-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  background: var(--navy); color: var(--on-navy);
  box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.5);
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header[data-over] { background: transparent; box-shadow: none; }
.site-header:has(.nav-menu[open]) { background: var(--navy); }
/* The opening photo slides up under the header. */
main > .hero:first-child, main > .scene:first-child { margin-top: calc(-1 * (var(--header-h) + env(safe-area-inset-top))); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
/* A fixed square, so no browser sizes the circle from the logo file (Safari stretched it into an oval). */
.brand-disc { display: block; flex: none; width: 44px; height: 44px; aspect-ratio: 1; padding: 2px; border-radius: 50%; background: #fff; overflow: hidden; }
.brand-disc img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; }
.brand-disc-lg { width: 84px; height: 84px; }
.brand-word { font: 700 0.95rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; text-shadow: 0 1px 10px rgb(0 0 0 / 0.3); }
/* Phone header at large text sizes: the name wraps so the menu button stays on screen. */
@media (max-width: 899px) { .brand, .brand-word { min-width: 0; } }

.nav-wide { display: none; }
.header-cta { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  border-radius: 50%; color: #fff;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 6px; width: 26px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.nav-menu[open] .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-menu[open] .burger span:nth-child(2) { opacity: 0; }
.nav-menu[open] .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* The open phone menu: a full-screen navy panel, uppercase links centred, one booking action. */
.nav-menu > nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0; z-index: 49;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: 24px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--navy); overflow-y: auto; overscroll-behavior: contain;
}
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; }
.nav-menu li a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; color: #fff; text-decoration: none; font: 700 1.05rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.nav-menu li a:hover { color: var(--accent); }
.nav-menu li a[aria-current='page'] { color: var(--accent); }
.nav-menu-cta { min-width: 240px; }
.nav-menu-contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 0; }
.nav-menu-contact a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.35); color: #fff; font-weight: 600; text-decoration: none; }
.nav-menu-contact a:hover { color: var(--accent); border-color: var(--accent); }
.nav-menu-contact span { color: var(--on-navy-muted); font-size: 0.92rem; width: 100%; text-align: center; }
html:has(.nav-menu[open]) { overflow: hidden; }

@media (min-width: 900px) {
  .site-header { padding-left: clamp(24px, 4vw, 64px); padding-right: clamp(24px, 4vw, 64px); gap: 20px; }
  .brand-word { font-size: 1.05rem; overflow-wrap: normal; }
  .nav-menu { display: none; }
  html:has(.nav-menu[open]) { overflow: auto; }
  .nav-wide { display: block; min-width: 0; }
  .nav-wide ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav-wide a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: none; font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 10px rgb(0 0 0 / 0.25); }
  .nav-wide a:hover { color: var(--accent); }
  /* The intentional gold underline under the current page. */
  .nav-wide a[aria-current='page'] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.7em; }
  .header-cta { display: inline-flex; }
  /* On the home page's first screen the opening photo carries the booking button. */
  .site-header[data-over][data-home] .header-cta { display: none; }
}
.header-cta[aria-current='page'] { display: none; }

/* ---------- Sticky "Ask about availability" bar: phones and tablets, every page (home: after the opening photo) ---------- */
.sticky-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  background: var(--navy); box-shadow: 0 -10px 30px -12px rgb(0 0 0 / 0.45);
  transition: transform 0.3s var(--ease-out), visibility 0s;
}
/* Slid away, then hidden, so it is never half drawn. */
.sticky-book[data-hidden] { transform: translateY(110%); visibility: hidden; transition: transform 0.3s var(--ease-out), visibility 0s 0.3s; }
.sticky-book-btn { width: 100%; min-height: 54px; font-size: 0.95rem; letter-spacing: 0.16em; box-shadow: none; }
@media (min-width: 900px) { .sticky-book { display: none; } }

/* ---------- Home opening: one full-bleed photograph ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-content: end; min-height: max(560px, 92svh); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(12 22 40 / 0.6) 0%, rgb(12 22 40 / 0) 22%),
    linear-gradient(to top, rgb(12 22 40 / 0.94) 0%, rgb(12 22 40 / 0.8) 40%, rgb(12 22 40 / 0.45) 62%, rgb(12 22 40 / 0) 85%); }
.hero-copy { padding: calc(var(--header-h) + 24px) var(--gutter) 44px; max-width: 46rem; text-shadow: 0 1px 14px rgb(0 0 0 / 0.3); }
/* Odreeyohan's own voice: the place in plain words, then the promise in sentence case, one weight lighter. */
.hero-place { margin: 0 0 12px; font: 500 0.9rem/1.4 var(--font-body); letter-spacing: 0.04em; color: #fff; }
.hero h1 { color: #fff; margin-bottom: 16px; font-weight: 700; line-height: 1.06; letter-spacing: -0.01em; text-transform: none; text-wrap: pretty; }
.hero .lede { color: #e9eef5; max-width: 36rem; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero .btn { text-shadow: none; }
@media (min-width: 900px) {
  .hero { min-height: max(640px, 100svh); align-content: center; }
  /* Navy only where it does work: a band under the navigation and a soft pool of shade behind the words,
     so the palms, tiles and water keep their own colour everywhere else. */
  .hero::after { background:
    linear-gradient(to bottom, rgb(12 22 40 / 0.78) 0%, rgb(12 22 40 / 0.6) 7%, rgb(12 22 40 / 0) 20%),
    radial-gradient(ellipse 58% 62% at 16% 54%, rgb(12 26 48 / 0.82) 0%, rgb(12 26 48 / 0.62) 45%, rgb(12 26 48 / 0) 100%); }
  .hero-copy { padding: calc(var(--header-h) + 40px) clamp(24px, 4vw, 64px) 72px; max-width: 50rem; }
}

/* Phones and tablets: the whole opening fits the first screen. It is exactly one screen tall (the small
   viewport, so browser bars never hide the button); the photo stays full-bleed (edge to edge, under the header)
   and takes the height the words leave, never more than its own 3:4 shape, so the sides are never cut off.
   It fades into navy where the words begin. */
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; height: 100svh; min-height: 560px; max-height: calc(133.33vw + 420px); background: var(--navy); }
  .hero-media { position: relative; inset: auto; z-index: auto; flex: 1 1 0; min-height: 200px; max-height: 133.33vw; width: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
  /* Phone crop: on shorter screens, give up sky before palms and pool. !important because the desktop crop
     comes from the Photo component's inline focus. The navy band under the bar keeps the menu clear of the bright clouds;
     z-index 0 so it paints over the photo, which is positioned here. */
  .hero-media img { object-position: 50% 72% !important; }
  .hero::after { z-index: 0; background: linear-gradient(to bottom, rgb(12 22 40 / 0.72) 0, rgb(12 22 40 / 0.52) var(--header-h), rgb(12 22 40 / 0) calc(var(--header-h) + 90px)); }
  .hero-copy { position: relative; z-index: 1; flex: none; margin-top: -84px; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); }
  .hero-place { margin-bottom: 8px; font-size: 0.86rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 10px; }
  .hero .lede { font-size: 0.98rem; line-height: 1.6; margin-bottom: 18px; }
  .hero-actions { gap: 4px 22px; }
}

/* ---------- Inner-page openings: full-bleed photo, title centred ---------- */
.scene { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; min-height: max(360px, 54svh); overflow: hidden; color: #fff; text-align: center; }
.scene-media { position: absolute; inset: 0; z-index: -2; }
.scene::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(12 22 40 / 0.7) 0%, rgb(12 22 40 / 0.5) 45%, rgb(12 22 40 / 0.7) 100%); }
.scene-copy { padding: calc(var(--header-h) + 28px) var(--gutter) 40px; max-width: 46rem; text-shadow: 0 1px 14px rgb(0 0 0 / 0.35); }
.scene-copy h1 { color: #fff; font-size: calc(var(--t-h1) * 0.82); }
.scene-copy p { color: #eef2f7; margin: 0 auto; }
.page-hero-short { min-height: max(300px, 40svh); }
@media (min-width: 900px) {
  .scene { min-height: max(460px, 62svh); }
  .page-hero-short { min-height: max(380px, 46svh); }
  .scene-copy h1 { font-size: calc(var(--t-h1) * 0.78); }
}

/* ---------- Sections ---------- */
.section { padding: 72px var(--frame-pad); }
.section-head { margin-bottom: 32px; }
.section-head.center { max-width: 40rem; }
.section-head .sub { margin: 0 auto; }
.section-head h2 { margin-bottom: 10px; }
.band { background: var(--sand); }
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-navy h2 { color: #fff; }
.more { margin: 24px 0 0; }
.page-intro { padding-top: 48px; padding-bottom: 24px; }
@media (min-width: 900px) { .section { padding-top: 112px; padding-bottom: 112px; } .section-head { margin-bottom: 48px; } .page-intro { padding-top: 72px; } }

/* ---------- Home: the two choices ---------- */
.visit-choices { list-style: none; padding: 0; display: grid; gap: 16px; margin: 0; }
.visit-choice {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 168px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.visit-choice:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 26px 48px -24px rgb(15 30 55 / 0.45); }
.visit-choice-photo { height: 100%; }
.visit-choice-text { display: grid; align-content: center; gap: 4px; padding: 16px 18px; }
.visit-choice-title { font: 700 1.2rem/1.2 var(--font-display); color: var(--navy); }
.visit-choice-when { font: 600 0.74rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.visit-choice-suits { font-size: 0.9rem; line-height: 1.55; color: var(--muted); margin-top: 2px; }
.visit-choice-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.visit-choice-more .icon { width: 1em; height: 1em; color: var(--accent-text); transition: transform 0.25s var(--ease-out); }
.visit-choice:hover .visit-choice-more .icon { transform: translateX(4px); }
@media (min-width: 720px) {
  .visit-choices { grid-template-columns: 1fr 1fr; gap: 28px; }
  .visit-choice { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .visit-choice-photo { aspect-ratio: 16 / 10; height: auto; }
  .visit-choice-text { align-content: start; padding: 26px 28px 30px; gap: 6px; }
  .visit-choice-title { font-size: 1.6rem; }
  .visit-choice-suits { font-size: 1rem; }
}

/* ---------- Gallery carousel (home): the centre photo large, its neighbours smaller ---------- */
.carousel { position: relative; --slide: 80cqi; margin: 0 calc(-1 * var(--frame-pad)); container-type: inline-size; }
.carousel-track {
  position: relative; /* slide offsets are measured from the track, in scroll coordinates */
  /* Scrolls sideways only, so a vertical drag that starts on a photo scrolls the page. touch-action stays auto to keep pinch-zoom. */
  list-style: none; margin: 0; display: flex; gap: 14px; overflow: auto hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px calc((100cqi - var(--slide)) / 2) 20px;
}
.carousel-track::-webkit-scrollbar { display: none; }
/* snap-stop: a fast swipe stops at the next photo instead of flying past several. */
.carousel-slide { flex: 0 0 var(--slide); scroll-snap-align: center; scroll-snap-stop: always; border-radius: var(--radius); overflow: hidden; transform: scale(0.86); opacity: 0.5; transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out); }
.carousel-slide[data-active] { transform: none; opacity: 1; }
.carousel-slide picture, .carousel-ph { display: block; aspect-ratio: 3 / 2; }
.carousel-ph { background: linear-gradient(160deg, #24365a, #1a2a47); }
/* Arrows only with a mouse or trackpad. Phones and tablets (either orientation) swipe and use the dots;
   display: none also takes the hidden arrows out of the tab order and the accessibility tree. */
.carousel-btn { display: none; }
@media (hover: hover) and (pointer: fine) { .carousel-btn { display: grid; } }
.carousel-btn { position: absolute; top: calc(50% - 30px); z-index: 2; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transition: background-color 0.2s; }
.carousel-btn .icon { width: 22px; height: 22px; }
.carousel-prev { left: clamp(6px, 3vw, 72px); border: 1px solid rgb(255 255 255 / 0.45); background: rgb(19 33 58 / 0.6); color: #fff; }
.carousel-prev:hover { background: rgb(19 33 58 / 0.85); }
.carousel-next { right: clamp(6px, 3vw, 72px); border: 0; background: var(--accent); color: var(--navy); }
.carousel-next:hover { background: var(--accent-hover); }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.carousel-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.35); transition: background-color 0.2s; }
.carousel-dots button[aria-current]::before { background: var(--accent); }
.band-navy .center .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .carousel { --slide: min(58cqi, 880px); }
  .carousel-track { gap: 28px; }
  .carousel-slide { transform: scale(0.72); }
}

/* ---------- Photo grid (whole resort) ---------- */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 14px; }
.mosaic > li.wide { grid-column: 1 / -1; }
.mosaic figure { margin: 0; }
.mosaic picture { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; }
.mosaic > li.wide picture { aspect-ratio: 4 / 3; }
.mosaic figcaption { padding: 12px 2px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.mosaic figcaption strong { display: block; margin-bottom: 2px; color: var(--navy); font: 600 1.02rem/1.3 var(--font-display); }
@media (min-width: 640px) { .mosaic > li.wide picture { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
  .mosaic > li, .mosaic > li.wide { grid-column: span var(--span); }
  .mosaic picture, .mosaic > li.wide picture { aspect-ratio: calc(var(--span) / 5.2); }
  .mosaic figcaption { font-size: 1rem; }
}

/* ---------- Cards: plan your visit (home) and the location page ---------- */
.plan, .info-cards { display: grid; gap: 20px; }
.plan-item, .info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); }
.plan-item h3 { margin-bottom: 10px; }
.plan-item address { margin-bottom: 4px; }
.plan-item .fine { margin: 16px 0 0; }
.info-card h2 { font-size: 1.05rem; letter-spacing: 0.14em; margin-bottom: 18px; }
.info-card address { font-size: 1.1rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.info-card .btn { margin: 14px 0 6px; }
.info-card > :last-child, .plan-item > :last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .plan, .info-cards { grid-template-columns: 1fr 1fr; gap: 28px; }
  .plan-item, .info-card { padding: 40px; }
}

/* ---------- Durations: day use or overnight ---------- */
.durations { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 24px 0 16px; max-width: 40rem; overflow-wrap: normal; }
.durations a { display: grid; gap: 6px; height: 100%; min-height: 44px; padding: 18px 18px; border-radius: var(--radius-sm); background: var(--accent); color: var(--navy); text-decoration: none; box-shadow: 0 10px 24px -14px rgb(248 128 8 / 0.8); transition: background-color 0.2s var(--ease-out); }
.durations a:hover { background: var(--accent-hover); color: var(--navy); }
/* Large phone text (about 200%): one tile per row so the words fit. */
@media (max-width: 15em) { .durations { grid-template-columns: minmax(0, 1fr); } }
.duration-k { font: 800 1rem/1.1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.duration-v { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 0.86rem; font-weight: 500; line-height: 1.35; }
.duration-v .icon { width: 1em; height: 1em; margin-top: 0.15em; }

/* ---------- Rooms ---------- */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chips li { padding: 7px 16px; border-radius: 999px; background: var(--sand); font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.chips-lg li { font-size: 0.98rem; padding: 9px 18px; background: var(--card); }

.room-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.room-row { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s; }
.room-row:hover { border-color: var(--navy); }
.room-row-name { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font: 700 1.02rem/1.3 var(--font-display); text-decoration: none; }
/* The whole tile is the link's target area. */
.room-row-name::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.room-row-name .icon { width: 0.85em; height: 0.85em; transform: rotate(90deg); color: var(--accent-text); }
.room-row-sleeps { color: var(--accent-text); font-weight: 600; font-size: 0.86rem; }
.room-row-bath { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
@media (min-width: 720px) { .room-index { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .room-row { padding: 16px 18px; } }

.rooms-section { padding-top: 24px; }
.rooms { display: grid; gap: 24px; }
.room {
  display: grid; gap: 14px; padding: 18px; scroll-margin-top: calc(var(--header-h) + 12px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.room-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.room-head h2 { margin: 0; font-size: 1.4rem; letter-spacing: 0.08em; }
.room-sleeps { margin: 0; color: var(--accent-text); font-weight: 600; }
.room-main { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.room-text { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 16px; align-items: center; }
.room-bath { aspect-ratio: 4 / 3; border-radius: 10px; }
.room-text .ticks { margin: 0; gap: 8px; font-size: 0.93rem; line-height: 1.45; }
.room-text .ticks li:last-child { margin-bottom: 0; }
.room-ask { justify-content: center; }
@media (min-width: 720px) {
  .rooms { gap: 36px; }
  .room {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    grid-template-areas: 'main head' 'main text' 'main ask'; gap: 18px clamp(24px, 3.5vw, 48px); padding: clamp(18px, 2vw, 28px); align-items: start;
  }
  .room-head { grid-area: head; flex-direction: column; align-items: flex-start; padding-top: 14px; }
  .room-head h2 { font-size: 1.7rem; }
  .room-main { grid-area: main; aspect-ratio: 4 / 3.1; }
  .room-text { grid-area: text; grid-template-columns: 1fr; gap: 20px; }
  .room-bath { width: min(100%, 260px); }
  .room-text .ticks { font-size: 1rem; }
  .room-ask { grid-area: ask; justify-self: start; align-self: end; }
}

/* Photos that open the viewer: the link takes the photo's layout box, the picture fills it. */
.zoom { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.zoom picture { height: 100%; transition: transform 0.6s var(--ease-out); }
.zoom:hover picture { transform: scale(1.03); }
.zoom-badge { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgb(10 18 33 / 0.72); color: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1; }
.zoom-badge .icon { width: 15px; height: 15px; }
.room-bath .zoom-badge { right: 6px; bottom: 6px; padding: 6px; }

/* ---------- Photo viewer ---------- */
.lightbox { padding: 0; border: 0; background: rgb(6 11 20 / 0.97); color: #fff; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgb(6 11 20 / 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
html.lb-open { overflow: hidden; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px; }
.lb-count { margin: 0; color: var(--on-navy-muted); font-size: 0.92rem; }
.lb-close { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px 0 16px; border-radius: 999px; border: 0; background: #fff; color: var(--navy); font: 700 0.82rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.lb-close:hover { background: var(--accent); }
.lb-frame { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; overflow: hidden; padding: 0 var(--gutter); }
.lb-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter) max(16px, env(safe-area-inset-bottom)); }
.lb-caption { margin: 0; color: var(--on-navy-muted); font-size: 0.9rem; }
.lb-bottom .lb-caption { flex: 1; text-align: center; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.08); color: #fff; cursor: pointer; flex: none; }
.icon-btn:hover { background: rgb(255 255 255 / 0.2); }

/* ---------- Booking page: one centred column ---------- */
.inquire { display: grid; grid-template-columns: minmax(0, 34rem); justify-content: center; }
.picker { min-width: 0; border: 0; margin: 0 0 8px; padding: 0; }
.picker legend { padding: 0; margin-bottom: 14px; font: 600 var(--t-h3)/1.3 var(--font-display); color: var(--navy); }
.picker-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; overflow-wrap: normal; }
.picker-options a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--navy); background: var(--card); color: var(--navy); font: 700 0.82rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; text-align: center; }
.picker-options a:hover { background: var(--navy); color: #fff; }
/* The picker only fills in the composer, which needs JavaScript. */
@media (scripting: none) { [data-picker] { display: none; } }
.channels { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.channel { display: grid; gap: 6px; }
.channel .btn { justify-content: flex-start; text-align: left; }
.channel .btn-ember { letter-spacing: 0.08em; padding-left: 22px; padding-right: 22px; }
.channel-note { padding-left: 4px; color: var(--muted); font-size: 0.88rem; }
.note { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--sand); }
.inquire .note { margin: 24px 0 0; }
.choice-note { display: grid; gap: 12px; margin: 0 0 8px; }
.choice-note p { margin: 0; }
.choice-note .btn { justify-self: start; }
.contact-links { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.contact-links .icon { color: var(--accent-text); }

/* ---------- Shared inner-page pieces ---------- */
.split { display: grid; gap: 32px; align-items: start; }
.rounded { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; max-width: 46ch; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.prose > * { max-width: var(--measure); }
.section.prose { display: grid; grid-template-columns: minmax(0, 48rem); justify-content: center; }

.voices { display: grid; gap: 32px; }
.quote { margin: 0; max-width: 44rem; }
.quote blockquote { margin: 0; }
.quote p { font: 300 italic 1.25rem/1.55 var(--font-italic); color: var(--navy); max-width: none; }
.quote figcaption { color: var(--muted); font-size: 0.9rem; }

/* Gallery page */
.jump ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--navy); font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.jump a:hover { border-color: var(--navy); }
.gallery-group { padding: 0 var(--frame-pad) 48px; scroll-margin-top: calc(var(--header-h) + 12px); }
.gallery-group h2 { font-size: 1.05rem; letter-spacing: 0.14em; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; }
.gallery-grid a picture { height: 100%; transition: transform 0.6s var(--ease-out); }
.gallery-grid a:hover picture { transform: scale(1.03); }
.gallery-grid li.wide { grid-column: span 2; }
.gallery-grid li.wide a { aspect-ratio: auto; height: 100%; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 62px; padding: 16px 0; font: 600 1.02rem/1.4 var(--font-display); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 0 20px; }
.faq a { overflow-wrap: anywhere; }
.faq-more { margin-top: 56px; }
@media (min-width: 640px) { .faq summary { font-size: 1.1rem; } }

/* ---------- Footer ---------- */
.site-footer { display: grid; gap: 32px; padding: 64px var(--frame-pad) max(36px, env(safe-area-inset-bottom)); background: var(--navy); color: var(--on-navy); }
/* Room for the sticky booking bar on phones and tablets. */
@media (max-width: 899px) { .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }
.site-footer a { color: var(--on-navy); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer-id { display: flex; align-items: center; gap: 16px; }
.footer-name { margin: 0; font: 700 1.15rem/1.2 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.footer-name small { display: block; margin-top: 6px; font: 500 0.82rem/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: none; color: var(--on-navy-muted); }
.footer-brand address { color: var(--on-navy); }
.footer-h { margin: 0 0 10px; font: 700 0.8rem/1.2 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer-fine { grid-column: 1 / -1; margin: 0; max-width: none; padding-top: 22px; border-top: 1px solid rgb(247 242 233 / 0.15); color: var(--on-navy-muted); font-size: 0.84rem; }
@media (min-width: 900px) { .site-footer { grid-template-columns: 1.4fr 1fr 1fr; padding-top: 88px; } }

/* ---------- Motion and preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: drift 14s var(--ease-out) both; }
}
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .zoom:hover picture, .gallery-grid a:hover picture, .link-arrow:hover .icon, .visit-choice:hover { transform: none !important; }
}
@media print {
  .site-header, .nav-menu, .sticky-book { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Static build additions (replace what Next.js injected or set inline) ---------- */
/* Poppins, Latin subset, self-hosted (SIL Open Font License: /fonts/Poppins-OFL.txt). */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/poppins-800.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: italic; font-weight: 300; font-display: swap; src: url(/fonts/poppins-300-italic.woff2) format('woff2'); }
@font-face { font-family: 'Poppins Fallback'; src: local(Arial); ascent-override: 93.62%; descent-override: 31.21%; line-gap-override: 8.92%; size-adjust: 112.16%; }
:root { --font-sans: Poppins, 'Poppins Fallback'; --font-sans-italic: Poppins, 'Poppins Fallback'; }
.mosaic > li.span-5 { --span: 5; }
.mosaic > li.span-6 { --span: 6; }
.mosaic > li.span-7 { --span: 7; }

/* Inquiry composer on /inquire (shown only when JavaScript runs): the picker's look, as form fields. */
.composer { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.composer h2 { font-size: var(--t-h3); }
.composer form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.composer .picker-options label { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--navy); background: var(--card); color: var(--navy); font-weight: 600; cursor: pointer; }
.composer .picker-options label:has(input:checked) { background: var(--navy); color: #fff; }
.composer .picker-options input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.composer .field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--navy); }
.composer .field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.composer select, .composer input[type='date'], .composer input[type='number'], .composer textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #8a93a3; border-radius: var(--radius-sm); background: var(--card); color: var(--text); font: 400 1rem/1.5 var(--font-body); }
.composer textarea[readonly] { background: var(--sand); border-color: var(--line); white-space: pre-wrap; }
.composer select:disabled { opacity: 0.55; }
.composer .channels { margin-top: 4px; }
.composer button.btn { cursor: pointer; width: 100%; }
.composer-status { min-height: 1.75em; margin: 0; font-weight: 600; color: var(--navy); }

/* Photo crop positions (generated by build.mjs) */
.o-50-62 { object-position: 50% 62%; }
.o-50-65 { object-position: 50% 65%; }
.o-50-70 { object-position: 50% 70%; }
.o-58-55 { object-position: 58% 55%; }
.o-45-60 { object-position: 45% 60%; }
.o-40-70 { object-position: 40% 70%; }
.o-50-60 { object-position: 50% 60%; }
.o-50-50 { object-position: 50% 50%; }
.o-50-55 { object-position: 50% 55%; }
.o-55-60 { object-position: 55% 60%; }
.o-40-50 { object-position: 40% 50%; }
