/* ==========================================================================
   Indunil Beach Resort
   Quiet coastal editorialism. Palette derived from the property logo
   (deep harbour blue + apricot sunset) and the warm interiors of the house.
   Sections:
     01 Tokens
     02 Reset and base
     03 Typography
     04 Layout primitives
     05 Horizon motif
     06 Buttons and links
     07 Header and navigation
     08 Mobile menu panel
     09 Photographic plates
     10 Hero
     11 Editorial sections
     12 Rates
     13 Fact rows and notes
     14 Gallery and lightbox
     15 Forms
     16 Footer
     17 Motion and reveals
     18 Narrow width refinements
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Harbour blues, read off the logo emblem */
  --ocean-950: #052a44;
  --ocean-850: #0a3c5c;
  --ocean-700: #14506f;
  --ocean-550: #3b718c;

  /* Apricot sunset, read off the logo sun */
  --sun-200: #fdd6ac;
  --sun-300: #fdb37a;
  --sun-500: #dd8244;
  --sun-700: #a8531a;

  /* Surfaces drawn from the tiled interiors and sand */
  --shell-100: #f7f4ee;
  --shell-050: #fcfaf6;
  --sand-300: #e6dbc9;
  --mist-200: #e2ecea;
  --palm-700: #35564c;

  /* Ink */
  --ink-900: #12303f;
  --ink-700: #3a5462;
  --ink-600: #5a7079;
  --line: #ddd6c9;
  --line-soft: #e9e3d8;
  --white: #ffffff;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --t-label: clamp(0.68rem, 0.64rem + 0.16vw, 0.79rem);
  --t-body: clamp(0.96rem, 0.91rem + 0.22vw, 1.1rem);
  --t-intro: clamp(1.12rem, 1rem + 0.5vw, 1.45rem);
  --t-h3: clamp(1.45rem, 1.18rem + 1vw, 2.2rem);
  --t-h2: clamp(2rem, 1.35rem + 2.6vw, 4.3rem);
  --t-h1: clamp(2.5rem, 1.45rem + 5vw, 6.7rem);

  /* Space */
  --page-gutter: clamp(0.75rem, 3.5vw, 4.5rem);
  --section-space: clamp(4rem, 9vw, 9.5rem);
  --content-max: 92rem;
  --text-max: 44rem;
  --narrow-max: 34rem;
  --radius: 4px;
  --radius-lg: 7px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --mid: 240ms;
  --slow: 560ms;

  --header-h: clamp(4.25rem, 3.4rem + 3vw, 6.25rem);
}

/* --------------------------------------------------------------------------
   02 Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--shell-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sun-700);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--sun-200);
  color: var(--ocean-950);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -400%;
  z-index: 200;
  background: var(--ocean-950);
  color: var(--shell-100);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   03 Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--ocean-950);
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.14; }

h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.35;
  color: var(--ocean-950);
}

p {
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.lede {
  font-size: var(--t-intro);
  line-height: 1.5;
  color: var(--ink-700);
  max-width: var(--text-max);
  font-weight: 400;
}

.prose {
  max-width: var(--text-max);
  color: var(--ink-700);
}
.prose + .prose { margin-top: 1.1em; }

.quiet {
  font-size: 0.94em;
  color: var(--ink-600);
}

.aside-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  line-height: 1.5;
  color: var(--ocean-700);
  max-width: var(--narrow-max);
}

/* --------------------------------------------------------------------------
   04 Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin-inline: auto;
}

.wrap--text { max-width: min(calc(100% - (var(--page-gutter) * 2)), 68rem); }

.section { padding-block: var(--section-space); }
.section--tight { padding-block: calc(var(--section-space) * 0.62); }
.section--mist { background: var(--mist-200); }
.section--sand { background: var(--sand-300); }
.section--ocean {
  background: var(--ocean-950);
  color: var(--shell-100);
}
.section--ocean h1,
.section--ocean h2,
.section--ocean h3,
.section--ocean h4 { color: var(--shell-100); }
.section--ocean .prose,
.section--ocean .lede { color: #c8dae2; }
.section--ocean .quiet { color: #a9c4d0; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Section head: label, heading, single paragraph */
.s-head { max-width: 46rem; }
.s-head > * + * { margin-top: 0.9rem; }
.s-head .lede { margin-top: 1.1rem; }

.stack > * + * { margin-top: 1.2rem; }
.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3.4rem); }

