/* =====================================================================
   Tropico de Loro — Design System
   Modern resort luxe. Editorial, restrained, generous whitespace.
   Single stylesheet for all pages. Mobile-first.
   ---------------------------------------------------------------------
   Contents
   01. Custom properties (tokens)
   02. Reset & base
   03. Typography & fluid scale
   04. Layout: container, section rhythm, eyebrow
   05. Buttons
   06. Site header, brand, nav
   07. Hero
   08. Cards & unit cards
   09. Chips
   10. Amenities grid
   11. Reviews
   12. Good to Know
   13. Booking band
   14. Footer
   15. Action bar (mobile)
   16. Message sheet
   17. Gallery & lightbox
   18. Reveal / motion
   19. Utilities
   20. Reduced motion & print
   ===================================================================== */

/* ---------------------------------------------------------------------
   01. Custom properties
   --------------------------------------------------------------------- */
:root {
  /* Palette — from brief §2 (exact) */
  --ink: #212B2D;          /* primary text — deep sea ink */
  --ink-soft: #5C6B6E;     /* secondary text */
  --paper: #FAF7F1;        /* page background — warm ivory */
  --paper-deep: #F1EAE0;   /* alternate section background — sand */
  --card: #FFFFFF;
  --sea: #14424B;          /* primary brand — deep sea teal */
  --sea-deep: #0D3138;     /* hover / footer */
  --gold: #B98A44;         /* accent — brushed gold */
  --shell: #E9D9BE;        /* light gold-sand borders/dividers */
  --focus: #B98A44;

  /* Ivory tints for text on dark bands */
  --on-dark: #F6F1E8;
  --on-dark-soft: #C6CFCE;

  /* Fluid type scale — brief §2 (bumped ~9% for Cormorant Garamond) */
  --step-h1: clamp(2.85rem, 6.5vw, 4.9rem);
  --step-h2: clamp(2.2rem, 4.3vw, 3.3rem);
  --step-h3: 1.65rem;
  --step-body: 1.0625rem;
  --step-eyebrow: 0.8125rem;

  /* Typefaces */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm & shape */
  --container: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows — soft, editorial */
  --shadow-sm: 0 1px 2px rgba(33, 43, 45, 0.05);
  --shadow-md: 0 12px 30px -12px rgba(33, 43, 45, 0.18);
  --shadow-lg: 0 28px 60px -20px rgba(13, 49, 56, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s ease;

  /* Header height reference */
  --header-h: 74px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input,
textarea,
select { font: inherit; }

ul,
ol { list-style: none; padding: 0; }

:where(dl, dd) { margin: 0; }

/* Global focus ring — keyboard only */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection {
  background: var(--gold);
  color: #fff;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------------
   03. Typography & fluid scale
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-h1);
  font-weight: 400;
  line-height: 1.02;
}

h2 {
  font-size: var(--step-h2);
  line-height: 1.06;
}

h3 { font-size: var(--step-h3); }

p { text-wrap: pretty; }

strong { font-weight: 600; }

em, i { font-style: italic; }

/* Lead / intro serif statement */
.lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.text-soft { color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   04. Layout — container, sections, eyebrow
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }

.section {
  padding-block: var(--section-y);
}

.section--deep { background: var(--paper-deep); }

.section--sea {
  background: var(--sea);
  color: var(--on-dark);
}
.section--sea h1,
.section--sea h2,
.section--sea h3 { color: var(--on-dark); }
.section--sea .text-soft { color: var(--on-dark-soft); }

/* Section heading block */
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.075rem;
}
.section--sea .section-head p { color: var(--on-dark-soft); }

/* Eyebrow — brief §2 */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-eyebrow);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.section--sea .eyebrow { color: var(--shell); }

/* Thin gold rule accent */
.rule {
  width: 44px;
  height: 2px;
  border: 0;
  background: var(--gold);
  margin: 1.25rem 0;
}

