/* ================================================================
   MARIM LUXURY VILLAS — Guest Portal CSS
   Self-contained design system. No external dependencies.
   ================================================================ */

/* ── §0 SELF-HOSTED FONTS ──────────────────────────────────────── */
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:300 500; font-display:swap;
  src:url('/assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:300 500; font-display:swap;
  src:url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'DM Sans'; font-style:italic; font-weight:300; font-display:swap;
  src:url('/assets/fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'DM Sans'; font-style:italic; font-weight:300; font-display:swap;
  src:url('/assets/fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Gloock'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/gloock-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Gloock'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/gloock-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ── §1 DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  /* Colors — inherited exactly from v2 */
  --color-ocean:       #0a1628;
  --color-ocean-mid:   #0f1f38;
  --color-sand:        #f5ede0;
  --color-sand-dark:   #edddc8;
  --color-teal:        #1d6275;
  --color-teal-dark:   #164e5e;
  --color-gold:        #c9a96e;
  --color-gold-soft:   rgba(201,169,110,0.35);
  --color-white:       #ffffff;
  /* Portal additions */
  --color-success:     #2e7d52;
  --color-error:       #b91c1c;
  --color-warning-bg:  #fffbeb;
  --color-warning-bdr: #f59e0b;
  --color-border:      rgba(10,22,40,0.1);
  --color-card-bg:     #ffffff;

  /* Fonts */
  --font-serif:   'Gloock', Georgia, 'Times New Roman', serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --size-h1:    clamp(2rem, 5vw, 3.25rem);
  --size-h2:    clamp(1.5rem, 3vw, 2.25rem);
  --size-h3:    clamp(1.2rem, 2.2vw, 1.6rem);
  --size-body:  1.0625rem;
  --size-small: 0.875rem;
  --size-label: 0.6875rem;
  --lh-body:    1.75;

  /* Layout */
  --nav-h:         64px;
  --nav-bottom-h:  60px;
  --max-portal:    860px;
  --gutter:        clamp(1.25rem, 5vw, 2.5rem);
  --section-pad:   clamp(3rem, 6vw, 5rem);
  --card-radius:   12px;
  --card-shadow:   0 2px 16px rgba(10,22,40,0.07);
  --card-shadow-hv:0 6px 32px rgba(10,22,40,0.13);
}


/* ── §2 RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family:  var(--font-sans);
  font-size:    var(--size-body);
  font-weight:  300;
  color:        var(--color-ocean);
  background:   var(--color-sand);
  line-height:  var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x:   hidden;
}

/* Top nav offset for all pages */
body { padding-top: var(--nav-h); }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit; }

/* ── §3 TYPOGRAPHY UTILITIES ────────────────────────────────────── */
.portal-label {
  font-family: var(--font-sans);
  font-size:   var(--size-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.portal-h1 { font-family: var(--font-serif); font-size: var(--size-h1); font-weight: 400; line-height: 1.15; }
.portal-h2 { font-family: var(--font-serif); font-size: var(--size-h2); font-weight: 400; line-height: 1.2; }
.portal-h3 { font-family: var(--font-serif); font-size: var(--size-h3); font-weight: 400; line-height: 1.25; }

.portal-script {
  font-family: var(--font-serif);
  font-style:  italic;
  font-size:   clamp(1.8rem, 4vw, 2.8rem);
  color:       var(--color-gold);
  line-height: 1.1;
  display:     block;
}

/* ── §4 BUTTON COMPONENTS ───────────────────────────────────────── */
.btn-primary {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      var(--color-teal);
  color:           var(--color-white);
  font-family:     var(--font-sans);
  font-size:       var(--size-small);
  font-weight:     500;
  letter-spacing:  0.04em;
  padding:         0.75rem 1.75rem;
  border-radius:   6px;
  transition:      background 0.2s ease, transform 0.15s ease;
  cursor:          pointer;
}
.btn-primary:hover { background: var(--color-teal-dark); transform: translateY(-1px); }

.btn-outline {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  border:          1.5px solid var(--color-teal);
  color:           var(--color-teal);
  font-size:       var(--size-small);
  font-weight:     500;
  letter-spacing:  0.04em;
  padding:         0.7rem 1.6rem;
  border-radius:   6px;
  transition:      background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--color-teal); color: var(--color-white); }

.btn-ghost {
  color:       var(--color-teal);
  font-size:   var(--size-small);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-whatsapp {
  background: #25D366;
  color:      #fff;
  display:    inline-flex;
  align-items:center;
  gap:        0.5rem;
  padding:    0.75rem 1.75rem;
  border-radius: 6px;
  font-size:  var(--size-small);
  font-weight:500;
  transition: background 0.2s ease;
}
.btn-whatsapp:hover { background: #1ebe5d; }

/* ── §5 PORTAL NAVIGATION — desktop top bar ────────────────────── */
.portal-nav {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  height:     var(--nav-h);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index:    1000;
  transition: box-shadow 0.3s ease;
}
.portal-nav.is-scrolled { box-shadow: 0 2px 16px rgba(10,22,40,0.08); }

.portal-nav__inner {
  max-width:   1200px;
  margin:      0 auto;
  padding:     0 var(--gutter);
  height:      100%;
  display:     flex;
  align-items: center;
  gap:         2rem;
}

.portal-nav__brand {
  display:     flex;
  align-items: center;
  gap:         0.6rem;
  flex-shrink: 0;
}
.portal-nav__logo { width: 36px; height: 36px; object-fit: contain; }
.portal-nav__villa {
  font-family: var(--font-serif);
  font-style:  normal;
  font-size:   1rem;
  color:       var(--color-gold);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.portal-nav__links {
  display:     flex;
  align-items: center;
  gap:         1.75rem;
  flex:        1;
  justify-content: center;
}

.portal-nav__link {
  font-size:      var(--size-label);
  font-weight:    500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-ocean);
  opacity:        0.6;
  transition:     opacity 0.2s ease, color 0.2s ease;
  padding-bottom: 2px;
  border-bottom:  2px solid transparent;
}
.portal-nav__link:hover,
.portal-nav__link.is-active { opacity: 1; color: var(--color-teal); border-bottom-color: var(--color-gold); }

.portal-nav__right { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }

.portal-nav__lang {
  font-size:      var(--size-label);
  font-weight:    500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-ocean);
  opacity:        0.5;
  padding:        0.25rem 0.5rem;
  border:         1px solid var(--color-border);
  border-radius:  4px;
  transition:     opacity 0.2s ease, border-color 0.2s ease;
}
.portal-nav__lang:hover { opacity: 1; border-color: var(--color-teal); }

.portal-nav__logout {
  font-size:   var(--size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:       var(--color-ocean);
  opacity:     0.35;
  transition:  opacity 0.2s ease;
}
.portal-nav__logout:hover { opacity: 0.7; }

/* ── §5b MOBILE BOTTOM NAV ─────────────────────────────────────── */
.portal-bottom-nav {
  display:    none; /* shown via media query */
  position:   fixed;
  bottom:     0;
  left:       0;
  right:      0;
  height:     var(--nav-bottom-h);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  z-index:    1000;
  flex-direction: row;
}

.portal-bottom-nav__item {
  flex:        1;
  display:     flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:         3px;
  color:       var(--color-ocean);
  opacity:     0.45;
  font-size:   10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding:     6px 4px 4px;
  transition:  opacity 0.2s ease, color 0.2s ease;
  cursor:      pointer;
  border-bottom: 2px solid transparent;
}
.portal-bottom-nav__item svg { width: 20px; height: 20px; }
.portal-bottom-nav__item:hover { opacity: 0.8; }
.portal-bottom-nav__item.is-active { opacity: 1; color: var(--color-teal); border-bottom-color: var(--color-gold); }

/* Bottom nav drawer (More) */
.bottom-nav-drawer {
  position:   fixed;
  bottom:     var(--nav-bottom-h);
  left:       0;
  right:      0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  z-index:    999;
  transform:  translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -4px 20px rgba(10,22,40,0.1);
}
.bottom-nav-drawer.is-open { transform: translateY(0); }
.bottom-nav-drawer__inner { padding: 0.5rem 0 0.75rem; }
.bottom-nav-drawer__link {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
  padding:     0.875rem 1.5rem;
  font-size:   var(--size-small);
  font-weight: 500;
  color:       var(--color-ocean);
  border-bottom: 1px solid rgba(10,22,40,0.05);
}
.bottom-nav-drawer__link svg { width: 18px; height: 18px; opacity: 0.6; }
.bottom-nav-drawer__link:last-child { border-bottom: none; }

.bottom-nav-overlay {
  display:    none;
  position:   fixed;
  inset:      0;
  background: rgba(10,22,40,0.3);
  z-index:    998;
}
.bottom-nav-overlay.is-visible { display: block; }

.portal-bottom-spacer { display: none; height: var(--nav-bottom-h); }

/* ── §6 AUTH GATE ───────────────────────────────────────────────── */
body.auth-page { padding-top: 0; }

.auth-gate {
  min-height:      100vh;
  display:         grid;
  grid-template-columns: 1fr 1fr;
}

/* Left visual panel — villa photo background */
.auth-gate__visual {
  position:        relative;
  overflow:        hidden;
  background-size: cover;
  background-position: center;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  padding:         2rem;
}
.auth-gate__visual-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(135deg, rgba(10,22,40,0.55), rgba(10,22,40,0.25));
  pointer-events: none;
}
.auth-gate__visual-content {
  position: relative;
  z-index:  2;
}
.auth-gate__logo-img {
  display:      block;
  width:        120px;
  height:       auto;
  object-fit:   contain;
  margin-bottom: 1.25rem;
  filter:       brightness(10);  /* white logo on dark overlay */
}
.auth-gate__tagline {
  color:       var(--color-white);
  font-family: var(--font-sans);
  font-size:   var(--size-body);
  font-weight: 300;
  letter-spacing: 0.01em;
  opacity:     0.85;
}

/* Right form panel */
.auth-gate__form-panel {
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         3rem 2.5rem;
  background:      var(--color-sand);
}
.auth-gate__form-inner {
  width:     100%;
  max-width: 460px;
}
.auth-gate__logo-mobile {
  display:    none;  /* shown only on mobile */
  object-fit: contain;
}
.auth-gate__headline {
  font-family: var(--font-serif);
  font-size:   clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color:       var(--color-ocean);
  margin-bottom: 0.6rem;
}
.auth-gate__subhead {
  font-size:   var(--size-small);
  color:       var(--color-ocean);
  opacity:     0.6;
  line-height: 1.6;
  max-width:   340px;
  margin-bottom: 2rem;
}
.auth-gate__notice {
  padding:      0.75rem 1rem;
  border-radius: 8px;
  font-size:    var(--size-small);
  margin-bottom: 1.5rem;
}
.auth-gate__notice--info {
  background:  #eff6ff;
  border:      1px solid #bfdbfe;
  color:       var(--color-teal);
}

/* Auth form elements */
.auth-form {
  width: 100%;
}
.auth-form__field {
  margin-bottom: 1.25rem;
}
.auth-form__label {
  display:       block;
  font-size:     var(--size-small);
  font-weight:   500;
  color:         var(--color-ocean);
  margin-bottom: 0.4rem;
}
.auth-form__input {
  width:        100%;
  padding:      0.875rem 1rem;
  font-family:  var(--font-sans);
  font-size:    var(--size-body);
  font-weight:  300;
  color:        var(--color-ocean);
  background:   var(--color-white);
  border:       1.5px solid var(--color-border);
  border-radius: 8px;
  outline:      none;
  transition:   border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  box-sizing:   border-box;
}
.auth-form__input:focus {
  border-color: var(--color-gold);
  box-shadow:   0 0 0 3px var(--color-gold-soft);
}
.auth-form__input::placeholder { opacity: 0.45; }
.auth-form__input.has-error {
  border-color: var(--color-error);
  box-shadow:   0 0 0 3px rgba(220,38,38,0.1);
}
.auth-form__error {
  margin-top:    0.75rem;
  padding:       0.75rem 1rem;
  background:    #fef2f2;
  border:        1px solid #fecaca;
  border-radius: 6px;
  color:         var(--color-error);
  font-size:     var(--size-small);
  display:       none;
}
.auth-form__error.is-visible { display: block; }

.auth-form__submit {
  width:        100%;
  position:     relative;
}
.auth-form__submit-text {
  display: inline;
}
.auth-form__submit-loading {
  display: none;  /* hidden by default, shown by JS */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.auth-spinner {
  width:  18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-gate__help {
  margin-top:  1.5rem;
  font-size:   var(--size-small);
  color:       var(--color-ocean);
  opacity:     0.5;
  line-height: 1.6;
}
.auth-gate__help a,
.auth-gate__help-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}
.auth-gate__lang {
  margin-top: 1rem;
}
.auth-gate__lang-link {
  font-size:   var(--size-small);
  color:       var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── §7 PAGE LAYOUT ─────────────────────────────────────────────── */
.portal-page {
  max-width:  var(--max-portal);
  margin:     0 auto;
  padding:    var(--section-pad) var(--gutter);
}

.portal-page--wide { max-width: 1100px; }

.portal-section { margin-bottom: var(--section-pad); }
.portal-section:last-child { margin-bottom: 0; }

/* ── §8 HOME DASHBOARD ──────────────────────────────────────────── */

/* Welcome hero card */
.hero-card {
  position:     relative;
  border-radius: var(--card-radius);
  overflow:     hidden;
  min-height:   380px;
  display:      flex;
  align-items:  flex-end;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center 30%;
}
.hero-card__img {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-card__overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.3) 55%, rgba(10,22,40,0.05) 100%);
}
.hero-card__content {
  position:   relative;
  z-index:    1;
  padding:    2.5rem;
  color:      var(--color-white);
}
.hero-card__script { font-family: var(--font-serif); font-style: italic; color: var(--color-gold); font-size: 1.5rem; margin-bottom: 0.25rem; }
.hero-card__villa,
.hero-card__title  { font-family: var(--font-serif); font-style: normal; font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; line-height: 1.1; margin-bottom: 0.5rem; }
.hero-card__hook   { font-style: italic; opacity: 0.85; margin-bottom: 1rem; }
.hero-card__welcome { font-size: var(--size-small); opacity: 0.8; line-height: 1.65; max-width: 520px; }

/* Booking overview card */
.booking-card {
  background:    var(--color-white);
  border-radius: var(--card-radius);
  border:        1.5px solid var(--color-border);
  overflow:      hidden;
  margin-bottom: 2rem;
  box-shadow:    var(--card-shadow);
}
.booking-card__header {
  background:  var(--color-ocean);
  color:       var(--color-white);
  padding:     1rem 1.5rem;
  display:     flex;
  align-items: center;
  justify-content: space-between;
  gap:         1rem;
}
.booking-card__header-label { font-size: var(--size-label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.booking-card__id { font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-gold); }

.booking-card__body { padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.booking-card__field { display: flex; flex-direction: column; gap: 0.25rem; }
.booking-card__field-label { font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.5; }
.booking-card__field-value { font-family: var(--font-serif); font-size: 1.05rem; color: var(--color-ocean); }

.booking-card__divider { grid-column: 1 / -1; height: 1px; background: var(--color-border); margin: 0.25rem 0; }

.booking-card__status {
  grid-column: 1 / -1;
  display:     flex;
  flex-direction: column;
  gap:         0.75rem;
}
.booking-card__status-row {
  display:     flex;
  align-items: center;
  gap:         0.6rem;
  font-size:   var(--size-small);
}
.status-ok   { color: var(--color-success); font-weight: 500; }
.status-warn { color: #b45309; font-weight: 500; }
.status-ok::before   { content: '✓ '; }
.status-warn::before { content: '⚠ '; }
.booking-card__status-row a { color: var(--color-teal); text-decoration: underline; text-underline-offset: 2px; font-size: var(--size-small); }

/* Booking card — layout matching home.php HTML */
.booking-card__label {
  font-size: var(--size-label); letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.6;
}
.booking-card__dates {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.booking-card__villa-info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-ocean);
}
.booking-card__location {
  display: block;
  font-size: var(--size-small);
  color: var(--color-ocean);
  opacity: 0.55;
}
.booking-card__date-range {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.booking-card__dates-text { font-size: var(--size-small); color: var(--color-ocean); }
.booking-card__nights     { font-size: 12px; opacity: 0.5; }
.booking-card__guests     { font-size: 12px; opacity: 0.5; display: block; }

.booking-card__row {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.booking-card__row-icon {
  flex-shrink: 0;
  width:  24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  margin-top: 2px;
}
.booking-card__row--ok .booking-card__row-icon {
  background: var(--color-success);
}
.booking-card__row--warn .booking-card__row-icon {
  background: #b45309;
}
/* Informational deposit row — neutral teal, gold-tinted body so it visually
   reads as "heads-up" rather than action required. */
.booking-card__row--deposit {
  background: rgba(201, 169, 110, 0.06);
}
.booking-card__row--deposit .booking-card__row-icon {
  background: var(--color-teal);
}
.booking-card__row--deposit .booking-card__row-icon svg {
  color: var(--color-white);
}
.booking-card__row-body {
  font-size: var(--size-small);
  line-height: 1.6;
  color: var(--color-ocean);
}
.booking-card__row-body strong { font-weight: 500; }
.booking-card__action-link {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: var(--size-small);
}
.booking-card__times {
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--size-small);
  color: var(--color-ocean);
  opacity: 0.6;
}
.booking-card__times-sep { opacity: 0.4; }

/* Payment transfer details */
.booking-card__transfer-details { margin-top: 0.75rem; }
.booking-card__transfer-note {
  font-size: 12px; opacity: 0.6; line-height: 1.5; margin-bottom: 0.75rem;
}
.booking-card__transfer-table {
  background: var(--color-sand); border-radius: 8px; padding: 0.75rem 1rem;
  display: grid; gap: 0.4rem;
}
.booking-card__transfer-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; gap: 1rem;
}
.booking-card__transfer-row span { opacity: 0.5; white-space: nowrap; }
.booking-card__transfer-row strong { font-weight: 500; text-align: right; font-family: var(--font-sans); letter-spacing: 0.02em; }

/* Due-by pill next to balance-due amount */
.pay-due {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  background: rgba(201,169,110,0.15);
  color: var(--color-ocean);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pay-due strong { font-weight: 600; }

/* Bank-transfer payment block (Option B) — collapsible */
.pay-bank {
  margin-top: 0.9rem;
  background: var(--color-sand);
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 10px;
  overflow: hidden;
}
.pay-bank__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 13px;
  color: var(--color-teal);
  user-select: none;
  transition: background 0.15s ease;
}
.pay-bank__summary::-webkit-details-marker { display: none; }
.pay-bank__summary:hover { background: rgba(201,169,110,0.12); }
.pay-bank__summary-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pay-bank__chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.pay-bank[open] .pay-bank__chevron { transform: rotate(180deg); }
.pay-bank__body {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid rgba(201,169,110,0.35);
  padding-top: 0.9rem;
}
.pay-bank__intro {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.7;
  margin: 0 0 0.9rem 0;
}
.pay-bank__list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}
.pay-bank__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
}
.pay-bank__row dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  line-height: 1.3;
  margin: 0;
}
.pay-bank__row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.pay-bank__val {
  color: var(--color-ocean);
  line-height: 1.35;
  word-break: break-word;
}
.pay-bank__val--mono {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.pay-bank__val--amount {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-ocean);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pay-bank__val--muted {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.5;
}
.pay-bank__copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--color-white);
  border: 1px solid rgba(10,22,40,0.12);
  border-radius: 6px;
  color: var(--color-teal);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pay-bank__copy:hover { background: var(--color-teal); color: var(--color-white); border-color: var(--color-teal); }
.pay-bank__copy:active { transform: scale(0.96); }
.pay-bank__card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 12px;
  color: var(--color-teal);
  opacity: 0.8;
  text-decoration: none;
  border-bottom: 1px dashed rgba(29,98,117,0.35);
  padding-bottom: 1px;
}
.pay-bank__card-link:hover { opacity: 1; border-bottom-style: solid; }

/* Check-in form CTA — prominent */
.booking-card__checkin-cta {
  margin-top: 0.5rem; padding: 0.75rem; background: #eff6ff;
  border: 1px solid #bfdbfe; border-radius: 8px;
}
.booking-card__checkin-msg {
  font-size: 13px; line-height: 1.55; color: var(--color-ocean); margin-bottom: 0.5rem;
}
.booking-card__checkin-btn {
  display: block; margin-top: 0.5rem;
}
.booking-card__checkin-wa {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: var(--color-teal); text-decoration: underline; text-underline-offset: 2px;
}
/* "Already filled it" self-confirm secondary button — quiet, text-link weight */
.booking-card__checkin-done {
  display:        inline-flex;
  align-items:    center;
  gap:            0.4rem;
  margin-top:     0.6rem;
  padding:        0.4rem 0.7rem;
  background:     transparent;
  border:         1px solid rgba(29, 98, 117, 0.35);
  border-radius:  6px;
  color:          var(--color-teal);
  font-size:      12.5px;
  font-weight:    500;
  cursor:         pointer;
  transition:     background 0.15s ease, border-color 0.15s ease;
}
.booking-card__checkin-done:hover {
  background:     rgba(29, 98, 117, 0.08);
  border-color:   var(--color-teal);
}
.booking-card__checkin-done[disabled] {
  opacity:        0.6;
  cursor:         wait;
}

/* ═══ Arrival callout (home page, pre + check-in day) ═══
   Solves "guests can't find us" — the most critical orientation up front,
   one tap to the full guide. Visually distinct from the dark countdown card
   so it doesn't fight for attention but is impossible to miss. */
.arrival-card {
  background:    rgba(201, 169, 110, 0.08);
  border:        1.5px solid rgba(201, 169, 110, 0.45);
  border-radius: var(--card-radius);
  padding:       1.25rem 1.5rem 1.4rem;
  margin-bottom: 1.25rem;
}
.arrival-card__head {
  display:       flex;
  align-items:   center;
  gap:           0.6rem;
  margin-bottom: 0.65rem;
}
.arrival-card__icon {
  flex-shrink:   0;
  width:         34px;
  height:        34px;
  border-radius: 50%;
  background:    rgba(201, 169, 110, 0.22);
  color:         var(--color-gold);
  display:       flex;
  align-items:   center;
  justify-content: center;
}
.arrival-card__title {
  font-family:   var(--font-serif);
  font-size:     1.1rem;
  font-weight:   500;
  color:         var(--color-ocean);
  letter-spacing: 0.01em;
  margin:        0;
}
.arrival-card__lead {
  font-size:    14px;
  line-height:  1.6;
  color:        rgba(10, 22, 40, 0.85);
  margin:       0 0 1rem;
}
.arrival-card__lead strong {
  color:        var(--color-ocean);
  font-weight:  600;
}
.arrival-card__actions {
  display:      flex;
  gap:          0.6rem;
  flex-wrap:    wrap;
  align-items:  center;
}
.arrival-card__primary {
  display:        inline-flex;
  align-items:    center;
  background:     var(--color-teal);
  color:          var(--color-white);
  font-size:      var(--size-small);
  font-weight:    500;
  letter-spacing: 0.03em;
  padding:        0.65rem 1.15rem;
  border-radius:  6px;
  transition:     background 0.15s ease;
}
.arrival-card__primary:hover { background: var(--color-teal-dark); color: var(--color-white); }
.arrival-card__secondary {
  display:        inline-flex;
  align-items:    center;
  gap:            0.35rem;
  font-size:      13px;
  font-weight:    500;
  color:          var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding:        0.4rem 0.5rem;
}
.arrival-card__secondary:hover { color: var(--color-teal-dark); }

/* Countdown */
.countdown-card {
  background:    var(--color-ocean);
  color:         var(--color-white);
  border-radius: var(--card-radius);
  padding:       2rem 2rem;
  text-align:    center;
  margin-bottom: 2rem;
}
.countdown-card__number { font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 5rem); color: var(--color-gold); line-height: 1; }
.countdown-card__text   { font-size: var(--size-body); opacity: 0.8; margin-top: 0.5rem; }
.countdown-card__label  { font-size: var(--size-small); opacity: 0.7; margin-top: 0.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.countdown-card__sub    { margin-top: 1rem; opacity: 0.7; font-size: var(--size-small); }
.countdown-card__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem;
}
.countdown-action {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1rem; border-radius: 8px; font-size: var(--size-small);
  color: var(--color-white); background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); transition: background 0.2s ease;
  text-decoration: none;
}
.countdown-action:hover { background: rgba(255,255,255,0.18); }
.countdown-action svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Quick info strip — horizontal tiles (icon left, text right) for legibility.
   3 tiles always: WiFi · Check-in · Hosts (Pool tile removed). */