/* Two column editorial split: text beside imagery */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr); }
  .split--flip > :first-child { order: 2; }
}

/* --------------------------------------------------------------------------
   05 Horizon motif
   A hairline that lifts into a half sun. Taken from the circle in the logo.
   Used only beside section labels and once in the footer.
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-700);
  min-width: 0;
}
.eyebrow span { min-width: 0; overflow-wrap: anywhere; }

.horizon {
  flex: none;
  width: 34px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
}

.section--ocean .eyebrow { color: var(--sun-300); }

.footer-horizon {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: color-mix(in srgb, var(--sun-300) 28%, var(--mist-200));
  stroke-width: 1;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   06 Buttons and links
   -------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  --btn-bg: var(--ocean-850);
  --btn-fg: var(--shell-050);
  --btn-bd: var(--ocean-850);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}
.btn:hover { --btn-bg: var(--ocean-950); --btn-bd: var(--ocean-950); }

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ocean-950);
  --btn-bd: var(--ocean-550);
}
.btn--line:hover {
  --btn-bg: transparent;
  --btn-bd: var(--ocean-950);
  --btn-fg: var(--ocean-950);
}

.btn--sun {
  --btn-bg: var(--sun-500);
  --btn-fg: #2a1401;
  --btn-bd: var(--sun-500);
}
.btn--sun:hover { --btn-bg: var(--sun-300); --btn-bd: var(--sun-300); }

.section--ocean .btn--line {
  --btn-fg: var(--shell-100);
  --btn-bd: #4d7a91;
}
.section--ocean .btn--line:hover { --btn-bd: var(--shell-100); --btn-fg: var(--white); }

.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.actions--after { margin-top: clamp(1.5rem, 3vw, 2rem); }

/* Underlined text link */
.tlink {
  display: inline-block;
  color: var(--ocean-950);
  text-decoration: none;
  font-weight: 600;
  padding-block: 0.15rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size var(--mid) var(--ease), color var(--fast) var(--ease);
}
.tlink:hover { color: var(--sun-700); background-size: 100% 1px; }
.section--ocean .tlink { color: var(--shell-100); }
.section--ocean .tlink:hover { color: var(--sun-300); }

/* --------------------------------------------------------------------------
   07 Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--shell-100);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid) var(--ease), background var(--mid) var(--ease);
  padding-top: env(safe-area-inset-top);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(247, 244, 238, 0.94);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-stuck { backdrop-filter: blur(8px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-width: 0;
  text-decoration: none;
}
.brand img {
  width: clamp(6.25rem, 16vw, 11.5rem);
  height: auto;
  aspect-ratio: 1015 / 434;
}

.nav-desktop { display: none; }

@media (min-width: 60rem) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2vw, 2.1rem);
  }
  .nav-desktop ul {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2vw, 2.1rem);
    list-style: none;
  }
  .nav-desktop ul a {
    position: relative;
    display: inline-block;
    padding-block: 0.4rem;
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-700);
    transition: color var(--fast) var(--ease);
  }
  .nav-desktop ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--mid) var(--ease);
  }
  .nav-desktop ul a:hover { color: var(--ocean-950); }
  .nav-desktop ul a:hover::after { transform: scaleX(1); }
  .nav-desktop ul a[aria-current="page"] {
    color: var(--ocean-950);
    font-weight: 600;
  }
  .nav-desktop ul a[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--sun-500);
    height: 2px;
  }
  .nav-desktop .btn { min-height: 42px; padding: 0.5rem 1.1rem; }
  .menu-toggle { display: none; }
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease);
}
.menu-toggle:hover { border-color: var(--ocean-550); }

.menu-toggle .bars {
  position: relative;
  width: 20px;
  height: 12px;
}
.menu-toggle .bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ocean-950);
  border-radius: 2px;
  transition: transform var(--mid) var(--ease), opacity var(--fast) var(--ease);
}
.menu-toggle .bars i:nth-child(1) { top: 0; }
.menu-toggle .bars i:nth-child(2) { top: 5.25px; }
.menu-toggle .bars i:nth-child(3) { top: 10.5px; }

.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   08 Mobile menu panel
   -------------------------------------------------------------------------- */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--ocean-950);
  color: var(--shell-100);
  padding: calc(env(safe-area-inset-top) + 0.9rem) var(--page-gutter)
           calc(env(safe-area-inset-bottom) + 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--mid) var(--ease),
              transform var(--mid) var(--ease),
              visibility 0s linear var(--mid);
}
.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
@media (min-width: 60rem) { .menu-panel { display: none; } }

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 46px;
}
.menu-top img {
  width: clamp(5rem, 22vw, 8rem);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: transparent;
  border: 1px solid #2c5670;
  border-radius: var(--radius);
  color: var(--shell-100);
  cursor: pointer;
}
.menu-close:hover { border-color: var(--shell-100); }