/* ---------------------------------------------------------------------
   05. Buttons
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1;
  letter-spacing: 0.005em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast),
    color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Primary — sea */
.btn-primary {
  --btn-bg: var(--sea);
  --btn-fg: #fff;
  --btn-bd: var(--sea);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  --btn-bg: var(--sea-deep);
  --btn-bd: var(--sea-deep);
  box-shadow: var(--shadow-md);
}

/* Ghost — transparent, 1px border */
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}
.btn-ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
/* Ghost on dark / hero */
.section--sea .btn-ghost,
.hero .btn-ghost {
  --btn-fg: var(--on-dark);
  --btn-bd: rgba(246, 241, 232, 0.55);
}
.section--sea .btn-ghost:hover,
.hero .btn-ghost:hover {
  --btn-bg: var(--on-dark);
  --btn-fg: var(--ink);
  --btn-bd: var(--on-dark);
}

/* Light — ivory bg for dark bands */
.btn-light {
  --btn-bg: var(--paper);
  --btn-fg: var(--sea-deep);
  --btn-bd: var(--paper);
}
.btn-light:hover {
  --btn-bg: #fff;
  --btn-bd: #fff;
  box-shadow: var(--shadow-md);
}

/* Icon-only button (message channels in booking band) */
.btn-icon {
  padding: 0.85em;
  width: 3.2em;
  height: 3.2em;
  aspect-ratio: 1;
}
.btn-icon svg { width: 1.35em; height: 1.35em; }

.btn-block { width: 100%; }

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
/* Ensure focus ring is visible on sea bg */
.section--sea .btn-primary:focus-visible,
.hero .btn-primary:focus-visible {
  outline-color: var(--shell);
}

/* ---------------------------------------------------------------------
   06. Site header, brand, nav
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  background: transparent;
  color: var(--on-dark);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    color 0.35s var(--ease);
}

/* Scrolled state — JS toggles .is-scrolled */
.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(33, 43, 45, 0.06), var(--shadow-sm);
}

.brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: currentColor;
  white-space: nowrap;
  margin-right: auto;
}
.brand:hover { color: var(--gold); }

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}
.site-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: currentColor;
  padding-block: 0.4rem;
  position: relative;
  opacity: 0.92;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--t-fast);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { width: 100%; }
.site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"]::after { width: 100%; }

/* Header CTA — hidden on mobile (action bar covers it) */
.header-cta { display: none; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ---------------------------------------------------------------------
   07. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  padding-block: clamp(6rem, 14vh, 10rem) clamp(3rem, 8vh, 5.5rem);
  padding-top: calc(var(--header-h) + 4rem);
  background-color: var(--sea-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

/* Dark bottom-up gradient scrim */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(9, 33, 38, 0.55) 0%,
      rgba(9, 33, 38, 0.12) 18%,
      rgba(9, 33, 38, 0) 30%
    ),
    linear-gradient(
      to top,
      rgba(9, 33, 38, 0.88) 0%,
      rgba(9, 33, 38, 0.58) 34%,
      rgba(9, 33, 38, 0.16) 62%,
      rgba(9, 33, 38, 0.10) 100%
    );
}

.hero--compact {
  min-height: 60svh;
  align-items: flex-end;
}

.hero-inner { max-width: 42rem; }

.hero h1 {
  color: var(--on-dark);
  margin-top: 0.4rem;
}
.hero .eyebrow { color: var(--shell); }

.hero-support {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-dark);
  opacity: 0.94;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------------
   08. Cards & unit cards
   --------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--shell);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-fast), transform var(--t-fast),
    border-color var(--t-fast);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}

/* Apartments — two-up grid ≥760px */
.units-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 760px) {
  .units-grid { grid-template-columns: 1fr 1fr; }
}

.unit-card {
  display: flex;
  flex-direction: column;
}
.unit-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.unit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.unit-card:hover .unit-card__media img { transform: scale(1.04); }

