/* Li Ranci — public site (landing page) */

:root {
  /* Max width of inner content. Backgrounds stay full-bleed; padding grows
     on wider viewports to keep the content centred within this width. */
  --container: 1240px;
  --gutter:    48px;
  --gutter-sm: 22px;
  --ui-radius: 8px;
  --ui-border: rgba(26, 26, 26, 0.14);
  --ui-shadow: 0 18px 45px rgba(26, 26, 26, 0.12);
  --ui-shadow-sm: 0 8px 24px rgba(26, 26, 26, 0.08);
}

/* ── Centred container ──────────────────────────── */
.site-nav,
.hero,
.sect,
.site-foot {
  padding-left:  max(var(--gutter), calc((100% - var(--container)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--container)) / 2));
}

/* ── Sticky site nav ────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  gap: 16px;
}
.site-nav .logo { font-size: 26px; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
}
.site-nav ul a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.site-nav ul a:hover { color: var(--sea-deep); }
.site-nav ul a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--sea);
}
.site-nav .right { display: flex; gap: 14px; align-items: center; }
.site-nav .lang {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.site-nav .lang button {
  background: none; border: none; padding: 5px 7px;
  font: inherit; color: inherit; cursor: pointer;
}
.site-nav .lang button.on { color: var(--ink); font-weight: 500; }
/* Burger + active-section label: mobile only (see media query) */
.site-nav .nav-toggle { display: none; }
.site-nav .nav-current { display: none; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.15) 55%, rgba(26,26,26,0.45) 100%),
    url('/photos/nature/cala_moresca_1.webp') center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  color: var(--paper);
}
.hero-text { max-width: 600px; }
.hero-text .kicker { color: rgba(250,250,247,0.85); }
.hero-title {
  font-family: var(--font-hand);
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.9;
  font-weight: 700;
  margin: 12px 0 0;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  max-width: 520px;
  margin-top: 14px;
  opacity: 0.95;
  line-height: 1.55;
}

