/* =========================================================
   Dar Amna — Luxury Villa Retreat near Marrakech
   ========================================================= */

:root {
  --ivory: #F7F3EC;
  --ivory-2: #EFE9DE;
  --olive: #4F5B3A;
  --olive-deep: #424C30;
  --charcoal: #2B2B28;
  --muted: #6B6A62;
  --sand: #D8C7A8;
  --terracotta: #B5573A; /* Marrakech red: underlines */
  --bg: #F4E9DF;        /* tadelakt plaster: page background */
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --section: clamp(52px, 7vw, 96px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 1px solid var(--olive); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--olive); color: var(--ivory); padding: 10px 18px;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 22px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--olive);
  line-height: 1.12;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}

h2 { font-size: clamp(38px, 5.4vw, 66px); }
h3 { font-size: clamp(28px, 3.2vw, 38px); }
h2 em, h3 em, h1 em { font-style: italic; font-weight: 300; }

.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--charcoal);
}

.rule {
  width: 56px; height: 1px; background: var(--terracotta); border: 0; margin: 0 0 32px;
}
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: var(--section) 0; }
.center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--olive);
  background: var(--olive); color: var(--ivory);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--ivory); }

.btn--light { background: var(--ivory); color: var(--olive); border-color: var(--ivory); }
.btn--light:hover { background: transparent; color: var(--ivory); }

.btn--outline-light { background: transparent; color: var(--ivory); border-color: rgba(247, 243, 236, .7); }
.btn--outline-light:hover { background: var(--ivory); color: var(--olive); border-color: var(--ivory); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  color: var(--olive);
  padding-bottom: 6px; border-bottom: 1px solid var(--terracotta);
  transition: border-color .3s var(--ease);
}
.link:hover { border-color: var(--olive); }

/* ---------- Header ---------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--ivory);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  transition: height .5s var(--ease);
}
.header.is-solid {
  background: rgba(79, 91, 58, .97);
  color: var(--ivory);
  box-shadow: 0 1px 0 rgba(43, 43, 40, .15);
}
.header.is-solid .header__inner { height: 70px; }

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.brand__mark { width: 24px; height: 31px; flex: none; }
.brand__name {
  font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; white-space: nowrap;
}

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(18px, 2vw, 34px); margin: 0; padding: 0; }
.nav a {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .4s var(--ease);
}
.nav a:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .18em; }
.lang a { opacity: .55; transition: opacity .3s; }
.lang a[aria-current="true"], .lang a:hover { opacity: 1; }
.lang span { opacity: .4; }

.header__cta { display: none; min-height: 42px; padding: 0 20px; font-size: 11px; }
.header .header__cta { background: transparent; border-color: rgba(247, 243, 236, .7); color: var(--ivory); }
.header .header__cta:hover { background: var(--ivory); color: var(--olive); }

.burger { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 24px; height: 1px; background: currentColor; position: relative;
  transition: transform .4s var(--ease), background .3s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--olive); color: var(--ivory);
  display: flex; flex-direction: column;
  padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.menu__close { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.menu__close svg { width: 22px; height: 22px; }
.menu nav { margin: auto 0; }
.menu ul { list-style: none; padding: 0; margin: 0; }
.menu li { overflow: hidden; }
.menu nav a {
  display: block; font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); line-height: 1.5; font-weight: 300;
  transform: translateY(100%); transition: transform .7s var(--ease);
}
.menu.is-open nav a { transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.menu.is-open li:nth-child(6) a { transition-delay: .25s; }
.menu.is-open li:nth-child(7) a { transition-delay: .3s; }
.menu.is-open li:nth-child(8) a { transition-delay: .35s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14px; opacity: .85; }

/* ---------- Hero ---------- */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; color: var(--ivory);
  display: flex; align-items: flex-end;
}
.hero__media, .hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media video, .hero__media .hero__fallback { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__media video.is-playing, .hero__media .hero__fallback.is-playing { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 16, .45) 0%, rgba(20, 22, 16, 0) 26%),
    linear-gradient(0deg, rgba(20, 22, 16, .7) 0%, rgba(20, 22, 16, .3) 45%, rgba(20, 22, 16, 0) 72%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: clamp(64px, 11vh, 120px);
}
.hero .eyebrow { color: var(--ivory); opacity: .9; }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(42px, 7.2vw, 96px);
  font-weight: 300; line-height: 1.04; max-width: 13em;
  margin-bottom: 40px;
}
.hero h1 em { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(64px, 11vh, 120px);
  display: none; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 64px; background: rgba(247, 243, 236, .6);
  animation: scrollcue 2.4s var(--ease) infinite; transform-origin: top;
}
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) { .hero__scroll { display: flex; } }