.unit-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  flex: 1;
}
.unit-card__name {
  font-size: clamp(1.75rem, 3.2vw, 2.2rem);
}
.unit-card__diff {
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.unit-card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sea);
  padding-top: 0.5rem;
}
.unit-card__link::after {
  content: "\2192";
  transition: transform var(--t-fast);
}
.unit-card__link:hover { color: var(--sea-deep); }
.unit-card__link:hover::after { transform: translateX(4px); }

/* Cross-link card (unit pages) */
.crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.crosslink p { max-width: 48ch; }

/* ---------------------------------------------------------------------
   09. Chips
   --------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--shell);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}
/* Chips on sand section keep contrast with a white fill */
.section--deep .chip { background: var(--card); }

/* ---------------------------------------------------------------------
   10. Amenities grid
   --------------------------------------------------------------------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 760px) {
  .amenities-grid { grid-template-columns: repeat(4, 1fr); }
}

.amenity {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  background: var(--card);
  border: 1px solid var(--shell);
  border-radius: var(--radius);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.amenity:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.amenity svg {
  width: 30px;
  height: 30px;
  color: var(--sea);
  stroke-width: 1.5;
}
.amenity__label {
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}
.amenity__note {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------
   11. Reviews
   --------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  padding: clamp(1.6rem, 3vw, 2.15rem);
  background: var(--card);
  border: 1px solid var(--shell);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Gold star row */
.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--gold);
  line-height: 1;
}
.stars svg { width: 17px; height: 17px; fill: currentColor; }
.stars[role="img"] { align-items: center; }

.review-quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.33rem;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.review-quote::before { content: "\201C"; margin-right: -0.1em; }
.review-quote::after { content: "\201D"; }

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--shell);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.review-name {
  font-weight: 600;
  color: var(--ink);
}
.review-date { color: var(--ink-soft); }

/* Unit tag pill */
.review-unit {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea);
  background: var(--paper-deep);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.6rem;
}

/* "via Airbnb" attribution */
.review-via {
  width: 100%;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.review-via::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Reviews empty / loading fallback */
.reviews-empty {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------------------------------------------------------------------
   12. Good to Know
   --------------------------------------------------------------------- */
.know-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 700px) {
  .know-list { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); }
}
.know-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--shell);
}
.know-list dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.section--sea .know-list dt { color: var(--shell); }
.know-list dd {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}
.section--sea .know-list dd { color: var(--on-dark); }
.section--sea .know-list > div { border-color: rgba(233, 217, 190, 0.22); }

/* ---------------------------------------------------------------------
   13. Booking band
   --------------------------------------------------------------------- */
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 2rem;
}
.booking-actions .btn-primary,
.booking-actions .btn-light { flex: 1 1 auto; min-width: 15rem; }
.booking-actions__msg {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (min-width: 620px) {
  .booking-actions .btn-primary,
  .booking-actions .btn-light { flex: 0 1 auto; min-width: 0; }
}

.booking-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--on-dark-soft);
}

/* Icon button on dark band = light chip */
.section--sea .btn-icon {
  --btn-bg: rgba(246, 241, 232, 0.08);
  --btn-fg: var(--on-dark);
  --btn-bd: rgba(246, 241, 232, 0.35);
  color: var(--on-dark);
  border: 1px solid rgba(246, 241, 232, 0.35);
  background: rgba(246, 241, 232, 0.08);
}
.section--sea .btn-icon:hover {
  background: var(--on-dark);
  color: var(--sea-deep);
  border-color: var(--on-dark);
}

/* ---------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--sea-deep);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--shell); }

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

/* Small uppercase label above each footer link group */
.footer-head {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell);
  margin-bottom: 0.9rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-loc {
  margin-top: 0.75rem;
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.98rem;
}
.footer-contact a { opacity: 1; }

.footer-note {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233, 217, 190, 0.18);
  font-size: 0.85rem;
  color: var(--on-dark-soft);
  letter-spacing: 0.005em;
}