.info-strip {
  display:       grid;
  grid-template-columns: repeat(3, 1fr);
  gap:           1px;
  background:    var(--color-border);
  border-radius: var(--card-radius);
  /* overflow: visible — we round the corner tiles individually below so
     the Hosts popover can escape the strip without being clipped. */
  margin-bottom: 2rem;
  box-shadow:    var(--card-shadow);
  position:      relative;
  z-index:       2;  /* sit above following sections (weather, nav cards) */
}
/* Promote strip's stacking context when the Hosts popover is open so the
   panel floats above everything below it. */
.info-strip:has(details.hosts-more[open]) { z-index: 50; }
/* Keep the Hosts tile itself above the scrim so it stays bright/clear
   while everything else is dimmed. */
.info-tile:has(details.hosts-more[open]) { z-index: 60; }
.info-strip--pre { grid-template-columns: repeat(3, 1fr); }

/* Corner tiles get matching radii so the strip's rounded edges are preserved
   without needing overflow:hidden on the container. */
.info-tile:first-child {
  border-top-left-radius:    var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
}
.info-tile:last-child {
  border-top-right-radius:    var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
}

.info-tile {
  background:   var(--color-white);
  padding:      1rem 1.1rem;
  display:      flex;
  flex-direction: row;
  align-items:  flex-start;
  gap:          0.75rem;
  text-align:   left;
  min-width:    0; /* allow children to shrink */
  position:     relative; /* anchor for .hosts-more__panel */
}
.info-tile__icon {
  flex:           0 0 auto;
  width:          28px;
  height:         28px;
  color:          var(--color-teal);
  margin-top:     2px;
}
.info-tile__icon svg { width: 100%; height: 100%; display: block; }
.info-tile__body {
  flex:           1 1 auto;
  min-width:      0;
  display:        flex;
  flex-direction: column;
  gap:            0.2rem;
  line-height:    1.35;
}
.info-tile__label {
  font-size:      var(--size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:        0.55;
  line-height:    1.3;
}
.info-tile__val {
  font-family:    var(--font-serif);
  font-size:      1rem;
  color:          var(--color-ocean);
  line-height:    1.3;
  word-break:     break-word;
}
.info-tile__sub {
  font-size:      11px;
  /* Color-with-alpha instead of opacity so it doesn't create a compositing
     group that makes the nested hosts-more popover translucent. */
  color:          rgba(10, 22, 40, 0.55);
  line-height:    1.4;
}
.info-tile__copy {
  margin-top:     0.35rem;
  align-self:     flex-start;
}

/* "+2" chip + floating popover for backup hosts (Angelika + Hans).
   Sits inline inside the Help tile's sub line after "Benjamin". Collapsed state
   adds zero vertical height to the tile. When opened, a small panel floats
   below/right of the chip, revealing two tappable contact rows. */
.hosts-more {
  display:        inline-block;
  /* intentionally NOT position: relative — the panel anchors to the enclosing
     .info-tile for predictable placement on any viewport width. */
  margin-left:    0.4rem;
  vertical-align: baseline;
}
.hosts-more__chip {
  display:         inline-flex;
  align-items:     center;
  gap:             0.2rem;
  font-family:     var(--font-sans);
  font-size:       10px;
  font-weight:     600;
  letter-spacing:  0.04em;
  padding:         0.08rem 0.45rem;
  color:           var(--color-teal);
  background:      rgba(29, 98, 117, 0.08);
  border:          1px solid rgba(29, 98, 117, 0.25);
  border-radius:   999px;
  cursor:          pointer;
  list-style:      none;
  user-select:     none;
  transition:      background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hosts-more__chip::-webkit-details-marker { display: none; }
.hosts-more__chip::marker { content: ''; }
.hosts-more__chip::after {
  content:       '';
  display:       inline-block;
  width:         0;
  height:        0;
  margin-left:   0.1rem;
  border-left:   3px solid transparent;
  border-right:  3px solid transparent;
  border-top:    3.5px solid currentColor;
  transition:    transform 0.15s ease;
}
.hosts-more[open] .hosts-more__chip {
  background:   var(--color-teal);
  color:        var(--color-white);
  border-color: var(--color-teal);
}
.hosts-more[open] .hosts-more__chip::after { transform: rotate(180deg); }
.hosts-more__chip:hover {
  background:   rgba(29, 98, 117, 0.18);
}
.hosts-more[open] .hosts-more__chip:hover { background: var(--color-teal-dark); }

.hosts-more__panel {
  position:        absolute;  /* anchors to the enclosing .info-tile */
  top:             calc(100% - 8px);  /* slight overlap with tile's bottom edge */
  right:           0.6rem;
  min-width:       220px;
  max-width:       calc(100vw - 1.5rem);
  background-color:#ffffff;
  background-image:linear-gradient(#ffffff, #ffffff);  /* belt + braces */
  isolation:       isolate;      /* force its own stacking context — guards against
                                    any ancestor transform/filter side-effects */
  border:          1px solid rgba(10, 22, 40, 0.22);
  border-radius:   12px;
  box-shadow:      0 20px 44px rgba(10, 22, 40, 0.32),
                   0 6px 14px  rgba(10, 22, 40, 0.18);
  padding:         0.35rem;
  z-index:         61;
  display:         flex;
  flex-direction:  column;
  gap:             0.15rem;
}

/* Page-wide scrim injected into <body> by portal.js when a hosts-more
   popover is open. Kept out of the info-strip subtree because .info-strip
   is a .fade-up (has transform), which would trap position:fixed inside it. */
.hosts-scrim {
  position:       fixed;
  inset:          0;
  background:     rgba(10, 22, 40, 0.32);
  z-index:        40;
  opacity:        0;
  transition:     opacity 0.15s ease;
  pointer-events: none;  /* clicks fall through → existing outside-click handler closes */
}
.hosts-scrim.is-visible { opacity: 1; }
.hosts-more__item {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  gap:             1rem;
  padding:         0.55rem 0.7rem;
  text-decoration: none;
  color:           var(--color-ocean);
  border-radius:   8px;
  transition:      background 0.15s ease, color 0.15s ease;
}
.hosts-more__item:hover {
  background: var(--color-sand);
  color:      var(--color-teal);
}
.hosts-more__name {
  font-family:    var(--font-sans);
  font-size:      0.78rem;
  font-weight:    500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          rgba(10, 22, 40, 0.55);
}
.hosts-more__item:hover .hosts-more__name { color: var(--color-teal); }
.hosts-more__num {
  font-family:          var(--font-sans);
  font-size:            0.95rem;
  font-weight:          600;
  font-variant-numeric: tabular-nums;
  white-space:          nowrap;
  color:                inherit;
}

/* Copy to clipboard */
.copy-btn {
  display:      inline-flex;
  align-items:  center;
  gap:          0.35rem;
  background:   none;
  border:       1px solid var(--color-border);
  border-radius: 4px;
  padding:      0.2rem 0.5rem;
  font-size:    11px;
  color:        var(--color-teal);
  cursor:       pointer;
  transition:   background 0.15s ease, color 0.15s ease;
  margin-top:   0.25rem;
}
.copy-btn:hover { background: var(--color-teal); color: var(--color-white); }
.copy-btn svg { width: 12px; height: 12px; }

/* Nav cards grid */
.nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     1rem;
  margin-bottom: 2rem;
}
.nav-card {
  position:     relative;
  border-radius: var(--card-radius);
  overflow:     hidden;
  min-height:   180px;
  display:      flex;
  align-items:  flex-end;
  text-decoration: none;
  transition:   transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:   var(--card-shadow);
}
.nav-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hv); }
.nav-card__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.nav-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, rgba(10,22,40,0.2) 60%); transition: background 0.25s ease; }
.nav-card:hover .nav-card__overlay { background: linear-gradient(to top, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.3) 60%); }
.nav-card__content { position: relative; z-index: 1; padding: 1.25rem; color: var(--color-white); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; box-sizing: border-box; }
.nav-card__icon { width: 28px; height: 28px; margin-bottom: 0.5rem; stroke: var(--color-gold); }
.nav-card__title { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.3rem; }
.nav-card__desc  { font-size: 12px; opacity: 0.75; line-height: 1.5; }
.nav-card__arrow { position: absolute; top: 1rem; right: 1rem; color: var(--color-gold); opacity: 0; transition: opacity 0.2s ease; }
.nav-card:hover .nav-card__arrow { opacity: 1; }

