/* =================================================================
   Whalehaven — Southbroom, KZN
   Palette taken from the property's own signage: navy whale,
   sunset gold, two tones of wave blue.
   ================================================================= */

:root {
  --ink:        #0B1E33;
  --navy:       #12324F;
  --ocean:      #1E5F8C;
  --surf:       #8FC0DC;
  --surf-pale:  #DCEAF3;

  --gold:       #C08535;
  --gold-lift:  #D89C4C;
  --gold-pale:  #F0DFC4;

  --sand:       #F3EBDF;
  --shell:      #FCFAF7;
  --white:      #FFFFFF;

  --body:       #45535F;
  --muted:      #74828E;
  --line:       rgba(11, 30, 51, .11);
  --line-light: rgba(255, 255, 255, .18);

  --r:    14px;
  --r-lg: 22px;

  --shadow:    0 18px 40px -22px rgba(11, 30, 51, .30);
  --shadow-lg: 0 40px 80px -40px rgba(11, 30, 51, .45);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter:  clamp(20px, 5vw, 44px);
  --section: clamp(72px, 11vw, 140px);
  --header-h: 78px;
}

/* ----------------------------- reset ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--shell);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: clamp(2.9rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2.05rem, 4.3vw, 3.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.005em; }
h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ocean); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold-pale); color: var(--ink); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* --------------------------- primitives ------------------------- */
.shell {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 800px; }

.section { padding-block: var(--section); position: relative; }
.section--sand { background: var(--sand); }
.section--deep { background: var(--ink); color: rgba(255,255,255,.76); }
.section--deep h2, .section--deep h3, .section--deep strong { color: #fff; }

.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--gold-lift); }

/* the double-wave mark from the Whalehaven sign, used as a rule */
.wave-rule {
  display: block;
  width: 62px; height: 14px;
  margin-bottom: 26px;
  background-repeat: no-repeat;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='14' viewBox='0 0 62 14'%3E%3Cpath d='M1 5c7-5 14 4 20 0s13-5 20 0 13 4 20 0' fill='none' stroke='%238FC0DC' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M1 12c7-5 14 4 20 0s13-5 20 0 13 4 20 0' fill='none' stroke='%23C08535' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.wave-rule--light {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='14' viewBox='0 0 62 14'%3E%3Cpath d='M1 5c7-5 14 4 20 0s13-5 20 0 13 4 20 0' fill='none' stroke='%238FC0DC' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M1 12c7-5 14 4 20 0s13-5 20 0 13 4 20 0' fill='none' stroke='%23D89C4C' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.62;
  color: var(--navy);
}
.section--deep .lede, .booking .lede { color: rgba(255,255,255,.86); }

.section-head { max-width: 660px; margin-bottom: clamp(38px, 5vw, 64px); }

.note {
  margin-top: clamp(32px, 4vw, 52px);
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.6);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .97rem;
}
.section--sand .note { background: rgba(255,255,255,.75); }
.note--light {
  background: rgba(255,255,255,.06);
  border-left-color: var(--gold-lift);
  color: rgba(255,255,255,.82);
}

.signature {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ocean);
  margin-top: 1.6em;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px;
  font-weight: 500; font-size: .95rem;
  letter-spacing: .01em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.link-arrow::after { content: "→"; transition: transform .25s ease; }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ----------------------------- buttons -------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .93rem; font-weight: 600; letter-spacing: .015em;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--gold  { --btn-bg: var(--gold); }