/* ---------------------------------------------------------------------
   15. Action bar (mobile only)
   --------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: flex;
  gap: 0.65rem;
  padding: 0.7rem var(--gutter);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--shell);
  box-shadow: 0 -6px 24px -18px rgba(33, 43, 45, 0.4);
}
.action-bar .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.75em;
}

/* Content never covered by the bar */
body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------------------------------------------------------------------
   16. Message sheet
   --------------------------------------------------------------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 33, 38, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.sheet.is-open .sheet-backdrop { opacity: 1; }

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 clamp(0px, 2vw, 1rem);
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.75rem clamp(1.25rem, 5vw, 2rem) calc(1.75rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.36s var(--ease);
}
.sheet.is-open .sheet-panel { transform: translateY(0); }

/* Drag-handle bar visual */
.sheet-panel::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--shell);
  margin: -0.35rem auto 1.25rem;
}

.sheet-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
.sheet-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.sheet-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  border-radius: 50%;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.sheet-close:hover { background: var(--paper-deep); color: var(--ink); }

/* Link rows with icons */
.sheet-links { display: grid; gap: 0.5rem; }
.sheet-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--shell);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background-color var(--t-fast), border-color var(--t-fast),
    transform var(--t-fast);
}
.sheet-link:hover {
  background: var(--paper-deep);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.sheet-link svg { width: 26px; height: 26px; flex: none; }
.sheet-link__label { display: flex; flex-direction: column; line-height: 1.3; }
.sheet-link__label small { color: var(--ink-soft); font-size: 0.82rem; }
.sheet-link__go { margin-left: auto; color: var(--ink-soft); }

/* Channel brand accents on the sheet icons */
.sheet-link--whatsapp svg { color: #25D366; }
.sheet-link--viber svg { color: #7360F2; }
.sheet-link--messenger svg { color: #0084FF; }

/* Airbnb chooser mini-sheet reuses the same shell; keep panels tidy */
.sheet-panel .btn + .btn { margin-top: 0.6rem; }

/* ---------------------------------------------------------------------
   17. Gallery & lightbox
   --------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity var(--t-fast);
}
.gallery a:hover img { transform: scale(1.05); }
.gallery a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Lightbox — fullscreen overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(9, 33, 38, 0.94);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--on-dark);
  background: rgba(246, 241, 232, 0.1);
  border: 1px solid rgba(246, 241, 232, 0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.lightbox-btn:hover { background: rgba(246, 241, 232, 0.22); }
.lightbox-btn svg { width: 1.4rem; height: 1.4rem; }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(0.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--on-dark-soft);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------------
   18. Reveal / motion
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Optional stagger via inline --reveal-delay */
.reveal { transition-delay: var(--reveal-delay, 0s); }

/* ---------------------------------------------------------------------
   19. Utilities
   --------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 400;
  background: var(--sea);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

.stack > * + * { margin-top: var(--stack, 1rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.no-wrap { white-space: nowrap; }

/* Lock scroll when a modal/sheet is open (JS adds to <body>) */
body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------------
   20. Reduced motion & print
   --------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .card:hover,
  .amenity:hover,
  .unit-card:hover .unit-card__media img,
  .gallery a:hover img { transform: none !important; }
  .sheet-panel { transform: translateY(0); }
}

@media print {
  .site-header,
  .action-bar,
  .sheet,
  .lightbox,
  .hero-actions,
  .booking-actions,
  .header-cta { display: none !important; }
  body {
    padding-bottom: 0;
    color: #000;
    background: #fff;
  }
  .hero {
    min-height: auto;
    color: #000;
    background: none;
    padding-top: 2rem;
  }
  .hero::after { display: none; }
  .hero h1, .hero .eyebrow, .hero-support { color: #000; }
  .section--sea,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }
  .section--sea h1, .section--sea h2, .section--sea h3,
  .section--sea .know-list dd,
  .site-footer, .site-footer a { color: #000 !important; }
  .card,
  .review-card,
  .amenity { box-shadow: none; border-color: #ccc; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
