/* ==========================================================================
   Riad Layali — main stylesheet, v3 "From day to night"
   Layali means "nights": the pages move from sand (day) to night navy.
   Flat colour fields, square pictures, large Cormorant headlines, one gold accent.
   Mobile first.
   ========================================================================== */

:root {
	/* Fields */
	--sand: #f4eee3;      /* day ground */
	--beige: #e9dfcd;     /* tone step on day ground */
	--cream: #faf6ee;     /* light surface */
	--night: #161a2c;     /* night ground (brand) */
	--night-2: #1e2337;   /* tone step on night ground */
	--deep: #0f1220;      /* footer */
	/* Ink */
	--ink: #1b1e2e;
	--text: #2f2c26;
	--muted: #4f4a3f;
	--on-night: #ece6d8;
	--on-night-muted: #c4bdac;
	/* Accent (brand gold) */
	--gold: #c9a050;
	--gold-hover: #d8b066;
	--gold-dark: #7a5718;
	--gold-light: #e6c77e;

	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: clamp(16px, 4vw, 48px);
	--section: clamp(96px, 12vw, 200px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
	margin: 0;
	background: var(--sand);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	font-variant-numeric: lining-nums;
}
@media (min-width: 900px) { body { font-size: 18px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button { font: inherit; }
address { font-style: normal; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--gold); color: var(--night); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.icon { flex: none; width: 20px; height: 20px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 900px; }
.wrap--mid { max-width: 1120px; }
.wrap--text { max-width: 820px; }

.section { padding: var(--section) 0; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.section--beige { background: var(--beige); }
.section--cream { background: var(--cream); }
.section--night { background: var(--night); color: var(--on-night); }
.section--night-2 { background: var(--night-2); color: var(--on-night); }
.section--night h2, .section--night h3, .section--night-2 h2, .section--night-2 h3 { color: #fbf7ef; }
.section--night a:not(.btn), .section--night-2 a:not(.btn) { color: var(--gold-light); }
.section--night a:not(.btn):hover, .section--night-2 a:not(.btn):hover { color: #fff; }

/* ---------- Type ---------- */
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.4vw, 84px); line-height: .98; letter-spacing: -0.02em; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; margin-top: 28px; max-width: 640px; }
.h2 + p, .h2 + .lead { margin-top: 28px; }
.meta { font-size: 15px; color: var(--muted); margin: 0; }
.section--night .meta, .section--night-2 .meta { color: var(--on-night-muted); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; text-decoration: none; color: var(--gold-dark); min-height: 44px; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }
.link-arrow--light, .section--night .link-arrow, .section--night-2 .link-arrow { color: var(--gold-light); }

/* ---------- Buttons: flat, square, one fill ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 0 28px; border: 0; border-radius: 0;
	font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.25;
	text-decoration: none; cursor: pointer; text-align: center;
	transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-hover); color: var(--night); }
.btn--dark { background: var(--night); color: #fbf7ef; }
.btn--dark:hover { background: var(--ink); color: var(--gold-light); }
.btn--outline { background: var(--beige); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fbf7ef; }
.btn--outline-light { background: rgba(251, 247, 239, .14); color: #fbf7ef; }
.btn--outline-light:hover { background: #fbf7ef; color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.btn-row--center { justify-content: center; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }
.site-header__book { white-space: nowrap; }

/* ---------- Header: plain bar ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--night); color: var(--on-night); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fbf7ef; }
.brand:hover { color: #fbf7ef; }
.brand__emblem { width: auto; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.brand__place { font-size: 13px; color: var(--gold); margin-top: 4px; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--night-2); border: 0; color: #fbf7ef; cursor: pointer; }
.nav-toggle:hover { background: #2a3048; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

.nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--night); padding: 24px var(--gutter) 120px; overflow-y: auto; display: none; }
.admin-bar .nav { top: calc(var(--header-h) + 46px); }
.nav-open .nav { display: block; }
.nav__list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav__list a { display: block; padding: 8px 0; color: #fbf7ef; text-decoration: none; font-family: var(--serif); font-size: 36px; line-height: 1.15; }
.nav__list .current-menu-item > a, .nav__list a:hover { color: var(--gold); }
.nav__contact { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; }
.nav__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night-muted); text-decoration: none; min-height: 44px; font-size: 16px; }

@media (max-width: 760px) { .site-header__book { display: none; } }

/* Language switcher */
.lang-switch { list-style: none; display: flex; align-items: center; gap: 2px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 40px; padding: 0 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--on-night-muted); }
.lang-switch a:hover { color: var(--gold-light); }
.lang-switch a.is-current { color: var(--night); background: var(--gold); }
.lang-switch__name { display: none; }
.lang-switch--full { flex-direction: column; align-items: stretch; gap: 4px; }
.lang-switch--full a { justify-content: flex-start; gap: 14px; min-height: 50px; padding: 0 16px; font-size: 17px; font-weight: 500; background: var(--night-2); color: #fbf7ef; }
.lang-switch--full .lang-switch__short { font-size: 14px; width: 24px; }
.lang-switch--full .lang-switch__name { display: inline; }
.lang-switch--footer a { color: var(--on-night-muted); background: var(--night-2); }
.lang-switch--footer { gap: 4px; }
.nav__lang { margin-top: 32px; }
.nav__lang-title { font-size: 15px; color: var(--gold); margin-bottom: 12px; }
@media (max-width: 360px) { .lang-switch--header a { min-width: 32px; padding: 0 4px; } .brand__name { font-size: 22px; } }

@media (min-width: 1200px) {
	.nav-toggle { display: none; }
	.nav { position: static; display: block; background: none; padding: 0; overflow: visible; }
	.nav__list { flex-direction: row; gap: 30px; }
	.nav__list a { padding: 8px 0; font-family: var(--sans); font-size: 16px; font-weight: 500; color: #ebe4d4; }
	.nav__contact, .nav__lang { display: none; }
	.brand__emblem { height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; color: #fbf7ef; overflow: hidden; background: var(--night); }
.hero__bg, .page-hero__bg, .final-cta__bg { position: absolute; inset: 0; }
.hero__bg img, .page-hero__bg img, .final-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Neutral scrim under the text (the one permitted gradient). */
.hero__bg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(15, 18, 32, .5) 0%, rgba(15, 18, 32, .38) 40%, rgba(15, 18, 32, .86) 100%); }
.hero__inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(104px, 11vw, 150px); }
.hero__title { font-family: var(--serif); font-weight: 500; color: #fbf7ef; font-size: clamp(42px, 8.2vw, 132px); line-height: .92; letter-spacing: -0.025em; max-width: 12.5em; }
.hero__text { margin-top: 36px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #f1ebdd; max-width: 640px; }
.hero__trust { margin-top: 22px; font-size: 16px; color: #e6dfcf; max-width: 640px; }
.hero__trust strong { color: var(--gold-light); font-weight: 600; }

/* ---------- Availability bar ---------- */
.availability { position: relative; z-index: 2; background: var(--cream); }
.availability__form { max-width: 1360px; padding: 28px var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: end; }
.availability__form .btn { grid-column: 1 / -1; }
.availability__form .field:nth-of-type(3) { grid-column: 1 / -1; }
.availability__title { grid-column: 1 / -1; margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--ink); }
.availability__note { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin: 0; }
@media (min-width: 1000px) {
	.availability__form { grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)) auto; padding-top: 34px; padding-bottom: 34px; }
	.availability__title { grid-column: auto; align-self: center; }
	.availability__form .btn, .availability__form .field:nth-of-type(3) { grid-column: auto; }
	.availability__note { grid-column: 2 / -1; }
}

/* ---------- Form fields (real form controls) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); min-width: 0; }
.field input, .field select, .field textarea {
	font: 17px/1.4 var(--sans); color: var(--ink);
	background: #fff; border: 0; border-radius: 0;
	padding: 12px 14px; min-height: 50px; width: 100%; -webkit-appearance: none; appearance: none;
	transition: background-color .2s ease;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A5718' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.section--beige .field input, .section--beige .field select, .section--beige .field textarea { background: var(--cream); }
.field--full { grid-column: 1 / -1; }

/* ---------- Split (home intro) ---------- */
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 120px); } }
.split__text .h2 { margin-bottom: 32px; }
.split__text .link-arrow { margin-top: 20px; }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--frame { aspect-ratio: 4 / 5; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(460px, 56vw, 720px); }
.mosaic > div { overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__a { grid-row: 1 / 3; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head > div { max-width: 920px; }
.section-head--narrow > div { max-width: 760px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 56px; font-size: 16px; }
.section-foot p { max-width: 720px; margin: 0; }
.section-cta { margin-top: 64px; }
.section-cta--center { text-align: center; }

/* ---------- Day / night (home, the live thing) ---------- */
.daynight { background: var(--beige); transition: background-color .9s var(--ease), color .9s var(--ease); }
.daynight.is-night { background: var(--night); color: var(--on-night); }
.daynight.is-night .h2 { color: #fbf7ef; }
.daynight .h2 { transition: color .9s var(--ease); }
.daynight__switch { display: none; gap: 4px; padding: 4px; background: var(--sand); transition: background-color .9s var(--ease); }
.js .daynight__switch { display: inline-flex; }
.daynight.is-night .daynight__switch { background: var(--night-2); }
.daynight__switch button { min-height: 50px; padding: 0 24px; border: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: background-color .3s ease, color .3s ease; }
.daynight.is-night .daynight__switch button { color: var(--on-night); }
.daynight__switch button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.daynight__switch button:active { transform: scale(.98); }
.daynight__switch svg { width: 20px; height: 20px; }
.daynight__grid { display: grid; gap: 12px; }
.daynight__place { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--night-2); }
.daynight__place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.daynight__place .is-day { opacity: 0; transform: scale(1.04); }
.daynight:not(.is-night) .daynight__place .is-day { opacity: 1; transform: scale(1); }
.daynight:not(.is-night) .daynight__place .is-night-img { opacity: 0; }
.daynight__place figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: var(--night); color: #fbf7ef; font-size: 16px; font-weight: 600; }
@media (min-width: 900px) {
	.daynight__grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(560px, 52vw, 760px); }
	.daynight__place { aspect-ratio: auto; }
	.daynight__place:first-child { grid-row: 1 / 3; }
}

/* ---------- Rooms (home): one photo, one list ---------- */
.room-index { display: grid; gap: 48px; }
.room-index__photo { display: none; position: relative; overflow: hidden; background: var(--night); }
.room-index__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); transform: scale(1.03); }
.room-index__photo img.is-shown { opacity: 1; transform: scale(1); }
.room-index__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.room-row { display: grid; gap: 14px 24px; padding: 28px 0; }
.room-row + .room-row { padding-top: 36px; }
.room-row__thumb { aspect-ratio: 16 / 10; overflow: hidden; width: 100%; }
.room-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-row__name { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.015em; }
.room-row__name a { color: var(--ink); text-decoration: none; }
.room-row__name a:hover { color: var(--gold-dark); }
.room-row__text { margin: 0; max-width: 560px; }
.room-row__facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; font-size: 16px; color: var(--muted); }
.room-row__price { font-family: var(--serif); font-size: 32px; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.room-row__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1000px) {
	.room-index { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
	.room-index__photo { display: block; position: sticky; top: calc(var(--header-h) + 32px); height: min(76vh, 760px); }
	.room-row__thumb { display: none; }
	.room-row { padding: 32px; transition: background-color .3s ease; }
	.room-row + .room-row { padding-top: 32px; }
	.room-row.is-active { background: var(--cream); }
}

/* Room cards (other pages reuse the same rows) */
.room-grid { display: grid; gap: 12px; }
.room-card { background: var(--cream); display: grid; }
.room-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.03); }
.room-card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.room-card__title { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.05; }
.room-card__title a { color: var(--ink); text-decoration: none; }
.room-card__text { font-size: 17px; margin: 0; }
.room-card__price { margin: 8px 0 0; font-size: 16px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.room-card__price strong { font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--ink); white-space: nowrap; }
.room-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (min-width: 900px) {
	.room-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Places (home) ---------- */
.places { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .places { grid-template-columns: 1.15fr 1fr; gap: clamp(56px, 7vw, 112px); } }
.places__media { aspect-ratio: 4 / 5; overflow: hidden; }
.places__media img { width: 100%; height: 100%; object-fit: cover; }
.places__list { list-style: none; display: flex; flex-direction: column; }
.places__list a { display: grid; gap: 6px; padding: 22px 0; text-decoration: none; color: var(--text); transition: transform .3s var(--ease); }
.places__list a:hover { transform: translateX(6px); }
.places__name { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 42px); color: var(--ink); line-height: 1.05; letter-spacing: -0.01em; }
.places__desc { font-size: 17px; line-height: 1.55; }
.places__list a:hover .places__name { color: var(--gold-dark); }