.hero-panel {
  flex: 0 0 320px;
  background: rgba(250,250,247,0.9);
  color: var(--ink);
  padding: 18px;
  border: 1px solid rgba(250,250,247,0.72);
  border-radius: var(--ui-radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-panel h4 {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-panel .sum {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.hero-panel .kv {
  align-items: center;
  border-top: 1px solid var(--ui-border);
  padding: 9px 0;
}
.hero-panel .kv b {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-panel .kv .v {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.hero-panel .cta-sea {
  display: block;
  text-align: center;
  margin-top: 12px;
  border-radius: 7px;
  box-shadow: var(--ui-shadow-sm);
}

/* ── Section scaffolding ────────────────────────── */
.sect {
  padding-top: 36px;
  padding-bottom: 72px;
  scroll-margin-top: 80px;
  position: relative;
}
.sect#apartment,
.sect#book {
  background: var(--paper-2);
}
.sect-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sea);
  margin-bottom: 6px;
}
.sect-title {
  font-family: var(--font-hand);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 8px;
}
.sect-lede {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* ── Amenities (essential equipment) ────────────── */
.amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 4px 0 36px;
  padding: 22px 0;
  border-top: 1px solid var(--pencil-light);
  border-bottom: 1px solid var(--pencil-light);
  background: transparent;
}
.amen-group { padding: 0 0 0 32px; border-left: 1px solid var(--pencil-light); }
.amen-group:first-child { padding-left: 0; border-left: none; }
.amen-group h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 8px;
  font-weight: 600;
}
.amen-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.amen-group li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.amen-group li::before {
  content: '✓';
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Apartment / room tabs ─────────────────────── */
.rooms-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
  padding: 4px;
  background: rgba(250,250,247,0.54);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: none;
}
.rooms-tabs button {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.rooms-tabs button:hover {
  background: rgba(43, 106, 154, 0.1);
  color: var(--sea-deep);
}
.rooms-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(26,26,26,0.16);
}

.room-body {
  display: flex;
  gap: 12px;
  height: clamp(360px, 45vw, 614px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}
.room-slide {
  flex: 0 0 min(820px, 82%);
  position: relative;
  height: 100%;
  border: 1px solid rgba(26,26,26,0.22);
  background: transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  scroll-snap-align: start;
}
.room-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-slide img { transition: transform 400ms ease; }
.room-slide:hover img { transform: scale(1.02); }
.room-body.solo .room-slide { flex-basis: 100%; }
.room-body::-webkit-scrollbar { height: 8px; }
.room-body::-webkit-scrollbar-track { background: transparent; }
.room-body::-webkit-scrollbar-thumb { background: var(--pencil-light); border-radius: 999px; }
.room-body::-webkit-scrollbar-thumb:hover { background: var(--pencil); }

.room-desc {
  margin-top: 18px;
  min-height: 150px;
  padding: 20px 0 8px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.room-desc h3 { font-family: var(--font-hand); font-size: 34px; margin: 0 0 6px; font-weight: 700; }
.room-desc p { font-family: var(--font-body); font-size: 16px; max-width: 660px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.room-desc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pencil);
  letter-spacing: 0.05em;
  flex: 0 0 280px;
}
.room-desc ul li {
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px dashed var(--pencil-light);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.room-desc ul li b { color: var(--ink); font-weight: 500; }

/* ── Booking enquiry ────────────────────────────── */
.book-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  align-items: start;
}
.book-form .book-field { grid-column: span 3; }
.book-form .dates-field {
  grid-column: 7 / -1;
  grid-row: 1 / span 6;
}
.book-form .message-field,
.book-form .submit,
.book-form .disclaim,
.book-form .status,
.book-form .status.full {
  grid-column: 1 / 7;
}
.book-form .full { grid-column: 1 / 7; }
.book-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--pencil);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--pencil);
  background: var(--paper);
  border-radius: 2px;
  outline: none;
  color: var(--ink);
}
.book-form input:focus,
.book-form select:focus,
.book-form textarea:focus { border-color: var(--ink); }
.book-form textarea { min-height: 90px; resize: vertical; }
.book-form .submit {
  background: var(--sea);
  color: var(--paper);
  border: none;
  font-family: var(--font-hand);
  font-size: 22px;
  padding: 10px;
  border-radius: 2px;
}
.book-form .submit:hover { background: var(--ink); }
.book-form .disclaim {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--pencil);
  letter-spacing: 0.05em;
  text-align: center;
  margin: 4px 0 0;
}
.book-form .status {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 4px;
}
.book-form .status.ok { color: var(--sea-deep); }
.book-form .status.err { color: #b04848; }

/* ── Availability calendar ──────────────────────── */
.cal {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: rgba(250,250,247,0.88);
  padding: 16px;
  box-shadow: var(--ui-shadow-sm);
}
@media (min-width: 981px) {
  .dates-field .cal {
    min-height: 100%;
  }
  .dates-field .cal-summary {
    cursor: default;
  }
  .dates-field .cal-summary::after {
    display: none;
  }
}
.cal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.cal-summary::after {
  content: '⌄';
  color: var(--pencil);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}
.cal-summary:hover,
.cal-summary:focus-visible {
  border-color: rgba(43, 106, 154, 0.42);
  outline: none;
}
.cal.is-open .cal-summary {
  margin-bottom: 12px;
}
.cal.is-open .cal-summary::after {
  transform: rotate(180deg);
}
.cal:not(.is-open) .cal-grids,
.cal:not(.is-open) .cal-hint {
  display: none;
}
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-period {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cal-nav button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ui-border);
  background: var(--paper);
  color: var(--ink);
  border-radius: 7px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26,26,26,0.08);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.cal-nav button:hover:not(:disabled) {
  border-color: rgba(43, 106, 154, 0.42);
  background: var(--sea-soft);
  transform: translateY(-1px);
}
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
table.cal-month {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--paper);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: 7px;
  overflow: hidden;
}
table.cal-month caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea-deep);
  padding: 10px 0 6px;
  text-align: center;
}
table.cal-month th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--pencil);
  text-transform: uppercase;
  padding: 4px 0 6px;
}
table.cal-month td { padding: 2px; text-align: center; }
.cal-day {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 30px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
button.cal-day:hover { background: var(--sea-soft); }
.cal-day.is-past,
.cal-day.is-booked {
  color: var(--pencil-light);
  cursor: default;
  text-decoration: line-through;
}
button.cal-day.is-booked:hover { background: transparent; }
/* Turnover day: a booking's first occupied night. Free in the morning, so it
   can still be a checkout. Diagonal split hints "half available". */
.cal-day.is-turn {
  color: var(--ink);
  background: linear-gradient(135deg, var(--paper) 0 48%, var(--sea-soft) 52% 100%);
}
button.cal-day.is-turn:hover { background: var(--sea-soft); }
.cal-day.in-range { background: var(--sea-soft); border-radius: 0; }
.cal-day.is-start,
.cal-day.is-end {
  background: var(--sea);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(43,106,154,0.28);
}
.cal-day.is-start { border-radius: 6px 0 0 6px; }
.cal-day.is-end { border-radius: 0 6px 6px 0; }
.cal-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--pencil);
  margin: 10px 0 0;
}
@media (max-width: 560px) {
  .cal-months { grid-template-columns: 1fr; }
}