.menu-nav {
  margin-top: clamp(1.5rem, 6vh, 3rem);
  list-style: none;
}
.menu-nav li + li { border-top: 1px solid rgba(200, 218, 226, 0.16); }
.menu-nav a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 8vw, 2.4rem);
  line-height: 1.15;
  text-decoration: none;
  color: var(--shell-100);
  transition: color var(--fast) var(--ease);
}
.menu-nav a:hover { color: var(--sun-300); }
.menu-nav a[aria-current="page"] { color: var(--sun-300); }

.menu-foot {
  margin-top: auto;
  padding-top: clamp(1.5rem, 5vh, 2.5rem);
}
.menu-foot > * + * { margin-top: 1rem; }
.menu-foot .btn { width: 100%; }
.menu-foot address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a9c4d0;
  overflow-wrap: anywhere;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(200, 218, 226, 0.28);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.social-row a:hover { border-color: var(--sun-300); color: var(--sun-300); }
.social-row svg { width: 16px; height: 16px; flex: none; fill: currentColor; }

/* Light surface variant, used on the contact page */
.social-row--light a {
  border-color: var(--line);
  color: var(--ocean-950);
}
.social-row--light a:hover { border-color: var(--sun-700); color: var(--sun-700); }

/* --------------------------------------------------------------------------
   09 Photographic plates
   Every supplied photograph is a tall 3:4 frame, so the site is built around
   vertical plates set on staggered baselines rather than wide banners.
   -------------------------------------------------------------------------- */
.plate {
  position: relative;
  margin: 0;
  min-width: 0;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--sand-300);
}
.plate--tall img { aspect-ratio: 3 / 4; }
.plate--upright img { aspect-ratio: 4 / 5; }
.plate--square img { aspect-ratio: 1 / 1; }
.plate--wide img { aspect-ratio: 4 / 3; }
.plate--band img { aspect-ratio: 3 / 4; }
@media (min-width: 48rem) {
  .plate--band img { aspect-ratio: 16 / 9; }
}

.plate figcaption {
  margin-top: 0.7rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-600);
  max-width: 26rem;
}

.pos-top img { object-position: 50% 18%; }
.pos-upper img { object-position: 50% 30%; }
.pos-lower img { object-position: 50% 72%; }
.pos-bottom img { object-position: 50% 88%; }

