/* ============================================================
   Villa Dahab Nomad — design tokens & global styles
   ============================================================ */

:root {
  /* Off-white palette (more white in the beige) */
  --bg: #FAF7F1;
  --bg-soft: #F4EFE6;
  --bg-deep: #EBE3D2;
  --paper: #FEFCF7;

  /* Ink */
  --ink: #1A1714;
  --ink-soft: #3D362F;
  --ink-mute: #6E6358;

  /* Accents */
  --sea: #1E4A4F;        /* deep Red Sea teal */
  --sea-deep: #143337;
  --terra: #B8632E;      /* burnt terracotta */
  --terra-deep: #8C4920;
  --line: rgba(26, 23, 20, 0.12);
  --line-soft: rgba(26, 23, 20, 0.06);

  /* Type */
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --pad: clamp(20px, 4vw, 56px);
  --frame: clamp(12px, 1.6vw, 24px);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

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

/* Mono labels */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Serif headlines */
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.02;
  font-variation-settings: "opsz" 60;
}
.serif em, .serif i { font-style: italic; font-weight: 400; color: var(--terra); }

/* ============================================================
   Header (Ref1-style: bordered logo, centered nav, right icons)
   ============================================================ */

.header {
  position: sticky;
  top: 0; z-index: 60;
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px var(--pad);
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 8px 14px;
  justify-self: start;
  transition: background .3s ease, color .3s ease;
}
.brand:hover { background: var(--ink); color: var(--bg); }
.brand-mark {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand-name .small { display: none; }
.brand-wave {
  width: 22px; height: 12px;
  color: var(--ink);
}
.nav {
  display: flex; gap: 28px;
  justify-self: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions {
  justify-self: end;
  display: flex; align-items: center; gap: 14px;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.cta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px 12px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  transition: transform .3s ease, background .3s ease;
  white-space: nowrap;
}
.cta-pill:hover { background: var(--terra); transform: translateY(-1px); }
.cta-pill svg { width: 12px; height: 12px; transition: transform .3s ease; }
.cta-pill:hover svg { transform: translate(2px, -2px); }

.menu-btn, .icon-btn.menu-only { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: var(--frame);
  position: relative;
  display: flex;
  justify-content: center;
}
html[data-hero="full"] .hero { padding: 0; }
html[data-hero="full"] .hero-frame { border-radius: 0; max-height: 100vh; min-height: 92vh; }
.hero-frame {
  width: 100%;
  max-width: 1600px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 620px;
  max-height: 92vh;
  background: var(--sea-deep);
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 51, 55, 0.35) 0%, rgba(184, 99, 46, 0.12) 40%, rgba(20, 51, 55, 0.4) 100%);
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(32px, 4.4vw, 64px) clamp(28px, 4vw, 56px) clamp(40px, 5.5vw, 72px);
  color: #f6efe2;
  z-index: 4;
  gap: 24px;
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  align-items: start;
}
.hero-top .htop-l { text-align: left; }
.hero-top .htop-c { text-align: center; }
.hero-top .htop-r { text-align: right; }
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 48px);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-variation-settings: "opsz" 72;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero-title em {
  text-transform: lowercase;
  letter-spacing: -0.01em;
  font-style: italic;
  font-weight: 400;
  color: #f0c5a3;
}
.hero-sub {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246, 239, 226, 0.88);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.01em;
}
.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-blurb {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246, 239, 226, 0.85);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--paper); color: var(--ink);
  padding: 16px 22px 16px 24px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  transition: transform .3s, background .3s;
}
.hero-cta:hover { background: var(--terra); color: #fff; transform: translateY(-2px); }
.hero-cta .arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  transition: transform .3s;
}
.hero-cta:hover .arrow { background: var(--ink); transform: rotate(-45deg); }
.hero-meta {
  display: flex; gap: clamp(18px, 2.4vw, 38px);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  flex-wrap: wrap;
}
.hero-meta .num {
  font-family: var(--serif);
  font-size: 32px;
  color: #f6efe2;
  display: block;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
}

/* ============================================================
   Section common
   ============================================================ */

.section {
  padding: clamp(80px, 10vw, 160px) var(--pad);
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--terra);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.section-title em { color: var(--terra); font-style: italic; font-weight: 400; }
.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ============================================================
   Intro / welcome
   ============================================================ */

.intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intro-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  font-weight: 400;
  color: var(--ink);
  text-wrap: pretty;
}
.intro-quote em { color: var(--terra); font-style: italic; }
.intro-right .lead + .lead { margin-top: 16px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.stat {
  background: var(--bg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat .v { font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); line-height: 1; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 60; }
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================================================
   Spaces / gallery — tight masonry grid
   ============================================================ */

.spaces { background: var(--paper); }

.spaces-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 8.6vw;
  gap: clamp(8px, 0.9vw, 14px);
}
.tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-deep);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.tile:hover { transform: translateY(-4px); }
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tile-corner {
  position: absolute; z-index: 2;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
}
/* Tighter masonry: 12-col grid with explicit row spans, no gaps */
.tile-1 { grid-column: span 7; grid-row: span 5; }
.tile-2 { grid-column: span 5; grid-row: span 5; }
.tile-3 { grid-column: span 4; grid-row: span 4; }
.tile-4 { grid-column: span 4; grid-row: span 4; }
.tile-5 { grid-column: span 4; grid-row: span 4; }
.tile-6 { grid-column: span 12; grid-row: span 4; }

.ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ph-bg, linear-gradient(135deg, #1e4a4f, #143337));
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(35deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 14px);
  opacity: 0.7;
}
.ph .ph-label {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.18);
}
.ph .ph-corner {
  position: absolute; z-index: 2;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Placeholder palettes — Dahab moodboard */
.ph.pool { --ph-bg: linear-gradient(165deg, #2c6a70 0%, #1a4146 55%, #0f2a2d 100%); }
.ph.terra { --ph-bg: linear-gradient(160deg, #c87a4a 0%, #9a4d24 60%, #5e2a13 100%); }
.ph.sand { --ph-bg: linear-gradient(160deg, #e3c79a 0%, #b89263 60%, #8a653e 100%); }
.ph.indigo { --ph-bg: linear-gradient(160deg, #3a4a6a 0%, #1d263e 100%); }
.ph.green { --ph-bg: linear-gradient(160deg, #6a7b4a 0%, #3d4823 100%); }
.ph.dusk { --ph-bg: linear-gradient(160deg, #d09061 0%, #6b3a2a 50%, #2b2429 100%); }
.ph.night { --ph-bg: linear-gradient(180deg, #1c2a3a 0%, #0b1318 100%); }
.ph.coral { --ph-bg: linear-gradient(150deg, #e8a07a 0%, #b8632e 60%, #5b2812 100%); }

/* ============================================================
   Amenities
   ============================================================ */

.amenities {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
}
.amenity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.amenity {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.amenity:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
.amenity:nth-child(even) { padding-left: 24px; }
.amenity .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.amenity .ico svg { width: 18px; height: 18px; }
.amenity .a-name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.amenity .a-desc { font-size: 13px; color: var(--ink-mute); margin-top: 4px; line-height: 1.45; }

/* ============================================================
   Host
   ============================================================ */

.host { background: var(--ink); color: var(--paper); }
.host .eyebrow { color: rgba(246,239,226,0.7); }
.host .eyebrow::before { background: var(--terra); }
.host .section-title { color: var(--paper); }
.host .section-title em { color: #f0c5a3; }
.host .lead { color: rgba(246,239,226,0.78); }

.host-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.host-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.host-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1);
}
.host-stamps {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  display: flex; gap: 8px; flex-wrap: wrap;
  z-index: 3;
}
.host-stamps .stamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid rgba(246,239,226,0.4);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}
.host-body p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(246,239,226,0.85);
  margin: 0 0 16px;
  max-width: 56ch;
}
.host-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  margin-top: 28px;
  color: #f0c5a3;
}
.host-sign small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246,239,226,0.6);
  margin-top: 4px;
}

/* ============================================================
   Experiences
   ============================================================ */

.experiences-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.exp-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-deep);
  cursor: pointer;
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.exp-card:hover { transform: translateY(-6px); }
.exp-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.exp-card:hover > img { transform: scale(1.05); }
.exp-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px;
  z-index: 3;
  color: var(--paper);
}
.exp-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.exp-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}
.exp-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}
.exp-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.02;
  font-weight: 500;
  margin: 0 0 6px;
}
.exp-card h3 em { font-style: italic; color: #f0c5a3; }
.exp-card p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(246,239,226,0.85);
  margin: 0;
  max-width: 26ch;
}

/* ============================================================
   Dahab strip
   ============================================================ */

.dahab { background: var(--bg-soft); }

.dahab-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.dahab-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.dahab-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.dahab-body p {
  font-size: 17px; line-height: 1.65;
  color: var(--ink-soft); margin: 0 0 16px;
  max-width: 52ch;
}
.dahab-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.dahab-list div {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 14px; color: var(--ink-soft);
}
.dahab-list .min {
  font-family: var(--mono); font-size: 11px;
  color: var(--terra); letter-spacing: 0.1em;
}

/* ============================================================
   Reviews — light, friendly
   ============================================================ */

.reviews {
  background: var(--bg-soft);
  color: var(--ink);
}
.reviews-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.review-score {
  display: flex; align-items: baseline; gap: 18px;
  margin-top: 14px;
}
.review-score .big {
  font-family: var(--serif);
  font-size: 72px; line-height: 1;
  color: var(--terra);
  letter-spacing: -0.02em;
}
.review-score .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--ink-mute); text-transform: uppercase; margin-top: 6px; }
.review-platforms {
  display: flex; gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--paper);
  transition: background .25s, color .25s, transform .25s;
}
.platform-pill:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.platform-pill .badge {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--terra); color: white;
  font-size: 10px;
}
.platform-pill svg { width: 12px; height: 12px; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
.review {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper);
  transition: transform .35s, box-shadow .35s;
}
.review:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(26, 23, 20, 0.25); }
.review .stars {
  display: flex; gap: 3px;
  color: var(--terra);
}
.review-quote {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.36;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.review-author {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), #5b2812);
  font-family: var(--serif);
  color: white;
  display: grid; place-items: center;
  font-size: 18px;
}
.review-author .nm { font-size: 14px; }
.review-author .mt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; }
.review .src {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--ink-mute);
  text-transform: uppercase;
  margin-left: auto;
}