/* Valfresco card */
/* Valfresco card */
.valfresco-card {
  background:    var(--color-white);
  border-radius: var(--card-radius);
  border:        1px solid var(--color-border);
  overflow:      hidden;
  margin-bottom: 1.5rem;
  box-shadow:    var(--card-shadow);
}
.valfresco-card__inner {
  padding:       1.5rem 2rem;
  display:       flex;
  align-items:   center;
  gap:           1.5rem;
}
.valfresco-card__text { flex: 1; min-width: 0; }
.valfresco-card__label {
  display:        inline-block;
  font-size:      10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-gold);
  margin-bottom:  0.3rem;
}
.valfresco-card__title { font-family: var(--font-serif); font-size: 1.15rem; margin: 0 0 0.35rem; color: var(--color-ocean); line-height: 1.3; }
.valfresco-card__tag   { font-size: var(--size-small); opacity: 0.7; line-height: 1.55; margin: 0 0 0.65rem; }
.valfresco-card__btn   { flex-shrink: 0; white-space: nowrap; }

/* Collapsible "How to order" */
.valfresco-card__how {
  margin-top: 0.3rem;
}
.valfresco-card__how > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  color: var(--color-teal);
  padding: 0.2rem 0;
  user-select: none;
}
.valfresco-card__how > summary::-webkit-details-marker { display: none; }
.valfresco-card__how > summary:hover { opacity: 0.8; }
.valfresco-card__chevron { transition: transform 0.2s ease; opacity: 0.7; }
.valfresco-card__how[open] .valfresco-card__chevron { transform: rotate(180deg); }
.valfresco-card__how-body { padding-top: 0.5rem; }
.valfresco-card__desc  { font-size: var(--size-small); opacity: 0.7; line-height: 1.6; margin: 0 0 0.75rem; }
.valfresco-card__facts { display: grid; gap: 0.45rem; }
.valfresco-card__fact {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
}
.valfresco-card__fact-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
}
.valfresco-card__fact-val {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-sand);
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font-family: inherit;
  font-size: 12px;
  color: var(--color-ocean);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: left;
  min-width: 0;
}
.valfresco-card__fact-val:hover { background: var(--color-sand-dark); border-color: rgba(10,22,40,0.15); }
.valfresco-card__fact-val strong { font-weight: 500; word-break: break-word; }
.valfresco-card__fact-val svg { flex-shrink: 0; opacity: 0.5; color: var(--color-teal); }