/* Staggered pair: second plate drops below the baseline of the first */
.plate-pair {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.plate-pair .plate:nth-child(2) { margin-top: clamp(1.5rem, 6vw, 4.5rem); }

/* Three plate strip used on the rooms and facilities pages */
.plate-strip {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.plate-strip .plate:nth-child(3) { grid-column: 1 / -1; }
@media (min-width: 52rem) {
  .plate-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate-strip .plate:nth-child(3) { grid-column: auto; }
  .plate-strip .plate:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
}
@media (max-width: 25rem) {
  .plate-strip { grid-template-columns: minmax(0, 1fr); }
  .plate-strip .plate:nth-child(2) { margin-top: 0; }
  .plate-pair { grid-template-columns: minmax(0, 1fr); }
  .plate-pair .plate:nth-child(2) { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   10 Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(1.25rem, 3vw, 3rem) clamp(3rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy { max-width: 34rem; }
.hero-copy > * + * { margin-top: clamp(1rem, 2vw, 1.5rem); }
.hero-copy h1 { margin-top: 1.2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--ink-600);
}
.hero-meta span { white-space: nowrap; }

.hero-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.6vw, 1rem);
  min-width: 0;
}

.hero-card {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-300);
  isolation: isolate;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(5, 42, 68, 0.66), transparent);
  pointer-events: none;
  z-index: 1;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
.hero-card figcaption {
  position: absolute;
  left: clamp(0.75rem, 1.6vw, 1rem);
  right: clamp(0.75rem, 1.6vw, 1rem);
  bottom: clamp(0.65rem, 1.4vw, 0.9rem);
  z-index: 2;
  color: var(--shell-050);
  font-size: clamp(0.72rem, 0.67rem + 0.15vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.hero-card--lead { grid-column: 1 / -1; }
.hero-card--lead img { aspect-ratio: 4 / 3; object-position: 50% 54%; }
.hero-card--room img { aspect-ratio: 4 / 3; object-position: 50% 38%; }
.hero-card--roof img { aspect-ratio: 4 / 3; object-position: 50% 58%; }

@media (hover: hover) {
  .hero-card:hover img { transform: scale(1.018); }
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
  .hero-art {
    grid-template-columns: minmax(0, 1.72fr) minmax(10rem, 0.78fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-self: stretch;
    max-height: clamp(30rem, 43vw, 38rem);
  }
  .hero-card--lead { grid-column: 1; grid-row: 1 / 3; }
  .hero-card--room { grid-column: 2; grid-row: 1; }
  .hero-card--roof { grid-column: 2; grid-row: 2; }
  .hero-card img { aspect-ratio: auto; }
}

/* --------------------------------------------------------------------------
   11 Editorial sections
   -------------------------------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 4vw, 3rem); }
.page-head > * + * { margin-top: 1.1rem; }

.measure-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (min-width: 56rem) {
  .measure-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .measure-grid--form { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}

/* Small labelled column pair used for honest information */
.duo {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
@media (min-width: 44rem) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.duo > div > * + * { margin-top: 0.7rem; }

.trio {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
@media (min-width: 50rem) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.trio > div > * + * { margin-top: 0.6rem; }
.trio h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); }

/* Compact rooftop story on the facilities page */
.roof-feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.roof-feature__copy { max-width: 34rem; }

.roof-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.5vw, 1rem);
  min-width: 0;
}
.roof-card {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-300);
  isolation: isolate;
}
.roof-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(5, 42, 68, 0.62), transparent);
  pointer-events: none;
}
.roof-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roof-card figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.65rem;
  z-index: 1;
  color: var(--shell-050);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}
.roof-card--lead { grid-column: 1 / -1; }
.roof-card--lead img { aspect-ratio: 16 / 10; object-position: 50% 70%; }
.roof-card--wide img { aspect-ratio: 4 / 3; }
.roof-card--coast img { aspect-ratio: 4 / 3; object-position: 50% 52%; }

@media (min-width: 62rem) {
  .roof-feature { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
  .roof-collage {
    grid-template-columns: minmax(0, 1.55fr) minmax(9rem, 0.72fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    max-height: clamp(27rem, 39vw, 34rem);
  }
  .roof-card--lead { grid-column: 1; grid-row: 1 / 3; }
  .roof-card--wide { grid-column: 2; grid-row: 1; }
  .roof-card--coast { grid-column: 2; grid-row: 2; }
  .roof-card img { aspect-ratio: auto; }
}

/* --------------------------------------------------------------------------
   12 Rates
   -------------------------------------------------------------------------- */
.rates {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 44rem) {
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rate {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--shell-050);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  min-width: 0;
}
.section--mist .rate { background: var(--shell-050); border-color: #cfdedb; }

.rate h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.35;
}
.rate .price {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.35rem + 2vw, 2.9rem);
  line-height: 1;
  color: var(--ocean-950);
  overflow-wrap: anywhere;
}
.rate .per {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sun-700);
}
.rate p { color: var(--ink-700); font-size: 0.95rem; }

.rate-note {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding-left: 1rem;
  border-left: 2px solid var(--sun-500);
  color: var(--ink-700);
  max-width: 40rem;
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   13 Fact rows and notes
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  gap: 0;
  margin: 0;
  min-width: 0;
}
@media (min-width: 46rem) {
  .facts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); }
}
.facts .row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.72rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.facts dt {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-600);
  min-width: 0;
}
.facts dd {
  margin: 0;
  font-size: 0.99rem;
  color: var(--ocean-950);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.section--ocean .facts .row { border-bottom-color: rgba(200, 218, 226, 0.2); }
.section--ocean .facts dt { color: #9ab8c5; }
.section--ocean .facts dd { color: var(--shell-100); }

@media (max-width: 30rem) {
  .facts .row { display: block; }
  .facts dd { text-align: left; margin-top: 0.15rem; }
}

.note-card {
  padding: clamp(1.25rem, 3vw, 1.9rem);
  background: var(--mist-200);
  border-radius: var(--radius-lg);
  min-width: 0;
}
.note-card > * + * { margin-top: 0.7rem; }
.section--mist .note-card { background: var(--shell-050); }
.note-card h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); }
.note-card p { color: var(--ink-700); font-size: 0.97rem; }