.btn--gold:hover { background: var(--gold-lift); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg    { padding: 17px 34px; font-size: .98rem; }
.btn--block { width: 100%; }

/* ----------------------------- header --------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.is-stuck {
  background: rgba(252, 250, 247, .93);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(11,30,51,.5);
  height: 68px;
}

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 44px; height: 44px; object-fit: contain; transition: width .35s ease, height .35s ease; }
.is-stuck .brand__mark { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.34rem; letter-spacing: .015em;
  color: #fff; transition: color .35s ease;
}
.brand__sub {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.66); transition: color .35s ease;
}
.is-stuck .brand__name { color: var(--ink); }
.is-stuck .brand__sub  { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  font-size: .89rem; font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.88);
  position: relative;
  transition: color .3s ease;
}
.nav > a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.nav > a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav > a:hover { color: #fff; }
.is-stuck .nav > a { color: var(--navy); }
.is-stuck .nav > a:hover { color: var(--gold); }
.nav__cta { color: #fff !important; padding: 11px 22px; }
.nav__cta::after { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  padding: 11px 9px;
  flex-direction: column; justify-content: space-between;
}
.burger span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .25s ease, background .35s ease;
}
.is-stuck .burger span { background: var(--ink); }
.nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ------------------------------ hero ---------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  animation: heroDrift 26s ease-out forwards;
}
@keyframes heroDrift { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11,30,51,.62) 0%, rgba(11,30,51,.18) 34%, rgba(11,30,51,.55) 72%, rgba(11,30,51,.88) 100%);
}

.hero__inner { padding-bottom: clamp(48px, 8vh, 88px); max-width: 940px; }

.hero__title {
  color: #fff;
  margin-bottom: .32em;
  text-shadow: 0 2px 40px rgba(11,30,51,.45);
}
.hero__title em {
  font-style: italic;
  color: var(--gold-lift);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero__lede {
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  line-height: 1.6;
  max-width: 33em;
  margin-bottom: 2.1em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__strip {
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(11,30,51,.34);
  backdrop-filter: blur(10px);
}
.hero__strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 22px;
}
.hero__strip-inner > div {
  display: flex; flex-direction: column; gap: 2px;
  padding-inline: 4px;
  border-left: 1px solid rgba(255,255,255,.14);
  padding-left: clamp(12px, 2.4vw, 28px);
}
.hero__strip-inner > div:first-child { border-left: 0; padding-left: 0; }
.hero__strip strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: #fff; font-weight: 400; line-height: 1.1;
}
.hero__strip span {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.66);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 132px;
  width: 24px; height: 40px; margin-left: -12px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 14px;
  z-index: 3;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px;
  width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: #fff;
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  70%      { transform: translateY(13px); opacity: 0; }
}

/* --------------------------- split grid ------------------------- */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.grid-split--reverse .grid-split__text  { order: 2; }
.grid-split--reverse .grid-split__media { order: 1; }

.grid-split__media { position: relative; }

.frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surf-pale);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.frame:hover img { transform: scale(1.045); }
.frame--tall { aspect-ratio: 4 / 5; }

.frame--float {
  position: absolute;
  right: -22px; bottom: -40px;
  width: 44%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--shell);
  border-radius: var(--r);
}
.section--deep .frame--float { border-color: var(--ink); }

/* ----------------------------- suite ---------------------------- */
.suite {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: clamp(16px, 2vw, 26px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.suite__hero { aspect-ratio: 4 / 5; }
.suite__side { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(16px, 2vw, 26px); min-height: 0; }
/* The side images are portrait originals; take them out of flow so they fill
   the row the hero's aspect-ratio defines instead of stretching the grid. */
.suite__side .frame { position: relative; min-height: 0; }
.suite__side .frame img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------- amenities -------------------------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(26px, 3.4vw, 46px);
}
.amenities li { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.amenities svg {
  width: 27px; height: 27px; margin-bottom: 16px;
  fill: none; stroke: var(--gold); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.amenities h3 { margin-bottom: .45em; }
.amenities p { font-size: .945rem; color: var(--muted); line-height: 1.62; }

/* ---------------------------- gallery --------------------------- */
/* Masonry via CSS columns: the photos are a mix of portrait and landscape,
   so let them keep their real proportions rather than cropping to a grid.
   Columns also guarantee no empty cells, which a span-based grid cannot. */
.gallery {
  columns: 3;
  column-gap: clamp(12px, 1.5vw, 20px);
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0; border: 0;
  margin: 0 0 clamp(12px, 1.5vw, 20px);
  border-radius: var(--r);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surf-pale);
  box-shadow: var(--shadow);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.gallery__item img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.8,.2,1); }

.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,30,51,.45), transparent 55%);
  opacity: 0; transition: opacity .35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

.gallery__zoom {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery__zoom svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: translateY(0); }