/* Sustainability note */
.sustainability-note {
  background:    var(--color-sand-dark);
  border-radius: var(--card-radius);
  padding:       1.75rem 2rem;
  border-left:   3px solid var(--color-teal);
}
.sustainability-note__title { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--color-ocean); }
.sustainability-note__list  {
  display: flex; flex-direction: column; gap: 0.5rem;
  list-style: none; padding: 0; margin: 0 0 0.75rem 0;
}
.sustainability-note__list li {
  font-size: var(--size-small); line-height: 1.6; color: var(--color-ocean);
  padding-left: 1.25rem; position: relative;
}
.sustainability-note__list li::before {
  content: '•'; color: var(--color-teal); position: absolute; left: 0; font-weight: 700;
}
.sustainability-note__quote {
  margin-top: 0.75rem; font-style: italic; font-size: var(--size-small);
  opacity: 0.6; border-top: 1px solid var(--color-border); padding-top: 0.75rem;
  color: var(--color-ocean);
}

/* ── §9 HANDBOOK ────────────────────────────────────────────────── */
.handbook-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap:     2rem;
  align-items: start;
}

/* Search */
.handbook-search {
  position:  relative;
  margin-bottom: 1.5rem;
}
.handbook-search__input {
  width:        100%;
  padding:      0.75rem 1rem 0.75rem 2.75rem;
  font-family:  var(--font-sans);
  font-size:    var(--size-small);
  border:       1.5px solid var(--color-border);
  border-radius: 8px;
  background:   var(--color-white);
  color:        var(--color-ocean);
  outline:      none;
  transition:   border-color 0.2s ease, box-shadow 0.2s ease;
}
.handbook-search__input:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px var(--color-gold-soft); }
.handbook-search__icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--color-ocean); opacity: 0.4; pointer-events: none; }

/* Section list (desktop sidebar) */
.handbook-nav { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.handbook-nav__item {
  display:     block;
  padding:     0.65rem 1rem;
  font-size:   var(--size-small);
  font-weight: 500;
  color:       var(--color-ocean);
  opacity:     0.55;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  cursor:      pointer;
  transition:  opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  line-height: 1.4;
}
.handbook-nav__item:hover { opacity: 0.9; background: rgba(29,98,117,0.05); }
.handbook-nav__item.is-active { opacity: 1; color: var(--color-teal); border-left-color: var(--color-gold); background: rgba(29,98,117,0.06); font-weight: 500; }
.handbook-nav__item.is-hidden { display: none; }

/* Accordion sections */
.accordion { display: flex; flex-direction: column; gap: 0; }
.accordion__section {
  border-bottom: 1px solid var(--color-border);
  background:    var(--color-white);
}
.accordion__section:first-child { border-radius: var(--card-radius) var(--card-radius) 0 0; border-top: 1px solid var(--color-border); }
.accordion__section:last-child  { border-radius: 0 0 var(--card-radius) var(--card-radius); }
.accordion__section.is-hidden   { display: none; }

.accordion__trigger {
  width:       100%;
  display:     flex;
  align-items: center;
  justify-content: space-between;
  gap:         1rem;
  padding:     1.1rem 1.5rem;
  text-align:  left;
  cursor:      pointer;
  transition:  background 0.15s ease;
}
.accordion__trigger:hover { background: rgba(10,22,40,0.02); }
.accordion__trigger-title {
  font-family: var(--font-serif);
  font-size:   1.05rem;
  font-weight: 400;
  color:       var(--color-ocean);
  flex:        1;
}
.accordion__trigger-icon {
  width:      20px; height: 20px;
  color:      var(--color-teal);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.accordion__section.is-open .accordion__trigger-icon { transform: rotate(180deg); }
.accordion__section.is-open .accordion__trigger { background: rgba(29,98,117,0.04); }

.accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1);
}
.accordion__section.is-open .accordion__body { max-height: 2000px; }
.accordion__body-inner { padding: 0 1.5rem 1.5rem; }

.accordion__body-inner p    { margin-bottom: 0.75rem; font-size: var(--size-small); line-height: 1.7; color: var(--color-ocean); }
.accordion__body-inner p:last-child { margin-bottom: 0; }
.accordion__body-inner ul   { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.accordion__body-inner li   { font-size: var(--size-small); line-height: 1.65; margin-bottom: 0.3rem; }
.accordion__body-inner strong { font-weight: 500; }

/* Emergency contacts highlight */
.emergency-card {
  background:    #fef2f2;
  border:        1.5px solid #fecaca;
  border-radius: 8px;
  padding:       1rem 1.25rem;
  display:       flex;
  flex-direction: column;
  gap:           0.5rem;
  margin-top:    0.5rem;
}
.emergency-card__row { display: flex; align-items: center; gap: 0.75rem; }
.emergency-card__label { font-size: var(--size-small); font-weight: 500; min-width: 120px; }
.emergency-card__link  { color: var(--color-error); font-weight: 500; font-size: var(--size-small); }

/* WiFi display */
.wifi-display {
  background:    var(--color-ocean);
  border-radius: 8px;
  padding:       1rem 1.25rem;
  margin-top:    0.5rem;
}
.wifi-display__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.wifi-display__row:last-child { margin-bottom: 0; }
.wifi-display__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
/* HTML uses __val (current) and __value (legacy) — style both. */
.wifi-display__val,
.wifi-display__value {
  font-family:    var(--font-serif);
  font-size:      1.1rem;
  color:          var(--color-gold);
  letter-spacing: 0.05em;
  text-align:     right;
  word-break:     break-all;
}
.wifi-display__hidden {
  font-family:  var(--font-sans);
  font-style:   italic;
  font-size:    0.95rem;
  font-weight:  400;
  color:        rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.wifi-display__copy {
  width:        100%;
  margin-top:   0.85rem;
  text-align:   center;
  justify-content: center;
}

/* Manatis unique alert */
.unique-alert {
  background:    var(--color-warning-bg);
  border:        1.5px solid var(--color-warning-bdr);
  border-radius: 8px;
  padding:       0.875rem 1rem;
  font-size:     var(--size-small);
  line-height:   1.6;
  margin-bottom: 0.75rem;
}
.unique-alert strong { font-weight: 600; }

/* ── §10 MAP PAGE ───────────────────────────────────────────────── */
.map-embed-wrap {
  border-radius: var(--card-radius);
  overflow:      hidden;
  box-shadow:    var(--card-shadow);
  margin-bottom: 2rem;
}
.map-embed-wrap iframe { display: block; width: 100%; height: 60vh; border: none; background: var(--color-sand-dark); }
/* Skeleton placeholder while Google Maps loads */
.map-embed-wrap { position: relative; background: var(--color-sand-dark); min-height: 300px; }
.map-load-placeholder { display: none; } /* hidden on desktop — only shown on mobile via media query */
.map-embed-wrap--deferred iframe { display: none; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.cat-tab {
  padding:       0.45rem 1rem;
  border-radius: 20px;
  border:        1.5px solid var(--color-border);
  font-size:     var(--size-small);
  font-weight:   500;
  cursor:        pointer;
  color:         var(--color-ocean);
  background:    var(--color-white);
  transition:    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-tab.is-active { background: var(--color-gold); color: var(--color-ocean); border-color: var(--color-gold); }

.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rec-card {
  background:    var(--color-white);
  border-radius: var(--card-radius);
  overflow:      hidden;
  box-shadow:    var(--card-shadow);
  display:       flex;
  flex-direction: column;
  transition:    transform 0.2s ease, box-shadow 0.2s ease;
}
.rec-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hv); }
.rec-card.is-hidden { display: none; }

.rec-card__img-wrap { height: 160px; overflow: hidden; flex-shrink: 0; }
.rec-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.rec-card:hover .rec-card__img { transform: scale(1.04); }

.rec-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.rec-card__cat,
.rec-card__cat-pill {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-teal); opacity: 0.7;
  align-self: flex-start;
}
.rec-card__name { font-family: var(--font-serif); font-size: 1rem; color: var(--color-ocean); }
.rec-card__desc { font-size: var(--size-small); opacity: 0.65; line-height: 1.5; flex: 1; }
.rec-card__meta,
.rec-card__dist {
  font-size: 12px; opacity: 0.5; display: flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem;
}
.rec-card__dist svg { flex-shrink: 0; opacity: 0.5; }

.rec-card__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
}
.rec-card__link,
.rec-card__maps-link {
  color: var(--color-teal); font-size: var(--size-small); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.3rem;
  text-decoration: none;
}
.rec-card__link:hover,
.rec-card__maps-link:hover { text-decoration: underline; }