/* Compact bullet list, used only where sequence genuinely helps */
.mini-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.mini-list li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink-700);
}

/* --------------------------------------------------------------------------
   14 Gallery and lightbox
   -------------------------------------------------------------------------- */
.gallery-filter-panel {
  max-width: 72rem;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(0.65rem, 1vw, 0.9rem);
  background: rgba(252, 250, 246, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(5, 42, 68, 0.045);
}

.gallery-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2rem;
  padding: 0.05rem 0.35rem 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}

.gallery-filter-label {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ocean-850);
}

.gallery-status {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-600);
  text-align: right;
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  list-style: none;
}

.filters li { min-width: 0; }

.filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.65rem;
  background: rgba(247, 244, 238, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-700);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              background var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}

.filter-btn::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  flex: none;
  border-radius: 50%;
  background: var(--sun-300);
  opacity: 0;
  transform: scale(0.35);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.filter-btn:hover {
  border-color: var(--line);
  background: var(--mist-200);
  color: var(--ocean-950);
}

.filter-btn:active { transform: translateY(1px); }

.filter-btn:focus-visible {
  outline: 3px solid rgba(253, 179, 122, 0.45);
  outline-offset: 2px;
}

.filter-btn[aria-pressed="true"] {
  background: var(--ocean-950);
  border-color: var(--ocean-950);
  box-shadow: 0 8px 18px rgba(5, 42, 68, 0.14);
  color: var(--shell-050);
}

.filter-btn[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1);
}

/* Four balanced controls followed by three balanced controls on tablets. */
@media (max-width: 66rem) {
  .filters { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .filters li:nth-child(-n + 4) { grid-column: span 3; }
  .filters li:nth-child(n + 5) { grid-column: span 4; }
}

/* A stable two-column arrangement avoids clipped or half-visible filter chips. */
@media (max-width: 36rem) {
  .gallery-filter-panel {
    margin-inline: 0;
    padding: 0.6rem;
    border-radius: 10px;
  }
  .gallery-filter-heading {
    align-items: flex-start;
    padding-inline: 0.2rem;
  }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters li,
  .filters li:nth-child(-n + 4),
  .filters li:nth-child(n + 5) { grid-column: span 1; }
  .filters li:first-child { grid-column: 1 / -1; }
  .filter-btn {
    min-height: 48px;
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 24rem) {
  .gallery-filter-heading {
    flex-direction: column;
    gap: 0.18rem;
  }
  .gallery-status { text-align: left; }
}

.gallery-grid {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
  list-style: none;
}
@media (max-width: 30rem) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

.gallery-grid li { display: grid; min-width: 0; }
.gallery-grid li[hidden] { display: none; }

/* A larger plate every so often, so the sheet reads as an edit rather than
   a contact sheet. The 2 by 2 span keeps the original 3:4 crop intact. */
@media (min-width: 52rem) {
  .gallery-grid li.is-feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-grid li.is-feature .shot img { aspect-ratio: auto; height: 100%; }
  .gallery-grid li.is-feature.is-tail-compact {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-grid li.is-feature.is-tail-compact .shot img {
    aspect-ratio: 3 / 4;
    height: auto;
  }
}

.shot {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--sand-300);
  transition: transform var(--slow) var(--ease), filter var(--mid) var(--ease);
}
.shot:hover img { transform: scale(1.025); }

.gallery-status {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-600);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(5, 42, 68, 0.96);
  padding: calc(env(safe-area-inset-top) + 0.6rem) 0.6rem calc(env(safe-area-inset-bottom) + 0.6rem);
}
.lightbox[open],
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; gap: 0.6rem; }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.lb-count {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ab8c5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  min-width: 0;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--mid) var(--ease);
}
.lb-stage img.is-shown { opacity: 1; }

.lb-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
}
.lb-caption {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #c8dae2;
  overflow-wrap: anywhere;
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 218, 226, 0.3);
  border-radius: var(--radius);
  color: var(--shell-100);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.lb-btn:hover { border-color: var(--shell-100); background: rgba(255, 255, 255, 0.12); }