/* ── Booking-direct callout ─────────────────────── */
.book-direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0 0 22px;
  padding: 12px 0 12px 16px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--sea);
  border-top: 1px solid var(--pencil-light);
  border-bottom: 1px solid var(--pencil-light);
}
.book-direct .bd-text { display: flex; flex-direction: column; gap: 2px; }
.book-direct .bd-text strong {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea-deep);
  font-weight: 500;
}
.book-direct .bd-text span {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}
.book-direct .bd-link {
  flex-shrink: 0;
  background: var(--paper);
  color: var(--sea-deep);
  border: 1px solid rgba(43, 106, 154, 0.42);
  font-family: var(--font-hand);
  font-size: 19px;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 3px;
  white-space: nowrap;
}
.book-direct .bd-link:hover {
  background: var(--sea);
  color: var(--paper);
  border-color: var(--sea);
}
@media (max-width: 980px) {
  .book-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-form .book-field { grid-column: span 1; }
  .book-form .dates-field,
  .book-form .message-field,
  .book-form .submit,
  .book-form .disclaim,
  .book-form .status,
  .book-form .status.full,
  .book-form .full {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ── FAQ ────────────────────────────────────────── */
.faq { max-width: 760px; }
.faq details {
  border-top: 1px solid var(--pencil-light);
  padding: 14px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--pencil-light); }
.faq summary {
  font-family: var(--font-body);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--pencil); font-size: 16px; }
.faq details[open] summary::after { content: '−'; }
.faq details p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 8px 0 0;
  max-width: 640px;
  line-height: 1.55;
}

/* ── Footer ─────────────────────────────────────── */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding-top: 44px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  font-family: var(--font-body);
  font-size: 14px;
}
.site-foot h5 {
  font-family: var(--font-hand);
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--paper);
  font-weight: 700;
}
.site-foot a {
  color: var(--paper);
  opacity: 0.85;
  text-decoration: none;
  display: block;
  padding: 3px 0;
}
.site-foot a:hover { opacity: 1; color: var(--paper); }
.site-foot .mono {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0.1em;
}
.site-foot .brand-mark { color: var(--paper); }
.site-foot .brand-mark small { color: rgba(250,250,247,0.55); }

/* -- Legal pages ---------------------------------- */
.legal-main {
  padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--container)) / 2));
}
.legal-hero {
  padding: 64px 0 36px;
  max-width: 760px;
}
.legal-hero h1 {
  font-family: var(--font-hand);
  font-size: clamp(48px, 8vw, 78px);
  line-height: 0.95;
  margin: 8px 0 14px;
}
.legal-hero p:not(.kicker) {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.58;
  margin: 0;
}
.legal-copy {
  max-width: 780px;
  padding: 0 0 80px;
}
.legal-copy h2 {
  margin: 32px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--pencil-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}
.legal-copy ul {
  margin: 0;
  padding-left: 20px;
}
.legal-copy li,
.legal-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
}
.legal-copy li { padding: 4px 0; }
.legal-copy .legal-note {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--pencil);
}

/* ── Section header — text in normal flow, drawing absolute ─ */
.sect-head { margin: 0 0 32px; max-width: 720px; }
/* Drawing sits at the §-num row only on the right; the h2 title flows below. */
.sect-art {
  position: absolute;
  top: 8px;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  height: 120px;
  width: auto;
  opacity: 0.78;
  mix-blend-mode: multiply;
  transform: rotate(-3deg);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.sect-head,
.sect .rooms-tabs,
.sect .room-body,
.sect .room-desc,
.sect .setting-strip,
.sect .book-form,
.sect .faq { position: relative; z-index: 1; }
@media (max-width: 860px) {
  /* Section drawings are too small to read on phones — hide them */
  .sect-art { display: none; }
}

/* ── Setting strip (nature photos) ─────────────── */
.setting-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.setting-strip figure {
  flex: 0 0 360px;
  margin: 0;
  scroll-snap-align: start;
}
.setting-strip figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1.25px solid var(--ink);
  border-radius: 2px;
  cursor: zoom-in;
  transition: transform 300ms ease;
  display: block;
}
.setting-strip figure img:hover { transform: translateY(-2px); }
/* Caption hidden in the strip — surfaces in the lightbox only.
   Visually hidden (not display:none) so it stays available to assistive tech. */