/* ── §11 EXPERIENCES ────────────────────────────────────────────── */
.exp-hero { text-align: center; padding: var(--section-pad) var(--gutter); }
.exp-hero__sub { margin-top: 0.75rem; opacity: 0.65; font-size: var(--size-small); }

.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.exp-card {
  background:    var(--color-white);
  border-radius: var(--card-radius);
  overflow:      hidden;
  box-shadow:    var(--card-shadow);
  display:       flex;
  flex-direction: column;
  transition:    transform 0.2s ease;
}
.exp-card:hover { transform: translateY(-2px); }
.exp-card__img-wrap { height: 220px; overflow: hidden; flex-shrink: 0; }
.exp-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.exp-card:hover .exp-card__img { transform: scale(1.03); }
.exp-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.exp-card__title { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.5rem; }
.exp-card__desc  { font-size: var(--size-small); opacity: 0.7; line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.exp-card__meta  { display: flex; justify-content: space-between; align-items: center; font-size: var(--size-small); border-top: 1px solid var(--color-border); padding-top: 0.75rem; margin-top: auto; }
.exp-card__price { font-family: var(--font-serif); color: var(--color-teal); }
.exp-card__avail { font-size: 11px; opacity: 0.5; }

.exp-cta-section {
  background:    var(--color-ocean);
  border-radius: var(--card-radius);
  padding:       2.5rem 2rem;
  text-align:    center;
  color:         var(--color-white);
  margin-top:    var(--section-pad);
}
.exp-cta-section .portal-h2 { color: var(--color-white); margin-bottom: 0.75rem; }
.exp-cta-section p { opacity: 0.7; font-size: var(--size-small); margin-bottom: 1.5rem; }
.exp-cta-section__btns { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Dark-context button variants — teal-on-dark would be invisible, so flip to white. */
.exp-cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color:        var(--color-white);
}
.exp-cta-section .btn-outline:hover {
  background:   var(--color-white);
  border-color: var(--color-white);
  color:        var(--color-ocean);
}

/* ── §12 FEEDBACK ───────────────────────────────────────────────── */
.review-cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.review-cta-card {
  background:    var(--color-white);
  border-radius: var(--card-radius);
  border:        1.5px solid var(--color-border);
  padding:       1.5rem;
  text-align:    center;
  box-shadow:    var(--card-shadow);
  display:       flex;
  flex-direction: column;
  align-items:   center;
  gap:           0.75rem;
  transition:    transform 0.2s ease;
}
.review-cta-card:hover { transform: translateY(-2px); }
.review-cta-card__icon { font-size: 2rem; }
.review-cta-card__title { font-family: var(--font-serif); font-size: 1.1rem; }
.review-cta-card__sub   { font-size: var(--size-small); opacity: 0.65; line-height: 1.5; }
.review-cta-card__hint  {
  font-size:     12px;
  line-height:   1.5;
  color:         rgba(10, 22, 40, 0.7);
  background:    rgba(201, 169, 110, 0.12);
  border-left:   2px solid var(--color-gold);
  padding:       0.5rem 0.7rem;
  margin:        0.5rem 0 0.25rem;
  border-radius: 0 4px 4px 0;
  text-align:    left;
}

.feedback-form { background: var(--color-white); border-radius: var(--card-radius); padding: 2rem; border: 1px solid var(--color-border); box-shadow: var(--card-shadow); }
.feedback-form__section { margin-bottom: 2rem; }
.feedback-form__section:last-child { margin-bottom: 0; }
.feedback-form__label { display: block; font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; opacity: 0.6; margin-bottom: 0.75rem; }
.feedback-form__label-main { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; color: var(--color-ocean); display: block; margin-bottom: 0.75rem; text-transform: none; letter-spacing: 0; opacity: 1; }

/* Pill toggles */
.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-toggle {
  padding:       0.4rem 0.9rem;
  border-radius: 20px;
  border:        1.5px solid var(--color-border);
  font-size:     var(--size-small);
  cursor:        pointer;
  color:         var(--color-ocean);
  background:    transparent;
  transition:    background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select:   none;
}
.pill-toggle.is-selected { background: var(--color-teal); color: var(--color-white); border-color: var(--color-teal); }
.pill-toggle input { display: none; }

/* Star rating */
.star-rating { display: flex; gap: 0.25rem; }
.star-rating__row { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 0.75rem; }
.star-rating__cat { font-size: var(--size-small); color: var(--color-ocean); opacity: 0.7; }
.star-rating__stars { display: flex; gap: 4px; }
.star-rating__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-border);
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating__btn svg {
  width: 32px; height: 32px;
  stroke: var(--color-gold);
  fill: none;
  pointer-events: none;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.star-rating__btn.is-selected svg,
.star-rating__btn.is-hover svg {
  fill: var(--color-gold);
  stroke: var(--color-gold);
  color: var(--color-gold);
}
.star-rating__btn.is-selected { color: var(--color-gold); }
.star-rating__btn:active { transform: scale(1.15); }
/* Legacy star-btn class (unused, kept for safety) */
.star-btn {
  width:      32px; height: 32px;
  background: none; border: none; cursor: pointer;
  color:      var(--color-border);
  transition: color 0.1s ease, transform 0.1s ease;
  padding:    0;
}
.star-btn svg { width: 24px; height: 24px; fill: currentColor; }
.star-btn.is-lit { color: var(--color-gold); }
.star-btn:hover  { transform: scale(1.1); }

/* Textarea */
.feedback-textarea {
  width:        100%;
  min-height:   100px;
  padding:      0.75rem 1rem;
  font-family:  var(--font-sans);
  font-size:    var(--size-small);
  font-weight:  300;
  color:        var(--color-ocean);
  border:       1.5px solid var(--color-border);
  border-radius: 8px;
  resize:       vertical;
  outline:      none;
  transition:   border-color 0.2s ease, box-shadow 0.2s ease;
  background:   var(--color-white);
}
.feedback-textarea:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px var(--color-gold-soft); }

/* Checkbox */
.feedback-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; font-size: var(--size-small); }
.feedback-checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--color-teal); flex-shrink: 0; }

/* Form success */
.feedback-success {
  text-align:  center;
  padding:     2rem;
  display:     none;
}
.feedback-success.is-visible { display: block; }
.feedback-success__icon { font-size: 3rem; margin-bottom: 0.75rem; }
.feedback-success__title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.5rem; }
.feedback-success__sub   { font-size: var(--size-small); opacity: 0.7; }

/* ── §13 DEPARTURE ──────────────────────────────────────────────── */
.departure-hero {
  background:    var(--color-ocean);
  border-radius: var(--card-radius);
  padding:       3rem 2.5rem;
  text-align:    center;
  color:         var(--color-white);
  margin-bottom: 2rem;
}
.departure-hero__script { font-family: var(--font-serif); font-style: italic; color: var(--color-gold); margin-bottom: 0.5rem; }
.departure-hero__title  { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3rem); color: var(--color-white); margin-bottom: 1rem; }
.departure-hero__para   { opacity: 0.75; font-style: italic; max-width: 520px; margin: 0 auto; line-height: 1.7; }

.departure-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.departure-action {
  background:    var(--color-white);
  border-radius: var(--card-radius);
  padding:       1.75rem 1.5rem;
  text-align:    center;
  box-shadow:    var(--card-shadow);
  display:       flex;
  flex-direction: column;
  align-items:   center;
  gap:           0.75rem;
}
.departure-action__icon  { font-size: 2rem; }
.departure-action__title { font-family: var(--font-serif); font-size: 1.1rem; }
.departure-action__sub   { font-size: var(--size-small); opacity: 0.65; line-height: 1.5; }
.departure-action__hint  {
  font-size:     12px;
  line-height:   1.5;
  color:         rgba(10, 22, 40, 0.7);
  background:    rgba(201, 169, 110, 0.12);
  border-left:   2px solid var(--color-gold);
  padding:       0.5rem 0.7rem;
  margin:        0.5rem 0 0.85rem;
  border-radius: 0 4px 4px 0;
  text-align:    left;
}

/* Cross-sell villas */
.departure-villas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.departure-villa-card {
  position:     relative;
  border-radius: var(--card-radius);
  overflow:     hidden;
  min-height:   220px;
  display:      flex;
  align-items:  flex-end;
  text-decoration: none;
  box-shadow:   var(--card-shadow);
  transition:   transform 0.2s ease;
}
.departure-villa-card:hover { transform: translateY(-2px); }
.departure-villa-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.departure-villa-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.8), rgba(10,22,40,0.2)); }
.departure-villa-card__content { position: relative; z-index: 1; padding: 1.25rem; color: var(--color-white); }
.departure-villa-card__name { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.25rem; }
.departure-villa-card__hook { font-size: var(--size-small); opacity: 0.8; font-style: italic; }

/* Sign-off */
.signoff {
  background:    var(--color-ocean);
  border-radius: var(--card-radius);
  padding:       2.5rem;
  display:       flex;
  align-items:   center;
  gap:           2rem;
  color:         var(--color-white);
  margin-top:    2.5rem;
}
.signoff__photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--color-gold-soft); }
.signoff__text  { flex: 1; }
.signoff__name  { font-family: var(--font-serif); font-size: 1.25rem; color: var(--color-gold); margin-bottom: 0.4rem; }
.signoff__para  { font-size: var(--size-small); opacity: 0.75; line-height: 1.6; margin-bottom: 0.5rem; }
.signoff__phone { color: var(--color-gold); font-size: var(--size-small); }

/* ── §14 PORTAL FOOTER ──────────────────────────────────────────── */
.portal-footer {
  background:   var(--color-sand-dark);
  border-top:   1px solid var(--color-border);
  padding:      1.5rem var(--gutter);
  margin-top:   1rem;
}
.portal-footer__inner {
  max-width:   var(--max-portal);
  margin:      0 auto;
  display:     flex;
  align-items: center;
  justify-content: space-between;
  gap:         1rem;
  flex-wrap:   wrap;
}
.portal-footer__emergency { display: flex; align-items: center; gap: 0.6rem; font-size: var(--size-small); }
.portal-footer__tel   { color: var(--color-teal); font-weight: 500; }
.portal-footer__sep   { opacity: 0.3; }
.portal-footer__meta  { display: flex; align-items: center; gap: 0.6rem; font-size: var(--size-small); opacity: 0.5; }
.portal-footer__main-link { color: var(--color-teal); text-decoration: underline; text-underline-offset: 2px; }