.lb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   15 Forms
   -------------------------------------------------------------------------- */
.form { max-width: 40rem; }
.form > * + * { margin-top: 1.15rem; }

.field { min-width: 0; }
.field > label,
.fieldset > legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  background: var(--shell-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-900);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235a7079' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.75 6 6.5l5-4.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}
.date-control {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.date-control input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-right: 3.35rem;
  font-size: max(1rem, 16px);
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
}
.date-control input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.date-control input[type="date"]::-webkit-datetime-edit { min-width: 0; padding: 0; }
.date-control input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 3.2rem;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.date-picker-trigger {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--ocean-700);
  cursor: pointer;
}
.date-picker-trigger:hover { background: var(--mist-200); }
.date-picker-trigger svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ocean-550); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ocean-700); outline-offset: 1px; }

.field-row {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 34rem) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hint {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  color: var(--ink-600);
}

.error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #9c2f16;
}
.field.has-error .error { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #9c2f16; }

.form-status {
  min-height: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--palm-700);
}

.form .btn { width: 100%; }
@media (min-width: 34rem) { .form .btn { width: auto; } }

/* --------------------------------------------------------------------------
   16 Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ocean-950);
  color: #d4e2e8;
  padding-block: clamp(3.15rem, 6vw, 5.35rem) clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(253, 179, 122, 0.3);
  box-shadow: none;
}
.site-footer a { color: var(--shell-100); text-decoration: none; }
.site-footer a:hover { color: var(--sun-300); }

@media (max-width: 43.999rem) {
  .site-footer {
    border-top: 0;
    padding-top: clamp(2.6rem, 10vw, 3.5rem);
  }
  .footer-top {
    padding-top: 0;
    padding-bottom: clamp(1.8rem, 7vw, 2.5rem);
  }
  .footer-horizon {
    width: min(100%, 24rem);
    opacity: 0.48;
    transform: scaleY(-1);
    transform-origin: center;
    stroke: var(--mist-200);
  }
}

.footer-top { padding-top: 0.3rem; padding-bottom: clamp(2.05rem, 4vw, 3.3rem); }

.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
@media (min-width: 44rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 66rem) {
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr; }
}

.footer-brand img {
  width: clamp(10.5rem, 30vw, 15.25rem);
  height: auto;
  aspect-ratio: 1015 / 434;
}
.footer-brand > * + * { margin-top: 1rem; }
.footer-brand address {
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8fb0bf;
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.62rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 30px;
  overflow-wrap: anywhere;
}
.footer-col svg { width: 16px; height: 16px; flex: none; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 218, 226, 0.18);
  font-size: 0.84rem;
  color: #8fb0bf;
}

/* --------------------------------------------------------------------------
   17 Motion and reveals
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .shot:hover img { transform: none; }
}

/* --------------------------------------------------------------------------
   18 Narrow width refinements (down to 250px)
   -------------------------------------------------------------------------- */
@media (max-width: 26rem) {
  :root { --page-gutter: 0.75rem; }
  .actions .btn { width: 100%; }
  .hero-meta { flex-direction: column; gap: 0.2rem; }
  .hero-meta span { white-space: normal; }
  .lb-caption { font-size: 0.8rem; }
}

@media (max-width: 20rem) {
  :root {
    --t-h1: clamp(1.85rem, 10vw, 2.3rem);
    --t-h2: clamp(1.6rem, 9vw, 2rem);
    --t-h3: clamp(1.25rem, 7vw, 1.5rem);
    --header-h: 4rem;
  }
  .brand img { width: 6.25rem; }
  .menu-toggle { width: 44px; height: 44px; }
  .plate figcaption { font-size: 0.8rem; }
  .filter-btn { font-size: 0.82rem; padding-inline: 0.7rem; }
  .date-control input[type="date"] { padding-left: 0.7rem; padding-right: 3rem; }
  .date-picker-trigger { right: 0.05rem; }
  .lb-btn { width: 44px; height: 44px; }
  .footer-bottom { font-size: 0.79rem; }
}

/* Desktop menu visibility correction */
@media (min-width: 60rem) {
  .menu-toggle { display: none; }
}

/* Mobile header logo size refinement */
@media (max-width: 59.999rem) {
  .brand img {
    width: clamp(7.75rem, 38vw, 10rem);
  }
}