/* ---------------------------- places ---------------------------- */
.places { margin: 32px 0 0; }
.places li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 4px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  align-items: baseline;
}
.places li:last-child { border-bottom: 1px solid var(--line-light); }
.places__dist {
  grid-row: span 2;
  font-size: .73rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-lift); font-weight: 600;
  padding-top: 4px;
}
.places__name { color: #fff; font-weight: 500; font-size: 1.03rem; }
.places__note { font-size: .885rem; color: rgba(255,255,255,.58); }

/* ------------------------------ map ----------------------------- */
.map {
  margin-top: clamp(56px, 7vw, 92px);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
  background: var(--navy);
}
.map iframe { width: 100%; height: clamp(300px, 42vw, 440px); border: 0; filter: saturate(.85); }

/* ---------------------------- reviews --------------------------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.review {
  margin: 0;
  padding: 34px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.review__stars { color: var(--gold); letter-spacing: .18em; font-size: .95rem; margin-bottom: 16px; }
.review blockquote { margin: 0 0 24px; flex: 1; }
.review blockquote p {
  font-family: var(--font-display);
  font-size: 1.06rem; line-height: 1.66; color: var(--navy);
  font-variation-settings: "SOFT" 20;
}
.review figcaption { display: flex; align-items: center; gap: 13px; }
.review figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review figcaption span { display: flex; flex-direction: column; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.review figcaption strong { color: var(--ink); font-size: .96rem; font-weight: 600; }
.review__initial {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid !important; place-items: center;
  background: var(--surf-pale); color: var(--ocean);
  font-family: var(--font-display); font-size: 1.15rem;
}

/* ---------------------------- booking --------------------------- */
.booking {
  background:
    linear-gradient(rgba(11,30,51,.93), rgba(11,30,51,.97)),
    url("../img/view-deck.jpg") center/cover fixed;
  color: rgba(255,255,255,.78);
}
.booking h2 { color: #fff; }
.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: start;
}

.booking__contact { margin-top: 38px; display: grid; gap: 15px; }
.booking__contact li { display: flex; align-items: center; gap: 14px; font-size: .97rem; }
.booking__contact svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: var(--gold-lift); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.booking__contact a { color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.24); padding-bottom: 1px; }
.booking__contact a:hover { color: var(--gold-lift); border-color: var(--gold-lift); }

.booking__form-wrap {
  background: var(--shell);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.6vw, 46px);
  box-shadow: var(--shadow-lg);
}

.bform__head { margin-bottom: 26px; }
.bform__head h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin-bottom: .25em; }
.bform__head p  { font-size: .86rem; color: var(--muted); margin: 0; }
.bform__head span, .field label span { color: var(--gold); }

.bform__row { margin-bottom: 17px; }
.bform__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }

.field { display: flex; flex-direction: column; }
.field label {
  font-size: .79rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body); font-size: .97rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2374828E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 40px; cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #A8B2BB; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192,133,53,.14);
}
.field input[type="date"] { min-height: 48px; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0453B; }
.field__error { font-size: .8rem; color: #C0453B; margin: 7px 0 0; display: none; }
.field.has-error .field__error { display: block; }

.bform__nights {
  margin: -4px 0 17px;
  font-size: .85rem; color: var(--ocean); font-weight: 500;
  padding: 9px 14px; border-radius: 8px;
  background: var(--surf-pale);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { margin-top: 8px; position: relative; }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#submitBtn.is-busy { pointer-events: none; opacity: .8; }
#submitBtn.is-busy .btn__spinner { display: block; }

.bform__fine { font-size: .79rem; color: var(--muted); margin: 15px 0 0; text-align: center; line-height: 1.55; }

.bform__status { margin-top: 18px; display: none; padding: 16px 18px; border-radius: 10px; font-size: .93rem; line-height: 1.6; }
.bform__status.is-visible { display: block; }
.bform__status.is-error   { background: #FBEBE9; color: #8F2F27; border: 1px solid #F0C8C3; }
.bform__status.is-success { background: #E9F4EC; color: #1F5C33; border: 1px solid #C3E0CC; }
.bform__status strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.bform__status code {
  display: inline-block; margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92rem; letter-spacing: .06em;
  background: rgba(255,255,255,.7); padding: 5px 11px; border-radius: 6px;
}

/* ------------------------------ faq ----------------------------- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--ink);
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-right: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 40px 24px 0; margin: 0; color: var(--body); font-size: .98rem; }

/* ---------------------------- footer ---------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(44px, 5vw, 66px);
}
.footer__brand img { margin-bottom: 18px; border-radius: 10px; }
.footer__brand p { font-size: .93rem; max-width: 30em; line-height: 1.7; }
.footer__col h4 { color: rgba(255,255,255,.5); margin-bottom: 18px; }
.footer__col address { font-style: normal; font-size: .93rem; line-height: 1.85; }
.footer__col p { margin: 0 0 9px; font-size: .93rem; }
.footer__col a { color: rgba(255,255,255,.82); }
.footer__col a:hover { color: var(--gold-lift); }

.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .83rem;
}
.footer__base p { margin: 0; }
.footer__base a { color: rgba(255,255,255,.68); }
.footer__base a:hover { color: var(--gold-lift); }

.footer__credit { color: rgba(255,255,255,.45); }
.footer__credit a {
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 1px;
}
.footer__credit a:hover { color: var(--gold-lift); border-color: var(--gold-lift); }

/* --------------------------- lightbox --------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 20, 34, .96);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  transition: opacity .3s ease;
}
/* `display: flex` above would otherwise beat the browser's [hidden] rule,
   leaving an invisible full-screen overlay that swallows every click. */
.lightbox[hidden] { display: none; }

.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lightbox__figure img {
  max-width: 100%; max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.9);
}
.lightbox__figure figcaption { color: rgba(255,255,255,.62); font-size: .88rem; text-align: center; max-width: 60ch; }

.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 22px; right: 22px; width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; padding-bottom: 4px; }
.lightbox__nav { top: 50%; margin-top: -26px; width: 52px; height: 52px; font-size: 2rem; line-height: 1; padding-bottom: 6px; }
.lightbox__nav--prev { left: clamp(10px, 2.5vw, 34px); }
.lightbox__nav--next { right: clamp(10px, 2.5vw, 34px); }

body.lb-open { overflow: hidden; }

/* ------------------------- scroll reveal ------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }

/* ========================== responsive ========================== */
@media (max-width: 1024px) {
  .booking__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(340px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 40px 36px;
    background: var(--shell);
    box-shadow: -20px 0 60px -30px rgba(11,30,51,.7);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    z-index: 110;
  }
  .nav-open .nav { transform: translateX(0); }
  .nav > a {
    color: var(--ink) !important;
    font-family: var(--font-display);
    font-size: 1.42rem;
    padding: 11px 0;
    width: 100%;
  }
  .nav > a::after { display: none; }
  .nav__cta { margin-top: 20px; font-family: var(--font-body) !important; font-size: .95rem !important; color: #fff !important; width: auto; }
  .burger { display: flex; z-index: 120; position: relative; }
  .nav-open .burger span { background: var(--ink); }

  .grid-split { grid-template-columns: 1fr; gap: 56px; }
  .grid-split--reverse .grid-split__text  { order: 1; }
  .grid-split--reverse .grid-split__media { order: 2; }
  .grid-split__media { margin-bottom: 40px; }
  .frame--float { width: 40%; right: -10px; bottom: -32px; }

  .suite { grid-template-columns: 1fr; }
  .suite__hero { aspect-ratio: 4 / 3; }
  .suite__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .suite__side .frame { aspect-ratio: 1 / 1; }

  .booking { background-attachment: scroll; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 92svh; }
  .hero__strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding-block: 18px; }
  .hero__strip-inner > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }

  .gallery { columns: 2; }

  .bform__row--2 { grid-template-columns: 1fr; gap: 17px; }
  .places li { grid-template-columns: 1fr; gap: 2px; }
  .places__dist { grid-row: auto; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { justify-content: center; text-align: center; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
}

/* ------------------------- motion / print ----------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

@media print {
  .site-header, .hero__scroll, .lightbox, .booking__form-wrap, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}