/* ── §15 FADE-UP ANIMATION ──────────────────────────────────────── */
.fade-up {
  opacity:   0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* ── §16 TOAST ──────────────────────────────────────────────────── */
.portal-toast {
  position:      fixed;
  bottom:        2rem;
  left:          50%;
  transform:     translateX(-50%);
  padding:       0.75rem 1.5rem;
  background:    var(--color-ocean);
  color:         var(--color-white);
  border-radius: 8px;
  font-size:     var(--size-small);
  font-weight:   500;
  z-index:       9999;
  opacity:       0;
  transition:    opacity 0.25s ease;
  pointer-events:none;
  max-width:     calc(100vw - 2rem);
  text-align:    center;
}
.portal-toast.is-visible { opacity: 1; }

/* ── §17 UTILITY ────────────────────────────────────────────────── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.highlight { background: rgba(201,169,110,0.25); border-radius: 2px; }
.text-teal  { color: var(--color-teal); }
.text-gold  { color: var(--color-gold); }
.text-muted { opacity: 0.55; }
.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }  .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

/* ── §17b CLASS ALIASES — matching HTML to CSS ───────────────────── */
/* Section headers (map, experiences, feedback pages) */
.section-header { margin-bottom: 2rem; }
.section-header__title {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-ocean); margin-bottom: 0.5rem;
}
.section-header__sub {
  font-size: var(--size-small); color: var(--color-ocean);
  opacity: 0.6; line-height: 1.6; max-width: 560px;
}

/* Handbook header (replaces section-header on handbook page) */
/* padding-top compensates for portal-page { padding-top:0 } set inline on this page */
.handbook-header { padding-top: 2.5rem; margin-bottom: 1.5rem; }
.handbook-header__title {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-ocean); margin-bottom: 0.5rem;
}
.handbook-header__sub {
  font-size: var(--size-small); color: var(--color-ocean);
  opacity: 0.6; line-height: 1.6; max-width: 560px; margin-bottom: 1rem;
}

/* Handbook nav alias */
.handbook-nav__link {
  display: block; padding: 0.65rem 1rem; font-size: var(--size-small);
  font-weight: 500; color: var(--color-ocean); opacity: 0.55;
  border-left: 2px solid transparent; border-radius: 0 4px 4px 0;
  text-decoration: none; transition: all 0.15s ease;
}
.handbook-nav__link:hover { opacity: 1; background: rgba(201,169,110,0.08); }
.handbook-nav__link.is-active {
  opacity: 1; border-left-color: var(--color-gold); color: var(--color-teal);
  background: rgba(29,98,117,0.06);
}
.handbook-nav__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-ocean); opacity: 0.4; padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
}

/* Handbook search clear/no-results */
.handbook-search__clear {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--color-ocean); opacity: 0.4;
}
.handbook-search__clear:hover { opacity: 0.8; }
.handbook-search__clear svg { width: 16px; height: 16px; }
.handbook-search__no-results {
  font-size: var(--size-small); color: var(--color-ocean); opacity: 0.5;
  margin-top: 0.5rem;
}

/* PDF download row — below search bar */
.handbook-pdf-row {
  margin-top: 0.875rem;
  text-align: right;
}
.handbook-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--size-small);
  color: var(--color-ocean);
  opacity: 0.45;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.handbook-pdf-link:hover { opacity: 0.8; color: var(--color-teal); }
.handbook-pdf-link svg  { flex-shrink: 0; }

.hb-highlight { background: rgba(201,169,110,0.35); border-radius: 2px; padding: 0 2px; }

/* Handbook photos — thumbnail + lightbox */
.hb-photo { margin: 1rem 0; }
.hb-photo__btn {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 8px; padding: 0.5rem; cursor: pointer; width: 100%;
  text-align: left; transition: background 0.15s ease;
}
.hb-photo__btn:hover { background: var(--color-sand); }
.hb-photo__thumb {
  width: 80px; height: 60px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0;
}
/* Rotation fix: portrait images saved sideways */
.hb-photo__thumb--rotated {
  transform: rotate(90deg);
  width: 60px; height: 80px;
}
.hb-photo__label {
  font-size: 13px; color: var(--color-teal); font-weight: 500;
}

/* Lightbox overlay */
.hb-lightbox {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,22,40,0.92); align-items: center; justify-content: center;
  padding: 1rem; cursor: pointer;
}
.hb-lightbox.is-open { display: flex; }
.hb-lightbox img {
  max-width: 90vw; max-height: 85vh; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
/* Rotated lightbox image: swap max-w/max-h so portrait fills screen correctly */
.hb-lightbox img.hb-lightbox__img--rotated {
  max-width: 82vh; max-height: 88vw;
  transform: rotate(90deg);
}
.hb-lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  color: white; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.hb-lightbox__close:hover { background: rgba(255,255,255,0.3); }

/* Switch diagram — SVG schematic in handbook */
.sw-diagram {
  margin: 1.25rem 0;
  border-radius: 10px;
  background: var(--color-sand-dark);
  padding: 0.5rem;
  text-align: center;
}
.sw-diagram img {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 6px;
}
/* Tall portrait diagrams (Moana, Manatis) — cap width tighter so they don't dominate the screen */
.sw-diagram--tall img { max-width: 240px; }

/* Mobile: shrink all SVG diagrams so labels stay readable and the image doesn't fill the screen */
@media (max-width: 600px) {
  .sw-diagram img       { max-width: 300px; }
  .sw-diagram--tall img { max-width: 200px; }
}

/* Quick dock — mobile-only navigation shortcut bar */
.quick-dock { display: none; }

/* Accordion — matching HTML class names */
.accordion {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: none;
  overflow: hidden;
}
.accordion:first-child { border-top: 1px solid var(--color-border); border-radius: var(--card-radius) var(--card-radius) 0 0; }
.accordion:last-child  { border-radius: 0 0 var(--card-radius) var(--card-radius); }

.accordion__toggle {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; background: none; border: none;
  cursor: pointer; text-align: left; font-family: var(--font-sans);
  transition: background 0.15s ease;
}
.accordion__toggle:hover { background: rgba(10,22,40,0.02); }

.accordion__icon {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--color-teal); opacity: 0.6;
}
.accordion__title {
  flex: 1; font-size: var(--size-body); font-weight: 500;
  color: var(--color-ocean);
}
.accordion__chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--color-ocean); opacity: 0.35;
  transition: transform 0.25s ease;
}
.accordion.is-open .accordion__chevron { transform: rotate(180deg); }
.accordion.is-open .accordion__toggle { background: rgba(29,98,117,0.04); }

.accordion__body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.5rem;
}
.accordion.is-open .accordion__body { padding-bottom: 1.5rem; }

.accordion__body p    { margin-bottom: 0.75rem; font-size: var(--size-small); line-height: 1.7; color: var(--color-ocean); }
.accordion__body p:last-child { margin-bottom: 0; }
.accordion__body ul   { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.accordion__body ol   { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.accordion__body li   { font-size: var(--size-small); line-height: 1.65; margin-bottom: 0.3rem; color: var(--color-ocean); }
.accordion__body strong { font-weight: 500; }

/* Handbook arrival sub-headings — small, refined section markers */
.hb-arr__head {
  font-family:    var(--font-serif);
  font-size:      0.95rem;
  font-weight:    500;
  color:          var(--color-ocean);
  margin:         1.1rem 0 0.4rem;
  letter-spacing: 0.01em;
}
.hb-arr__head:first-of-type { margin-top: 0.85rem; }
.hb-arr__map-link {
  display:        inline-flex;
  align-items:    center;
  gap:            0.35rem;
  color:          var(--color-teal);
  font-weight:    500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Handbook alert boxes */
.hb-alert {
  padding: 0.75rem 1rem; border-radius: 8px; font-size: var(--size-small);
  margin-bottom: 1rem;
}
.hb-alert--warn { background: #fef3cd; border: 1px solid #ffc107; color: #856404; }
.hb-alert--info { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }

/* §0 Property Care — first-section callout, three-rule format */
.accordion--care {
  background:    rgba(201, 169, 110, 0.06);
  border:        1.5px solid rgba(201, 169, 110, 0.45);
  border-radius: var(--card-radius);
  margin-bottom: 0;
}
.accordion--care .accordion__toggle {
  background:  rgba(201, 169, 110, 0.10);
}
.accordion--care.is-open .accordion__toggle {
  background:  rgba(201, 169, 110, 0.14);
}
.accordion--care .accordion__icon {
  color:       var(--color-gold);
  opacity:     0.85;
}
.accordion--care .accordion__title {
  font-weight:    600;
  letter-spacing: 0.02em;
}
.hb-care__intro {
  font-size:    var(--size-small);
  font-style:   italic;
  color:        rgba(10, 22, 40, 0.75);
  margin-bottom: 1rem !important;
}
.hb-care__rule {
  display:        flex;
  gap:            0.85rem;
  align-items:    flex-start;
  padding:        0.85rem 0;
  border-bottom:  1px solid rgba(10, 22, 40, 0.08);
}
.hb-care__rule:last-of-type { border-bottom: none; }
.hb-care__icon {
  flex-shrink:   0;
  width:         34px;
  height:        34px;
  border-radius: 50%;
  background:    rgba(201, 169, 110, 0.20);
  color:         var(--color-gold);
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-top:    2px;
}
.hb-care__body { flex: 1; min-width: 0; }
.hb-care__body h3 {
  font-family:    var(--font-serif);
  font-size:      1rem;
  font-weight:    500;
  color:          var(--color-ocean);
  margin-bottom:  0.3rem;
}
.hb-care__body p {
  font-size:    13.5px;
  line-height:  1.6;
  color:        rgba(10, 22, 40, 0.85);
  margin-bottom: 0;
}
.hb-care__body a {
  color:           var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hb-care__outro {
  margin-top:   1rem;
  padding:      0.75rem 0.9rem;
  background:   rgba(255, 193, 7, 0.10);
  border-left:  3px solid #ffc107;
  border-radius: 0 6px 6px 0;
  font-size:    13.5px !important;
}

/* Handbook copy buttons */
.hb-copy-btn {
  display: inline-flex; align-items: center; background: none; border: none;
  cursor: pointer; padding: 2px 4px; margin-left: 4px; color: var(--color-teal);
  opacity: 0.6; transition: opacity 0.15s;
}
.hb-copy-btn:hover { opacity: 1; }

/* Info tile locked state (pre-arrival WiFi) */
/* Locked = content pending (e.g. Wi-Fi password before check-in). Keep the tile
   alive visually — white background, normal layout. Only the icon and the "muted"
   value are dimmed. Avoid opacity on the whole tile (it bleeds the card bg through). */
.info-tile--locked .info-tile__icon { color: rgba(10, 22, 40, 0.35); }
.info-tile--locked .info-tile__label { color: rgba(10, 22, 40, 0.55); }
.info-tile__val--muted {
  font-family:  var(--font-sans);
  font-weight:  400;
  font-size:    0.95rem;
  font-style:   normal;
  color:        rgba(10, 22, 40, 0.5);
  letter-spacing: 0;
}
.info-tile__val--link { color: var(--color-teal); text-decoration: none; }
.info-tile__val--link:hover { text-decoration: underline; }
.info-tile__val--phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Feedback — section wrapper and rating rows */
.feedback-section { margin-top: 2rem; }
.feedback-section__title {
  font-family: var(--font-serif); font-size: 1.4rem;
  color: var(--color-ocean); margin-bottom: 0.3rem;
}
.feedback-section__sub {
  font-size: var(--size-small); opacity: 0.6; margin-bottom: 1.5rem;
}
.feedback-ratings { margin-bottom: 2rem; }
.feedback-rating-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0; border-bottom: 1px solid var(--color-border);
}
.feedback-rating-row__label {
  font-size: var(--size-small); font-weight: 500; color: var(--color-ocean);
}
.feedback-field { margin-bottom: 1.5rem; }
.feedback-label {
  display: block; font-size: var(--size-small); font-weight: 500;
  color: var(--color-ocean); margin-bottom: 0.5rem;
}
.feedback-field--checkbox { display: flex; align-items: center; gap: 0.5rem; }
.feedback-checkbox {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--size-small); color: var(--color-ocean); cursor: pointer;
}
.feedback-form__submit { margin-top: 1rem; }

/* Review CTA card refinements */
.review-cta-card__icon { flex-shrink: 0; }
.review-cta-card__body { flex: 1; }
.review-cta-card__title {
  font-family: var(--font-serif); font-size: 1.1rem;
  color: var(--color-ocean); margin-bottom: 0.25rem;
}
.review-cta-card__sub {
  font-size: var(--size-small); opacity: 0.6; line-height: 1.5;
}

/* Departure — widget section */
.departure-widget {
  max-width: var(--max-portal); margin: 2rem auto; padding: 0 var(--gutter);
}
.departure-widget__title {
  font-family: var(--font-serif); font-size: 1.3rem; color: var(--color-ocean);
  text-align: center; margin-bottom: 1rem;
}
.departure-widget__embed { min-height: 200px; }

/* Departure — share buttons */
.departure-action__share-btns {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem;
}

/* Departure — villa cross-sell card refinements */
.departure-villa-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.75) 0%, rgba(10,22,40,0.15) 60%);
}

