/* Bella Casa — Robertson, Western Cape
   Implementation of the "Bella Casa.dc.html" Claude Design prototype.
   Values (colours, type scale, clamps, radii, spacing) are taken from the design as-is.

   Box model note: the prototype rendered without a box-sizing reset, so its
   `max-width:1080px` containers sized their *content* box to 1080px with the
   gutters added outside. This file uses border-box everywhere and reproduces
   that geometry exactly via `calc(1080px + 2 * var(--gutter))`. */

:root {
  /* Surfaces */
  --bg:            #faf6ef;
  --bg-band:       #f2ebdf;
  --card:          #ffffff;
  --cream:         #fdf9f2;

  /* Ink */
  --ink:           #2d2823;
  --ink-soft:      #514a42;
  --ink-card:      #3d372f;
  --muted:         #6b6258;
  --muted-light:   #8a8175;

  /* Accent */
  --accent:        #2e6b66;
  --accent-dark:   #1f4a47;
  --accent-deep:   #22504c;

  /* Sampled from the glazed splashback tiles in the hero photograph
     (highlights excluded). 7.55:1 against --cream. */
  --tile:          #2d5762;
  --tile-dark:     #23444d;

  /* Map (from the Robertson Wine Valley artboard) */
  --ochre:         #b0722e;
  --map-tar:       #7fb5ae;
  --map-gravel:    #c2ad84;
  --map-river:     #8fb4c9;

  /* Lines */
  --hairline:      rgba(45, 40, 35, .08);
  --hairline-soft: rgba(45, 40, 35, .07);
  --accent-line:   rgba(46, 107, 102, .35);

  /* Rhythm */
  --gutter:        clamp(20px, 5vw, 48px);
  --pad-y:         clamp(56px, 10vw, 104px);
  --pad-y-sm:      clamp(56px, 10vw, 96px);
  --nav-offset:    76px;

  /* Radii */
  --r-sm:          12px;
  --r-md:          14px;
  --r-lg:          16px;

  /* Type */
  --serif:         'Marcellus', Georgia, 'Times New Roman', serif;
  --sans:          'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------------------------------------------------------------- base ---- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a       { color: var(--accent); }
a:hover { color: var(--accent-dark); }

img { display: block; }

/* <picture> wraps the images for webp fallback; it must not become a box
   of its own, or the grid and flex parents would lay out the wrapper
   instead of the image. */
picture { display: contents; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  color: var(--cream);
}

/* ----------------------------------------------------------- container ---- */

.wrap {
  max-width: calc(1080px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band { background: var(--bg-band); }

#about, #gallery, #amenities, #sleeping, #location, #nearby, #good-to-know, #book {
  scroll-margin-top: var(--nav-offset);
}

/* --------------------------------------------------------- shared type ---- */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.15;
  color: var(--ink);
}

.h2--pretty { text-wrap: pretty; }

.prose {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.section-head--lg { margin-bottom: 32px; }

/* ---------------------------------------------------------------- nav ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 239, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 14px var(--gutter);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .5px;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
  align-items: center;
}

.nav__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--accent); }

.nav__book {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--tile);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.nav__book:hover,
.nav__book:focus-visible {
  background: var(--tile-dark);
  color: var(--cream);
}

/* --------------------------------------------------------------- hero ----- */

.hero { position: relative; }

.hero__img {
  width: 100%;
  height: clamp(440px, 72vh, 660px);
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  /* Two layers: a soft wash over the whole photo, plus a backing anchored to
     the bottom edge in px, so it tracks the text stack (~380px tall on a
     phone, ~350px on desktop) rather than drifting with the hero's height. */
  background:
    linear-gradient(0deg,
      rgba(16, 22, 21, .72) 0px,
      rgba(16, 22, 21, .60) 190px,
      rgba(16, 22, 21, .52) 340px,
      rgba(16, 22, 21, .34) 430px,
      rgba(16, 22, 21, 0) 530px),
    linear-gradient(180deg,
      rgba(24, 30, 29, .20) 0%,
      rgba(24, 30, 29, .22) 45%,
      rgba(24, 30, 29, .30) 100%);
}

.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 24px clamp(48px, 9vh, 84px);
  gap: 18px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 76px);
  line-height: 1.05;
  color: var(--cream);
}

.hero__lede {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 20px);
  color: rgba(253, 249, 242, .92);
  max-width: 520px;
  line-height: 1.5;
}

/* Booking buttons — opaque "liquid glass" pills.
   Each fill is a gradient mesh: several radial blobs layered over a diagonal
   base, with a specular sheen as the topmost background layer. The sheen is a
   background layer rather than a pseudo-element so it always paints under the
   label. No borders, and no translucency — the glass reads through highlight
   and depth, not transparency. */

