/* =====================================================================
   HOTEL YOUCEF · فندق يوسف — styles.css
   One stylesheet for every page. RTL-first, logical properties only.
   Layers: reset → tokens → base → layout → components → pages → utilities
   ===================================================================== */
@layer reset, tokens, base, layout, components, pages, utilities;

/* ---------- Fonts: self-hosted, subset by unicode-range ---------- */
@font-face { font-family: "El Messiri"; src: url("fonts/messiri-arabic.woff2") format("woff2"); font-weight: 500 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "El Messiri"; src: url("fonts/messiri-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-400-arabic.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-600-arabic.woff2") format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
/* Fallbacks sized to the web fonts (Arabic text measured: Plex ≈ 1.10 × Arial, El Messiri ≈ 1.30 × Arial), metrics scaled back: the swap keeps the same line breaks */
@font-face { font-family: "Plex Fallback"; src: local("Arial"), local("Geeza Pro"), local("Noto Sans Arabic"); ascent-override: 98.6%; descent-override: 37.7%; line-gap-override: 0%; size-adjust: 110%; }
@font-face { font-family: "Messiri Fallback"; src: local("Arial"), local("Geeza Pro"), local("Noto Sans Arabic"); ascent-override: 102.8%; descent-override: 37.4%; line-gap-override: 0%; size-adjust: 130%; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, picture, video, canvas, svg { display: block; max-inline-size: 100%; }
  img, video { block-size: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  table { border-collapse: collapse; }
}

@layer tokens {
  :root {
    /* palette — from the official logo: black, ivory, and the crest's gold (#BD7108 → #FDE864) */
    --sand-50: #FCFAF6; --sand-100: #F5F0E6; --sand-200: #E8DFCE;          /* ivory */
    --ink-950: #0E0C09; --ink-900: #14110D; --ink-700: #3A332B; --ink-500: #6B6055;
    --gold-800: #7A4F06;   /* text hover on ivory, 6.8:1 */
    --gold-700: #8A5A08;   /* text / links on ivory, 5.7:1 */
    --gold-500: #BD7108;   /* hairlines, icons (non-text) */
    --gold-400: #EEAD25;
    --gold-300: #F2C14E;   /* gold on black, 11.3:1 */
    --gold-200: #FDE864;
    --gold-grad: linear-gradient(135deg, #FDE864 0%, #FBC738 30%, #EEAD25 58%, #BD7108 100%);
    --font-latin: "Cormorant Garamond", Georgia, serif;
    --ok-600: #2F6B4F;
    --err: #A3282B;

    /* semantic roles (swapped in dark mode) */
    --bg: var(--sand-50);
    --bg-2: var(--sand-100);
    --line: var(--sand-200);
    --text: var(--ink-900);
    --text-2: var(--ink-700);
    --muted: var(--ink-500);
    --accent: var(--gold-700);
    --accent-strong: var(--gold-800);
    --on-accent: #FFF;
    --hair: var(--gold-500);
    --card: #FFFFFF;
    color-scheme: light;
    --gold-text: linear-gradient(135deg, #C98A12 0%, #A06A0C 45%, #7A4F06 100%); /* deep gold for big numerals on ivory */
    --crest-empty: grayscale(1) brightness(1.5); --crest-empty-o: .22;

    /* type */
    --font-display: "El Messiri", "Messiri Fallback", "Noto Naskh Arabic", serif;
    --font-body: "IBM Plex Sans Arabic", "Plex Fallback", "Noto Sans Arabic", system-ui, sans-serif;
    --fs-hero: clamp(2.4rem, 6vw, 4.75rem);
    --fs-h2: clamp(1.65rem, 3.2vw, 2.75rem);
    --fs-h3: clamp(1.15rem, 1.8vw, 1.5rem);
    --fs-body: clamp(1rem, 1.05vw, 1.125rem);
    --fs-small: .9rem;

    /* spacing + rhythm */
    --space-xs: .5rem;
    --space-s: clamp(.75rem, 1.5vw, 1.25rem);
    --space-m: clamp(1.5rem, 3vw, 2.5rem);
    --space-l: clamp(3rem, 7vw, 6rem);
    --measure: 66ch;
    --wrap: 1200px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header-h: 4.5rem;
    --bar-h: 4.25rem;

    /* the arch */
    --arch: 999px 999px 0 0 / 50% 42% 0 0;
    --radius-soft: 14px;
    --radius-btn: 4px;
    --shadow-lift: 0 18px 44px -24px rgb(27 23 20 / .45);

    /* motion — the only easings and durations used anywhere */
    --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
    --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
    --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
    --dur-micro: 120ms;
    --dur-ui: 200ms;
    --dur-panel: 280ms;
    --dur-marquee: 48s;
  }
  /* night: the phone's setting (auto), or the visitor's choice (data-theme, saved) — one set of values for both */
  :root[data-theme="dark"] {
      color-scheme: dark;
      --bg: #0E0C09; --bg-2: #17130E; --line: #2F281F; --card: #1A1610;
      --text: #F3EDE3; --text-2: #DCD2C3; --muted: #AFA190;
      --accent: var(--gold-300); --accent-strong: var(--gold-200); --on-accent: var(--ink-950);
      --hair: var(--gold-400);
      --gold-text: var(--gold-grad);
      --crest-empty: grayscale(1) brightness(.32); --crest-empty-o: .9;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #0E0C09; --bg-2: #17130E; --line: #2F281F; --card: #1A1610;
      --text: #F3EDE3; --text-2: #DCD2C3; --muted: #AFA190;
      --accent: var(--gold-300); --accent-strong: var(--gold-200); --on-accent: var(--ink-950);
      --hair: var(--gold-400);
      --gold-text: var(--gold-grad);
      --crest-empty: grayscale(1) brightness(.32); --crest-empty-o: .9;
    }
  }
}

@layer base {
  html { scroll-behavior: smooth; }
  /* phones: taps answer at once (no double-tap-zoom wait) and without the grey flash; each control has its own :active feedback */
  a, button, summary, label, select, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    background: var(--bg); color: var(--text);
    font: 400 var(--fs-body)/1.75 var(--font-body);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; color: var(--text); text-wrap: balance; }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration-color: var(--hair); text-underline-offset: .3em; }
  :focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
  ::selection { background: var(--gold-300); color: var(--ink-950); }
  [hidden] { display: none !important; }
  section[id], [id].anchor { scroll-margin-block-start: calc(var(--header-h) + 1rem); }
  .i { inline-size: 1.25em; block-size: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}

@layer layout {
  .wrap { inline-size: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .measure { max-inline-size: var(--measure); }
  .section { padding-block: var(--space-l); }
  .section--tint { background: var(--bg-2); }
  .below { content-visibility: auto; contain-intrinsic-size: auto 900px; }
  .stack > * + * { margin-block-start: var(--space-s); }
  .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-s) var(--space-m); margin-block-end: var(--space-m); }
  .head > p { max-inline-size: 42ch; color: var(--muted); }
}

@layer components {
  /* skip link */
  .skip { position: fixed; inset-block-start: -4rem; inset-inline-start: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--gold-700); color: #FFF; border-radius: var(--radius-btn); text-decoration: none; }
  .skip:focus { inset-block-start: 1rem; }

  /* eyebrow + hairline */
  .eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-block-end: .75rem; }
  .eyebrow::before { content: ""; inline-size: 2rem; block-size: 1px; background: var(--hair); }
  .lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--text-2); max-inline-size: var(--measure); }
  .muted { color: var(--muted); }

  /* buttons: 4px radius, flat, confident */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-block-size: 3rem; padding-inline: 1.4rem; border: 1px solid transparent; border-radius: var(--radius-btn);
    font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color var(--dur-micro) ease, color var(--dur-micro) ease, border-color var(--dur-micro) ease, transform var(--dur-micro) ease;
  }
  .btn:active { transform: scale(.97); }
  .btn--primary { background: var(--gold-grad); color: var(--ink-950); box-shadow: 0 8px 22px -14px rgb(122 79 6 / .7), inset 0 1px 0 rgb(255 255 255 / .45); }
  .btn--outline { background: var(--card); color: var(--accent-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-500) 60%, transparent); }
  .btn--ghost { border-color: currentColor; color: var(--text); background: transparent; }
  .btn--light { background: var(--sand-50); color: var(--ink-900); }
  .btn--line { border-color: rgb(255 255 255 / .7); color: #FFF; background: rgb(27 23 20 / .25); }
  .btn--sm { min-block-size: 2.75rem; padding-inline: 1rem; font-size: .95rem; }
  @media (hover: hover) and (pointer: fine) {
    .btn--primary:hover { filter: brightness(1.05) saturate(1.05); }
    .btn--outline:hover { background: color-mix(in srgb, var(--gold-300) 14%, var(--card)); }
    .btn--ghost:hover { background: var(--text); color: var(--bg); }
    .btn--light:hover { background: var(--gold-grad); }
    .btn--line:hover { background: #FFF; color: var(--ink-900); }
  }
  .link { display: inline-flex; align-items: center; gap: .4rem; min-block-size: 2.75rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-color: var(--hair); text-decoration-thickness: 1px; }
  .link .i { transition: transform var(--dur-micro) ease; }
  @media (hover: hover) and (pointer: fine) { .link:hover .i { transform: translateX(-4px); } }
  @media (prefers-reduced-motion: reduce) { .btn, .link .i { transition: none; } .btn:active { transform: none; } }

  /* header */
  .site-header { position: sticky; inset-block-start: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); border-block-end: 1px solid var(--line); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); block-size: var(--header-h); }
  .brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
  .brand img { inline-size: auto; block-size: 2.6rem; filter: drop-shadow(0 1px 2px rgb(14 12 9 / .25)); }
  .brand b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; direction: ltr; text-align: end; line-height: 1.2; }
  .brand small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.2; }
  .nav ul { display: flex; gap: clamp(.75rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
  .nav a { display: inline-flex; align-items: center; min-block-size: 2.75rem; text-decoration: none; color: var(--text-2); font-weight: 600; border-block-end: 1px solid transparent; }
  .nav a[aria-current="page"] { color: var(--accent); border-color: var(--hair); }
  @media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--accent); } }
  .header-cta { display: flex; align-items: center; gap: .5rem; }
  .menu-btn { display: none; inline-size: 2.75rem; block-size: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; color: var(--text); place-items: center; }

  /* mobile drawer */
  /* the links fold into the drawer below 1100 px (French/English labels need the width); the header «book» button
     stays until 900 px, where the sticky bottom bar takes over */
  @media (max-width: 899px) { .header-cta .btn { display: none; } }
  @media (max-width: 1099px) {
    .menu-btn { display: grid; }
    .nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--bg); padding: var(--space-m) var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-8px);
      transition: opacity var(--dur-ui) var(--ease-out-quart), transform var(--dur-ui) var(--ease-out-quart), visibility 0s linear var(--dur-ui); }
    .nav ul { flex-direction: column; gap: .25rem; }
    .nav a { font-family: var(--font-display); font-size: 1.5rem; min-block-size: 3.25rem; }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav-open { overflow: hidden; }
  }
  @media (max-width: 1099px) and (prefers-reduced-motion: reduce) { .nav { transition: none; transform: none; } }

  /* arch media + placeholder */
  .arch { border-radius: var(--arch); overflow: hidden; }
  .slot { position: relative; display: block; aspect-ratio: var(--r, 3 / 2); background: var(--bg-2); overflow: hidden; }
  .slot picture, .slot img { inline-size: 100%; block-size: 100%; }
  .slot img { object-fit: cover; }
  .ph {
    position: absolute; inset: 0; display: grid; place-items: end center; padding: 1rem;
    background:
      radial-gradient(ellipse 34% 30% at 50% 44%, transparent 98%, var(--line) 99% 100%, transparent 101%),
      linear-gradient(var(--line), var(--line)) 50% 82% / 1px 30% no-repeat,
      var(--bg-2);
    color: var(--muted); font: 400 .78rem/1.3 ui-monospace, Menlo, monospace; direction: ltr; text-align: center;
  }
  .ph::before { content: ""; position: absolute; inset-inline: 22%; inset-block: 16% 12%; border: 1px solid var(--gold-300); border-radius: var(--arch); }
  .ph span { position: relative; padding: .25rem .5rem; background: var(--bg); color: var(--text-2); border-radius: 2px; }

  /* divider: one repeating arch / mashrabiya motif */
  .divider { block-size: 22px; color: var(--hair); opacity: .7; }
  .divider svg { inline-size: 100%; block-size: 100%; }

  /* reveal on scroll */
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-ui) var(--ease-out-quart), transform var(--dur-ui) var(--ease-out-quart); transition-delay: var(--stagger, 0ms); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

  /* trust strip */
  .trust { border-block: 1px solid var(--line); }
  .trust ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s) var(--space-m); padding-block: var(--space-m); list-style: none; padding-inline: 0; margin: 0; }
  .trust li { display: flex; align-items: center; gap: .7rem; font-weight: 400; color: var(--text-2); }
  .trust .i { inline-size: 1.75rem; block-size: 1.75rem; color: var(--accent); stroke-width: 1.4; }

  /* room cards */
  .cards { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 300px); gap: var(--space-s); overflow-x: auto; scroll-snap-type: inline mandatory; overscroll-behavior-inline: contain; padding-block-end: 1rem; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  @media (min-width: 900px) { .cards { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); overflow: visible; } }
  .card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-soft); padding: .6rem .6rem 1rem; }
  .card .slot { border-radius: var(--arch); --r: 4 / 4.6; }
  .card h3 { margin-block: .9rem .2rem; padding-inline: .4rem; }
  .card .price { padding-inline: .4rem; }
  .card .specs { padding-inline: .4rem; }
  .card .btn { margin: auto .4rem 0; }
  /* the whole card opens the room: the «details» link stretches over the photo, name and price (one link, one tab stop) */
  .card { position: relative; cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out-quart), box-shadow var(--dur-ui) var(--ease-out-quart); }
  .card .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .card .btn { position: static; }
  .card .slot img { transition: transform var(--dur-panel) var(--ease-out-quart); }
  @media (hover: hover) and (pointer: fine) {
    .card:hover { border-color: var(--gold-400); box-shadow: 0 18px 40px -26px rgb(14 12 9 / .45); }
    .card:hover .slot img { transform: scale(1.04); }
  }
  .card:active { border-color: var(--gold-500); }
  .card:has(.btn:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { .card, .card .slot img { transition: none; } .card:hover .slot img { transform: none; } }
  .price { font-weight: 600; color: var(--accent); }
  .price small { font-weight: 400; color: var(--muted); }
  .specs { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; padding: 0; margin-block: .6rem 1rem; font-size: var(--fs-small); color: var(--text-2); }
  .specs li { display: inline-flex; align-items: center; gap: .35rem; }
  .specs .i { color: var(--hair); }

  /* experience: asymmetric 2×2 */
  .exp { display: grid; gap: var(--space-s); grid-template-columns: 1.15fr .85fr; grid-template-areas: "a b" "a c" "d c"; }
  .tile { position: relative; display: grid; align-content: end; min-block-size: 280px; color: #FFF; text-decoration: none; overflow: hidden; border-radius: var(--radius-soft); isolation: isolate; }
  .tile:nth-child(1) { grid-area: a; min-block-size: 520px; border-radius: var(--arch); }
  .tile:nth-child(2) { grid-area: b; }
  .tile:nth-child(3) { grid-area: c; border-radius: var(--arch); }
  .tile:nth-child(4) { grid-area: d; }
  .tile .slot { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
  .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(27 23 20 / .82), rgb(27 23 20 / .1) 60%); }
  .tile div { padding: var(--space-s) var(--space-m) var(--space-m); }
  .tile h3 { color: #FFF; }
  .tile p { color: #F3EDE3; font-size: var(--fs-small); margin-block: .25rem .5rem; }
  .tile span.go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-300); }
  @media (max-width: 760px) { .exp { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; } .tile:nth-child(1) { min-block-size: 380px; } }

  /* horizontal strip (gallery teaser) */
  .strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 320px); gap: var(--space-s); overflow-x: auto; scroll-snap-type: inline mandatory; overscroll-behavior-inline: contain; padding-block-end: 1rem; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip > * { scroll-snap-align: start; }
  .strip .slot { border-radius: var(--radius-soft); --r: 4 / 5; }
  .strip button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: start; color: inherit; }
  .strip button > span:last-child { display: block; padding-block: .5rem 0; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }

  /* 360 viewer */
  .pano { position: relative; aspect-ratio: 16 / 9; max-block-size: 78svh; inline-size: 100%; overflow: hidden; border-radius: var(--radius-soft); background: var(--ink-900); color: #FFF; touch-action: pan-y; }
  .pano canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; cursor: grab; }
  .pano canvas:active { cursor: grabbing; }
  .pano-poster { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
  .pano-start { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(50%, -50%); }
  .pano-hint { position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: rgb(27 23 20 / .6); font-size: var(--fs-small); pointer-events: none; transition: opacity var(--dur-ui) ease; }
  .pano.touched .pano-hint { opacity: 0; }
  .pano-scenes { position: absolute; inset-block-end: 1rem; inset-inline: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
  .pano-scenes button { min-block-size: 2.75rem; padding-inline: 1rem; border: 1px solid rgb(255 255 255 / .5); border-radius: var(--radius-btn); background: rgb(27 23 20 / .55); color: #FFF; font-weight: 400; }
  .pano-scenes button[aria-pressed="true"] { background: var(--sand-50); color: var(--ink-900); }
  .pano:not(.live) .pano-scenes, .pano:not(.live) .pano-hint, .pano.live .pano-start, .pano.live .pano-poster { display: none; }
  @media (max-width: 760px) { .pano { aspect-ratio: 4 / 5; } }

  /* info list */
  .info { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
  .info li { display: flex; gap: .9rem; align-items: start; }
  .info .i { inline-size: 1.5rem; block-size: 1.5rem; color: var(--accent); margin-block-start: .2rem; }
  .info small { display: block; color: var(--muted); font-size: var(--fs-small); }
  .info a { font-weight: 600; }
  .map { aspect-ratio: 4 / 3; inline-size: 100%; border: 0; border-radius: var(--arch); background: var(--bg-2); }

  /* fields + forms */
  .field { display: grid; gap: .35rem; margin-block-end: 1rem; }
  .field label, .field legend { font-weight: 600; font-size: .95rem; }
  .field input, .field select, .field textarea { min-block-size: 3rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--card); color: var(--text); font-size: 1rem; }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
  .field [aria-invalid="true"] { border-color: var(--err); }
  .field .err { color: var(--err); font-size: var(--fs-small); min-block-size: 1.2em; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .grid-2 > *, .field input { min-inline-size: 0; } /* date inputs have a wide built-in minimum: without this they push a 320 px screen sideways */
  .check { display: flex; align-items: center; gap: .6rem; min-block-size: 2.75rem; margin-block-end: .75rem; }
  .check input { inline-size: 1.25rem; block-size: 1.25rem; accent-color: var(--accent); }
  .form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
  .form-actions .btn { flex: 1 1 12rem; min-inline-size: 0; }
  form .btn { white-space: normal; text-align: center; } /* long French/English labels wrap instead of widening a 320 px screen */
  .note { font-size: var(--fs-small); color: var(--muted); }

  /* dialogs (booking sheet, lightbox) */
  dialog { border: 0; padding: 0; color: var(--text); background: var(--bg); max-inline-size: min(100% - 2rem, 560px); border-radius: var(--radius-soft); box-shadow: var(--shadow-lift); }
  dialog::backdrop { background: rgb(27 23 20 / .6); }
  dialog[open], dialog[open]::backdrop { animation: in-fade var(--dur-panel) var(--ease-out-quart); }
  dialog[open] { animation-name: in-pop; }
  @keyframes in-pop { from { opacity: 0; transform: scale(.97); } }
  @keyframes in-fade { from { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { dialog[open], dialog[open]::backdrop { animation: none; } }
  .dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-block-end: 1px solid var(--line); }
  .dlg-head h2 { font-size: var(--fs-h3); }
  .dlg-body { padding: 1.25rem; max-block-size: calc(100svh - 9rem); overflow-y: auto; }
  .icon-btn { display: inline-grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; color: inherit; }
  @media (max-width: 640px) {
    dialog.sheet { max-inline-size: 100%; inline-size: 100%; margin: auto 0 0; border-end-start-radius: 0; border-end-end-radius: 0; }
  }
  .lightbox { max-inline-size: min(100% - 1rem, 1100px); background: var(--ink-900); color: #FFF; }
  .lightbox figure { position: relative; }
  .lightbox img { max-block-size: 78svh; inline-size: 100%; object-fit: contain; }
  .lightbox figcaption { padding: .75rem 1.25rem 1rem; color: #E0D6C7; }
  .lb-nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); background: rgb(27 23 20 / .6); color: #FFF; border-color: transparent; }
  .lb-prev { inset-inline-start: .5rem; }
  .lb-next { inset-inline-end: .5rem; }

  /* sticky conversion bar (mobile only) */
  .bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; display: flex; gap: .5rem; padding: .6rem var(--gutter) max(.6rem, env(safe-area-inset-bottom)); background: var(--bg); border-block-start: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgb(27 23 20 / .4); }
  .bar .btn { flex: 1; }
  /* «احجز»: the reservations address as the hero of the box, then Gmail / call */
  .reach-mail { display: flex; align-items: center; gap: .65rem; padding: .7rem .75rem .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-soft); background: var(--card); font-weight: 600; font-size: 1.02rem; }
  .reach-mail > .i { flex: none; color: var(--accent); }
  .reach-mail a { flex: 1; min-inline-size: 0; color: var(--text); text-decoration: none; }
  .reach-mail .icon-btn { flex: none; }
  .reach-done { min-block-size: 1.4em; margin-block: .4rem .6rem; color: var(--accent-strong); font-size: var(--fs-small); }
  .mail { overflow-wrap: normal; } /* addresses break only at the <wbr> after «.» / before «@» */
  [data-site="phone"], [data-site="fax"] { white-space: nowrap; }
  @media (max-width: 480px) { .foot-grid > :nth-child(3) { grid-column: 1 / -1; order: 1; } } /* phones: «تواصل» gets the full width, under «الفندق | الإقامة» */
  @media (max-width: 899px) { body { padding-block-end: calc(var(--bar-h) + env(safe-area-inset-bottom)); } }
  @media (min-width: 900px) { .bar { display: none; } }

  /* footer */
  .site-footer { position: relative; background: var(--bg-2); color: var(--text-2); padding-block: var(--space-l) var(--space-m); }
  .site-footer::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 1px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }
  .foot-logo { display: inline-block; } .foot-logo img { inline-size: 11rem; block-size: auto; }
  .site-footer h2 { color: var(--accent); font-size: 1.05rem; margin-block-end: .75rem; }
  .site-footer a { color: var(--text); }
  .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-m); }
  .foot-grid ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
  .foot-grid a { display: inline-flex; min-block-size: 2.75rem; align-items: center; }
  .site-footer .brand { color: var(--text); }
  .site-footer .brand small { color: var(--muted); }
  .copy { margin-block-start: var(--space-m); padding-block-start: var(--space-s); border-block-start: 1px solid var(--line); font-size: var(--fs-small); }
  .copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
  .copy .legal { color: var(--muted); font-size: .82rem; }
  .cert-btn { display: inline-flex; align-items: center; gap: .5rem; min-block-size: 2.75rem; padding-inline: 1rem; border: 1px solid var(--gold-500); border-radius: 999px; background: var(--card); color: var(--accent-strong); font: 600 .9rem var(--font-body); }
  /* footer documents: a paper thumbnail that straightens on hover, opening a reading dialog */
  .docs { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
  .doc-btn { display: inline-flex; align-items: center; gap: .8rem; min-block-size: 2.75rem; padding: .45rem .5rem; padding-inline-end: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-align: start; cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out-quart); }
  .doc-btn:hover { border-color: var(--gold-500); }
  /* footer: the hotel's Facebook and Instagram pages, as two quiet boxes in the footer's own style */
  .social { list-style: none; padding: 0; margin-block-start: var(--space-s); display: flex; flex-wrap: wrap; gap: .5rem; }
  .site-footer .social a { display: inline-flex; align-items: center; gap: .55rem; min-block-size: 2.75rem; padding-inline: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font-weight: 600; text-decoration: none; transition: border-color var(--dur-micro) var(--ease-out-quart), color var(--dur-micro) var(--ease-out-quart); }
  .site-footer .social a:hover { border-color: var(--gold-500); color: var(--accent); }
  .social .i { inline-size: 1.15rem; block-size: 1.15rem; color: var(--accent); }
  .doc-btn > .i { inline-size: 1rem; block-size: 1rem; color: var(--accent); margin-inline-start: .25rem; }
  .doc-thumb { flex: none; inline-size: 2.5rem; aspect-ratio: 1852 / 2644; overflow: hidden; border-radius: 3px; background: #FBFAF7; box-shadow: 0 0 0 1px var(--gold-400), 0 6px 14px -8px rgb(14 12 9 / .5); transform: rotate(-4deg); transition: transform var(--dur-micro) var(--ease-out-quart); }
  .doc-btn:hover .doc-thumb, .doc-btn:focus-visible .doc-thumb { transform: rotate(0) translateY(-2px) scale(1.06); }
  .doc-thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; }
  .doc-txt { display: grid; gap: .1rem; line-height: 1.3; }
  .doc-txt b { font: 600 .95rem var(--font-body); color: var(--accent-strong); }
  .doc-txt small { color: var(--muted); font-size: .8rem; }
  /* the whole window scrolls, title bar and footer stay pinned: the page sits in normal flow, its height never
     depends on a flex calculation (iPhone Safari sized the old flex scroll box to 0 px — the window opened empty) */
  .doc-dlg { inline-size: min(100% - 1rem, 760px); max-inline-size: none; max-block-size: min(100svh - 1rem, 1100px); background: var(--card); padding: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .doc-dlg .dlg-head { position: sticky; inset-block-start: 0; z-index: 1; background: var(--card); }
  .doc-img { background: #FBFAF7; }
  .doc-img img { display: block; inline-size: 100%; block-size: auto; }
  .doc-foot { position: sticky; inset-block-end: 0; background: var(--card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .5rem 1.25rem; border-block-start: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
  .doc-foot a { display: inline-flex; align-items: center; gap: .4rem; min-block-size: 2.75rem; margin-inline-start: auto; color: var(--accent-strong); font-weight: 600; }
  @media (prefers-reduced-motion: reduce) { .doc-thumb, .doc-btn:hover .doc-thumb { transition: none; } }
  @media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

  /* breadcrumb */
  .crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; font-size: var(--fs-small); color: var(--muted); }
  .crumbs li + li::before { content: "›"; margin-inline-end: .4rem; color: var(--hair); }
  .crumbs a { color: var(--muted); }

  /* tabs (filters) */
  .tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
  .tabs button { min-block-size: 2.75rem; padding-inline: 1rem; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; color: var(--text-2); font-weight: 400; }
  .tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

  /* rail arrows */
  .arrows { display: none; gap: .4rem; }
  @media (min-width: 900px) and (pointer: fine) { .arrows { display: flex; } }
  .arrows button:disabled { opacity: .35; cursor: default; }

  /* status / empty */
  .tbd { color: var(--muted); font-style: normal; }
}

@layer pages {
  /* ---------- HOME: intro + cinematic hero (the film scrubbed by scroll) ---------- */
  html.is-loading { overflow: hidden; }
  .loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); }
  .loader::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(55% 42% at 50% 40%, rgb(238 173 37 / .14), transparent 72%); opacity: 0; transition: opacity 1.4s ease; }
  .loader.play::before { opacity: 1; }
  .loader-in { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; transition: opacity .5s var(--ease-out-expo), transform .8s var(--ease-out-expo); }
  /* the crest fills with gold from the bottom, then a gleam crosses it */
  .loader-crest { position: relative; inline-size: clamp(150px, 36vw, 214px); aspect-ratio: 400 / 318; filter: drop-shadow(0 10px 30px rgb(238 173 37 / .28)); } /* glow on the wrapper: on .lc-fill the clip would cut it into a box */
  .loader-crest img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
  .lc-base { filter: var(--crest-empty); opacity: var(--crest-empty-o); } /* no contrast(): it lights the transparent box in Chrome */
  .lc-fill { clip-path: inset(100% 0 0 0); }
  .loader.play .lc-fill { animation: lc-fill 1.5s cubic-bezier(.65, 0, .35, 1) .15s forwards; } /* on-screen change: ease-in-out */
  @keyframes lc-fill { to { clip-path: inset(0 0 0 0); } }
  .lc-shine { position: absolute; inset: 0; opacity: 0; pointer-events: none;
    -webkit-mask: url("img/logo-crest.webp") center / contain no-repeat; mask: url("img/logo-crest.webp") center / contain no-repeat;
    background: linear-gradient(105deg, transparent 38%, rgb(255 248 214 / .9) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat; }
  .loader.play .lc-shine { animation: lc-shine 1s cubic-bezier(.65, 0, .35, 1) 1.6s forwards; }
  @keyframes lc-shine { from { opacity: 1; background-position: 130% 0; } to { opacity: 1; background-position: -30% 0; } }
  .loader-stars { display: flex; gap: 10px; margin-block-start: 16px; }
  .loader-stars i { inline-size: 15px; aspect-ratio: 1; background: var(--gold-grad); opacity: 0; transform: scale(.4);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
  .loader.play .loader-stars i { animation: star .55s var(--ease-out-expo) forwards; animation-delay: calc(1.5s + var(--n, 0) * 90ms); }
  .loader-stars i:nth-child(2) { --n: 1; } .loader-stars i:nth-child(3) { --n: 2; } .loader-stars i:nth-child(4) { --n: 3; }
  @keyframes star { to { opacity: 1; transform: none; } }
  .loader-name { display: flex; direction: ltr; margin-block-start: 16px; font: 600 clamp(1.45rem, 5vw, 2.25rem)/1.1 var(--font-latin); letter-spacing: .26em; }
  .loader-name > * { display: inline-block; opacity: 0; transform: translateY(60%); filter: blur(6px); font-weight: 600;
    background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .loader-name .sp { inline-size: .4em; }
  .loader.play .loader-name > * { animation: letter .9s var(--ease-out-expo) forwards; animation-delay: calc(1.6s + var(--n, 0) * 45ms); }
  .loader-name > :nth-child(2) { --n: 1; } .loader-name > :nth-child(3) { --n: 2; } .loader-name > :nth-child(4) { --n: 3; } .loader-name > :nth-child(5) { --n: 4; }
  .loader-name > :nth-child(7) { --n: 6; } .loader-name > :nth-child(8) { --n: 7; } .loader-name > :nth-child(9) { --n: 8; } .loader-name > :nth-child(10) { --n: 9; }
  .loader-name > :nth-child(11) { --n: 10; } .loader-name > :nth-child(12) { --n: 11; }
  @keyframes letter { to { opacity: 1; transform: none; filter: none; } }
  .loader-ar { margin-block-start: 12px; font: 700 1.1rem var(--font-display); color: var(--text-2); letter-spacing: .02em; opacity: 0; }
  .loader.play .loader-ar { animation: fade .9s var(--ease-out-expo) 2.4s forwards; }
  @keyframes fade { to { opacity: 1; } }
  .loader-line { display: block; inline-size: 160px; block-size: 1px; margin-block-start: 24px; background: var(--line); overflow: hidden; }
  .loader-line i { display: block; block-size: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: right; }
  .loader.play .loader-line i { transform: scaleX(1); transition: transform 3.6s cubic-bezier(.65, 0, .35, 1); }
  .curtain { position: absolute; inset-inline: 0; block-size: 50.5%; background: var(--bg); z-index: 1; transition: transform 1.1s cubic-bezier(.77, 0, .18, 1) .15s; }
  .curtain-a { inset-block-start: 0; }
  .curtain-b { inset-block-end: 0; }
  .loader.open { background: transparent; pointer-events: none; }
  .loader.open::before { opacity: 0; transition-duration: .6s; }
  .loader.open .loader-in { opacity: 0; transform: scale(.94); }
  .loader.open .curtain-a { transform: translateY(-101%); }
  .loader.open .curtain-b { transform: translateY(101%); }
  @media (prefers-reduced-motion: reduce) { .loader { display: none; } }

  .home .site-header { position: fixed; inset-inline: 0; transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease; }
  .site-header.over-hero { background: transparent; border-color: transparent; color: #FFF; }
  .over-hero .brand, .over-hero .brand small, .over-hero .menu-btn { color: #FFF; border-color: rgb(255 255 255 / .55); }
  @media (min-width: 1100px) { .over-hero .nav a { color: #FFF; } .over-hero .nav a[aria-current="page"] { border-color: #FFF; } }
  .nav-open .site-header.over-hero { background: var(--bg); color: var(--text); }
  .nav-open .over-hero .brand, .nav-open .over-hero .brand small, .nav-open .over-hero .menu-btn { color: var(--text); }
  html.in-hero .bar { transform: translateY(110%); }
  .bar { transition: transform var(--dur-ui) var(--ease-out-quart); }

  .hero { position: relative; block-size: 340vh; background: var(--ink-900); }
  .hero.static { block-size: 100vh; block-size: 100svh; }
  .hero-pin { position: sticky; inset-block-start: 0; block-size: 100vh; block-size: 100svh; overflow: hidden; isolation: isolate; color: #FFF; }
  .hero-canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; background: var(--ink-900) url("video/frames/d/001.webp?hd2") center / cover;
    background-image: image-set(url("video/frames/d/001.avif?hd2") type("image/avif"), url("video/frames/d/001.webp?hd2") type("image/webp")); }
  .hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgb(20 10 8 / .55), transparent 26%, transparent 50%, rgb(20 10 8 / .82)); }
  .hero-veil::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 75% at 50% 52%, rgb(26 10 10 / .45), rgb(26 10 10 / .85)); opacity: var(--dim, 0); }
  .hero-start { position: absolute; z-index: 2; inset: auto 0 0; display: grid; justify-items: center; padding: 0 var(--gutter) clamp(30px, 7vh, 64px); text-align: center; text-shadow: 0 2px 24px rgb(0 0 0 / .45); }
  .hs-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--gold-300); }
  .hs-brand { margin-block: .4rem 1.4rem; font: 600 clamp(2rem, 7vw, 5.4rem)/1 var(--font-latin); letter-spacing: .22em; direction: ltr; white-space: nowrap; }
  .hero-start > * { transition: opacity 1s var(--ease-out-expo), transform 1.1s var(--ease-out-expo); }
  .hero-start > :nth-child(2) { transition-delay: .15s; } .hero-start > :nth-child(3) { transition-delay: .3s; }
  html:not(.loaded) .hero-start > * { opacity: 0; transform: translateY(18px); }
  .scroll-cue { display: grid; justify-items: center; gap: .6rem; font-size: .82rem; color: #F2E8DA; }
  .scroll-cue span { position: relative; inline-size: 26px; block-size: 42px; border: 1.5px solid rgb(255 255 255 / .7); border-radius: 14px; }
  .scroll-cue span::after { content: ""; position: absolute; inset-block-start: 8px; inset-inline-start: 50%; inline-size: 3px; block-size: 9px; margin-inline-start: -1.5px; border-radius: 2px; background: var(--gold-300); animation: cue 1.8s infinite; }
  @keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }
  .hero-end { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; padding: var(--header-h) var(--gutter) 40px; text-align: center; opacity: 0; visibility: hidden; text-shadow: 0 2px 30px rgb(0 0 0 / .5); }
  .hero-end > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
  .hero-end.on > * { opacity: 1; transform: none; }
  .hero-end.on > :nth-child(2) { transition-delay: .08s; } .hero-end.on > :nth-child(3) { transition-delay: .18s; }
  .hero-end.on > :nth-child(4) { transition-delay: .28s; } .hero-end.on > :nth-child(5) { transition-delay: .38s; }
  .he-kicker { font-size: .95rem; color: var(--gold-300); }
  .he-title { margin-block-start: .4rem; color: #FFF; font: 700 clamp(3rem, 8vw, 6.4rem)/1.12 var(--font-display); }
  .he-title span { display: block; margin-block-start: .5rem; font: 600 clamp(1rem, 1.8vw, 1.4rem)/1 var(--font-latin); letter-spacing: .55em; color: var(--gold-300); direction: ltr; }
  .he-lead { max-inline-size: 46ch; margin: 1.4rem auto 0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.9; color: #F4ECE2; }
  .he-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; text-shadow: none; }
  .he-tags li { display: inline-flex; align-items: center; gap: .5rem; min-block-size: 2.5rem; padding-inline: 1rem; border-radius: 999px; font-size: .9rem; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); }
  .he-tags .i { color: var(--gold-300); }
  .he-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-block-start: 1.9rem; text-shadow: none; }
  .hero-progress { position: absolute; z-index: 3; inset: auto 0 0; block-size: 2px; background: rgb(255 255 255 / .12); }
  .hero-progress i { display: block; block-size: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: scaleX(0); transform-origin: right; }
  @media (max-aspect-ratio: 4/5) { .hero-canvas { background-image: url("video/frames/m/001.webp?hd2"); background-image: image-set(url("video/frames/m/001.avif?hd2") type("image/avif"), url("video/frames/m/001.webp?hd2") type("image/webp")); } }
  /* alive: a slow camera breath on the film (compositor only — a transform on one layer, no repaint); it rests,
     frozen where it is, once the visitor has left the film */
  @media (prefers-reduced-motion: no-preference) {
    .hero-canvas { animation: hero-breathe 16s ease-in-out infinite alternate; }
    :root:not(.in-hero) .hero-canvas { animation-play-state: paused; }
  }
  @keyframes hero-breathe { to { transform: scale(1.045); } }
  @media (max-width: 760px) {
    .hero { block-size: 290vh; }
    .hs-brand { font-size: clamp(1.7rem, 8.6vw, 2.4rem); letter-spacing: .14em; margin-block-end: 1.1rem; }
    .hero-start { padding-block-end: 34px; }
    .he-title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
    .he-title span { letter-spacing: .4em; }
  }
  .he-title span[lang="ar"] { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 "El Messiri", var(--font-display); letter-spacing: 0; direction: rtl; }
  @media (max-width: 760px) {
    .he-lead { font-size: 1rem; }
    .he-tags li { min-block-size: 2.25rem; padding-inline: .75rem; font-size: .82rem; background: rgb(0 0 0 / .3); }
    .he-ctas { inline-size: 100%; }
    .he-ctas .btn { flex: 1 1 140px; }
  }
  @media (prefers-reduced-motion: reduce) { .scroll-cue span::after { animation: none; } .hero-start > *, .hero-end > * { transition: none; } }

  /* rooms block extras */
  .stat { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--muted); }
  .stat b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); }

  /* location */
  .loc { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-m); align-items: center; }
  @media (max-width: 860px) { .loc { grid-template-columns: 1fr; } }

  /* ---------- ROOMS page ---------- */
  .compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-soft); }
  .compare table { inline-size: 100%; min-inline-size: 640px; font-size: .95rem; }
  .compare th, .compare td { padding: .8rem 1rem; text-align: start; border-block-end: 1px solid var(--line); white-space: nowrap; }
  .compare thead th { background: var(--bg-2); font-weight: 600; }
  .compare tbody th { position: sticky; inset-inline-start: 0; background: var(--card); font-weight: 600; box-shadow: -1px 0 0 var(--line) inset; }
  .compare a { color: var(--accent); }

  /* ---------- ROOM page ---------- */
  .room-top { display: grid; gap: var(--space-s); }
  .gal-main { --r: 4 / 5; display: block; inline-size: 100%; border-radius: var(--arch); }
  @media (min-width: 900px) { .gal-main { --r: 4 / 3; } .gal-main img { object-position: 50% 62%; } } /* room photos are 3:4 portraits */
  .thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 6.5rem; gap: .5rem; overflow-x: auto; padding-block: .25rem; scrollbar-width: thin; }
  .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; }
  .thumbs button[aria-current="true"] { border-color: var(--gold-500); }
  .thumbs .slot { --r: 3 / 4; }
  .thumbs .ph span { display: none; }
  .room-layout { display: grid; grid-template-columns: 1fr 22rem; gap: var(--space-m); align-items: start; }
  .side { position: sticky; inset-block-start: calc(var(--header-h) + 1rem); padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-soft); }
  .side .price { font-size: 1.35rem; }
  .side .btn { inline-size: 100%; margin-block-start: .8rem; }
  @media (max-width: 899px) { .room-layout { grid-template-columns: 1fr; } .side { display: none; } }
  .spec-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border-block: 1px solid var(--line); }
  .spec-row div { padding: 1rem .25rem; display: grid; gap: .2rem; }
  .spec-row small { color: var(--muted); font-size: var(--fs-small); }
  .spec-row b { font-weight: 600; }
  .amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem 1.25rem; list-style: none; padding: 0; }
  .amen li { display: flex; align-items: center; gap: .6rem; }
  .amen .i { color: var(--accent); }
  .proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--space-s); }
  .proof .slot { border-radius: var(--radius-soft); --r: 3 / 4; }
  .policies { display: grid; gap: .6rem; list-style: none; padding: 0; }
  /* check-in / check-out: two cards, the time large in the display face (icon + label, never colour alone) */
  .stay-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); max-inline-size: 34rem; margin: 0; }
  .stay-times > div { position: relative; padding: 1rem 1.15rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-soft); background: var(--card); overflow: hidden; }
  .stay-times > div::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 2px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }
  .stay-times dt { display: flex; align-items: center; gap: .5rem; color: var(--accent-strong); font-weight: 600; white-space: nowrap; }
  @media (max-width: 400px) { .stay-times { gap: .6rem; } .stay-times > div { padding-inline: .85rem; } .stay-times dt { gap: .35rem; font-size: .95rem; } }
  .stay-times dt .i { color: var(--hair); }
  .stay-times dd { display: grid; gap: .15rem; margin: .45rem 0 0; }
  .stay-times small { color: var(--muted); font-size: .82rem; }
  .stay-times b { font: 600 clamp(1.7rem, 6vw, 2.3rem)/1.1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; color: var(--text); white-space: nowrap; }
  .policies li { display: flex; gap: .6rem; }
  .policies .i { color: var(--hair); margin-block-start: .25rem; }
  .room-bar { display: none; }
  @media (max-width: 899px) { .room-bar { display: flex; } .bar.site-bar.has-room { display: none; } }
  @supports (view-transition-name: a) { .vt-img { view-transition-name: var(--vt); } }

  /* ---------- VENUES ---------- */
  .zone { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-m); align-items: center; }
  .zone:nth-of-type(even) .zone-media { order: 2; }
  .zone-media { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; }
  .zone-media .slot:first-child { grid-row: span 2; border-radius: var(--arch); --r: auto; min-block-size: 100%; }
  .zone-media .slot { border-radius: var(--radius-soft); }
  .zone-media:has(> .slot:only-child) { grid-template-columns: 1fr; } .zone-media > .slot:only-child { --r: 4 / 3; min-block-size: 0; } /* one photo: full width */
  /* 360° square (3rd photo): a badge until pressed, then the full-width viewer */
  .pano-tile { aspect-ratio: var(--r, 3 / 2); max-block-size: none; }
  .pano-tile > picture { position: absolute; inset: 0; }
  .pano-tile .pano-start { inset: 0; transform: none; display: grid; place-content: center; justify-items: center; gap: .2rem; inline-size: 100%; border: 0; border-radius: inherit;
    background: radial-gradient(circle, rgb(14 11 9 / .55), rgb(14 11 9 / .25)); color: #FFF; font: 700 1.35rem/1 var(--font-latin); letter-spacing: .06em; cursor: pointer; transition: background-color var(--dur-ui) ease; }
  .pano-tile .pano-start .i { inline-size: 1.8rem; block-size: 1.8rem; color: var(--gold-300); }
  @media (hover: hover) and (pointer: fine) { .pano-tile .pano-start:hover { background-color: rgb(14 11 9 / .2); } }
  .pano-tile.live { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .pano-tile.live > picture, .pano-tile.live .pano-start { display: none; }
  @media (max-width: 760px) { .pano-tile.live { aspect-ratio: 4 / 5; } }
  .facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-block: 1rem; }
  .facts li { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); }
  @media (max-width: 860px) { .zone { grid-template-columns: 1fr; } .zone:nth-of-type(even) .zone-media { order: 0; } }

  /* ---------- RESTAURANT ---------- */
  .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
  .marquee ul { display: flex; gap: var(--space-s); inline-size: max-content; list-style: none; padding: 0; margin: 0; animation: marquee var(--dur-marquee) linear infinite; }
  .marquee li { inline-size: 220px; }
  .marquee .slot { --r: 4 / 5; border-radius: var(--arch); }
  .marquee:hover ul, .marquee:focus-within ul { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; flex-wrap: wrap; inline-size: auto; } .marquee li:nth-child(n + 9) { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; } } /* the 2nd copy only exists for the loop */
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: var(--space-s); overflow-x: auto; scroll-snap-type: inline mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; padding-block-end: 1rem; }
  .rail::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: start; padding: 0; border: 0; background: none; border-radius: var(--radius-soft); overflow: hidden; cursor: zoom-in; }
  .shot .slot { --r: 4 / 5; display: block; }
  .shot img { transition: transform var(--dur-panel) var(--ease-out-quart); }
  @media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.04); } }
  @media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }
  .dish { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-soft); overflow: hidden; }
  .dish .slot { --r: 4 / 3; }
  .dish div { padding: 1rem; }
  .menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-m); }
  .menu h2 { font-size: var(--fs-h3); padding-block-end: .5rem; border-block-end: 1px solid var(--hair); margin-block-end: .75rem; }
  .menu ul { list-style: none; padding: 0; display: grid; gap: .8rem; }
  .menu li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; }
  .menu li small { grid-column: 1 / -1; color: var(--muted); }

  /* ---------- GALLERY ---------- */
  .gallery { columns: 3 16rem; column-gap: var(--space-s); }
  .gallery button { display: block; inline-size: 100%; margin-block-end: var(--space-s); padding: 0; border: 0; background: none; break-inside: avoid; cursor: zoom-in; text-align: start; }
  .gallery .slot { border-radius: var(--radius-soft); }
  .resto-grid { columns: 2; } /* phones: two columns so the whole restaurant shows at a glance */
  @media (min-width: 900px) { .resto-grid { columns: 3; } }
  .resto-grid img { transition: transform var(--dur-panel) var(--ease-out-quart); }
  @media (hover: hover) and (pointer: fine) { .resto-grid button:hover img { transform: scale(1.04); } }
  @media (prefers-reduced-motion: reduce) { .resto-grid img { transition: none; } .resto-grid button:hover img { transform: none; } }
  .gallery button > span:last-child { display: block; padding-block: .4rem; font-size: var(--fs-small); color: var(--muted); }

  /* ---------- CONTACT ---------- */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); }
  @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
  .faq details { border-block-end: 1px solid var(--line); padding-block: .9rem; }
  .faq summary { cursor: pointer; font-weight: 600; min-block-size: 2.75rem; display: flex; align-items: center; }
  .faq p { color: var(--text-2); margin-block-start: .4rem; }

  /* ---------- Space reserved for JSON-rendered blocks until they arrive (no layout shift) ---------- */
  #home-rooms:not(:has(.card)), #all-rooms:not(:has(.card)) { min-block-size: 34rem; }
  @media (min-width: 900px) { #all-rooms:not(:has(.card)) { min-block-size: 69rem; } }
  #strip:not(:has(button)) { min-block-size: 25rem; }
  #zones:not(:has(.zone)) { min-block-size: 112rem; }
  #rail:not(:has(button)) { min-block-size: 40rem; }
  #menu:not(:has(section)) { min-block-size: 17.5rem; }
  #gallery-grid:not(:has(button)) { min-block-size: 130rem; }
  #gallery-tabs:empty, #rail-tabs:empty { min-block-size: 2.75rem; }
  #compare:empty { block-size: 22rem; }
  #marquee ul:empty { min-block-size: 275px; }
  #room .thumbs:empty { min-block-size: 9.2rem; }
  #room [data-r="line"] { min-block-size: 3.5em; } /* two lines: the font swap cannot move what follows */
  #room [data-r="price"]:empty, #room [data-r="breakfast"]:empty { min-block-size: 1.75em; }

  /* ---------- «لحظات» — full-bleed photo film (js/showcase.js) ---------- */
  .cine { --slide: 4.8s; position: relative; isolation: isolate; overflow: hidden; background: var(--ink-900); color: #FFF;
    block-size: min(92svh, 900px); min-block-size: 34rem; }
  @media (max-width: 760px) { .cine { block-size: 100svh; } } /* the whole phone screen */
  .cine-stage, .cine-slide { position: absolute; inset: 0; }
  .cine-stage { touch-action: pan-y; cursor: grab; }
  .cine-slide { margin: 0; opacity: 0; transition: opacity 1.1s var(--ease-in-out-cubic); }
  .cine-slide.on { opacity: 1; z-index: 1; }
  .cine-slide picture, .cine-slide img { display: block; inline-size: 100%; block-size: 100%; }
  .cine-slide img { object-fit: cover; transform: scale(1.12); }
  .cine-slide:is(.on, .was) img { will-change: transform; } /* only the 2 moving slides get a GPU layer (not 20+ full-screen layers) */
  .cine-slide:is(.on, .was) img { animation: cine-kb calc(var(--slide) + 1.1s) linear both; } /* .was keeps moving while it fades out */
  @keyframes cine-kb { from { transform: scale(1.14) translate3d(var(--dx), 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
  .cine-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgb(14 11 9 / .92) 0%, rgb(14 11 9 / .66) 34%, rgb(14 11 9 / .2) 62%, transparent 78%), linear-gradient(to bottom, rgb(14 11 9 / .45), transparent 22%); }
  @media (min-width: 900px) { .cine-shade { background: linear-gradient(to left, rgb(14 11 9 / .74) 0%, rgb(14 11 9 / .4) 34%, transparent 62%), linear-gradient(to top, rgb(14 11 9 / .85) 0%, rgb(14 11 9 / .3) 40%, transparent 70%); } } /* text sits on the right (RTL) */
  .cine-ui { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem;
    padding-block: 0 calc(var(--space-m) + env(safe-area-inset-bottom)); }
  @media (max-width: 899px) { .cine-ui { padding-block-end: calc(var(--bar-h) + 1.25rem + env(safe-area-inset-bottom)); } } /* clear the booking bar */
  .cine-ui > * { text-shadow: 0 1px 12px rgb(14 11 9 / .35); }
  .cine-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .cine h2 { color: #EED9AE; font: 600 var(--fs-small)/1.4 var(--font-body); letter-spacing: .02em; display: inline-flex; align-items: center; gap: .75rem; }
  .cine h2::before { content: ""; inline-size: 2rem; block-size: 1px; background: var(--gold-300); }
  .cine-count { font: 600 1rem/1 var(--font-latin); letter-spacing: .2em; color: rgb(255 255 255 / .75); direction: ltr; }
  .cine-chap { font: 700 clamp(2.5rem, 9vw, 5.5rem)/1.1 var(--font-display); color: #FFF; text-wrap: balance; }
  .cine-line { max-inline-size: 36ch; color: rgb(255 255 255 / .86); font-size: clamp(1rem, 1.4vw, 1.2rem); }
  .cine-chap.in, .cine-line.in { animation: cine-up 900ms var(--ease-out-expo) both; }
  .cine-line.in { animation-delay: 90ms; }
  @keyframes cine-up { from { opacity: 0; transform: translateY(16px); } }
  .cine-link { color: #FFF; text-decoration-color: var(--gold-300); justify-self: start; }
  .cine-bars { display: flex; gap: 5px; }
  .cine-bars i { flex: 1; block-size: 2px; background: rgb(255 255 255 / .28); overflow: hidden; border-radius: 2px; }
  .cine-bars b { display: block; block-size: 100%; background: var(--gold-300); transform: scaleX(0); transform-origin: right; }
  .cine-bars .done b { transform: none; }
  .cine-bars .now b { animation: cine-fill var(--slide) linear forwards; } /* linear: it is a clock */
  @keyframes cine-fill { to { transform: none; } }
  .cine.paused :is(.cine-slide img, .cine-bars b) { animation-play-state: paused; }
  .cine-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
  .cine-tabs { display: flex; gap: .4rem; flex: 1; min-inline-size: 0; overflow-x: auto; scrollbar-width: none; }
  .cine-tabs::-webkit-scrollbar { display: none; }
  .cine-tabs button { flex: none; min-block-size: 2.75rem; padding-inline: 1rem; border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; background: rgb(14 11 9 / .5); color: #FFF; font: 600 .92rem var(--font-body); transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease; }
  .cine-tabs [aria-pressed="true"] { background: var(--gold-300); border-color: var(--gold-300); color: var(--ink-900); }
  .cine-ctrl { display: flex; gap: .4rem; flex: none; }
  .cine-ctrl button { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: rgb(14 11 9 / .5); color: #FFF; transition: transform var(--dur-micro) var(--ease-out-quart); }
  .cine-ctrl button:active, .cine-tabs button:active { transform: scale(.96); }
  @media (hover: hover) and (pointer: fine) { .cine-tabs button:hover, .cine-ctrl button:hover { border-color: var(--gold-300); } }
  @media (prefers-reduced-motion: reduce) {
    .cine-slide { transition: none; }
    .cine-slide img, .cine-slide:is(.on, .was) img { animation: none; transform: none; }
    .cine-chap.in, .cine-line.in { animation: none; }
    .cine-bars .now b { animation: none; transform: none; }
  }

  /* ---------- 404 ---------- */
  .lost { min-block-size: 70svh; display: grid; place-content: center; text-align: center; gap: 1rem; }
  .lost .arch-big { inline-size: 9rem; block-size: 11rem; margin-inline: auto; border: 1px solid var(--hair); border-radius: var(--arch); display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); }
}

@layer utilities {
  .sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mt-m { margin-block-start: var(--space-m); }
  .mt-s { margin-block-start: var(--space-s); }
  .center { text-align: center; }
}

/* Cross-document view transitions: pages cross-fade; the room photo flies to room.html */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-panel); animation-timing-function: var(--ease-out-quart); }
  ::view-transition-group(*) { animation-duration: var(--dur-panel); animation-timing-function: var(--ease-in-out-cubic); }
}

/* ---------- Language switch (ع | FR) + French (left-to-right) ---------- */
@layer components {
  .lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font: 600 .85rem/1 var(--font-body); }
  .lang > * { display: grid; place-items: center; min-inline-size: 2.75rem; min-block-size: 2.75rem; padding-inline: .7rem; text-decoration: none; color: var(--text); transition: background-color var(--dur-ui) ease; }
  .lang [aria-current] { background: var(--gold-grad); color: var(--ink-950); }
  .lang [lang="ar"] { font-family: var(--font-display); font-size: 1.05rem; }
  @media (hover: hover) and (pointer: fine) { .lang a:hover { background: var(--bg-2); } }
  .over-hero .lang { border-color: rgb(255 255 255 / .55); }
  .over-hero .lang a { color: #FFF; }
  .nav-open .over-hero .lang a { color: var(--text); }
}
@layer pages {
  :root:is([lang="fr"], [lang="en"]) { --font-display: "Cormorant Garamond", Georgia, serif; }
  :root:is([lang="fr"], [lang="en"]) :is(h1, h2, h3) { letter-spacing: .005em; line-height: 1.15; }
  :root:is([lang="fr"], [lang="en"]) .brand b { text-align: start; }
  /* directional icons point the other way */
  [dir="ltr"] svg:has(> use[href$="#arrow-left"], > use[href$="#arrow-right"], > use[href$="#chevron-left"], > use[href$="#chevron-right"]) { transform: scaleX(-1); }
  /* bars fill from the reading start */
  [dir="ltr"] :is(.loader-line i, .hero-progress i, .cine-bars b) { transform-origin: left; }
  [dir="ltr"] .pano:not(.pano-tile) .pano-start { transform: translate(-50%, -50%); }
  [dir="ltr"] .marquee ul { animation-name: marquee-ltr; }
  @keyframes marquee-ltr { to { transform: translateX(-50%); } }
  @media (min-width: 900px) { [dir="ltr"] .cine-shade { background: linear-gradient(to right, rgb(14 11 9 / .74) 0%, rgb(14 11 9 / .4) 34%, transparent 62%), linear-gradient(to top, rgb(14 11 9 / .85) 0%, rgb(14 11 9 / .3) 40%, transparent 70%); } }
}
@layer components {
  .brand b { white-space: nowrap; }
  @media (max-width: 440px) { .brand { gap: .5rem; } .brand b { letter-spacing: .08em; font-size: .98rem; } .brand small { display: none; } .brand img { block-size: 2.3rem; } } /* room for the language switch */
}
@layer components {
  .brand b { font-family: var(--font-latin); font-weight: 600; letter-spacing: .16em; font-size: 1.12rem; } /* the logo's serif, in both languages */
  .brand { min-inline-size: 0; }
  @media (max-width: 440px) { .brand b { letter-spacing: .1em; font-size: 1.02rem; } .lang > * { min-inline-size: 2.6rem; padding-inline: .55rem; } }
}

/* ---------- Business block (home): ivory + gold, facts only ---------- */
@layer pages {
  .biz { padding-block: var(--space-l); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); text-align: center; }
  .biz-head { display: grid; justify-items: center; }
  .biz-lead { max-inline-size: 48ch; margin-block-start: .75rem; color: var(--text-2); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
  .biz-stats { list-style: none; padding: 0; margin-block: var(--space-m) 0; display: grid; grid-template-columns: 1fr; }
  .biz-stats li { padding: 1.6rem 1rem; display: grid; justify-items: center; gap: .35rem; }
  .biz-stats li + li { border-block-start: 1px solid; border-image: linear-gradient(90deg, transparent, var(--gold-400), transparent) 1; }
  @media (min-width: 760px) {
    .biz-stats { grid-template-columns: repeat(3, 1fr); }
    .biz-stats li + li { border-block-start: 0; border-inline-start: 1px solid; border-image: linear-gradient(180deg, transparent, var(--gold-400), transparent) 1; }
  }
  .biz-n { font: 600 clamp(2.6rem, 6vw, 3.6rem)/1 var(--font-latin); letter-spacing: .02em;
    background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .biz-n small { font-size: .38em; letter-spacing: .14em; margin-inline-start: .3em; text-transform: uppercase; }
  .biz-stats h3 { font-size: 1.15rem; color: var(--text); }
  .biz-stats p { max-inline-size: 26ch; color: var(--muted); font-size: .95rem; line-height: 1.6; }
  .biz-perks { list-style: none; padding: 0; margin-block: var(--space-s) 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
  .biz-perks li { display: flex; align-items: center; gap: .65rem; padding: .75rem 1.1rem; background: var(--card); border: 1px solid color-mix(in srgb, var(--gold-500) 30%, transparent); border-radius: 999px; text-align: start; font-size: .95rem; color: var(--text-2); box-shadow: 0 6px 18px -14px rgb(122 79 6 / .45); }
  @media (max-width: 600px) { .biz-perks li { inline-size: 100%; border-radius: 14px; } }
  .biz-perks b { color: var(--text); font-weight: 600; }
  .biz-perks .i { color: var(--gold-500); }
  .biz-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-block-start: var(--space-m); }
}

/* ---------- Night mode switch (moon ↔ sun) + the crossfade ---------- */
@layer components {
  .theme-btn { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: transform var(--dur-micro) var(--ease-out-quart); }
  .theme-btn:active { transform: scale(.94); }
  .theme-btn .i { inline-size: 1.15rem; block-size: 1.15rem; }
  .theme-btn .i-sun { display: none; }
  :root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
  @media (hover: hover) and (pointer: fine) { .theme-btn:hover { border-color: var(--hair); color: var(--accent); } }
  .over-hero .theme-btn { color: #FFF; border-color: rgb(255 255 255 / .55); }
  .nav-open .over-hero .theme-btn { color: var(--text); border-color: var(--line); }
  @media (max-width: 440px) { .header-cta { gap: .35rem; } .theme-btn { inline-size: 2.6rem; block-size: 2.6rem; } }
}
/* the switch is one GPU crossfade of the whole page (View Transitions), not hundreds of colour transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
@layer components {
  /* phones: the three languages fold into one globe button (brand + language + night + menu fit on 320 px);
     the menu shows the full names, so nobody has to guess what «FR» or «EN» means */
  .lang-m { display: none; position: relative; }
  .lang-m summary { display: grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer; list-style: none; transition: transform var(--dur-micro) var(--ease-out-quart); }
  .lang-m summary::-webkit-details-marker { display: none; }
  .lang-m summary:active { transform: scale(.94); }
  .lang-m summary .i { inline-size: 1.15rem; block-size: 1.15rem; }
  .lang-m[open] summary { border-color: var(--hair); color: var(--accent); }
  .over-hero .lang-m summary { color: #FFF; border-color: rgb(255 255 255 / .55); }
  .nav-open .over-hero .lang-m summary { color: var(--text); border-color: var(--line); }
  .lang-menu { position: absolute; inset-block-start: calc(100% + .5rem); inset-inline-end: -3rem; z-index: 60; min-inline-size: 11rem; padding: .35rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 18px 40px -18px rgb(14 12 9 / .45); transform-origin: top; animation: lang-in .18s var(--ease-out-quart); }
  .lang-menu > * { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-block-size: 2.9rem; padding-inline: .9rem; border-radius: 10px; color: var(--text); text-decoration: none; font: 600 1rem/1.2 var(--font-body); }
  .lang-menu [lang="ar"] { font-family: var(--font-display); font-size: 1.1rem; }
  .lang-menu [aria-current] { color: var(--accent); background: var(--bg-2); }
  .lang-menu [aria-current] .i { inline-size: 1rem; block-size: 1rem; }
  .lang-menu a:active { background: var(--bg-2); }
  @keyframes lang-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
  @media (prefers-reduced-motion: reduce) { .lang-menu { animation: none; } }
  /* the globe replaces the three-label pill wherever the pill would touch the hotel name (measured, ar/fr/en):
     phones and large phones up to 640 px, and 1100–1279 px where the desktop links share the bar */
  @media (max-width: 640px), (min-width: 1100px) and (max-width: 1279px) { .lang { display: none; } .lang-m { display: block; } }
}
@layer components {
  @media (max-width: 400px) { /* iPhone SE, small Android */
    .site-header .wrap { gap: .4rem; }
    .brand { gap: .35rem; } .brand img { block-size: 2rem; } .brand b { font-size: .9rem; letter-spacing: .07em; }
    .header-cta { gap: .25rem; }
    .theme-btn, .lang-m summary, .menu-btn { inline-size: 2.5rem; block-size: 2.5rem; min-inline-size: 2.5rem; }
  }
  @media (max-width: 360px) { /* 320–360 px: the brand name keeps its full length, a little tighter */
    .site-header .wrap { gap: .3rem; }
    .brand b { font-size: .84rem; letter-spacing: .045em; }
  }
}