/* ---------- Intro ---------- */

.intro .lead { margin: 0 auto 0; max-width: 34em; }
.figures {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 68px) 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--sand);
}
.figures li {
  padding: 34px 12px; text-align: center;
  border-bottom: 1px solid var(--sand);
}
.figures li:nth-child(odd) { border-right: 1px solid var(--sand); }
.figures strong {
  display: block; font-family: var(--serif); font-weight: 300; color: var(--olive);
  font-size: clamp(40px, 5vw, 58px); line-height: 1; margin-bottom: 12px;
}
.figures span { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 800px) {
  .figures { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--sand); }
  .figures li { border-bottom: 0; border-right: 1px solid var(--sand); }
  .figures li:last-child { border-right: 0; }
}

/* ---------- Full-bleed image ---------- */

.bleed { position: relative; height: clamp(320px, 64vh, 700px); overflow: hidden; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.bleed--caption::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20, 22, 16, .65), rgba(20, 22, 16, 0) 60%);
}
.bleed__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 7vw, 80px);
  color: var(--ivory);
}
.bleed__caption p {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25;
  font-weight: 300; max-width: 18em; margin: 0;
}

/* ---------- A day at Dar Amna ---------- */

.day__head { margin-bottom: clamp(36px, 5vw, 64px); }

.moment {
  display: grid; gap: 34px; align-items: center;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.moment:last-child { margin-bottom: 0; }
.moment__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.moment__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.moment.is-visible .moment__media img { transform: scale(1); }
.moment__time {
  display: flex; align-items: center; gap: 16px;
  font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--olive); margin-bottom: 18px;
}
.moment__time::before { content: ""; width: 36px; height: 1px; background: var(--sand); }
.moment h3 { margin-bottom: .55em; }
.moment__text p { max-width: 30em; }

@media (min-width: 900px) {
  .moment { grid-template-columns: 7fr 5fr; gap: clamp(48px, 7vw, 110px); }
  .moment__media { aspect-ratio: 5 / 4; }
  .moment--flip .moment__media { order: 2; }
  .moment--flip { grid-template-columns: 5fr 7fr; }
}

.closing {
  max-width: 820px; margin: clamp(52px, 6.5vw, 88px) auto 0; text-align: center;
}
.closing p {
  font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.45; color: var(--olive); font-weight: 300;
}
.closing small {
  display: block; margin-top: 28px; font-family: var(--sans); font-size: 16px; color: var(--muted); line-height: 1.7;
}

/* ---------- Suites ---------- */

.suites__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .suites__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 80px; } }

.suite-grid { display: grid; gap: clamp(56px, 6vw, 72px) clamp(28px, 4vw, 56px); }
@media (min-width: 760px) { .suite-grid { grid-template-columns: 1fr 1fr; } }