.cta-pair {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 17px 32px;
  border: none;
  border-radius: 38px;
  text-decoration: none;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(0, 0, 0, .16),
    0 10px 26px rgba(14, 32, 38, .30),
    0 2px 5px rgba(14, 32, 38, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: saturate(112%) brightness(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 14px 32px rgba(14, 32, 38, .34),
    0 3px 7px rgba(14, 32, 38, .24);
}

/* Deep teal glass — primary over the hero photograph */
.btn--deep {
  color: var(--cream);
  background-color: #2d5762;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(85% 120% at 14% 8%, rgba(122, 190, 199, .75) 0%, rgba(122, 190, 199, 0) 60%),
    radial-gradient(75% 110% at 86% 6%, rgba(58, 142, 134, .62) 0%, rgba(58, 142, 134, 0) 58%),
    radial-gradient(90% 130% at 72% 104%, rgba(14, 44, 52, .85) 0%, rgba(14, 44, 52, 0) 62%),
    radial-gradient(70% 100% at 4% 96%, rgba(21, 66, 74, .70) 0%, rgba(21, 66, 74, 0) 60%),
    linear-gradient(135deg, #37727e 0%, #2d5762 48%, #22434c 100%);
}

/* Warm cream glass — reads as the bright peer on both the photo and the band */
.btn--light {
  color: var(--accent-deep);
  background-color: #f8f2e7;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .14) 42%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(85% 120% at 12% 10%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(80% 115% at 88% 8%, rgba(223, 239, 236, .90) 0%, rgba(223, 239, 236, 0) 55%),
    radial-gradient(95% 130% at 76% 102%, rgba(216, 199, 172, .85) 0%, rgba(216, 199, 172, 0) 60%),
    linear-gradient(135deg, #fefbf6 0%, #f5ecdd 55%, #e9d7bf 100%);
}

/* Mid teal glass — the peer on the dark booking band, lifted clear of it */
.btn--mid {
  color: var(--cream);
  background-color: #356b76;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .09) 42%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(85% 120% at 14% 8%, rgba(146, 205, 212, .78) 0%, rgba(146, 205, 212, 0) 60%),
    radial-gradient(78% 112% at 88% 4%, rgba(74, 163, 152, .58) 0%, rgba(74, 163, 152, 0) 56%),
    radial-gradient(92% 132% at 74% 104%, rgba(18, 54, 62, .82) 0%, rgba(18, 54, 62, 0) 62%),
    linear-gradient(135deg, #43828f 0%, #356b76 50%, #27505b 100%);
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover,
  .btn:focus-visible { transform: none; }
}

/* -------------------------------------------------------------- facts ----- */

.facts {
  list-style: none;
  margin: 0;
  background: var(--tile);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(18px, 4vw, 44px);
  padding: 18px var(--gutter);
  font-size: 14px;
  letter-spacing: .04em;
}

.facts__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(253, 249, 242, .5);
}

/* -------------------------------------------------------------- about ----- */

#about {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

.about__figure figcaption {
  font-size: 13px;
  color: var(--muted-light);
  letter-spacing: .03em;
}

/* ------------------------------------------------------------ gallery ----- */

#gallery { padding-bottom: var(--pad-y); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.gallery__item {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__item--wide { grid-column: 1 / -1; }

.gallery__item .gallery__img { transition: transform .45s ease; }
.gallery__item:hover .gallery__img,
.gallery__item:focus-visible .gallery__img { transform: scale(1.03); }

.gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

.gallery__img--wide { aspect-ratio: 21 / 9; }

/* A tall room shot cropped to the 4:3 tile centres on the ceiling; bias the
   crop down so the subject stays in frame. The full photo opens in the viewer. */
.gallery__img--low { object-position: center 72%; }

/* ---------------------------------------------------------- amenities ----- */

.wrap--amenities {
  padding-top: var(--pad-y-sm);
  padding-bottom: var(--pad-y-sm);
}

.amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink-card);
}

/* ----------------------------------------------------- sleeping/cards ----- */

#sleeping, #good-to-know {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.room {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.room img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  color: var(--ink);
}

.room__meta {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------- location ----- */

.wrap--location {
  padding-top: var(--pad-y-sm);
  padding-bottom: var(--pad-y-sm);
}

.location {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.location__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  max-height: 520px;
}

.location__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ------------------------------------------------------- things to do ----- */

/* No bottom padding: #good-to-know supplies the gap below, the same way
   #gallery sits under #about. */
#nearby { padding-top: var(--pad-y); }

.nearby__lede { max-width: 62ch; }

.map {
  margin: clamp(30px, 4vw, 44px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(18px, 3vw, 30px) 0 0;
  overflow: hidden;
}

.map__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 34px);
}

.map__rule {
  flex: 1;
  height: 1px;
  background: rgba(45, 40, 35, .25);
}

.map__title {
  font-family: var(--serif);
  font-size: clamp(19px, 3vw, 34px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
}

.map__badge {
  background: var(--ochre);
  color: var(--cream);
  font-size: clamp(8px, 1.1vw, 10.5px);
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding: 5px 18px 5px 22px;
  border-radius: 2px;
}

/* The artboard is landscape and label-dense. Rather than shrink it to
   illegibility on a phone, it scrolls sideways in its own frame — the page
   itself never scrolls horizontally. */
.map__frame {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px clamp(10px, 2vw, 22px) 0;
}

.map__svg {
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
}

.map__legend {
  list-style: none;
  margin: 0;
  width: 100%;
  background: var(--accent-deep);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(16px, 3vw, 30px);
  padding: 13px clamp(18px, 3vw, 34px);
}

.map__key {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map__swatch {
  width: 26px;
  flex: none;
}

.map__swatch--route  { height: 4px; border-radius: 2px; background: var(--ochre); }
.map__swatch--tar    { height: 4px; border-radius: 2px; background: var(--map-tar); }
.map__swatch--gravel { height: 0; border-top: 3px dashed var(--map-gravel); }
.map__swatch--rail   { height: 2px; background: repeating-linear-gradient(90deg, var(--cream) 0 2px, transparent 2px 8px); }
.map__swatch--river  { height: 3px; border-radius: 2px; background: var(--map-river); }
.map__swatch--cellar { width: 12px; height: 8px; border-radius: 2px; background: var(--accent); border: 1px solid var(--cream); }

.map__caption {
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--muted-light);
}

.nearby__region {
  margin: clamp(30px, 4vw, 44px) 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}

.places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.place {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 16px 18px;
}

.place__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.place__name:hover,
.place__name:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.place__note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.nearby__foot {
  margin: clamp(30px, 4vw, 44px) 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}


/* ------------------------------------------------------- good to know ----- */

/* ------------------------------------------------- getting here steps ---- */

.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  max-width: 62ch;
}

.steps__item {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 30px;
  text-align: center;
}

.steps__item strong {
  font-weight: 600;
  color: var(--ink);
}

.getting-here__cards {
  margin-top: 30px;
}

.note {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}

.note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------- host ----- */

.host {
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) var(--pad-y);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.host__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 34px;
}

