/* =====================================================================
   Darna Collection — guest guide
   ===================================================================== */

:root {
  /* Layout: a fixed cinematic stage (the Casablanca film) sits under the page;
     the menu rises over it as glass tiles; each section opens as a full-height
     lime-white sheet, like a page from a hotel book. */

  /* Stage: always dark, it frames the film */
  --stage: #091215;
  --on-stage: #EEEAE1;
  --on-stage-dim: rgba(238, 234, 225, .68);
  --stage-line: rgba(238, 234, 225, .17);
  --glass: rgba(9, 18, 21, .42);
  --glass-strong: rgba(9, 18, 21, .72);
  --brass: #C9AB78;
  --on-brass: #10191A;

  /* Sheets: Casablanca, "the white house": lime-washed white and Atlantic ink */
  --paper: #F7F6F2;
  --paper-2: #EDEBE4;
  --paper-glass: rgba(247, 246, 242, .88);
  --ink: #13211F;
  --ink-dim: #56615E;
  --rule: rgba(19, 33, 31, .13);
  --atlantic: #1D4C49;
  --gilt: #7E6230;
  --sheet-scheme: light;

  /* Home menu, top bar and dock (light values; dark below). The first screen,
     over the film, stays dark in both themes. */
  --menu-bg: #F7F6F2;
  --menu-ink: #13211F;
  --menu-ink-dim: #56615E;
  --menu-line: rgba(19, 33, 31, .14);
  --menu-accent: #7E6230;
  --veil-max: .97;
  --tile-home-bg: #FFFFFF;
  --tile-home-shadow: 0 1px 2px rgba(19, 33, 31, .06), 0 14px 30px -18px rgba(19, 33, 31, .38);
  --city-shadow: 0 14px 30px -18px rgba(19, 33, 31, .5);
  --bar-solid: rgba(247, 246, 242, .84);
  --bar-ink: #13211F;
  --bar-ink-dim: #56615E;
  --bar-line: rgba(19, 33, 31, .12);
  --dock-bg: rgba(255, 255, 255, .95);
  --dock-bg-solid: rgba(255, 255, 255, .96);
  --dock-ink: #13211F;
  --dock-line: rgba(19, 33, 31, .1);
  --dock-hover: rgba(19, 33, 31, .06);
  --dock-shadow: 0 16px 36px -18px rgba(19, 33, 31, .45);
  color-scheme: light;

  /* Type: one modern geometric sans (Outfit) in light weights for the voice and
     the text; Tajawal, its Arabic counterpart, on the Arabic page */
  --f-latin: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-arabic: "Tajawal", "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
  --f-brand: var(--f-latin);
  --f-display: var(--f-latin);
  --f-sans: var(--f-latin);
  --track: .26em;

  --ease: cubic-bezier(.16, .84, .24, 1);
  /* Fixed colours of the light apartment buttons (they always sit on the dark stage) */
  --ivory: #F4F0E8;
  --ink-fixed: #13211F;

  /* Cards on the sheets */
  --card: #FFFFFF;
  --chip: rgba(19, 33, 31, .06);
  --shadow-card: 0 1px 2px rgba(19, 33, 31, .06), 0 10px 28px -14px rgba(19, 33, 31, .22);
  --shadow-soft: 0 1px 2px rgba(19, 33, 31, .05), 0 6px 18px -12px rgba(19, 33, 31, .2);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --bar-h: 60px;

  /* Each section has its own colour (--tint, set inline on the element) */
  --tint: #1D4C49;
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Crect x='14' y='14' width='20' height='20'/%3E%3Crect x='14' y='14' width='20' height='20' transform='rotate(45 24 24)'/%3E%3Cpath d='M0 0l9.9 9.9M48 0l-9.9 9.9M0 48l9.9-9.9M48 48l-9.9-9.9M24 0v9.9M24 48v-9.9M0 24h9.9M48 24h-9.9'/%3E%3C/g%3E%3C/svg%3E");

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --dock-space: calc(104px + env(safe-area-inset-bottom, 0px));
  --p: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1617;
    --paper-2: #142022;
    --paper-glass: rgba(13, 22, 23, .88);
    --ink: #ECE8DF;
    --ink-dim: #9CA6A2;
    --rule: rgba(236, 232, 223, .13);
    --atlantic: #8CC3BB;
    --gilt: #CDAF7C;
    --card: #162325;
    --chip: rgba(236, 232, 223, .08);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 28px -16px rgba(0, 0, 0, .7);
    --shadow-soft: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 18px -12px rgba(0, 0, 0, .6);
    --sheet-scheme: dark;
    --menu-bg: #091215;
    --menu-ink: #EEEAE1;
    --menu-ink-dim: rgba(238, 234, 225, .68);
    --menu-line: rgba(238, 234, 225, .17);
    --menu-accent: #C9AB78;
    --veil-max: .6;
    --tile-home-bg: #F4F0E8;
    --tile-home-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 36px -22px rgba(0, 0, 0, .75);
    --city-shadow: 0 18px 36px -22px rgba(0, 0, 0, .8);
    --bar-solid: rgba(9, 18, 21, .58);
    --bar-ink: #EEEAE1;
    --bar-ink-dim: rgba(238, 234, 225, .68);
    --bar-line: rgba(238, 234, 225, .17);
    --dock-bg: rgba(9, 18, 21, .7);
    --dock-bg-solid: rgba(9, 18, 21, .92);
    --dock-ink: #EEEAE1;
    --dock-line: rgba(238, 234, 225, .17);
    --dock-hover: rgba(238, 234, 225, .08);
    --dock-shadow: 0 20px 44px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0D1617;
  --paper-2: #142022;
  --paper-glass: rgba(13, 22, 23, .88);
  --ink: #ECE8DF;
  --ink-dim: #9CA6A2;
  --rule: rgba(236, 232, 223, .13);
  --atlantic: #8CC3BB;
  --gilt: #CDAF7C;
  --card: #162325;
  --chip: rgba(236, 232, 223, .08);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 28px -16px rgba(0, 0, 0, .7);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 18px -12px rgba(0, 0, 0, .6);
  --sheet-scheme: dark;
  --menu-bg: #091215;
  --menu-ink: #EEEAE1;
  --menu-ink-dim: rgba(238, 234, 225, .68);
  --menu-line: rgba(238, 234, 225, .17);
  --menu-accent: #C9AB78;
  --veil-max: .6;
  --tile-home-bg: #F4F0E8;
  --tile-home-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 36px -22px rgba(0, 0, 0, .75);
  --city-shadow: 0 18px 36px -22px rgba(0, 0, 0, .8);
  --bar-solid: rgba(9, 18, 21, .58);
  --bar-ink: #EEEAE1;
  --bar-ink-dim: rgba(238, 234, 225, .68);
  --bar-line: rgba(238, 234, 225, .17);
  --dock-bg: rgba(9, 18, 21, .7);
  --dock-bg-solid: rgba(9, 18, 21, .92);
  --dock-ink: #EEEAE1;
  --dock-line: rgba(238, 234, 225, .17);
  --dock-hover: rgba(238, 234, 225, .08);
  --dock-shadow: 0 20px 44px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

:root[lang="ar"] {
  --f-display: var(--f-arabic);
  --f-sans: var(--f-arabic);
  --track: 0;
}

/* Section colour used for text and icons on the pages: the colour itself on light
   paper, a lighter version of it on dark paper (declared per element so it follows --tint) */
.sheet *, .modal * { --tint-ink: var(--tint); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sheet *, :root:not([data-theme="light"]) .modal * { --tint-ink: color-mix(in srgb, var(--tint) 45%, #fff); }
}
:root[data-theme="dark"] .sheet *, :root[data-theme="dark"] .modal * { --tint-ink: color-mix(in srgb, var(--tint) 45%, #fff); }

/* The coloured fill is declared where it is used, so it picks up that element's --tint */
.tile--city, .band, .art, .hostcard {
  --tint-fill: linear-gradient(150deg, color-mix(in srgb, var(--tint) 82%, #fff) 0%, var(--tint) 48%, color-mix(in srgb, var(--tint) 72%, #000) 100%);
}

/* ---------- base ---------- */

.no-js .hero__times, .no-js .theme-btn, .no-js .dock, .no-js .scroll-cue, .no-js .chooser { display: none; }

.nojs-note {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--tile-home-bg);
  color: var(--ink-fixed);
  font-size: 15px;
  line-height: 1.6;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--menu-bg);
  color: var(--on-stage);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

.ico { width: 1em; height: 1em; display: block; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 3px; }
.sheet :focus-visible { outline-color: var(--atlantic); }

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

:root[lang="ar"] .eyebrow { font-size: 13px; }

/* ---------- stage: the film ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--stage);
}

.stage__media {
  position: absolute;
  inset: 0;
  transform: scale(calc(1.02 + var(--p) * .1));
  transform-origin: 50% 62%;
  will-change: transform;
}

.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.stage.has-poster .stage__poster,
.stage.has-video .stage__video { opacity: 1; }
.stage.has-poster .scene,
.stage.has-video .scene { opacity: 0; transition: opacity 1.2s ease; }

.stage__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 18, 21, .62) 0%, rgba(9, 18, 21, .08) 24%, rgba(9, 18, 21, .16) 50%, rgba(9, 18, 21, .72) 78%, rgba(9, 18, 21, .9) 100%);
}

.stage__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--menu-bg);
  opacity: calc(var(--p) * var(--veil-max));
}

.stage__grain {
  position: absolute;
  inset: 0;
  opacity: .09;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Stand-in scene until the film is added: dusk over the Atlantic, the minaret */

.scene {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #061013 0%, #0B1C21 28%, #183034 48%, #3F4640 58%, #8B6A4D 65.2%, #A57A55 66%);
}

.scene__glow {
  position: absolute;
  left: 30%;
  top: 66%;
  width: 150vmax;
  height: 56vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(236, 172, 104, .5), rgba(196, 122, 80, .2) 42%, transparent 72%);
  animation: breathe 10s ease-in-out infinite alternate;
}

.scene__sun {
  position: absolute;
  left: 30%;
  top: 66%;
  width: 11vmin;
  height: 11vmin;
  border-radius: 50%;
  transform: translate(-50%, -38%);
  background: radial-gradient(circle, #F7DDB0 0%, #EBB179 52%, rgba(235, 177, 121, 0) 71%);
}

.scene__sea {
  position: absolute;
  left: 0;
  right: 0;
  top: 66%;
  bottom: 0;
  background: linear-gradient(180deg, #33403C 0%, #17231F 18%, #0C1617 60%, #081012 100%);
}

.scene__shimmer {
  position: absolute;
  left: 30%;
  top: 66.5%;
  width: 26vmin;
  height: 10%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(242, 196, 140, .55) 0 1px, transparent 1px 6px);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent);
  mask-image: radial-gradient(closest-side, #000 20%, transparent);
  animation: shimmer 7s ease-in-out infinite alternate;
}

.scene__mosque {
  position: absolute;
  right: 4%;
  bottom: 34%;
  height: 54vh;
  width: auto;
  max-width: none;
}

@keyframes breathe {
  from { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.07); }
}

@keyframes shimmer {
  from { opacity: .35; transform: translateX(-50%) scaleX(.86); }
  to { opacity: .75; transform: translateX(-50%) scaleX(1.12); }
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  border-bottom: 1px solid transparent;
  transition: background-color .6s ease, border-color .6s ease, -webkit-backdrop-filter .6s ease, backdrop-filter .6s ease;
}

.topbar.is-solid {
  background: var(--bar-solid);
  border-bottom-color: var(--bar-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  color: var(--on-stage);
  text-decoration: none;
}

.brand__mark { font-size: 22px; color: var(--brass); }

.brand__word {
  font-family: var(--f-brand);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.topbar.is-solid .brand__word { opacity: 1; transform: none; }
.topbar.is-solid .brand { color: var(--bar-ink); }
.topbar.is-solid .brand__mark { color: var(--menu-accent); }
.topbar.is-solid .langs button { color: var(--bar-ink-dim); }
.topbar.is-solid .langs button[aria-pressed="true"] { color: var(--bar-ink); }
.topbar.is-solid .theme-btn { color: var(--bar-ink); border-color: var(--bar-line); }

/* On phones the name would crowd the language and theme buttons */
@media (max-width: 480px) { .brand__word { display: none; } }

.topbar__tools { display: flex; align-items: center; gap: 6px; }

.theme-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stage-line);
  border-radius: 50%;
  background: transparent;
  color: var(--on-stage);
  font-size: 18px;
  transition: color .3s ease, border-color .3s ease, background-color .3s ease;
}

.theme-btn:hover { background: rgba(238, 234, 225, .08); }

.langs { display: flex; align-items: center; }

.langs button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--on-stage-dim);
  font-family: var(--f-latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  transition: color .3s ease;
}

.langs button[lang="ar"] {
  font-family: var(--f-arabic);
  font-size: 15px;
  letter-spacing: 0;
}

.langs button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 14px;
  height: 1px;
  background: var(--brass);
  transform: translateX(-50%) scaleX(0);
  transition: transform .4s var(--ease);
}

.langs button[aria-pressed="true"] { color: var(--on-stage); }
.langs button[aria-pressed="true"]::after { transform: translateX(-50%) scaleX(1); }

/* ---------- hero ---------- */

main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: calc(96px + env(safe-area-inset-top, 0px)) calc(var(--dock-space) + 56px);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.hero__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  opacity: calc(1 - var(--p) * 1.5);
  transform: translate3d(0, calc(var(--p) * -80px), 0);
  will-change: opacity, transform;
}

.hero__kicker { color: var(--on-stage-dim); }
.hero__kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}

.hero__title {
  margin: 22px 0 0;
  font-family: var(--f-brand);
  font-weight: 300;
  font-size: clamp(66px, 19.5vw, 188px);
  line-height: .88;
  letter-spacing: -.045em;
  color: var(--on-stage);
}

.hero__title > span { display: block; }
.hero__title .l2 { font-weight: 200; padding-inline-start: .52em; }
.hero__title .comma { color: var(--brass); }
[dir="rtl"] .hero__title > span { text-align: right; }
[dir="rtl"] .hero__title .l2 { padding-inline-start: 0; padding-inline-end: .52em; }

.hero__tagline {
  margin: 26px 0 0;
  max-width: 30ch;
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--on-stage-dim);
}