/* ── §18 RESPONSIVE — MOBILE-FIRST (99% of guests use phones) ──── */

/* ── §NEW: WEATHER STRIP ────────────────────────────────────────── */
.weather-strip {
  margin-bottom: 1.5rem;
  padding: 1.25rem 0;
}
.weather-strip__title {
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ocean);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}
.weather-strip__days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.weather-strip__loading,
.weather-strip__error {
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--size-small);
  color: var(--color-ocean);
  opacity: 0.45;
  padding: 1rem 0;
}
.weather-strip__link {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: var(--size-small);
  color: var(--color-teal);
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.weather-strip__link:hover { opacity: 1; }
.weather-day {
  background: var(--color-card-bg);
  border-radius: 10px;
  padding: 0.875rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 6px rgba(10,22,40,0.05);
}
.weather-day__name {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ocean);
  opacity: 0.55;
}
.weather-day__icon {
  font-size: 1.6rem;
  line-height: 1;
}
.weather-day__temp {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-ocean);
  white-space: nowrap;
}
.weather-day__lo {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  opacity: 0.45;
  font-weight: 300;
}

/* ── §NEW: WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
  display: none; /* shown only on mobile — see media query below */
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.wa-float svg {
  width: 24px;
  height: 24px;
}

/* ── §NEW: TAP-TO-COPY on booking ID ───────────────────────────── */
.booking-card__id-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--color-ocean);
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.booking-card__id-copy:hover,
.booking-card__id-copy:active {
  background: var(--color-sand-dark);
}
.booking-card__id-copy svg {
  opacity: 0.35;
  flex-shrink: 0;
}

.booking-card__addr-copy {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.25rem;
  padding: 0.15rem;
  border-radius: 4px;
  color: var(--color-ocean);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.booking-card__addr-copy:hover,
.booking-card__addr-copy:active {
  opacity: 0.7;
  background: var(--color-sand-dark);
}

/* ── §NEW: SHARE PORTAL LINK ───────────────────────────────────── */
.share-portal {
  max-width: var(--max-portal);
  margin: 0 auto;
  padding: 0 var(--gutter) 0.5rem;
  text-align: center;
}
.share-portal__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-teal);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.share-portal__btn:hover,
.share-portal__btn:active {
  background: rgba(29,98,117,0.08);
}
.share-portal__btn svg {
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── §NEW: CHECK-IN / CHECK-OUT DAY CARDS ──────────────────────── */
.day-card {
  max-width: var(--max-portal);
  margin: 0 auto 1rem;
  padding: 1.25rem;
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--color-teal);
}
.day-card--checkout {
  border-left-color: var(--color-gold);
}
.day-card__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}
.day-card--checkout .day-card__badge {
  color: var(--color-gold);
}
.day-card__badge svg {
  flex-shrink: 0;
}
.day-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--color-ocean);
}
.day-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.day-card__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.day-card__item-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
}
.day-card__item-val {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-ocean);
}
.day-card__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-teal);
  cursor: pointer;
  padding: 0.2rem 0;
  transition: opacity 0.15s ease;
}
.day-card__copy-btn:hover {
  opacity: 0.7;
}
.day-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-teal);
  padding: 0.2rem 0;
  transition: opacity 0.15s ease;
}
.day-card__map-link:hover {
  opacity: 0.7;
}

/* Checkout checklist */
.day-card__checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.day-card__checklist li {
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}
.day-card__checklist li::before {
  content: '\2610';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  opacity: 0.4;
}
.day-card__review-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gold);
  transition: opacity 0.15s ease;
}
.day-card__review-link:hover {
  opacity: 0.7;
}

/* ── §NEW: ENHANCED EMERGENCY CONTACTS ─────────────────────────── */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.emergency-contact {
  background: var(--color-sand);
  border-radius: 8px;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.emergency-contact--highlight {
  background: var(--color-teal);
  color: var(--color-white);
}
.emergency-contact__name {
  font-weight: 500;
  font-size: 0.9rem;
}
.emergency-contact__role {
  font-size: 0.75rem;
  opacity: 0.6;
}
.emergency-contact--highlight .emergency-contact__role {
  opacity: 0.8;
}
.emergency-contact__action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-teal);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.emergency-contact--highlight .emergency-contact__action {
  color: var(--color-white);
  opacity: 0.9;
}
.emergency-contact__action:hover {
  opacity: 0.7;
}
.emergency-contact__action svg {
  flex-shrink: 0;
}
.emergency-contact__maps {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--color-teal);
  opacity: 0.65;
  margin-top: 0.15rem;
  transition: opacity 0.15s ease;
}
.emergency-contact__maps:hover {
  opacity: 1;
}
.emergency-contact--highlight .emergency-contact__maps {
  color: var(--color-white);
}

/* ── §NEW: VILLA GALLERY ──────────────────────────────────────────── */
.villa-gallery {
  margin-bottom: 1.5rem;
  padding: 0;
}
.villa-gallery__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-ocean);
  margin-bottom: 0.75rem;
}
.villa-gallery__scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.villa-gallery__scroll::-webkit-scrollbar { height: 4px; }
.villa-gallery__scroll::-webkit-scrollbar-thumb { background: var(--color-gold-soft); border-radius: 2px; }
.villa-gallery__item {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
}
.villa-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.villa-gallery__link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: var(--size-small);
  color: var(--color-teal);
}
.villa-gallery__loading {
  padding: 2rem;
  text-align: center;
  font-size: var(--size-small);
  opacity: 0.5;
}

/* ── §NEW: CHECK AVAILABILITY LINK ────────────────────────────────── */
.check-availability {
  text-align: center;
  margin: 1.5rem 0;
}
.check-availability__link {
  font-size: var(--size-small);
  color: var(--color-teal);
  font-weight: 500;
}

/* ── §NEW: HOME ACTIONS (villa gallery + availability) ───────────── */
.home-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.home-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--card-radius);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--color-teal);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  box-shadow: var(--card-shadow);
}
.home-action:hover {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
  transform: translateY(-1px);
}
.home-action svg {
  flex-shrink: 0;
}