.suite__slider {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--sand);
}
.suite__slider::-webkit-scrollbar { display: none; }
.suite__slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.suite__media { position: relative; }
.suite__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.suite__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(247, 243, 236, .55); transition: background .3s, transform .3s; }
.suite__dots i.is-active { background: var(--ivory); transform: scale(1.25); }
.suite__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(247, 243, 236, .92); color: var(--olive);
  display: none; place-items: center; opacity: 0; transition: opacity .3s;
}
.suite__arrow svg { width: 16px; height: 16px; }
.suite__arrow--prev { left: 14px; }
.suite__arrow--next { right: 14px; }
@media (hover: hover) and (min-width: 760px) {
  .suite__arrow { display: grid; }
  .suite__media:hover .suite__arrow { opacity: 1; }
}

.suite__body { padding-top: 26px; }
.suite__tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.suite h3 { margin: 10px 0 12px; }
.suite__list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; color: var(--muted); }
.suite__list li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--sand); }

.suites__note { margin-top: clamp(36px, 5vw, 56px); text-align: center; color: var(--muted); font-size: 15.5px; }

/* ---------- Heritage ---------- */

.heritage__grid { display: grid; gap: clamp(36px, 6vw, 90px); align-items: center; }
.heritage__images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.heritage__images figure { margin: 0; overflow: hidden; }
.heritage__images img { width: 100%; height: 100%; object-fit: cover; }
.heritage__images .tall { grid-row: span 2; }
.heritage__images .wide { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .heritage__grid { grid-template-columns: 6fr 5fr; } }

/* ---------- Estate ---------- */

.estate__list {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0;
  display: grid; gap: 0; border-top: 1px solid var(--sand);
}
.estate__list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--sand); }
.estate__list svg { width: 30px; height: 30px; color: var(--olive); stroke-width: 1.1; margin-top: 4px; }
.estate__list h3 { font-size: 24px; margin: 0 0 6px; }
.estate__list p { font-size: 15.5px; color: var(--muted); margin: 0; }
@media (min-width: 800px) {
  .estate__list { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

.estate__pair { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 68px); }
.estate__pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 760px) { .estate__pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Services (olive) ---------- */

.olive { background: var(--olive); color: var(--ivory); }
.olive h2, .olive h3, .olive h4 { color: var(--ivory); }
.olive .eyebrow { color: var(--sand); }
.olive .rule { background: rgba(216, 199, 168, .6); }

.services__grid { display: grid; gap: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) { .services__grid { grid-template-columns: 5fr 7fr; } }

.services__included { display: grid; gap: 22px; margin-top: 36px; }
.services__included div { padding-left: 22px; border-left: 1px solid rgba(216, 199, 168, .5); }
.services__included h3 { font-size: 24px; margin: 0 0 4px; }
.services__included p { margin: 0; opacity: .82; font-size: 15.5px; }

.services__label { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--sand); margin-bottom: 8px; }
.services__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(216, 199, 168, .35); }
.services__list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid rgba(216, 199, 168, .35);
}
.services__list svg { width: 26px; height: 26px; color: var(--sand); stroke-width: 1.1; margin-top: 3px; }
.services__list strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.3; }
.services__list span { font-size: 15px; opacity: .78; }
.services__more { margin-top: 32px; font-family: var(--serif); font-size: 22px; font-style: italic; opacity: .92; }

/* ---------- Photo tour (mosaic) ---------- */

.mosaic { display: grid; gap: 10px; position: relative; }
.mosaic button { position: relative; overflow: hidden; display: block; width: 100%; background: var(--sand); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.mosaic button:hover img { transform: scale(1.04); filter: brightness(.92); }
.mosaic button:nth-child(n+2) { display: none; }
.mosaic button:first-child { aspect-ratio: 4 / 3; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(420px, 56vw, 640px); }
  .mosaic button:first-child { grid-row: span 2; aspect-ratio: auto; }
  .mosaic button:nth-child(n+2) { display: block; }
}
.mosaic__all {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px; background: var(--bg); color: var(--olive);
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  border: 1px solid var(--olive);
}
.mosaic__all svg { width: 16px; height: 16px; }
.tour-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.tour-cats button {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 18px;
  border: 1px solid var(--sand); color: var(--olive); transition: background .3s, border-color .3s;
}
.tour-cats button:hover { border-color: var(--olive); }