.hero__meta {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--stage-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--f-latin);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--on-stage-dim);
}

:root[lang="ar"] .hero__meta { letter-spacing: .04em; }
.hero__meta .clock { color: var(--on-stage); }
.hero__times { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sunset { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; padding-inline-start: 12px; border-inline-start: 1px solid var(--stage-line); color: var(--brass); }
.sunset .ico { font-size: 15px; }
.hero__meta .clock-city { font-family: var(--f-sans); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(var(--dock-space) - 2px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 88px;
  color: var(--on-stage-dim);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  opacity: calc(1 - var(--p) * 3);
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--stage-line);
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--brass);
  animation: drip 2.4s var(--ease) infinite;
}

@keyframes drip {
  0% { top: -40%; }
  70%, 100% { top: 100%; }
}

/* Opening sequence: one orchestrated moment, then calm */

@keyframes enter {
  from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes lift {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

.js .hero__kicker,
.js .hero__title > span,
.js .hero__tagline,
.js .hero__meta,
.js .scroll-cue__line,
.js .scroll-cue span:last-child,
.js .dock { opacity: 0; }

.is-ready .hero__kicker { animation: enter 1.2s var(--ease) .1s both; }
.is-ready .hero__title .l1 { animation: enter 1.5s var(--ease) .3s both; }
.is-ready .hero__title .l2 { animation: enter 1.5s var(--ease) .52s both; }
.is-ready .hero__tagline { animation: enter 1.2s var(--ease) .9s both; }
.is-ready .hero__meta { animation: enter 1.2s var(--ease) 1.1s both; }
.is-ready .scroll-cue__line,
.is-ready .scroll-cue span:last-child { animation: lift 1s var(--ease) 1.5s both; }
.is-ready .dock { animation: lift 1s var(--ease) 1.7s both; }

/* ---------- two modes: the brand's home, or one place ---------- */

/* Without a mode (no JavaScript) the home shows */
.hero__inner--stay, .change-stay { display: none; }
.mode-stay .hero__inner--stay { display: block; }
.mode-stay .hero__inner--home { display: none; }
.mode-stay .change-stay { display: block; }
/* Before a place is chosen, the dock only keeps WhatsApp, as a single button */
.mode-home .dock__btn:not(.dock__btn--main) { display: none; }
.mode-home .dock, .mode-home.on-hero body:not(.is-locked) .dock { padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mode-home .dock__btn--main { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
/* Réserver on the home's dock: light beside WhatsApp's brass; not on a place, nor over an open page */
.dock__btn.dock__btn--book { background: #F7F3EA; color: #10191A; }
.dock__btn.dock__btn--book:hover { background: #FFFFFF; }
.mode-stay .dock__btn--book, .is-locked .dock__btn--book { display: none; }

/* Over the film, the dock is dark glass in both themes */
.on-hero body:not(.is-locked) .dock { background: rgba(9, 18, 21, .55); border-color: var(--stage-line); --dock-ink: var(--on-stage); --dock-hover: rgba(238, 234, 225, .08); }

/* A place's name: long names get a smaller size so each line fits */
.hero__inner--stay .hero__title {
  font-size: clamp(44px, min(19.5vw, calc((100vw - var(--gutter-l) - var(--gutter-r)) / (var(--tc, 7) * .56))), 188px);
}

/* The chooser, under the brand: centred, with big buttons anyone can read and tap */
.hero__inner--home { text-align: center; }
.hero__inner--home .hero__title { text-align: center; }
[dir="rtl"] .hero__inner--home .hero__title > span { text-align: center; }
.hero__inner--home .hero__meta { justify-content: center; }

.chooser {
  width: min(100%, 440px);
  margin: 26px auto 0;
  display: grid;
  justify-items: stretch;
  gap: 12px;
  text-align: center;
}

/* The question the client asked for: clear, white, readable over the film */
.chooser__label {
  margin: 4px 0 2px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--on-stage);
  text-shadow: 0 1px 14px rgba(9, 18, 21, .85), 0 0 2px rgba(9, 18, 21, .6);
}

.chooser .hero__tagline { order: -1; margin: 0 auto 4px; max-width: none; }
.mode-home .hero__tagline { color: rgba(238, 234, 225, .88); }
.mode-stay .hero { padding-bottom: calc(var(--dock-space) + 78px); }
.hero__tagline { text-shadow: 0 1px 14px rgba(9, 18, 21, .75); }

/* The home lists the cities in its buttons: no line above the brand */
.hero__inner--home .hero__kicker { display: none; }
.hero__inner--home .hero__title { margin-top: 0; }

/* A little more shade behind the chooser */
.mode-home .stage__veil { background: linear-gradient(180deg, rgba(9, 18, 21, .62) 0%, rgba(9, 18, 21, .14) 22%, rgba(9, 18, 21, .5) 44%, rgba(9, 18, 21, .82) 70%, rgba(9, 18, 21, .94) 100%); }

/* The brand: "Darna" large and light, "COLLECTION" small and spaced under it.
   It fits the screen's height too. */
.wordmark { font-size: clamp(64px, min(26vw, 17vh), 200px); line-height: .9; }
.wordmark .l2 {
  margin-top: .32em;
  padding-inline-start: .62em; /* balances the spacing after the last letter */
  font-size: .19em;
  font-weight: 400;
  letter-spacing: .62em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brass);
}
[dir="rtl"] .wordmark .l2 { padding-inline-start: .62em; padding-inline-end: 0; }

.chooser__chips { display: grid; gap: 10px; }

/* A city: a large light button over the film, with a clear shadow */
.city-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding-block: 10px;
  padding-inline: 12px 18px;
  border-radius: 22px;
  background: rgba(250, 248, 243, .96);
  color: #10191A;
  text-decoration: none;
  text-align: start;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 34px -12px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.city-chip:hover { transform: translate3d(0, -2px, 0); }
.city-chip:active { transform: scale(.98); }
.city-chip:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.city-chip__icon {
  flex: none;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--tint);
  color: #fff;
  font-size: 26px;
}

.city-chip__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.city-chip__name { font-size: 21px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.city-chip__n { font-size: 13.5px; color: rgba(16, 25, 26, .62); }
.city-chip__go { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(16, 25, 26, .07); font-size: 18px; }

/* Back to the last place: the first, golden button */
.resume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 20px;
  border-radius: 22px;
  background: var(--brass);
  color: var(--on-brass);
  text-decoration: none;
  font-size: 17px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .75);
}

.resume { flex-wrap: wrap; row-gap: 0; padding-block: 6px; text-align: center; }
.resume b { font-weight: 600; white-space: nowrap; }
.resume .ico { font-size: 19px; }

/* Find my place: a clear outlined button, below the cities */
.locate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  margin-top: 4px;
  padding: 0 20px;
  border: 1.5px solid rgba(238, 234, 225, .7);
  border-radius: 22px;
  background: rgba(9, 18, 21, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .8);
  transition: background-color .3s ease;
}

.locate:hover { background: rgba(9, 18, 21, .7); }
.locate .ico { font-size: 22px; color: var(--brass); }
.locate[aria-busy="true"] .ico { animation: spin 1.6s linear infinite; }
.locate__note { margin: -4px 0 0; font-size: 13px; color: var(--on-stage-dim); text-shadow: 0 1px 10px rgba(9, 18, 21, .9); }

@keyframes spin { to { transform: rotate(360deg); } }

/* In a city's page with several places: "you don't know the name of yours?" and the same button */
.locate-box { display: grid; gap: 10px; margin: 0 0 18px; padding: 18px 16px 14px; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--shadow-card); text-align: center; }
.locate-box__q { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.locate.locate--sheet {
  margin: 0;
  border: 0;
  background: var(--tint);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--tint) 80%, #000);
}
.locate.locate--sheet:hover { background: color-mix(in srgb, var(--tint) 88%, #000); }
.locate.locate--sheet .ico { color: #fff; }
.locate-box__note { margin: 0; font-size: 13px; color: var(--ink-dim); }

/* On the home, the content sits in the middle of the screen, and stays fully visible while scrolling */
.mode-home .hero__inner--home { opacity: 1; transform: none; }
.mode-home .hero { justify-content: center; padding-block: calc(76px + env(safe-area-inset-top, 0px)) calc(var(--dock-space) + 20px); }
.mode-home .hero .scroll-cue { display: none; }

/* Short phones: the same screen, a little tighter, so nothing hides under the dock */
@media (max-height: 820px) {
  .mode-home .hero { padding-top: calc(66px + env(safe-area-inset-top, 0px)); }
  .wordmark { font-size: clamp(56px, min(24vw, 12.5vh), 200px); }
  .chooser { margin-top: 16px; gap: 9px; }
  .chooser__label { font-size: 18px; margin: 0; }
  .chooser__chips { gap: 8px; }
  .city-chip { min-height: 62px; padding-block: 7px; }
  .city-chip__icon { width: 44px; height: 44px; border-radius: 14px; font-size: 23px; }
  .city-chip__name { font-size: 20px; }
  .locate, .resume { min-height: 54px; }
  .hero__inner--home .hero__meta { display: none; }
}

/* Very short screens (iPhone SE with its toolbars, small Android phones) */
@media (max-height: 680px) {
  .mode-home .hero { padding-top: calc(60px + env(safe-area-inset-top, 0px)); }
  .wordmark { font-size: clamp(48px, min(22vw, 10.5vh), 200px); }
  .chooser { margin-top: 10px; gap: 7px; }
  .chooser .hero__tagline { display: none; }
  .chooser__label { font-size: 17px; }
  .chooser__chips { gap: 7px; }
  .city-chip { min-height: 54px; padding-block: 5px; gap: 12px; }
  .city-chip__icon { width: 40px; height: 40px; border-radius: 12px; font-size: 21px; }
  .city-chip__name { font-size: 19px; }
  .city-chip__n { font-size: 12.5px; }
  .city-chip__go { width: 32px; height: 32px; }
  .locate, .resume { min-height: 48px; font-size: 16px; }
  .locate__note { font-size: 12px; }
}

/* A returning guest has one more button: the clock line gives way */
@media (max-height: 900px) {
  .has-resume .hero__inner--home .hero__meta { display: none; }
}
@media (max-height: 760px) {
  .has-resume .chooser .hero__tagline, .has-resume .locate__note { display: none; }
}

/* Phones held sideways: the three cities side by side, the brand smaller */
@media (max-height: 500px) and (orientation: landscape) {
  .mode-home .hero { padding-top: calc(58px + env(safe-area-inset-top, 0px)); }
  .wordmark { font-size: clamp(40px, 13vh, 72px); }
  .chooser { width: min(100%, 720px); margin-top: 8px; gap: 8px; }
  .chooser .hero__tagline, .locate__note, .hero__inner--home .hero__meta { display: none; }
  .chooser__chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .city-chip { min-height: 56px; padding-inline: 8px 10px; gap: 8px; }
  .city-chip__icon { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
  .city-chip__go { display: none; }
  .city-chip__name { font-size: 17px; }
  .locate, .resume { min-height: 48px; font-size: 16px; }
  .mode-home .dock { margin-inline: 0; left: auto; right: calc(12px + env(safe-area-inset-right, 0px)); flex-direction: column; }
  [dir="rtl"].mode-home .dock { right: auto; left: calc(12px + env(safe-area-inset-left, 0px)); }
  /* The dock stands at the side, two buttons high: a free column for it */
  .mode-home .hero { padding-right: calc(var(--gutter-r) + 118px); }
  [dir="rtl"].mode-home .hero { padding-right: var(--gutter-r); padding-left: calc(var(--gutter-l) + 118px); }
  .mode-home .chooser { width: min(100%, 720px); }
  .has-resume .chooser { grid-template-columns: 1fr 1fr; }
  .has-resume .chooser > * { grid-column: 1 / -1; }
  .has-resume .chooser > .resume, .has-resume .chooser > .locate { grid-column: auto; margin-top: 0; }
}

@media (max-width: 340px) {
  .resume .ico { display: none; }
}

/* Small phones held sideways (iPhone SE: 568 × 320): the cities' names only */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 700px) {
  .mode-home .city-chip__icon { display: none; }
  .mode-home .city-chip { padding-inline: 12px; justify-content: center; text-align: center; }
}

/* On a place, "Découvrir" is a real button: a pill with an arrow down */
.mode-stay .scroll-cue {
  flex-direction: row;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(238, 234, 225, .5);
  border-radius: 999px;
  background: rgba(9, 18, 21, .5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 12.5px;
  bottom: calc(var(--dock-space) + 4px);
}
.mode-stay .scroll-cue__line { display: none; }
.js.mode-stay .scroll-cue { filter: opacity(0); }
.is-ready.mode-stay .scroll-cue { animation: cue-in 1s var(--ease) 1.5s both; }
.js.mode-stay .scroll-cue span:last-child { opacity: 1; animation: none; }
@keyframes cue-in { from { filter: opacity(0); translate: 0 14px; } to { filter: opacity(1); translate: 0 0; } }
.mode-stay .scroll-cue::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-right: 1.6px solid var(--brass);
  border-bottom: 1.6px solid var(--brass);
  transform: rotate(45deg);
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 4px; } }

.js .chooser { opacity: 0; }
.is-ready .chooser { animation: enter 1.2s var(--ease) .95s both; }

/* Version A of the home: the client's own sketch, white labels over the film (?look=a) */
.look-a .wordmark {
  display: inline-flex;
  gap: .3em;
  margin-top: 18px;
  padding: .16em .5em .2em;
  border-radius: .3em;
  background: #fff;
  color: #10191A;
  font-size: clamp(22px, 7.2vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.look-a .wordmark > span { display: inline; margin: 0; padding: 0; font-size: 1em; font-weight: 600; letter-spacing: .02em; color: inherit; }
.look-a .chooser__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.look-a .city-chip { min-height: 56px; padding: 0 22px; border-radius: 999px; background: #fff; }
.look-a .city-chip__icon, .look-a .city-chip__n, .look-a .city-chip__go { display: none; }
.look-a .city-chip__name { font-size: 18px; }
.look-a .hero { justify-content: center; }
.look-a .chooser__chips { order: 1; }
.look-a .chooser__label { order: 2; justify-self: center; margin: 0; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, .9); color: #10191A; font-size: 13px; font-weight: 500; text-shadow: none; }
.look-a .chooser .hero__tagline { order: 3; justify-self: center; margin: 2px 0 0; color: #fff; }
.look-a .resume { order: 4; }
.look-a .locate { order: 5; }
.look-a .locate__note { order: 6; }

/* The drawing behind the film, per city: 'atlantic' (Casablanca: ocean and minaret),
   'sea' (Martil: sea and the Rif mountains), 'plain' (Marrakech: dusk over the red city and its minaret) */
.scene__hills { display: none; position: absolute; left: 0; right: 0; bottom: 33.6%; width: 100%; height: 13vh; }
.stage[data-scene="sea"] .scene__mosque { display: none; }
.stage[data-scene="sea"] .scene__hills { display: block; }
.stage[data-scene="sea"] .scene__sun, .stage[data-scene="sea"] .scene__glow, .stage[data-scene="sea"] .scene__shimmer { left: 62%; }
.stage[data-scene="plain"] .scene__shimmer { display: none; }
.stage[data-scene="plain"] .scene { background: linear-gradient(180deg, #08100F 0%, #1A1E1C 28%, #4A3328 50%, #9C5B3C 61%, #C98552 66%); }
.stage[data-scene="plain"] .scene__sea { background: linear-gradient(180deg, #3A2219 0%, #24150F 22%, #140C09 70%, #0C0806 100%); }
.stage[data-scene="plain"] .scene__glow { background: radial-gradient(closest-side, rgba(236, 140, 84, .55), rgba(196, 96, 60, .22) 42%, transparent 72%); }

/* Without a film, the page fully covers the drawing as it scrolls */
.stage:not(.has-video):not(.has-poster) .stage__veil::after { opacity: calc(var(--p) * .97); }


/* ---------- menu: two groups of big rounded buttons ---------- */

.menu {
  position: relative;
  color: var(--menu-ink);
  padding-block: 12vh var(--dock-space);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.groups,
.sign {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

.groups { display: grid; gap: 64px; }

.group__head { display: grid; gap: 12px; margin-bottom: 22px; }
.group__head .eyebrow { color: var(--menu-accent); }

.group__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 8.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

:root[lang="ar"] .group__title { line-height: 1.3; letter-spacing: 0; }

.host-line {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 44ch;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--menu-ink-dim);
}

.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brass);
  color: var(--on-brass);
  font-family: var(--f-latin);
  font-size: 21px;
  line-height: 1;
}

.btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .btns--home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .btns--city { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

.tile {
  position: relative;
  min-width: 0;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 16px 18px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity 1.1s var(--ease);
}

.tile--wide { grid-column: span 2; min-height: 150px; }

@media (min-width: 720px) {
  .tile { min-height: 164px; padding: 20px 20px 22px; }
  .tile--wide { min-height: 164px; }
}

/* apartment: light buttons */

.tile--home {
  background: var(--tile-home-bg);
  color: var(--ink-fixed);
  box-shadow: var(--tile-home-shadow);
}

.tile--home .tile__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 13%, transparent);
  color: var(--tint);
  font-size: 25px;
}

/* city: coloured buttons with a zellige pattern */

.tile--city {
  color: #fff;
  background: var(--tint-fill);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, var(--city-shadow);
}

.tile--city::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--zellige);
  background-size: 44px 44px;
  opacity: .16;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 100% 0%, #000 10%, transparent 70%);
}

[dir="rtl"] .tile--city::before {
  -webkit-mask-image: radial-gradient(120% 90% at 0% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 0% 0%, #000 10%, transparent 70%);
}

.tile--city .tile__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 25px;
}

.tile__art {
  position: absolute;
  z-index: -1;
  inset-inline-end: -16px;
  bottom: -20px;
  font-size: 118px;
  color: rgba(255, 255, 255, .15);
  pointer-events: none;
}

.tile__art .ico { stroke-width: .75; }
.tile--wide .tile__art { font-size: 168px; inset-inline-end: 6px; bottom: -34px; }

.tile__text { display: grid; gap: 3px; min-width: 0; }

.tile__label {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .005em;
}

.tile--wide .tile__label { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: -.03em; }
:root[lang="ar"] .tile--wide .tile__label { font-size: 27px; }
.tile--wide.tile--photo .tile__label { font-weight: 500; }

.tile__data {
  font-size: 13px;
  line-height: 1.3;
  opacity: .72;
}

.tile--city .tile__data { opacity: 1; }

.tile__data {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.tile:hover { transform: translate3d(0, -3px, 0); }
.tile:active { transform: scale(.97); }
.tile:focus-visible { outline-offset: 4px; }

.sign {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--menu-line);
  display: grid;
  gap: 12px;
}

.sign blockquote {
  margin: 0;
  max-width: 30ch;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.35;
}

.sign figcaption { color: var(--menu-ink-dim); }
.sign figcaption b { color: var(--menu-ink); font-weight: 500; }

.credit {
  width: 100%;
  max-width: 1080px;
  margin: 18px auto 0;
  color: var(--menu-ink-dim);
}

.credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: inherit;
  text-transform: none;
  letter-spacing: .04em;
  text-decoration: underline;
  text-decoration-color: var(--menu-line);
  text-underline-offset: 4px;
}

/* reveal (only when JavaScript runs) */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow .45s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms), calc(var(--i, 0) * 50ms), 0s;
}

.js .reveal.is-in { opacity: 1; transform: none; }
.js .tile.reveal.is-in:hover { transform: translate3d(0, -3px, 0); transition-delay: 0s; }
.js .tile.reveal.is-in:active { transform: scale(.97); transition-delay: 0s; }

/* ---------- the places (home) ---------- */

.city-block { display: grid; gap: 14px; margin-top: 34px; }

.city-block__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--menu-ink);
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.city-block__title .icircle { width: 42px; height: 42px; font-size: 21px; color: var(--tint); }
.city-block__n { margin-inline-start: auto; color: var(--menu-ink-dim); font-family: var(--f-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
:root[lang="ar"] .city-block__n { letter-spacing: 0; font-size: 13px; }

.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }

.scard { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--tile-home-shadow); }

.scard__link {
  flex: 1;
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  background: var(--tile-home-bg);
  color: var(--ink-fixed);
  text-decoration: none;
  transition: background-color .3s ease;
}

.scard__link:active { background: color-mix(in srgb, var(--tile-home-bg) 92%, #000); }
.scard .art { align-self: stretch; font-size: 42px; }
.scard .vcard__badge { top: 8px; bottom: auto; inset-inline-start: 8px; padding: 4px 8px; font-size: 10.5px; }
.scard__body { display: grid; gap: 4px; padding: 14px 6px 14px 16px; min-width: 0; }
[dir="rtl"] .scard__body { padding: 14px 16px 14px 6px; }
.scard__name { font-family: var(--f-display); font-size: 19px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
[dir="rtl"] .scard__name { text-align: right; } /* a Latin name (dir=ltr), on the side of its photo */
.scard__place { font-size: 12.5px; color: rgba(19, 33, 31, .66); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.fact { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(19, 33, 31, .72); }
.fact .ico { font-size: 15px; color: var(--tint); }
.scard__go { padding-inline-end: 16px; color: rgba(19, 33, 31, .45); font-size: 18px; }
.scard.is-nearest { box-shadow: 0 0 0 2px var(--brass), var(--tile-home-shadow); }

/* Réserver, under each place's card: where to book it */
.scard__book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  background: var(--brass);
  color: var(--on-brass);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.scard__book .ico { font-size: 18px; }
.scard__book:active { background: #D6BA8A; }
/* The card clips what is outside it (its rounded corners): the focus ring is drawn inside */
.scard__link:focus-visible, .scard__book:focus-visible { outline-offset: -3px; }
.scard__book:focus-visible { outline-color: var(--on-brass); }
.scard__near { display: inline-flex; align-items: center; gap: 5px; color: #7E6230; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.scard__near .ico { font-size: 13px; }
:root[lang="ar"] .scard__near { letter-spacing: 0; font-size: 12.5px; }

/* In a city's page the cards follow the page's colours */
.scards--sheet { grid-template-columns: 1fr; }
.sheet .scard__link { background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.sheet .scard__link:active { background: color-mix(in srgb, var(--card) 92%, var(--ink)); }
.sheet .scard__place, .sheet .fact { color: var(--ink-dim); }
.sheet .fact .ico { color: var(--tint-ink); }
.sheet .scard__go { color: var(--ink-dim); }

.change-stay { width: 100%; max-width: 1080px; margin: 30px auto 0; }

.change-stay a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--menu-line);
  border-radius: 999px;
  color: var(--menu-ink);
  font-size: 15px;
  text-decoration: none;
}

.change-stay .ico { font-size: 18px; color: var(--menu-accent); }

/* ---------- dock ---------- */

.dock {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  background: var(--dock-bg);
  border: 1px solid var(--dock-line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--dock-shadow);
}

.is-locked .dock { background: var(--dock-bg-solid); }
.has-modal .dock { visibility: hidden; }

.dock__btn {
  position: relative;
  min-width: 84px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--dock-ink);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color .3s ease;
}

.dock__btn .ico { font-size: 21px; }
.dock__btn:hover { background: var(--dock-hover); }

.dock__btn--main {
  background: var(--brass);
  color: var(--on-brass);
  font-weight: 500;
}

.dock__btn--main:hover { background: #D6BA8A; }

.dock__badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 18px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--on-brass);
  font-size: 10px;
  font-weight: 500;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- sheet: one page per button ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
  color-scheme: var(--sheet-scheme);
  transform: translate3d(0, 100%, 0);
  transition: transform .75s var(--ease);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .5);
}

.sheet.is-open { transform: none; }
.sheet:focus, .modal__panel:focus { outline: none; }

.sheet__scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: end;
  gap: 8px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 8px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}

.sheet__bar.is-stuck {
  background: var(--paper-glass);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 19px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .3s ease, color .3s ease;
}

.sheet__bar.is-stuck .icon-btn { background: var(--chip); color: var(--ink); }

.sheet__bar-title {
  margin: 0;
  align-self: center;
  text-align: center;
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity .35s ease, transform .35s var(--ease);
}

.sheet__bar.is-stuck .sheet__bar-title { opacity: 1; transform: none; }

/* coloured header band */

.band {
  --band-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  position: relative;
  margin-top: calc(-1 * var(--band-top));
  min-height: calc(var(--band-top) + 190px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--band-top) + 24px) 30px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  background: var(--tint-fill);
  color: #fff;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--zellige);
  background-size: 56px 56px;
  opacity: .14;
  -webkit-mask-image: linear-gradient(200deg, #000 15%, transparent 75%);
  mask-image: linear-gradient(200deg, #000 15%, transparent 75%);
}

.band__art {
  position: absolute;
  z-index: -1;
  inset-inline-end: -24px;
  bottom: -40px;
  font-size: 230px;
  color: rgba(255, 255, 255, .16);
}

.band__art .ico { stroke-width: .55; }

.band__text { width: 100%; max-width: 720px; margin-inline: auto; display: grid; gap: 10px; }
.band .eyebrow { color: rgba(255, 255, 255, .92); }

.band__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 11.5vw, 72px);
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: balance;
}

:root[lang="ar"] .band__title { line-height: 1.25; letter-spacing: 0; }

.band__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.band .pill { background: rgba(255, 255, 255, .16); color: #fff; }
.band .pill .ico { color: #fff; }

.sheet__body {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 18px;
  padding-block: 22px var(--dock-space);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.sheet__body > * { min-width: 0; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

.sheet.is-open .rise { animation: rise .8s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * 45ms); }

.s-sub {
  margin: 18px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

/* Réserver: each place, its booking sites and the host in direct */
.s-lead { margin: 0; max-width: 46ch; color: var(--ink-dim); line-height: 1.55; }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; margin-top: 12px; }
.bcard { display: grid; gap: 12px; padding: 12px; border-radius: var(--radius-md); background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); scroll-margin: 90px; }
.bcard.is-target { box-shadow: 0 0 0 2px var(--brass), var(--shadow-card); }
.bcard__head { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; }
.bcard__head .art { width: 72px; height: 72px; border-radius: 16px; font-size: 32px; }
.bcard__text { display: grid; gap: 3px; min-width: 0; }
.bcard__text .scard__place { color: var(--ink-dim); }
.bcard__sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bsite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
}
.bsite .ico { font-size: 17px; opacity: .6; }
.bsite--direct { grid-column: 1 / -1; justify-content: center; background: var(--brass); color: var(--on-brass); }
.bsite--direct .ico { opacity: 1; font-size: 19px; }
.bsite:active { transform: scale(.97); }

/* shared pieces */

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill .ico { font-size: 15px; color: var(--gilt); }
.pill--near { background: color-mix(in srgb, var(--atlantic) 12%, transparent); color: var(--atlantic); }
.pill--near .ico { color: var(--atlantic); }

.budget { display: inline-flex; gap: 5px; align-items: center; }
.budget i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gilt); }
.budget i.on { background: var(--gilt); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 14px;
  transition: background-color .3s ease, color .3s ease;
}

.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .3s ease, color .3s ease, transform .3s var(--ease);
}