.setting-strip figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Lightbox (shared by room + setting photos) ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox .lb-fig {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: inline-flex;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox .lb-fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
}
.lightbox .lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0) 100%);
  color: var(--paper);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}
.lightbox .lb-cap:empty { display: none; }
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: var(--paper);
  border: 0;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}
.lightbox .lb-nav:hover { background: rgba(0, 0, 0, 0.75); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-nav.hidden { display: none; }
.lightbox .lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--paper);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(0, 0, 0, 0.75); }
.lightbox .lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox .lb-close:hover { opacity: 1; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  :root { --gutter: var(--gutter-sm); }
  .site-nav { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .site-nav .logo { font-size: 19px; }
  .site-nav .brand-crab { width: 32px; height: 32px; }

  /* Header CTA is redundant on phones — the Book link in the nav covers it */
  .site-nav .right .cta-sea { display: none; }

  /* Collapsed nav: header shows only the active section name; full list is in the burger */
  .site-nav .nav-current {
    display: block;
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-nav .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 34px;
    padding: 8px 7px;
    background: none;
    border: 1px solid var(--ink-soft);
    border-radius: 6px;
    cursor: pointer;
  }
  .site-nav .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  /* burger → X when open */
  .site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Nav list → dropdown drawer under the header */
  .site-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  }
  .site-nav.nav-open nav { display: block; }
  .site-nav nav ul {
    flex-direction: column;
    gap: 0;
    font-size: 16px;
    padding: 6px max(var(--gutter), calc((100% - var(--container)) / 2));
  }
  .site-nav nav ul li { border-top: 1px solid var(--pencil-light); }
  .site-nav nav ul li:first-child { border-top: none; }
  .site-nav nav ul a { display: block; padding: 13px 0; }
  .site-nav nav ul a.current { color: var(--sea-deep); font-weight: 500; }
  .site-nav nav ul a.current::after { display: none; }

  /* Language switcher → tap-to-open dropdown */
  .site-nav .lang {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 56px;
    min-height: 34px;
  }
  .site-nav .lang-menu { display: flex; flex-direction: column; }
  .site-nav .lang button { display: none; }
  .site-nav .lang button.on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ink-soft);
    border-radius: 6px;
    padding: 6px 10px;
  }
  .site-nav .lang button.on::after { content: '\25BE'; font-size: 11px; }

  /* Open state */
  .site-nav .lang:focus-within .lang-menu {
    position: absolute;
    top: 0;
    right: 0;
    gap: 2px;
    padding: 4px;
    background: rgba(250, 250, 247, 0.98);
    border: 1px solid var(--ink-soft);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }
  .site-nav .lang:focus-within button {
    display: block;
    text-align: left;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
  }
  .site-nav .lang:focus-within button.on::after { content: ''; }
  .site-nav .lang:focus-within button:hover { background: rgba(0, 0, 0, 0.05); }
  .hero { padding-top: 32px; padding-bottom: 32px; min-height: 540px; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-panel { flex: 1; }
  .sect { padding-top: 56px; padding-bottom: 56px; }
  .room-body { height: auto; min-height: 0; }
  .room-slide { flex-basis: 86%; height: auto; aspect-ratio: 4 / 3; }
  .setting-strip figure { flex: 0 0 280px; }
  .setting-strip figure img { height: 200px; }
  .book-form {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .book-form .book-field,
  .book-form .dates-field,
  .book-form .message-field,
  .book-form .submit,
  .book-form .disclaim,
  .book-form .status,
  .book-form .status.full,
  .book-form .full {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .book-direct { flex-direction: column; align-items: stretch; text-align: left; }
  .book-direct .bd-link { text-align: center; }
  .amenities { grid-template-columns: 1fr; padding: 18px 0; }
  .amen-group { padding: 16px 0 0; border-left: none; border-top: 1px solid var(--pencil-light); }
  .amen-group:first-child { padding-top: 0; border-top: none; }
  .site-foot { grid-template-columns: 1fr 1fr; padding-top: 32px; padding-bottom: 32px; }
}