/* Tour overlay */
.tour {
  position: fixed; inset: 0; z-index: 160; background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.tour.is-open { opacity: 1; visibility: visible; transform: none; }
.tour__bar {
  position: sticky; top: 0; z-index: 3; background: rgba(244, 233, 223, .97);
  border-bottom: 1px solid rgba(79, 91, 58, .12);
}
.tour__bar-inner { display: flex; align-items: center; gap: 18px; height: 64px; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.tour__close { width: 44px; height: 44px; display: grid; place-items: center; margin-left: -12px; color: var(--olive); }
.tour__close svg { width: 20px; height: 20px; }
.tour__nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.tour__nav::-webkit-scrollbar { display: none; }
.tour__nav a { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); opacity: .7; padding: 6px 0; }
.tour__nav a:hover { opacity: 1; }
.tour__body { max-width: 1240px; margin: 0 auto; padding: 48px var(--gutter) 120px; }
.tour__section { padding-top: 24px; margin-bottom: 64px; scroll-margin-top: 80px; }
.tour__section h3 { margin-bottom: 6px; }
.tour__section > p { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; max-width: 40em; }
.tour__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tour__grid button { overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.tour__grid button.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.tour__grid button.is-tall { grid-row: span 2; aspect-ratio: auto; }
.tour__grid img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.tour__grid button:hover img { filter: brightness(.9); }
@media (min-width: 900px) {
  .tour__section { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
  .tour__section header { position: sticky; top: 104px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 180; background: #151612; color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 0 64px; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; letter-spacing: .08em; opacity: .75; padding: 0 70px; }
.lightbox__count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; opacity: .7; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ivory); transition: background .3s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .1); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 759px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 6px; transform: none; } }

/* ---------- Essentials ---------- */

.essentials__grid { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .essentials__grid { grid-template-columns: 4fr 7fr; } }
.essentials__list { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--sand); }
.essentials__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--sand); font-size: 16px; }
.essentials__list svg { width: 24px; height: 24px; color: var(--olive); stroke-width: 1.1; }
@media (min-width: 700px) { .essentials__list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* ---------- FAQ & Good to know ---------- */

.faq__list { border-top: 1px solid var(--sand); }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 25px); color: var(--olive); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background:
    linear-gradient(var(--olive), var(--olive)) center / 13px 1px no-repeat,
    linear-gradient(var(--olive), var(--olive)) center / 1px 13px no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 48px 28px 0; color: var(--charcoal); }

.know { margin-top: clamp(44px, 6vw, 72px); }
.know > details { border: 1px solid var(--sand); background: var(--bg); }
.know > details > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px clamp(22px, 4vw, 44px);
}
.know > details > summary::-webkit-details-marker { display: none; }
.know summary h3 { margin: 0; }
.know summary span { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); white-space: nowrap; }
.know summary .close-label { display: none; }
.know details[open] summary .open-label { display: none; }
.know details[open] summary .close-label { display: inline; }
.know__body { padding: 0 clamp(22px, 4vw, 44px) clamp(28px, 4vw, 44px); display: grid; gap: 34px; }
@media (min-width: 800px) { .know__body { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.know__body h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; color: var(--olive); margin: 0 0 12px; padding-top: 22px; border-top: 1px solid var(--sand); }
.know__body dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 15.5px; }
.know__body dt { color: var(--muted); }
.know__body dd { margin: 0; }
.know__body ul { margin: 0; padding: 0; list-style: none; font-size: 15.5px; }
.know__body ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.know__body ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--olive); }

/* ---------- Prelude (closing lines) ---------- */

.prelude { position: relative; color: var(--ivory); overflow: hidden; }
.prelude img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prelude::after { content: ""; position: absolute; inset: 0; background: rgba(28, 32, 20, .55); }
.prelude .container { position: relative; z-index: 2; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.prelude p { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3vw, 38px); line-height: 1.45; max-width: 26em; margin: 0 auto; }
.prelude .sign { margin-top: 36px; font-style: italic; }