/* ============================================================
   Big CTA
   ============================================================ */

.book-cta {
  padding: var(--frame);
}
.book-cta-inner {
  background: var(--terra);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(60px, 9vw, 130px) clamp(32px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.book-cta-inner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.book-cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  position: relative;
}
.book-cta h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 7.5vw, 124px);
  line-height: 0.94;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}
.book-cta h2 em { font-style: italic; color: #f7e2cf; }
.book-cta p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(250,246,238,0.9);
  margin: 0 0 28px;
  max-width: 44ch;
}
.book-cta .big-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 20px 26px 20px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  transition: transform .3s, background .3s, color .3s;
}
.book-cta .big-btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.book-cta .big-btn .arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: transform .3s, background .3s;
}
.book-cta .big-btn:hover .arrow { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 60px var(--pad) 32px;
  background: var(--bg);
  color: var(--ink-soft);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.footer-col a:hover { color: var(--terra); }
.footer-brand .serif { font-family: var(--serif); font-size: 38px; line-height: 1; margin-bottom: 14px; }
.footer-brand .serif em { color: var(--terra); font-style: italic; }
.footer-brand p { font-size: 14px; max-width: 32ch; color: var(--ink-mute); margin: 0; }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Gallery section
   ============================================================ */

.gallery-section { background: var(--paper); }
.gallery-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: clamp(40px, 5vw, 60px); flex-wrap: wrap;
}
.gallery-open-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 14px 22px; border-radius: 999px; border: none;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .3s, transform .3s;
}
.gallery-open-btn:hover { background: var(--terra); transform: translateY(-2px); }
.gallery-open-btn .ico { width: 20px; height: 20px; display: grid; place-items: center; }
.gallery-open-btn .ico svg { width: 16px; height: 16px; }
.gallery-preview {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
.gallery-preview-item {
  border-radius: 12px; overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.gallery-preview-item:hover { transform: translateY(-4px); }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10, 8, 6, 0.96);
  display: flex; flex-direction: column;
  animation: galFadeIn .3s ease;
}
@keyframes galFadeIn { from { opacity: 0; } to { opacity: 1; } }
.gallery-lightbox-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.gallery-filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0;
  -ms-overflow-style: none; scrollbar-width: none;
}
.gallery-filter-bar::-webkit-scrollbar { display: none; }
.gallery-filter-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  white-space: nowrap; transition: all .2s;
}
.gallery-filter-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.gallery-filter-btn.active { background: var(--terra); border-color: var(--terra); color: #fff; }
.gallery-close-btn {
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; transition: background .2s; flex-shrink: 0;
}
.gallery-close-btn:hover { background: rgba(255,255,255,0.2); }
.gallery-close-btn svg { width: 20px; height: 20px; }
.gallery-lightbox-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 20px; min-height: 0;
}
.gallery-lightbox-img {
  max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.gallery-lightbox-img img {
  max-width: 90vw; max-height: calc(100vh - 180px);
  object-fit: contain; border-radius: 8px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s, transform .2s; z-index: 10;
}
.gallery-nav:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.gallery-nav svg { width: 24px; height: 24px; }
.gallery-nav-prev { left: 24px; }
.gallery-nav-next { right: 24px; }
.gallery-lightbox-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.gallery-lightbox-title {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.gallery-lightbox-count {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
}

/* ============================================================
   Villa Tour (Video)
   ============================================================ */

.villa-tour { background: var(--bg-soft); }
.villa-tour-inner {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.villa-tour-video {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; position: relative; background: var(--ink);
}
.villa-tour-video video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* ============================================================
   Dialog / Modal
   ============================================================ */

.dialog-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
  animation: galFadeIn .2s ease;
}
.dialog {
  background: var(--paper); border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.dialog-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px 16px; border-bottom: 1px solid var(--line);
}
.dialog-header h3 { font-family: var(--serif); font-size: 28px; margin: 0; font-weight: 500; }
.dialog-close {
  background: none; border: none; width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-mute); transition: background .2s;
}
.dialog-close:hover { background: var(--line); }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-body {
  padding: 24px 28px 32px; overflow-y: auto;
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
}
.dialog-body p { margin: 0 0 14px; }
.dialog-body strong { color: var(--ink); }

/* ============================================================
   Footer link buttons
   ============================================================ */

.footer-link-btn {
  display: block; margin-bottom: 8px; font-size: 14px;
  color: var(--ink-soft); background: none; border: none;
  padding: 0; text-align: left; transition: color .2s; cursor: pointer;
}
.footer-link-btn:hover { color: var(--terra); }

/* ============================================================
   Widescreen constraint
   ============================================================ */

.section { max-width: 1600px; margin-left: auto; margin-right: auto; }
.spaces, .dahab, .gallery-section, .villa-tour { max-width: none; }
.spaces > *, .dahab > *, .gallery-section > *, .villa-tour-inner { max-width: 1600px; margin-left: auto; margin-right: auto; }

/* ============================================================
   Reveal animations — multi-direction
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s ease;
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"]  { transform: scale(0.94); filter: blur(6px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].in {
  opacity: 1;
  transform: translate(0,0) scale(1);
  filter: blur(0);
}

/* Image tiles: gentle scale on enter */
.tile, .exp-card, .host-portrait, .dahab-img { overflow: hidden; }
.tile img,
.exp-card > img,
.host-portrait img,
.dahab-img img {
  transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
  transform-origin: center;
}
[data-reveal].in img { transform: scale(1); }
.tile:hover img { transform: scale(1.04); transition: transform 1.6s ease; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float { animation: floatY 6s ease-in-out infinite; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker {
  overflow: hidden;
  display: flex;
}
.ticker-track {
  display: flex; gap: 36px;
  animation: ticker 40s linear infinite;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
  padding-right: 36px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 247, 241, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 32px; z-index: 100; font-size: 14px;
  }
  .nav.nav-open { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .icon-btn.menu-only { display: grid; position: relative; z-index: 110; }
  .cta-pill { padding: 10px 14px; font-size: 10px; }

  .hero-frame { aspect-ratio: 3 / 4.4; min-height: 600px; max-height: none; }
  .hero-title { font-size: clamp(40px, 12vw, 90px); }
  .hero-top { grid-template-columns: 1fr 1fr; }
  .hero-top .htop-r { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-meta { gap: 22px; }

  .intro { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }

  .spaces-head { grid-template-columns: 1fr; }
  .spaces-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 22vw; }
  .tile-1 { grid-column: span 6; grid-row: span 4; }
  .tile-2 { grid-column: span 6; grid-row: span 4; }
  .tile-3 { grid-column: span 3; grid-row: span 3; }
  .tile-4 { grid-column: span 3; grid-row: span 3; }
  .tile-5 { grid-column: span 6; grid-row: span 3; }
  .tile-6 { grid-column: span 6; grid-row: span 3; }

  .amenities { grid-template-columns: 1fr; }
  .host-grid { grid-template-columns: 1fr; }
  .dahab-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .experiences-head { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .book-cta-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview-item:nth-child(n+5) { display: none; }
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-nav-prev { left: 12px; }
  .gallery-nav-next { right: 12px; }

  .villa-tour-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .amenity-list { grid-template-columns: 1fr; }
  .amenity:nth-child(odd) { border-right: none; padding-right: 8px; }
  .amenity:nth-child(even) { padding-left: 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; gap: 12px; }
  .dahab-list { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 18px; }
  .gallery-preview { grid-template-columns: 1fr 1fr; }
  .gallery-nav { display: none; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
}