/* ---------- Reasons (book direct) ---------- */
.reasons { list-style: none; display: grid; gap: 48px 64px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.reasons h3 { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 38px); line-height: 1.05; margin-bottom: 12px; }
.reasons p { font-size: 17px; }

/* ---------- Reviews (manual fallback) ---------- */
.reviews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review { margin: 0; background: var(--cream); padding: 40px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--ink); }
.review figcaption { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* ---------- Glimpses (kept for compatibility) ---------- */
.glimpses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 12px; }
.glimpses a { overflow: hidden; display: block; }
.glimpses img { width: 100%; height: 100%; object-fit: cover; }
.glimpses__tall { grid-row: span 2; }
@media (min-width: 900px) { .glimpses { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; } }

/* ---------- Location ---------- */
.location { background: var(--sand); }
.location--night { background: var(--night); color: var(--on-night); }
.location--night .h2, .location--night .location__address strong { color: #fbf7ef; }
.location--night .location__address { color: var(--on-night); }
.location--night .location__note { color: var(--on-night-muted); }
.location--night .location__contact .icon { color: var(--gold); }
.location--night a:not(.btn) { color: var(--gold-light); }
.location--night .btn--dark { background: var(--night-2); color: #fbf7ef; }
.location--night .btn--dark:hover { background: var(--gold); color: var(--night); }
.location__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .location__inner { grid-template-columns: 1fr 1.5fr; gap: clamp(56px, 7vw, 112px); } }
.location__address { margin: 28px 0 20px; font-size: 18px; line-height: 1.6; color: var(--text); }
.location__address strong { color: var(--ink); font-weight: 600; }
.location__contact, .contact-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.location__contact li, .contact-list li { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.location__contact .icon, .contact-list .icon { color: var(--gold-dark); }
.location__note { font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--beige); overflow: hidden; }
.map__poster { width: 100%; height: 100%; object-fit: cover; }
.map::after { content: ""; position: absolute; inset: 0; background: rgba(15, 18, 32, .35); pointer-events: none; }
.map.is-loaded::after { display: none; }
.map__load { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.map__load:active { transform: translate(-50%, -50%) scale(.98); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; padding: clamp(120px, 14vw, 220px) 0; color: var(--on-night); text-align: center; overflow: hidden; background: var(--night); }
.final-cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(15, 18, 32, .74); }
.final-cta__inner { position: relative; }
.final-cta .h2 { color: #fbf7ef; }
.final-cta .lead { max-width: 640px; margin-left: auto; margin-right: auto; color: #ece6d8; }
.final-cta .btn-row { justify-content: center; margin-top: 40px; }
.final-cta__contact { margin-top: 36px; font-size: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.final-cta__contact a { color: #ece6d8; text-decoration: none; }
.final-cta__contact a:hover { color: var(--gold-light); }

/* ---------- Footer: a designed close ---------- */
.site-footer { background: var(--deep); color: var(--on-night-muted); padding: 96px 0 calc(40px + 72px); font-size: 16px; }
@media (min-width: 761px) { .site-footer { padding-bottom: 40px; } }
.site-footer__grid { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__brand img { width: 150px; height: auto; }
.site-footer__title { font-family: var(--serif); font-size: 24px; color: #fbf7ef; margin-bottom: 14px; }
.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { color: var(--on-night-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--gold); margin-top: 4px; width: 18px; height: 18px; }
.site-footer__name { margin: 80px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 20.5vw, 296px); line-height: .82; letter-spacing: -0.035em; color: #fbf7ef; white-space: nowrap; }
.site-footer__name span { color: var(--gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; font-size: 14px; }
.site-footer__bottom a { color: var(--on-night-muted); }

.site-footer__title--lang { margin-top: 32px; }

/* ---------- Ait Ben Haddou band (guide page) ---------- */
.abh { background: var(--night); color: var(--on-night); padding: var(--section) 0; }
.abh .h2 { color: #fbf7ef; }
.abh__inner { display: grid; gap: 32px clamp(48px, 6vw, 96px); align-items: start; }
.abh__emblem img { width: 64px; height: auto; }
@media (min-width: 900px) { .abh__inner { grid-template-columns: auto 1fr 1.2fr; } .abh__emblem img { width: 85px; } }

/* ---------- Mobile booking bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--night); }
.mobile-bar__book { flex: 1; min-height: 52px; font-size: 16px; padding: 4px 12px; }
.mobile-bar__icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--night-2); color: #fbf7ef; }
.mobile-bar__icon:hover { color: var(--gold); }
@media (min-width: 761px) { .mobile-bar { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); }
.page-hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 6.6vw, 104px); line-height: .95; letter-spacing: -0.025em; max-width: 13em; }
.page-hero__title--article { font-size: clamp(38px, 5vw, 68px); }
.page-hero__text { margin-top: 32px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 680px; }
.page-hero--center { text-align: center; padding: clamp(96px, 14vw, 200px) 0; }
.page-hero--center .page-hero__title, .page-hero--center .page-hero__text { margin-left: auto; margin-right: auto; }
.page-hero--image { position: relative; min-height: clamp(460px, 70vh, 760px); display: flex; align-items: flex-end; color: #fbf7ef; background: var(--night); overflow: hidden; padding: 0; }
.page-hero--tall { min-height: clamp(500px, 80vh, 820px); }
.page-hero--image .page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 18, 32, .3), rgba(15, 18, 32, .82)); }
.page-hero--image .page-hero__inner { position: relative; padding-top: 140px; padding-bottom: clamp(56px, 7vw, 104px); }
.page-hero--image .page-hero__title { color: #fbf7ef; }
.page-hero--image .page-hero__text { color: #f1ebdd; }

/* ---------- Sub navigation ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--cream); }
.admin-bar .subnav { top: calc(var(--header-h) + 46px); }
@media (min-width: 783px) { .admin-bar .subnav { top: calc(var(--header-h) + 32px); } }
.subnav__inner { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 58px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); }
.subnav a:hover { color: var(--gold-dark); }

/* ---------- Room detail ---------- */
.rooms-list { display: flex; flex-direction: column; gap: clamp(96px, 12vw, 180px); }
.room { display: grid; gap: 40px; align-items: center; scroll-margin-top: calc(var(--header-h) + 72px); }
@media (min-width: 900px) {
	.room { grid-template-columns: 1.25fr 1fr; gap: clamp(48px, 6vw, 96px); }
	.room--reverse .room__gallery { order: 2; }
}
.room__gallery { display: grid; gap: 10px; }
.room__main { aspect-ratio: 16 / 11; }
.room__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room__body .h2 { margin-bottom: 14px; }
.room__body .meta { margin-bottom: 20px; }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px; margin: 28px 0; font-size: 17px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--gold-dark); margin-top: 4px; width: 18px; height: 18px; }
.checklist--light { grid-template-columns: 1fr; color: #fbf7ef; margin: 0; }
.checklist--light .icon { color: var(--gold); }
.room__price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 8px; padding: 24px 28px; background: var(--cream); }
.room__price p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.room__price strong { font-family: var(--serif); font-weight: 500; font-size: 44px; color: var(--ink); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }

.room__quote { font-size: 36px !important; }
.quote-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 40px; padding: clamp(28px, 4vw, 48px); background: var(--night); color: var(--on-night); }
.quote-band p { margin: 0; max-width: 620px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.book__form .panel__title { font-size: clamp(30px, 3vw, 40px); margin-bottom: 24px; }
.amenities { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 12px; }
.amenities li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--cream); font-size: 17px; color: var(--ink); }
.amenities .icon { color: var(--gold-dark); }

.table-wrap { overflow-x: auto; margin-top: 48px; background: var(--cream); }
.rates { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 17px; }
.rates th, .rates td { padding: 22px 26px; text-align: left; }
.rates tbody tr:nth-child(odd) { background: #f3ecdf; }
.rates thead th { font-size: 15px; color: var(--muted); font-weight: 600; }
.rates tbody th { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.rates tbody th a { color: var(--ink); text-decoration: none; }
.rates .num { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.policies { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 40px; }
.policy { background: var(--cream); padding: 36px; }
.policy .h3 { margin-bottom: 12px; }
.policy p { font-size: 17px; }

/* ---------- The Riad ---------- */
.intro-quote { display: grid; gap: 32px clamp(48px, 7vw, 112px); align-items: start; }
@media (min-width: 900px) { .intro-quote { grid-template-columns: 1fr 1.15fr; } }
.intro-quote .h2, .location .h2 { font-size: clamp(40px, 4.4vw, 68px); }
.intro-quote .h2 + .intro-quote__big { margin-top: 28px; }
.intro-quote__big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; color: var(--ink); }

.spaces { display: grid; gap: 12px; grid-template-columns: 1fr; grid-auto-flow: dense; }
.space { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--night); }
.space img { width: 100%; height: 100%; object-fit: cover; }
/* Scrim under the caption text on the photo. */
.space figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 24px 20px; background: linear-gradient(180deg, rgba(15, 18, 32, 0), rgba(15, 18, 32, .86)); color: #e9e3d6; font-size: 15px; line-height: 1.5; }
.space figcaption strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 28px; color: #fbf7ef; margin-bottom: 2px; }
@media (min-width: 761px) {
	.spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 320px; }
	.space { aspect-ratio: auto; }
	.space--wide { grid-column: span 2; }
	.space--tall { grid-row: span 2; }
	.space--full { grid-column: 1 / -1; }
}

.day { list-style: none; display: grid; gap: 48px 56px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.day .h3 { margin-bottom: 6px; }
.day .meta { margin-bottom: 14px; color: var(--gold-light); }
.day p:not(.meta) { font-size: 17px; }

/* ---------- Ouarzazate guide ---------- */
.guide { list-style: none; display: grid; gap: 48px 64px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.guide .h3 { margin-bottom: 10px; }
.guide p { font-size: 17px; }

/* ---------- Journal ---------- */
.post-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post-card { background: var(--cream); display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 28px; }
.post-card .meta { margin-top: 8px; }
.post-card .h3 a { color: var(--ink); text-decoration: none; }
.post-card p:not(.meta) { font-size: 17px; margin-top: 12px; }
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 46px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--cream); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--night); color: #fbf7ef; }
.empty { text-align: center; max-width: 640px; margin: 0 auto; }
.empty .btn { margin-top: 28px; }
.article-image { margin-bottom: 8px; }
.article-image img { width: 100%; }
.article-cta { margin-bottom: var(--section); padding: 40px; background: var(--cream); }
.article-cta .h3 { margin-bottom: 10px; }

.prose { font-size: 18px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; margin: 1.6em 0 .5em; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose img { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 24px 28px; background: var(--cream); font-family: var(--serif); font-size: 26px; color: var(--ink); }
.prose figure { margin: 1.5em 0; }
.prose figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 6px; }
.alignwide { max-width: 1120px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Gallery page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.filter { min-height: 46px; padding: 0 20px; border: 0; background: var(--beige); color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.filter:hover { background: #ddd0b8; }
.filter.is-active { background: var(--night); color: #fbf7ef; }
.filter:active { transform: scale(.98); }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; grid-auto-flow: dense; gap: 8px; }
@media (min-width: 761px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 10px; } }
.gallery__item--tall { grid-row: span 2; }
.gallery__item[hidden] { display: none; }
.gallery__item a { display: block; height: 100%; overflow: hidden; background: var(--beige); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item a:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(15, 18, 32, .97); color: #fbf7ef; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15, 18, 32, .97); }
.lightbox__figure { margin: 0; max-width: min(1300px, 92vw); text-align: center; }
.lightbox__figure img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox__figure figcaption { margin-top: 14px; font-size: 16px; color: var(--on-night-muted); }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--night-2); border: 0; color: #fbf7ef; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--night); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__prev .icon { transform: rotate(180deg); }
.lightbox__next { right: 12px; }

/* ---------- Book page ---------- */
.book { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .book { grid-template-columns: 1.6fr 1fr; gap: 56px; } }
.book__form { background: var(--beige); padding: clamp(24px, 4vw, 56px); }
.form { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__foot p { font-size: 15px; color: var(--muted); max-width: 420px; margin: 0; line-height: 1.55; }
.form__foot .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .form__foot .btn { width: 100%; } }
.notice { padding: 24px 28px; margin-bottom: 24px; background: #f6ead0; }
.notice .h3 { margin-bottom: 10px; }
.notice--success { background: #e3ecda; }
.notice--error { background: #f6dcd8; color: #6b2117; }
.book__aside { display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--cream); padding: 32px; }
.panel--night { background: var(--night); color: var(--on-night); }
.panel__title { font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--ink); margin: 0 0 18px; }
.panel--night .panel__title { color: #fbf7ef; }
.panel .btn { margin-bottom: 16px; }
.contact-list { margin: 0; }

/* ---------- Social links ---------- */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--night-2); color: var(--on-night-muted); transition: color .2s ease, background-color .2s ease; }
.social a:hover { color: var(--night); background: var(--gold); }
.social--nav { margin-top: 32px; }
.social--center { justify-content: center; margin-top: 28px; }
@media (min-width: 1200px) { .social--nav { display: none; } }

/* ---------- Footer credit ---------- */
.site-footer__credit { flex-basis: 100%; margin-top: 4px; font-size: 14px; color: #9c9584; }
.site-footer__credit a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(201, 160, 80, .5); }
.site-footer__credit a:hover { color: var(--gold-light); }
@media (min-width: 761px) { .site-footer__credit { flex-basis: auto; margin-top: 0; margin-left: auto; text-align: right; } }

.hero__bg img { object-position: 62% 50%; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 6px; }
.faq__item { background: var(--cream); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; cursor: pointer; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__q { color: var(--gold-dark); }
.faq__q { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 2vw, 28px); line-height: 1.2; color: var(--ink); transition: color .2s ease; }
.faq__icon { flex: none; position: relative; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--gold-dark); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 64px 28px 28px; font-size: 17px; }
.faq__a a { color: var(--gold-dark); }
.section--night .faq__item { background: var(--night-2); }
.section--night-2 .faq__item { background: var(--night); }
.section--night .faq__q { color: #fbf7ef; }
.section--night-2 .faq__q { color: #fbf7ef; }
.section--night .faq__item summary:hover .faq__q { color: var(--gold-light); }
.section--night-2 .faq__item summary:hover .faq__q { color: var(--gold-light); }
.section--night .faq__icon::before, .section--night .faq__icon::after { background: var(--gold); }
.section--night-2 .faq__icon::before, .section--night-2 .faq__icon::after { background: var(--gold); }
.section--night .faq__a { color: var(--on-night); }
.section--night-2 .faq__a { color: var(--on-night); }
.section--night .faq__a a { color: var(--gold-light); }
.section--night-2 .faq__a a { color: var(--gold-light); }

/* ---------- Trip tips ---------- */
.tips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tip { background: var(--cream); padding: 36px; }
.tip .h3 { margin-bottom: 12px; }
.tip p { font-size: 17px; }

/* ---------- Home banner slider ---------- */
.hero-slider { position: absolute; inset: 0; overflow: hidden; }
.hero-slider__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--slide-speed, 1200ms) ease, visibility 0s linear var(--slide-speed, 1200ms), transform var(--slide-speed, 1200ms) ease; }
.hero-slider__slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--slide-speed, 1200ms) ease, visibility 0s, transform var(--slide-speed, 1200ms) ease; }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slider__slide.is-active img { transform: scale(1); }
.hero-slider--slide .hero-slider__slide { opacity: 1; transform: translateX(100%); }
.hero-slider--slide .hero-slider__slide.is-active { transform: translateX(0); }
.hero-slider--slide .hero-slider__slide.is-prev { visibility: visible; transform: translateX(-100%); }
.hero-slider--slide.is-back .hero-slider__slide { transform: translateX(-100%); }
.hero-slider--slide.is-back .hero-slider__slide.is-active { transform: translateX(0); }
.hero-slider--slide.is-back .hero-slider__slide.is-prev { transform: translateX(100%); }
.hero-slider--zoom .hero-slider__slide img { transform: scale(1.08); transition: transform 9s ease-out; }
.hero-slider--zoom .hero-slider__slide.is-active img { transform: scale(1); }

.hero-slider__controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 40px; display: flex; align-items: center; gap: 4px; }
.hero-slider__btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: rgba(15, 18, 32, .55); color: #fbf7ef; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.hero-slider__btn:hover { background: var(--gold); color: var(--night); }
.hero-slider__btn:active { transform: scale(.96); }
.hero-slider__prev .icon { transform: rotate(180deg); }
.hero-slider__dots { display: flex; align-items: center; gap: 2px; padding: 0 8px; }
.hero-slider__dot { width: 30px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-slider__dot::before { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(251, 247, 239, .45); transition: background-color .3s ease; }
.hero-slider__dot.is-active::before { background: var(--gold); }
.hero-slider__dot:hover::before { background: #fbf7ef; }
.hero-slider__pause-icon { position: relative; width: 10px; height: 12px; }
.hero-slider__pause-icon::before, .hero-slider__pause-icon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: currentColor; }
.hero-slider__pause-icon::before { left: 0; }
.hero-slider__pause-icon::after { right: 0; }
.hero-slider__pause.is-paused .hero-slider__pause-icon::before { left: 1px; width: 0; height: 0; top: 0; bottom: auto; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero-slider__pause.is-paused .hero-slider__pause-icon::after { display: none; }
@media (max-width: 760px) {
	.hero-slider__controls { left: 0; right: 0; bottom: 24px; justify-content: center; }
	.hero-slider__prev, .hero-slider__next { display: none; }
	.hero__inner { padding-bottom: 96px; }
}

/* ---------- Guest reviews (Trustindex widgets) ---------- */
.guest-reviews { position: relative; }
.guest-reviews--cream { background: var(--cream); }
.guest-reviews--beige { background: var(--beige); }
.guest-reviews--white { background: #fff; }
.guest-reviews--night { background: var(--night); }
.guest-reviews--night .guest-reviews__head { color: var(--on-night); }
.guest-reviews--night .h2 { color: #fbf7ef; }
.guest-reviews__head { max-width: 820px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.guest-reviews__head .lead { margin: 24px auto 0; }
.guest-reviews__ornament { display: none; }
.rw-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 32px; }
.rw-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--beige); }
.guest-reviews--night .rw-tabs { background: var(--night-2); }
.rw-tab { appearance: none; border: 0; background: transparent; color: var(--ink); font: 600 16px/1 var(--sans); padding: 15px 22px; cursor: pointer; transition: background .25s, color .25s; }
.guest-reviews--night .rw-tab { color: var(--on-night); }
.rw-tab:hover { color: var(--gold-dark); }
.guest-reviews--night .rw-tab:hover { color: var(--gold-light); }
.rw-tab[aria-selected="true"] { background: var(--night); color: #fff; }
.guest-reviews--night .rw-tab[aria-selected="true"] { background: var(--gold); color: var(--night); }
.rw-tab:focus-visible, .rw-carousel__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rw-carousel__arrow { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: var(--beige); color: var(--ink); cursor: pointer; transition: background-color .25s, color .25s; }
.rw-carousel__arrow svg { width: 18px; height: 18px; transform: rotate(180deg); }
.rw-carousel__arrow--next svg { transform: none; }
.rw-carousel__arrow:hover { background: var(--gold); color: var(--night); }
.guest-reviews--night .rw-carousel__arrow { color: #fff; background: var(--night-2); }
.rw-carousel__viewport { overflow: hidden; transition: height .45s ease; }
.rw-carousel__track { display: flex; align-items: flex-start; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.rw-panel { flex: 0 0 100%; min-width: 0; transition: opacity .5s; }
.rw-panel[aria-hidden="true"] { opacity: 0; }
.rw-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.guest-reviews--single .rw-grid { grid-template-columns: 1fr; }
.rw-card { min-width: 0; }
.guest-reviews--grid .rw-card { background: var(--cream); padding: 24px 20px; }
.guest-reviews--night.guest-reviews--grid .rw-card { background: var(--night-2); }
.rw-card__label { margin: 0 0 16px; font: 600 16px/1.2 var(--sans); color: var(--gold-dark); text-align: center; }
.guest-reviews--night .rw-card__label { color: var(--gold-light); }
.rw-admin-note { margin-top: 24px; padding: 16px 20px; background: #f6ead0; color: #4a3b12; font-size: 15px; line-height: 1.6; }
.rw-admin-note ul { margin: 8px 0; padding-left: 20px; }
.rw-admin-note a { color: inherit; }
@media (max-width: 600px) {
	.rw-carousel__arrow { display: none; }
	.rw-tab { padding: 14px 14px; }
}

/* Readability: light field, every text in the review widgets in black. */
.guest-reviews, .guest-reviews .h2, .guest-reviews .lead { color: #000; }
.guest-reviews .rw-card__label { color: #000; }
.guest-reviews .rw-tab { color: #000; }
.guest-reviews .rw-tab[aria-selected="true"] { background: var(--night); color: #fff; }
.guest-reviews .rw-card :where(p, span, div, a, strong, b, em, li, h1, h2, h3, h4, h5, h6, time, small, blockquote):not(.ti-star):not([class*="star"]) { color: #000 !important; }
.guest-reviews .rw-card a { text-decoration-color: currentColor; }
.guest-reviews--cream .rw-card, .guest-reviews--beige .rw-card { --rw-card-bg: #fff; }
.guest-reviews--grid .rw-card { background: #fff; }

/* ---------- Floating WhatsApp button (desktop only) ---------- */
.wa-float { display: none; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
	.wa-float { position: fixed; left: 24px; bottom: 24px; z-index: 80; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; text-decoration: none; transition: transform .25s ease, background-color .25s ease, opacity .3s ease, visibility .3s; }
	.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: 0; pointer-events: none; z-index: -1; }
	.wa-float:hover, .wa-float:focus-visible { background: #1ebe5b; transform: translateY(-3px) scale(1.05); }
	.wa-float:hover::before { animation: wa-ring 1.2s ease-out infinite; }
	.wa-float:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
	.wa-float__icon { display: grid; place-items: center; }
	.wa-float__icon svg { width: 30px; height: 30px; stroke-width: 1.9; }
	.wa-float__img { width: 32px; height: 32px; object-fit: contain; }
	.wa-float__tip { position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); white-space: nowrap; background: var(--night); color: #fff; font: 600 15px/1 var(--sans); padding: 12px 14px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
	.wa-float__tip::before { content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: var(--night); }
	.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
	.wa-float.is-tucked { opacity: 0; visibility: hidden; transform: translateY(8px); }
	.has-wa-float .site-footer__bottom { padding-bottom: 72px; }
}
@keyframes wa-ring { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }

/* ---------- Room galleries (clickable photos) ---------- */
.room-card__media, .room__main, .room__thumb, .room-row__thumb { position: relative; display: block; width: auto; padding: 0; border: 0; background: var(--beige); cursor: zoom-in; font: inherit; color: inherit; }
.room-card__media:focus-visible, .room__main:focus-visible, .room__thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (min-width: 1000px) { .room-row__thumb { display: none; } }
.room__main { overflow: hidden; }
.room__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room__main:hover img, .room__thumb:hover img { transform: scale(1.03); }
.room__thumb { overflow: hidden; }
.room__thumb img { transition: transform .6s var(--ease); display: block; }
.room__gallery--1 .room__main { aspect-ratio: 16 / 13; }
.room__gallery--2 .room__thumbs { grid-template-columns: 1fr; }
.room__gallery--2 .room__thumbs img { aspect-ratio: 16 / 7; }
.photo-count { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--night); color: #fbf7ef; font: 600 15px/1 var(--sans); pointer-events: none; }
.photo-count .icon { width: 16px; height: 16px; }
.room__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 18, 32, .55); color: #fff; font-family: var(--serif); font-size: 40px; pointer-events: none; }
.lightbox__count { margin-left: 10px; color: var(--gold-light); white-space: nowrap; }
.lightbox__nav[hidden] { display: none; }

/* ---------- Room amenities on cards ---------- */
.room-card__amenities, .room-row__amenities { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; color: var(--muted); }
.room-card__amenities li, .room-row__amenities li { display: inline-flex; align-items: center; gap: 8px; }
.room-card__amenities .icon, .room-row__amenities .icon { width: 18px; height: 18px; color: var(--gold-dark); }

/* ---------- Airport pickup ---------- */
.pickup { display: grid; gap: 20px 40px; align-items: center; padding: clamp(28px, 4vw, 56px); background: var(--night); color: var(--on-night); }
.pickup__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--night); }
.pickup__icon .icon { width: 28px; height: 28px; }
.pickup__title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; color: #fbf7ef; margin: 0 0 12px; }
.pickup__body p:last-child { margin: 0; max-width: 700px; }
.pickup .btn--dark { background: var(--gold); color: var(--night); }
.pickup .btn--dark:hover { background: var(--gold-hover); color: var(--night); }
@media (min-width: 900px) { .pickup { grid-template-columns: auto 1fr auto; } }
.pickup-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 16px; }
.pickup-line .icon { width: 18px; height: 18px; color: var(--gold-dark); flex: none; }
.pickup-line a { color: var(--ink); text-decoration-color: var(--gold); }
.panel__note { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.pickup-form { margin-top: 12px; padding: clamp(24px, 4vw, 48px); background: var(--cream); }
@media (min-width: 761px) { .pickup-form .form { grid-template-columns: 1fr 1fr; } }
.pickup-form .form__foot { grid-column: 1 / -1; }

/* ---------- Home: "Your Night at Riad Layali" photo story ---------- */
.night-story { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
.night-story__item { aspect-ratio: auto; }
.night-story__item--main { grid-column: 1 / -1; grid-row: span 2; }
.night-story__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.night-story__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.night-story__item:hover img { transform: scale(1.04); }
.night-story__open:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.night-story figcaption { pointer-events: none; padding: 44px 16px 14px; font-size: 14px; }
.night-story figcaption strong { font-size: 22px; }
@media (min-width: 900px) {
	.night-story { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 290px; }
	.night-story__item--main { grid-column: span 2; grid-row: span 2; }
	.night-story figcaption { padding: 56px 24px 20px; font-size: 15px; }
	.night-story figcaption strong { font-size: 28px; }
}
@media (max-width: 600px) {
	.night-story__item:not(.night-story__item--main) figcaption { font-size: 0; padding: 40px 12px 10px; }
	.night-story__item:not(.night-story__item--main) figcaption strong { font-size: 19px; line-height: 1.15; margin: 0; }
}
@media (max-width: 480px) {
	.night-story { grid-auto-rows: 190px; }
	.night-story figcaption { font-size: 13px; padding: 36px 12px 10px; }
	.night-story figcaption strong { font-size: 20px; }
}

/* ---------- Book page: photo strip ---------- */
.book-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.book-photos button { position: relative; display: block; padding: 0; border: 0; background: var(--beige); cursor: zoom-in; overflow: hidden; }
.book-photos button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.book-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.book-photos button:hover img { transform: scale(1.04); }
.book-photos__main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.book-photos__thumb { aspect-ratio: 1; }
.book-photos__label { position: absolute; left: 0; bottom: 0; padding: 12px 18px; background: var(--night); color: #fbf7ef; font-family: var(--serif); font-size: 24px; text-align: left; }

/* ---------- Motion: entrances (content stays visible without script) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero__title, .js .hero__text, .js .hero__trust, .js .hero .btn-row { opacity: 0; transform: translateY(28px); animation: rise 1s var(--ease) forwards; }
.js .hero__text { animation-delay: .14s; }
.js .hero .btn-row { animation-delay: .32s; }
.js .hero__trust { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.hero-slider__slide img { transform: none !important; }
}