/* ---------- Contact ---------- */

.contact__grid { display: grid; gap: clamp(48px, 7vw, 96px); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 5fr 7fr; } }
.contact__direct { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--sand); }
.contact__direct li { border-bottom: 1px solid var(--sand); }
.contact__direct a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 20px 0; transition: color .3s; }
.contact__direct a:hover { color: var(--olive); }
.contact__direct svg { width: 22px; height: 22px; color: var(--olive); stroke-width: 1.2; }
.contact__direct small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact__direct span { font-size: 17px; }

.form { display: grid; gap: 26px; }
.form__row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--charcoal);
  background: transparent; border: 0; border-bottom: 1px solid var(--sand); border-radius: 0;
  padding: 10px 0 12px; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F5B3A' stroke-width='1.3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 28px;
}
.field input[type="date"] { min-height: 49px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--olive); }
.form__foot { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 8px; }
.form__note { font-size: 14px; color: var(--muted); margin: 0; }
.form__status { font-size: 15.5px; color: var(--olive); margin: 0; }
.form__success { display: none; padding: 40px; border: 1px solid var(--sand); text-align: center; }
.form__success h3 { margin-bottom: 12px; }
.form.is-sent { display: none; }
.form.is-sent + .form__success { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.footer { background: var(--olive); color: var(--ivory); padding: clamp(64px, 8vw, 100px) 0 32px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.footer__brand svg { width: 210px; height: auto; }
.footer__tag { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; font-style: italic; max-width: 22em; opacity: .95; }
.footer__cols { display: grid; gap: 36px; margin-top: clamp(56px, 7vw, 88px); padding-top: 48px; border-top: 1px solid rgba(216, 199, 168, .35); font-size: 15px; }
.footer__h { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; color: #E9DEC8; margin: 0 0 14px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols li { margin-bottom: 8px; }
.footer__cols a { opacity: .9; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 800px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; font-size: 12.5px; letter-spacing: .06em; opacity: .88; }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--olive); color: var(--ivory);
  box-shadow: 0 10px 30px rgba(43, 43, 40, .25);
  transition: transform .4s var(--ease), background .3s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--olive-deep); }
.wa-float svg { width: 27px; height: 27px; }
.wa-float::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--olive);
  animation: ring 3.2s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (min-width: 760px) { .wa-float { right: 28px; bottom: 28px; } }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Icons ---------- */
.i { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mosaic-wrap { position: relative; }
.mosaic__all:hover { background: var(--olive); color: var(--ivory); }
@media (max-width: 759px) { body { font-weight: 400; font-size: 16px; } }

/* ---------- Photos that pop on hover (day moments + inside the villa) ---------- */
.moment__media, .heritage__images figure {
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.moment__media img, .heritage__images img { transition: transform 1.2s var(--ease); }
@media (hover: hover) {
  .moment__media:hover, .heritage__images figure:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -18px rgba(43, 43, 40, .45);
  }
  .moment.is-visible .moment__media:hover img, .heritage__images figure:hover img { transform: scale(1.05); }
}
/* Touch screens: the photo in the middle of the screen pops while scrolling */
@media (hover: none) {
  .moment__media.is-pop, .heritage__images figure.is-pop, .bleed--pop.is-pop img {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -18px rgba(43, 43, 40, .45);
  }
  .bleed--pop.is-pop img { transform: scale(1.04); box-shadow: none; }
}
.bleed--pop img { transition: transform 1.4s var(--ease); }
@media (hover: hover) { .bleed--pop:hover img { transform: scale(1.04); } }

/* ---------- Marrakech red, only on interaction ---------- */
::selection { background: var(--terracotta); color: var(--ivory); }
.btn:hover, .btn--ghost:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ivory); }
.btn--light:hover, .btn--outline-light:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ivory); }
.header .header__cta:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ivory); }
.nav a::after { background: var(--terracotta); }
.link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.faq summary:hover { color: var(--terracotta); }
.faq details[open] > summary::after {
  background:
    linear-gradient(var(--terracotta), var(--terracotta)) center / 13px 1px no-repeat,
    linear-gradient(var(--terracotta), var(--terracotta)) center / 1px 13px no-repeat;
}
.tour-cats button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.mosaic__all:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); }
.contact__direct a:hover { color: var(--terracotta); }
.contact__direct a:hover svg { color: var(--terracotta); }