.host__title {
  font-size: clamp(26px, 4vw, 34px);
  line-height: normal; /* the design's host heading sets no line-height */
}

.host__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------- book ----- */

.book {
  background: var(--accent-deep);
  color: var(--cream);
}

.book__inner {
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(64px, 12vw, 110px) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.book__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 46px);
  line-height: 1.15;
  text-wrap: pretty;
}

.book__lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(253, 249, 242, .8);
  max-width: 440px;
}

.book__updated {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(253, 249, 242, .42);
}

.book__place {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(253, 249, 242, .55);
}

/* ----------------------------------------------------------- lightbox ---- */

.lb {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: hidden;
}

.lb::backdrop { background: rgba(20, 26, 28, .93); }

.lb__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 9vh, 88px) clamp(60px, 10vw, 104px);
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.lb__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vh, 26px);
  margin: 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  font-size: 14px;
  letter-spacing: .03em;
  color: rgba(253, 249, 242, .82);
}

.lb__count {
  color: rgba(253, 249, 242, .5);
  font-variant-numeric: tabular-nums;
}

.lb__btn,
.lb__close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--cream);
  background: rgba(253, 249, 242, .12);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}

.lb__btn:hover,
.lb__close:hover,
.lb__btn:focus-visible,
.lb__close:focus-visible { background: rgba(253, 249, 242, .26); }

.lb__btn {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lb__btn--prev { left: clamp(8px, 2vw, 24px); }
.lb__btn--next { right: clamp(8px, 2vw, 24px); }

.lb__close {
  top: clamp(10px, 2vh, 22px);
  right: clamp(10px, 2vw, 24px);
  width: 44px;
  height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item .gallery__img,
  .lb__btn,
  .lb__close { transition: none; }
  .gallery__item:hover .gallery__img,
  .gallery__item:focus-visible .gallery__img { transform: none; }
}

/* ------------------------------------------------------- mobile book ----- */

/* The booking CTAs live at the top of the hero and again in the footer. On a
   phone that leaves the middle of a long page with nothing to act on, and
   both sit outside the thumb zone. This bar is phone-only and additive — the
   desktop layout is untouched. */

.bookbar { display: none; }

@media (max-width: 700px) {
  .bookbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 246, 239, .93);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--hairline);
  }

  .bookbar__btn {
    flex: 1;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    border-radius: 38px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .45),
      0 4px 14px rgba(14, 32, 38, .22);
  }

  .bookbar__btn--deep {
    color: var(--cream);
    background-color: #2d5762;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .07) 42%, rgba(255, 255, 255, 0) 60%),
      linear-gradient(135deg, #37727e 0%, #2d5762 50%, #22434c 100%);
  }

  .bookbar__btn--light {
    color: var(--accent-deep);
    background-color: #f8f2e7;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .60) 0%, rgba(255, 255, 255, .12) 44%, rgba(255, 255, 255, 0) 62%),
      linear-gradient(135deg, #fefbf6 0%, #f5ecdd 55%, #e9d7bf 100%);
  }

  /* Reserve the bar's height inside the footer rather than on <body>: padding
     on the body would leave a cream strip below the dark band, visible through
     the bar's blur. */
  .book__inner { padding-bottom: calc(clamp(64px, 12vw, 110px) + 76px); }
}