.btn .ico { font-size: 19px; }
.btn:active { transform: scale(.97); }
.btn--go { background: var(--tint, var(--ink)); color: #fff; }
.btn--go:hover { filter: brightness(1.08); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; }

.fav {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  font-size: 21px;
  transition: color .3s ease, transform .35s var(--ease);
}

.fav[aria-pressed="true"] { color: var(--gilt); }
.fav[aria-pressed="true"] .ico { fill: currentColor; }
.fav:active { transform: scale(.88); }

.todo {
  display: inline-block;
  padding: 3px 9px;
  border: 1px dashed var(--gilt);
  border-radius: 999px;
  color: var(--gilt);
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

:root[lang="ar"] .todo { font-size: 12px; letter-spacing: 0; }

.copy-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13.5px;
}

.copy-pill .ico { font-size: 16px; }

/* visual cards */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.vcard { position: relative; min-width: 0; display: flex; }

.vcard__link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease);
}

.vcard__link:active { transform: scale(.97); }

.art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--tint-fill);
  color: #fff;
}

.art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--zellige);
  background-size: 38px 38px;
  opacity: .14;
}

.art img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.art .ico { stroke-width: .9; }

.vcard .art { aspect-ratio: 1 / .8; font-size: 50px; }

.vcard__badge {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .26);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.vcard__badge .ico { font-size: 13px; stroke-width: 1.6; }
.art--photo .vcard__badge { background: rgba(0, 0, 0, .62); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

/* A stand-in photo (a dish for a restaurant) says so on the card */
.ph-tag {
  position: absolute;
  z-index: 1;
  top: 10px;
  inset-inline-start: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
}

.vcard__body { display: grid; gap: 4px; padding: 12px 14px 16px; }

.vcard__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

:root[lang="ar"] .vcard__name { font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: 0; }

.vcard__short { font-size: 13px; line-height: 1.35; color: var(--ink-dim); }
.vcard__name, .itile__key, .itile__title, .toast, .d-title { text-wrap: pretty; }

.vcard .fav {
  position: absolute;
  z-index: 2;
  top: 6px;
  inset-inline-end: 6px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  background: rgba(255, 255, 255, .9);
  color: #13211F;
}

.vcard .fav[aria-pressed="true"] { color: #8E6E3A; }

.vcard--note .art { background: var(--paper-2); color: var(--tint-ink); }
.vcard--note .art::before { opacity: .5; filter: invert(1) opacity(.25); }

.vcard--soon .vcard__link { box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--tint) 55%, transparent); background: transparent; }
.vcard--soon .art { background: color-mix(in srgb, var(--tint) 10%, transparent); color: var(--tint-ink); }
.vcard--soon .vcard__body { justify-items: start; }