/* Phone field with country code */
.phone { display: flex; gap: 14px; align-items: flex-end; }
.phone select { flex: 0 0 104px; width: 104px; }
.phone input { flex: 1; min-width: 0; }

/* ---------- A day at Dar Amna: one stage with tabs ---------- */
.day__tabs {
  display: flex; justify-content: center; gap: clamp(18px, 4vw, 52px);
  margin: 0 auto clamp(28px, 4vw, 44px); padding: 0 0 2px;
  border-bottom: 1px solid var(--sand);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.day__tabs::-webkit-scrollbar { display: none; }
.day__tabs button {
  position: relative; flex: none; padding: 14px 2px;
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); transition: color .3s var(--ease);
}
.day__tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--terracotta); transform: scaleX(0); transition: transform .45s var(--ease);
}
.day__tabs button:hover { color: var(--olive); }
.day__tabs button[aria-selected="true"] { color: var(--olive); }
.day__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
@media (max-width: 640px) { .day__tabs { justify-content: flex-start; } }

.day__stage.is-tabs .moment { display: none; margin-bottom: 0; opacity: 1; transform: none; }
.day__stage.is-tabs .moment.is-active { display: grid; animation: dayIn .7s var(--ease); }
.day__stage.is-tabs .moment__media img { transform: none; }
.day__stage.is-tabs .moment__time { display: none; }
@media (min-width: 900px) {
  .day__stage.is-tabs .moment, .day__stage.is-tabs .moment--flip { grid-template-columns: 7fr 5fr; }
  .day__stage.is-tabs .moment--flip .moment__media { order: 0; }
}
@keyframes dayIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Inside the villa: auto-sliding decor photos ---------- */
.heritage__slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
@media (min-width: 900px) { .heritage__slides { aspect-ratio: 5 / 6; } }
.heritage__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.heritage__slides img.is-active { opacity: 1; transform: scale(1); }
.heritage__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.heritage__dots button { width: 28px; height: 28px; display: grid; place-items: center; }
.heritage__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(247, 243, 236, .55); transition: background .3s, transform .3s; }
.heritage__dots button[aria-current="true"]::before { background: var(--ivory); transform: scale(1.3); }

/* ---------- Suites: one suite at a time, with tabs (like A day at Dar Amna) ---------- */
.suite-grid.is-tabs { display: block; }
.suite-grid.is-tabs .suite { display: none; opacity: 1; transform: none; }
.suite-grid.is-tabs .suite.is-active { display: grid; gap: 26px; animation: dayIn .7s var(--ease); }
.suite-grid.is-tabs .suite__body { padding-top: 0; }
.suite-grid.is-tabs .suite__tag { display: block; margin-bottom: 12px; }
@media (min-width: 900px) {
  .suite-grid.is-tabs .suite.is-active { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
}

/* ---------- FAQ: last section, two columns ---------- */
.faq__grid { display: grid; gap: clamp(32px, 5vw, 48px); }
.faq__head h2 { margin-bottom: .4em; }
.faq__more { color: var(--muted); font-size: 15.5px; line-height: 2.2; }
.faq__more .link { margin-top: 6px; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 4fr 7fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
  .faq__head { position: sticky; top: 110px; }
}


/* ---------- Estate + Services: compact, side by side ---------- */
.estate, #services { padding: clamp(44px, 5.5vw, 76px) 0; }
.estate .lead { font-size: clamp(20px, 2vw, 24px); margin: 0; }
.estate__list li { padding: 20px 0; }
.estate__list h3 { font-size: 22px; }
@media (min-width: 900px) {
  .estate > .container { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
  .estate__list { margin-top: 0; column-gap: 40px; }
}
.services__included { margin-top: 28px; }
.services__list li { padding: 18px 0; }
.services__more { margin-top: 24px; font-size: 20px; }
@media (min-width: 900px) {
  .services__grid { grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 90px); }
  .services__list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 40px; }
}