/* Tablet breakpoint */
@media (max-width: 1023px) {
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .handbook-layout { grid-template-columns: 1fr; }
  .handbook-nav { display: none; }
  .departure-actions { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE (≤767px) — primary viewport ──────────────────────────── */
@media (max-width: 767px) {
  :root {
    --nav-h: 0px;
    --gutter: 1rem;
    --section-pad: clamp(1.5rem, 4vw, 2.5rem);
  }
  body { padding-top: 0; font-size: 15px; }

  /* Navigation: bottom bar on mobile */
  .portal-nav   { display: none; }
  .portal-bottom-nav { display: flex; }
  /* No spacer needed — the footer's own bottom padding already clears the nav. */
  .portal-bottom-spacer { display: none; }

  /* Portal page: tighter spacing. Bottom nav clearance is handled by the
     footer's padding-bottom, so no nav-compensation needed here. */
  .portal-page { padding: 1.25rem var(--gutter) 1.25rem; }

  /* ── Auth gate ── */
  .auth-gate { grid-template-columns: 1fr; }
  .auth-gate__visual { display: none; }
  .auth-gate__form-panel { min-height: 100vh; min-height: 100dvh; padding: 2rem 1.25rem; }
  .auth-gate__form-inner { max-width: 100%; }
  .auth-gate__logo-mobile { display: block; width: 64px; height: auto; object-fit: contain; margin-bottom: 1.5rem; }
  .auth-gate__headline { font-size: 1.6rem; }

  /* ── Home: Hero card ── */
  .hero-card { min-height: 260px; margin-bottom: 1rem; border-radius: 14px; }
  .hero-card__content { padding: 1.5rem 1.25rem; }
  .hero-card__script { font-size: 1.15rem; }
  .hero-card__villa,
  .hero-card__title { font-size: 2rem; }
  .hero-card__hook { font-size: 14px; margin-bottom: 0.6rem; }
  .hero-card__personal { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
  .hero-card__welcome { font-size: 13px; line-height: 1.55; }

  /* ── Quick dock ── */
  .quick-dock {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: var(--color-white);
    border-radius: 14px;
    padding: 0.5rem 0.25rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
  }
  .quick-dock__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-ocean);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
    padding: 0.5rem 0.2rem;
    border-radius: 10px;
    transition: background 0.12s ease;
    line-height: 1.2;
    text-align: center;
    min-height: 54px;
  }
  .quick-dock__btn:active { background: var(--color-sand-dark); }
  .quick-dock__btn svg { color: var(--color-teal); flex-shrink: 0; }

  /* ── Booking card ── */
  .booking-card { margin-bottom: 1rem; border-radius: 14px; }
  .booking-card__header { padding: 0.75rem 1rem; }
  .booking-card__label { font-size: 10px; }
  .booking-card__id { font-size: 0.95rem; }
  .booking-card__dates { padding: 1rem; flex-direction: column; gap: 0.5rem; }
  .booking-card__villa-info { margin-bottom: 0.15rem; }
  .booking-card__villa-info strong { font-size: 1rem; }
  .booking-card__date-range { align-items: flex-start; }
  .booking-card__row { padding: 0.75rem 1rem; }
  .booking-card__times { padding: 0.6rem 1rem; }
  .booking-card__transfer-table { font-size: 12px; }
  .booking-card__checkin-cta { margin-top: 0.5rem; }

  /* Bank-transfer block: stack label above value on narrow screens */
  .pay-bank__summary { padding: 0.7rem 0.875rem; }
  .pay-bank__body { padding: 0.75rem 0.875rem 0.875rem; }
  .pay-bank__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10,22,40,0.06);
  }
  .pay-bank__list { gap: 0; }
  .pay-bank__row:last-child { border-bottom: none; padding-bottom: 0; }
  .pay-bank__row:first-child { padding-top: 0; }
  .pay-bank__val--mono { font-size: 13px; }
  .pay-due { display: inline-block; margin-left: 0; margin-top: 0.3rem; }
  .booking-card__checkin-btn { width: 100%; text-align: center; }

  /* ── Countdown ── */
  .countdown-card { padding: 1.5rem 1.25rem; margin-bottom: 1rem; border-radius: 14px; }
  .countdown-card__number { font-size: 3rem; }
  .countdown-card__actions { flex-direction: column; align-items: stretch; }
  .countdown-action { justify-content: center; }

  /* ── Info strip → single column of horizontal tiles on mobile ── */
  .info-strip { grid-template-columns: 1fr; margin-bottom: 1rem; border-radius: 14px; }
  .info-strip--pre { grid-template-columns: 1fr; }
  /* Mobile: corner radii flip — first tile rounds top corners, last rounds bottom */
  .info-tile:first-child {
    border-radius: 14px 14px 0 0;
  }
  .info-tile:last-child {
    border-radius: 0 0 14px 14px;
  }
  .info-tile { padding: 0.9rem 1rem; gap: 0.875rem; }
  .info-tile__icon { width: 24px; height: 24px; margin-top: 3px; }
  .info-tile__label { font-size: 10px; line-height: 1.4; }
  .info-tile__val { font-size: 15px; line-height: 1.35; }
  .info-tile__sub { font-size: 11px; line-height: 1.4; }
  .info-tile__copy { font-size: 12px; padding: 0.3rem 0.6rem; }

  /* "2 more" popover on mobile: cap width so it doesn't overflow viewport */
  .hosts-more__panel { min-width: min(260px, calc(100vw - 2rem)); }

  /* ── Nav cards → horizontal scroll carousel (contained within gutter) ── */
  .nav-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.625rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 0.75rem;
  }
  .nav-cards::-webkit-scrollbar { display: none; }
  .nav-card {
    flex: 0 0 calc(100% - 2rem);
    min-height: 200px;
    scroll-snap-align: start;
    border-radius: 14px;
  }
  .nav-card__content { padding: 1rem; }
  .nav-card__icon { width: 24px; height: 24px; margin-bottom: 0.4rem; }
  .nav-card__title { font-size: 1.15rem; }
  .nav-card__desc { font-size: 12px; opacity: 0.82; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* ── Home actions ── */
  .home-actions { flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
  .home-action { padding: 0.75rem 1rem; font-size: 13px; }

  /* ── Valfresco ── */
  .valfresco-card { margin-bottom: 1.25rem; border-radius: 10px; }
  .valfresco-card__inner { flex-direction: column; text-align: left; gap: 0.85rem; padding: 1.1rem 1.1rem 1.25rem; align-items: stretch; }
  .valfresco-card__title { font-size: 1.05rem; }
  .valfresco-card__tag { font-size: 13px; }
  .valfresco-card__desc { font-size: 13px; }
  .valfresco-card__btn { width: 100%; text-align: center; }
  .valfresco-card__fact { grid-template-columns: 1fr; gap: 0.2rem; }
  .valfresco-card__fact-val { align-self: flex-start; }

  /* ── Sustainability ── */
  .sustainability-note { padding: 1.25rem; border-radius: 10px; }
  .sustainability-note__title { font-size: 0.95rem; }

  /* ── Handbook ── */
  .handbook-header { margin-bottom: 1rem; }
  .handbook-header__title { font-size: 1.25rem; }
  .handbook-search__input { padding: 0.65rem 1rem 0.65rem 2.5rem; font-size: 14px; }
  .accordion__toggle { padding: 0.875rem 1rem; gap: 0.6rem; min-height: 48px; }
  .accordion__icon { width: 18px; height: 18px; }
  .accordion__title { font-size: 14px; }
  .accordion__chevron { width: 16px; height: 16px; }
  .accordion__body { padding: 0 1rem; font-size: 14px; }
  .accordion.is-open .accordion__body { padding-bottom: 1rem; }
  .accordion__body p, .accordion__body li { font-size: 13px; }
  .wifi-display { padding: 0.875rem; border-radius: 8px; }
  .emergency-card { flex-direction: column; gap: 0.75rem; }
  .emergency-card__contact { width: 100%; }

  /* ── Map page ── */
  .map-embed-wrap iframe { height: 35vh; }
  .map-embed-wrap--deferred iframe { display: none; }
  .map-load-placeholder {
    display: none; height: 35vh; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.75rem; background: var(--color-sand-dark);
    border-radius: 10px; cursor: pointer; text-align: center; padding: 1.5rem;
  }
  .map-embed-wrap--deferred .map-load-placeholder { display: flex; }
  .map-load-placeholder__icon { width: 36px; height: 36px; color: var(--color-teal); opacity: 0.5; }
  .map-load-placeholder__text { font-size: 14px; color: var(--color-ocean); opacity: 0.6; }
  .cat-tabs { gap: 0.4rem; margin-bottom: 1rem; }
  .cat-tab { white-space: nowrap; padding: 0.4rem 0.85rem; font-size: 13px; flex-shrink: 0; }
  .rec-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .rec-card { border-radius: 10px; }
  .rec-card__body { padding: 0.875rem; }
  .rec-card__name { font-size: 0.95rem; }
  .rec-card__desc { font-size: 13px; }
  .rec-card__footer { padding: 0.6rem 0.875rem; }

  /* ── Experiences ── */
  .exp-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .exp-card { border-radius: 10px; }
  .exp-card__body { padding: 1rem; }
  .exp-card__title { font-size: 1.05rem; }
  .exp-card__desc { font-size: 13px; }
  .exp-card__btn { text-align: center; }
  .exp-card .btn-whatsapp { border-radius: 0 0 10px 10px; width: 100%; justify-content: center; }
  .exp-cta-section { padding: 2rem 1.25rem; border-radius: 10px; margin-top: 1.5rem; }
  .exp-cta-section__title { font-size: 1.25rem; }
  .exp-cta-section__btns { flex-direction: column; }
  .exp-cta-section__btns a { text-align: center; }

  /* ── Feedback ── */
  .review-cta-cards { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .review-cta-card { padding: 1.25rem; border-radius: 10px; flex-direction: column; text-align: center; gap: 0.75rem; }
  .feedback-section__title { font-size: 1.15rem; }
  .feedback-rating-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.6rem 0; }
  .star-rating__btn svg { width: 36px; height: 36px; } /* larger tap targets on mobile */
  .star-rating__btn { padding: 0.2rem; }
  .pill-toggle { padding: 0.5rem 0.75rem; font-size: 13px; }
  .feedback-textarea { font-size: 14px; min-height: 80px; }

  /* ── Departure ── */
  .departure-hero { padding: 2rem 1.25rem; }
  .departure-hero__headline { font-size: 1.5rem; }
  .departure-actions { grid-template-columns: 1fr; gap: 0.75rem; }
  .departure-action { padding: 1.25rem; border-radius: 10px; text-align: center; }
  .departure-villas { grid-template-columns: 1fr; gap: 0.75rem; }
  .departure-villa-card { border-radius: 10px; }
  .signoff { flex-direction: column; text-align: center; }
  .signoff__inner { flex-direction: column; align-items: center; gap: 1rem; }

  /* ── Section headers — smaller on mobile for proportion ── */
  .section-header__title { font-size: 1.25rem; }
  .section-header__sub { font-size: 13px; }
  .portal-h1 { font-size: 1.6rem; }
  .portal-h2 { font-size: 1.3rem; }
  .portal-h3 { font-size: 1.1rem; }

  /* ── Footer ── */
  .portal-footer { padding: 1rem var(--gutter) calc(var(--nav-bottom-h) + 1rem); }
  .portal-footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
  .portal-footer__emergency { flex-direction: column; align-items: center; gap: 0.4rem; font-size: 13px; }
  .portal-footer__emergency .portal-footer__sep { display: none; }
  .portal-footer__meta { flex-direction: column; align-items: center; gap: 0.25rem; font-size: 12px; }
  .portal-footer__meta .portal-footer__sep { display: none; }

  /* ── Buttons on mobile: full width for primary actions ── */
  .btn-primary { width: 100%; text-align: center; padding: 0.85rem 1rem; }

  /* ── Weather strip — card style on mobile ── */
  .weather-strip {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
  }
  .weather-strip__title { font-size: 0.65rem; margin-bottom: 0.5rem; }
  .weather-day { padding: 0.6rem 0.3rem; border-radius: 10px; gap: 0.25rem; }
  .weather-day__name { font-size: 0.6rem; }
  .weather-day__icon { font-size: 1.35rem; }
  .weather-day__temp { font-size: 0.95rem; }
  .weather-day__lo { font-size: 0.7rem; }

  /* ── Villa gallery ── */
  .villa-gallery { margin-bottom: 1rem; }
  .villa-gallery__item { width: 200px; height: 130px; }

  /* ── WhatsApp float above bottom nav ── */
  .wa-float { display: flex; bottom: calc(var(--nav-bottom-h) + 1rem); right: 1rem; width: 44px; height: 44px; }
  .wa-float svg { width: 22px; height: 22px; }

  /* ── Day cards ── */
  .day-card { margin-bottom: 0.75rem; padding: 1rem; border-radius: 10px; }
  .day-card__grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .day-card__title { font-size: 1rem; }

  /* ── Emergency grid ── */
  .emergency-grid { grid-template-columns: 1fr; }

  /* ── Toast above bottom nav ── */
  .portal-toast { bottom: calc(var(--nav-bottom-h) + 1rem); }

  /* ── Tighter section margins ── */
  .portal-page > section,
  .portal-page > div { margin-bottom: 1rem; }

  /* ── Share portal link: smaller text ── */
  .share-portal { margin: 0.75rem 0; }
  .share-portal__btn { font-size: 13px; }

  /* ── Feedback mobile: better star layout ── */
  .feedback-rating-row .star-rating { display: flex; gap: 0.15rem; }

  /* ── Experience cards: more compact ── */
  .exp-card__meta { font-size: 12px; }

  /* ── Handbook photos: larger thumbnails on mobile ── */
  .hb-photo__thumb { width: 100px; height: 75px; }
  .hb-photo__label { font-size: 12px; }

  /* ── Fade-up: faster on mobile ── */
  .fade-up.is-visible { transition-duration: 0.3s; }
}

/* ── SMALL PHONES (≤380px) ───────────────────────────────────────── */
@media (max-width: 380px) {
  :root { --gutter: 0.75rem; }
  /* Nav cards: slightly wider per card on tiny screens so content breathes */
  .nav-card { flex: 0 0 calc(100% - 1.25rem); min-height: 180px; }
  .booking-card__header { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .auth-gate__headline { font-size: 1.35rem; }
}