/* detail sheet (opens over a page) */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Tapping the dimmed page closes the card (its own listener in app.js; the pointer says so too) */
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 12, .55);
  opacity: 0;
  cursor: pointer;
  transition: opacity .45s ease;
}

.modal.is-open .modal__scrim { opacity: 1; }

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100% - 28px - env(safe-area-inset-top, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 30px 30px 0 0;
  background: var(--paper);
  color: var(--ink);
  color-scheme: var(--sheet-scheme);
  transform: translate3d(0, 100%, 0);
  transition: transform .55s var(--ease);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6);
}

.modal.is-open .modal__panel { transform: translate3d(0, var(--drag, 0px), 0); }
.modal.is-dragging .modal__panel { transition: none; }

@media (min-width: 720px) {
  .modal { align-items: center; }
  .modal__panel { border-radius: 30px; max-height: 88vh; }
}

.modal__grip {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 50%;
  width: 42px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
}

.modal__close {
  position: absolute;
  z-index: 3;
  top: 14px;
  inset-inline-end: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #13211F;
  font-size: 18px;
}

.d-art { aspect-ratio: 16 / 9; font-size: 92px; }
.d-art .ico { stroke-width: .7; }

/* ---------- photos (content/photos.js) ---------- */

/* In a card or a detail: the picture fills the coloured square */
.art--photo { background: color-mix(in srgb, var(--tint) 30%, var(--paper-2)); }
.art--photo::before { display: none; }
figure.art { margin: 0; }
.d-art.art--photo { aspect-ratio: 4 / 3; }
@media (min-width: 620px) { .d-art.art--photo { aspect-ratio: 16 / 10; } }