/* ---------- Booking: form only, compact ---------- */
.contact__head { max-width: 640px; margin: 0 auto clamp(32px, 4vw, 48px); }
.contact__head .rule { margin-bottom: 24px; }
.contact__wrap > .reveal { max-width: 960px; margin: 0 auto; }
.form { gap: 22px; }
@media (min-width: 900px) {
  .form { grid-template-columns: repeat(6, 1fr); column-gap: 32px; }
  .form__row { display: contents; }
  .form .field { grid-column: span 2; }
  .form > .field, .form__foot { grid-column: 1 / -1; }
  .field textarea { min-height: 96px; }
  .form__foot { justify-content: center; }
}

/* ---------- Photos come alive: lift on hover (computer) or in the middle of the screen (phone) ---------- */
.suite__media, .heritage__slides, .mosaic button { transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity 1.1s var(--ease); }
@media (hover: hover) {
  .suite__media:hover, .heritage__slides:hover, .mosaic button:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -18px rgba(43, 43, 40, .45);
  }
}
@media (hover: none) {
  .suite__media.is-pop, .heritage__slides.is-pop, .mosaic button.is-pop {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -18px rgba(43, 43, 40, .45);
  }
}

/* ---------- "Request your stay" floating next to the WhatsApp button ---------- */
.cta-float {
  position: fixed; right: 86px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; height: 58px; padding: 0 22px;
  max-width: calc(100vw - 112px); white-space: nowrap; overflow: hidden;
  border-radius: 29px; background: var(--olive); color: var(--ivory);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  box-shadow: 0 10px 30px rgba(43, 43, 40, .25);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background .3s;
}
.cta-float.is-shown { opacity: 1; visibility: visible; transform: none; }
.cta-float:hover { background: var(--terracotta); }
@media (min-width: 760px) { .cta-float { right: 98px; bottom: 28px; } }

/* ---------- Each photo pops in as you scroll down ---------- */
.pop-in { opacity: 0; scale: .9; }
.pop-in.is-in { opacity: 1; scale: 1; }
.pop-in, .pop-zoom {
  transition: opacity 1s var(--ease), scale 1.3s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease) !important;
}
.pop-zoom { scale: 1.14; }
.pop-zoom.is-in { scale: 1; }
@keyframes popIn { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
.day__stage.is-tabs .moment.is-active .moment__media,
.suite-grid.is-tabs .suite.is-active .suite__media { animation: popIn .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .pop-in, .pop-zoom { opacity: 1; scale: 1; } }

/* ---------- Essentials: two columns on phones too ---------- */
@media (max-width: 699px) {
  .essentials__list { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .essentials__list li { grid-template-columns: 1fr; gap: 8px; align-items: start; padding: 16px 0; font-size: 14px; line-height: 1.45; }
  .essentials__list svg { width: 22px; height: 22px; }
}

/* ---------- Smoother: thank-you message fades in, button shows it is sending ---------- */
.form.is-sent + .form__success { animation: dayIn .8s var(--ease); }
.form button[type="submit"]:disabled { opacity: .65; cursor: wait; }
/* Photos pop in a little faster so they never feel late */
.pop-in { scale: .95; }
.pop-in, .pop-zoom {
  transition: opacity .7s var(--ease), scale .9s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease) !important;
}
.pop-zoom { scale: 1.08; }