/* Who took it, under which licence: small, over a soft shade at the bottom */
.ph-credit {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .74));
  font-size: 11.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  line-height: 1.3;
  text-align: end;
  color: #fff;
}
/* One line on the photo (the credits page shows it in full), a 44 px tap area */
.ph-credit a, .ph-credit > span { display: inline-block; max-width: 100%; min-height: 44px; padding: 24px 0 6px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; color: inherit; text-decoration: none; }
.ph-credit a:hover { text-decoration: underline; }

/* A section's tile on a place's home: the photo under a veil of the section's colour */
.tile__photo { position: absolute; inset: 0; z-index: -2; background: var(--tint); }
.tile__photo img { width: 100%; height: 100%; object-fit: cover; }
/* The place's own buttons (Wi-Fi, check-in…) with a photo: white text on the same veil */
.tile--home.tile--photo { color: #fff; background: var(--tint); }
.tile--home.tile--photo::before { content: ""; position: absolute; inset: 0; }
.tile--photo .tile__data { opacity: 1; }
.tile--city.tile--photo::before,
[dir="rtl"] .tile--city.tile--photo::before,
.tile--home.tile--photo::before {
  z-index: -1;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, transparent 22%, transparent 38%, color-mix(in srgb, var(--tint) 62%, transparent) 64%, color-mix(in srgb, var(--tint) 92%, #000) 100%);
  background-size: auto;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.tile--photo .tile__icon { background: rgba(255, 255, 255, .9); color: var(--tint); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.tile--photo .tile__text { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }

/* A page's header band: the same photo, darker at the bottom for the title */
.band__photo { position: absolute; inset: 0; z-index: -2; }
.band__photo img { width: 100%; height: 100%; object-fit: cover; }
.band--photo { min-height: calc(var(--band-top) + 230px); }
.band--photo::before {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, transparent 24%, transparent 40%, color-mix(in srgb, var(--tint) 60%, transparent) 70%, color-mix(in srgb, var(--tint) 92%, #000) 100%);
  background-size: auto;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.band--photo .band__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.band--photo .eyebrow { color: #fff; }

/* A city's button on the home: its picture in the rounded square */
.city-chip__icon { position: relative; }
.city-chip__icon.has-photo { overflow: hidden; background: var(--tint); box-shadow: 0 0 0 1px rgba(16, 25, 26, .08) inset; }
.city-chip__icon.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--photo .tile__art, .band--photo .band__art { display: none; }

/* The photo credits page */
.credits__note { margin: 0 0 18px; max-width: 46ch; color: var(--ink-dim); line-height: 1.55; }
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.credit-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.credit-row__img { flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.credit-row__img img { width: 100%; height: 100%; object-fit: cover; }
.credit-row__img--film { display: grid; place-items: center; font-size: 26px; color: var(--tint-ink, var(--atlantic)); }
.credit-row__text { min-width: 0; display: grid; gap: 3px; }
.credit-row__title { display: block; margin-block: -11px; padding-block: 11px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.credit-row__by { font-size: 12.5px; color: var(--ink-dim); overflow-wrap: anywhere; }
.credit-row__by a { color: inherit; }

.d-body {
  display: grid;
  gap: 14px;
  padding: 22px 22px calc(26px + env(safe-area-inset-bottom, 0px));
}

.d-body .eyebrow { color: var(--ink-dim); }

.d-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 33px;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}

:root[lang="ar"] .d-title { font-weight: 500; line-height: 1.3; letter-spacing: 0; }

.d-short { margin: 0; font-size: 16px; font-weight: 500; color: var(--tint-ink, var(--atlantic)); }
.d-desc { margin: 0; font-size: 15.5px; font-weight: 300; line-height: 1.6; }

.d-tip {
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--tint, var(--atlantic)) 10%, transparent);
  font-size: 14.5px;
  line-height: 1.5;
}

.d-tip .ico { font-size: 20px; color: var(--tint-ink, var(--atlantic)); margin-top: 1px; }

.d-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.d-actions .btn { flex: 1; }

.d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.d-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  line-height: 1.45;
}

.d-list li > .ico { font-size: 18px; margin-top: 1px; color: var(--tint-ink, var(--gilt)); }
.d-list b { font-family: var(--f-display); font-weight: 500; font-size: 16px; white-space: nowrap; }

/* routes */

.rcards { display: grid; gap: 14px; }
@media (min-width: 620px) { .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rcard__link {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease);
}

.rcard__link:active { transform: scale(.98); }
.rcard .art { aspect-ratio: 16 / 7; }
.rcard .art svg.route-line { width: 88%; height: 70%; overflow: visible; }
.rcard__body { display: grid; gap: 10px; padding: 16px 16px 18px; }

.rcard__title {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.d-art svg.route-line { width: 86%; height: 62%; overflow: visible; }

.timeline { position: relative; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }

.timeline li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.timeline time {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--tint-ink, var(--gilt));
}

.timeline .stop { min-width: 0; display: grid; gap: 2px; }
.timeline .stop__title { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.timeline .stop__text { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-dim); }
.timeline li.is-sunset time::after { content: " ☀"; }

.go-mini {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint, var(--atlantic)) 12%, transparent);
  color: var(--tint-ink, var(--atlantic));
  font-size: 16px;
}

/* tiles (transport, help, apartment pages) */

.itiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.itiles > :last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }

.itile {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  font: inherit;
  transition: transform .35s var(--ease);
}

.itile:active { transform: scale(.97); }

.icircle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint, var(--atlantic)) 13%, transparent);
  color: var(--tint-ink, var(--atlantic));
  font-size: 23px;
}

:root[data-theme="dark"] .icircle { background: color-mix(in srgb, var(--tint, var(--atlantic)) 30%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icircle { background: color-mix(in srgb, var(--tint, var(--atlantic)) 30%, transparent); }
}

.itile__title { display: block; font-size: 16px; font-weight: 500; line-height: 1.25; }
.itile__key { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--ink-dim); overflow-wrap: anywhere; }

/* Wi-Fi */

.wifi-card {
  display: grid;
  gap: 4px;
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.wifi-row { display: flex; align-items: center; gap: 14px; padding-block: 18px; }
.wifi-row + .wifi-row { border-top: 1px solid var(--rule); }
.wifi-row__text { flex: 1; min-width: 0; display: grid; gap: 6px; }
.wifi-row .eyebrow { color: var(--ink-dim); }

.wifi-row__value {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.wifi-row__value.is-muted { display: flex; gap: 10px; align-items: center; font-family: var(--f-sans); font-size: 15.5px; font-weight: 300; color: var(--ink-dim); }
.wifi-row__value.is-muted .ico { font-size: 20px; color: var(--tint-ink); }

/* arrival & departure */

.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.time-tile {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.time-tile .icircle { margin-bottom: 6px; }
.time-tile .eyebrow { color: var(--ink-dim); }

.time-tile__time {
  font-family: var(--f-latin);
  font-weight: 300;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

.time-tile__hint { font-size: 12.5px; color: var(--ink-dim); }

.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--chip);
}

.seg button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .3s ease, color .3s ease;
}

.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-soft); }

.vsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.vsteps li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 15.5px;
  line-height: 1.4;
}

.vsteps__text { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }

.check {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 17px;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.check[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: #fff; }
.vsteps li.is-done .vsteps__text { opacity: .5; text-decoration: line-through; }

/* how it works */

.howto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }

.howto-btn {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.howto-btn .icircle { width: 64px; height: 64px; font-size: 28px; transition: background-color .3s ease, color .3s ease; }
.howto-btn[aria-expanded="true"] .icircle { background: var(--tint); color: #fff; }

.howto-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.howto-panel h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.howto-panel p { margin: 0; font-weight: 300; line-height: 1.6; }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.rule {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
}

.rule .icircle { width: 44px; height: 44px; font-size: 21px; }

/* nearby */

.near-tile .near-tile__walk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--atlantic);
  font-variant-numeric: tabular-nums;
}

.near-tile .near-tile__walk .ico { font-size: 15px; }

/* services */

.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.svc li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.svc .icircle { width: 56px; height: 56px; font-size: 26px; }
.svc h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.25; }
.svc p { margin: 3px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-dim); }
.svc .btn { grid-column: 1 / -1; }

/* help */

.hostcard {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  isolation: isolate;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--tint-fill);
  color: #fff;
}

.hostcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--zellige);
  background-size: 44px 44px;
  opacity: .14;
}

.hostcard__who { display: flex; align-items: center; gap: 14px; }
.hostcard__name { font-family: var(--f-display); font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.hostcard__role { font-size: 13px; opacity: .78; }
.hostcard .btn { background: #fff; color: #13211F; }

.sos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.sos a {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 8px 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.sos__num {
  font-family: var(--f-latin);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: #A1423A;
  font-variant-numeric: tabular-nums lining-nums;
}

.sos__label { font-size: 12px; line-height: 1.3; color: var(--ink-dim); }

.flash {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.flash::-webkit-scrollbar { display: none; }

.flash__card > * { justify-self: start; }

.flash__card {
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.flash__latin { font-family: var(--f-latin); font-weight: 300; font-size: 27px; line-height: 1.1; letter-spacing: -.02em; }
.flash__ar { font-family: var(--f-arabic); font-size: 26px; line-height: 1.4; color: var(--gilt); }
.flash__meaning { font-size: 14px; color: var(--ink-dim); }

/* location */

.address {
  display: grid;
  gap: 12px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.address .eyebrow { color: var(--atlantic); }
.address__line { margin: 0; font-family: var(--f-latin); font-size: 25px; line-height: 1.25; }
.address__ar { margin: 0; font-family: var(--f-arabic); font-size: 26px; line-height: 1.6; text-align: right; }

.address__note {
  margin: 4px 0 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.address__note .ico { font-size: 16px; margin-top: 2px; color: var(--gilt); }

.stack { display: grid; gap: 10px; }

.taxi {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding-block: calc(40px + env(safe-area-inset-top, 0px)) calc(40px + env(safe-area-inset-bottom, 0px));
  padding-left: max(28px, env(safe-area-inset-left, 0px));
  padding-right: max(28px, env(safe-area-inset-right, 0px));
  background: var(--stage);
  color: var(--on-stage);
  opacity: 0;
  transition: opacity .35s ease;
  cursor: pointer;
}

.taxi.is-on { opacity: 1; }
.taxi__hint { margin: 0; font-family: var(--f-latin); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
:root[lang="ar"] .taxi__hint { font-family: var(--f-sans); letter-spacing: 0; font-size: 14px; }
.taxi__ar { margin: 0; font-family: var(--f-arabic); font-size: clamp(40px, 11vw, 72px); line-height: 1.5; text-align: right; }
.taxi__fr { margin: 0; font-family: var(--f-latin); font-size: clamp(26px, 7vw, 44px); line-height: 1.25; }
.taxi__close { margin: 0; font-size: 13px; color: var(--on-stage-dim); }
.taxi .todo { color: var(--brass); border-color: var(--brass); font-size: 14px; }

/* favourites */

.empty {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 44px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty > .icircle { width: 72px; height: 72px; font-size: 32px; }
.empty p { margin: 0; max-width: 26ch; font-weight: 300; line-height: 1.6; color: var(--ink-dim); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100% - 40px);
  margin-inline: auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--on-brass);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .35s ease, transform .35s var(--ease);
  pointer-events: none;
}

.toast.is-on { opacity: 1; transform: none; }
.has-modal .toast { bottom: auto; top: calc(18px + env(safe-area-inset-top, 0px)); }

/* ---------- motion preferences ---------- */

/* ---------- text over the film or a photo: a strong shadow, so it reads on any frame ---------- */

:root {
  --shade-text: 0 1px 2px rgba(0, 0, 0, .65), 0 2px 16px rgba(0, 0, 0, .6);
  --shade-title: 0 2px 4px rgba(0, 0, 0, .45), 0 4px 30px rgba(0, 0, 0, .6);
  --shade-icon: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)) drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}

.hero__title { text-shadow: var(--shade-title); }
.hero__kicker,
.hero__tagline,
.chooser__label,
.locate__note,
.hero__meta,
.locate,
.scroll-cue { text-shadow: var(--shade-text); }
.hero__kicker::before { box-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hero__kicker, .hero__tagline, .hero__meta, .locate__note { color: rgba(238, 234, 225, .9); }
.hero__meta { border-top-color: rgba(238, 234, 225, .3); }
.hero .ico, .scroll-cue::before { filter: var(--shade-icon); }
.hero .city-chip .ico, .hero .resume .ico { filter: none; }
.locate--sheet { text-shadow: none; }

/* The top bar, while it floats over the film */
.topbar:not(.is-solid) .brand,
.topbar:not(.is-solid) .langs button { text-shadow: var(--shade-text); }
.topbar:not(.is-solid) .ico { filter: var(--shade-icon); }

/* A page's coloured header, and above all one with a photo */
.band .eyebrow,
.band__title,
.band .pill { text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 14px rgba(0, 0, 0, .3); }
.band--photo .eyebrow,
.band--photo .band__title,
.band--photo .pill { text-shadow: var(--shade-title); }
.band--photo .pill { background: rgba(0, 0, 0, .35); }

/* A section's tile with a photo */
.tile--photo .tile__text { text-shadow: var(--shade-text); }

/* ---------- older phones ---------- */

/* Without color-mix() (iOS before 16.2, e.g. the iPhone 6s, 7 and first SE; Chrome before 111):
   the same colours, made by laying white or black over the section's colour */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .tile--city, .band, .art, .hostcard {
    --tint-fill: linear-gradient(150deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, .28) 100%), var(--tint);
  }
  .sheet *, .modal * { --tint-ink: var(--tint); }
  :root[data-theme="dark"] .sheet *, :root[data-theme="dark"] .modal * { --tint-ink: #EEEAE1; }
  .art--photo { background: var(--paper-2); }
  .tile--city.tile--photo::before,
  [dir="rtl"] .tile--city.tile--photo::before,
  .tile--home.tile--photo::before { background-image: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .56) 64%, rgba(0, 0, 0, .82) 100%); }
  .band--photo::before { background-image: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .82) 100%); }
  .icircle, .tile--home .tile__icon, .go-mini, .d-tip { background: rgba(19, 33, 31, .07); }
  :root[data-theme="dark"] .icircle, :root[data-theme="dark"] .tile--home .tile__icon, :root[data-theme="dark"] .go-mini, :root[data-theme="dark"] .d-tip { background: rgba(238, 234, 225, .12); }
  .tile--home.tile--photo .tile__icon, :root[data-theme="dark"] .tile--home.tile--photo .tile__icon { background: rgba(255, 255, 255, .9); }
  .pill--near { background: rgba(29, 76, 73, .12); }
  .vcard--soon .vcard__link { border-color: rgba(19, 33, 31, .25); }
  .vcard--soon .art { background: rgba(19, 33, 31, .05); }
  .locate.locate--sheet { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
  .locate.locate--sheet:hover { background: var(--tint); }
}
@media (prefers-color-scheme: dark) {
  @supports not (color: color-mix(in srgb, red 50%, blue)) {
    :root:not([data-theme="light"]) .sheet *, :root:not([data-theme="light"]) .modal * { --tint-ink: #EEEAE1; }
    :root:not([data-theme="light"]) .icircle, :root:not([data-theme="light"]) .tile--home .tile__icon, :root:not([data-theme="light"]) .go-mini, :root:not([data-theme="light"]) .d-tip { background: rgba(238, 234, 225, .12); }
    :root:not([data-theme="light"]) .tile--home.tile--photo .tile__icon { background: rgba(255, 255, 255, .9); }
  }
}

/* Without aspect-ratio (Safari before 15): fixed heights for the pictures */
@supports not (aspect-ratio: 1 / 1) {
  .vcard .art { height: 140px; }
  .d-art { height: 220px; }
  .rcard .art { height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .stage__media, .hero__inner { transform: none !important; }
}
