/* V2b · bright: the atmosphere of the main YASFCO website (Version 5b, light mode).
   Matte off-white page, navy ink, thin warm lines, white cards, square buttons.
   No grain, no blurred blobs, no dark overlays, no frosted glass. Gold is for fills and lines, never text on light. */
:root {
  --bg: #F7F5F1; --bg-end: #FFFFFF; --surface: #FFFFFF; --band: #EFECE5;
  --text: var(--navy); --mute: #4F5A69; --line: rgba(120, 110, 96, .22); --line-strong: rgba(120, 110, 96, .42);
  --shadow: rgba(20, 36, 57, .08); --focus: var(--navy);
}
:root[data-theme="dark"] {
  --bg: #0F1D30; --bg-end: #142439; --surface: #1A2D47; --band: #132339;
  --text: #F3EDE4; --mute: #C0C7D1; --line: rgba(243, 237, 228, .16); --line-strong: rgba(243, 237, 228, .34);
  --shadow: rgba(0, 0, 0, .25); --focus: var(--gold);
}
body.v2b { color: var(--text); background: var(--bg) linear-gradient(125deg, var(--bg) 0%, var(--bg-end) 100%); }

.h2, .hero-h, .foot-h, .page-h { font-family: "Manrope", "Cairo", sans-serif; font-weight: 500; letter-spacing: 0; }
:root[lang="en"] .h2, :root[lang="en"] .hero-h, :root[lang="en"] .foot-h, :root[lang="en"] .page-h { font-weight: 400; letter-spacing: -.01em; }
.h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.3; }
.sub { color: var(--mute); font-size: 16px; margin-top: 10px; }
.sec { padding-block: 104px 0; }
.sec.center { text-align: center; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 40px; }

/* "glass" is the shared card surface: solid white now */
.glass { background: var(--surface); border: 1px solid var(--line); }
.tag { font-style: normal; display: inline-block; background: rgba(195, 178, 128, .28); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); font: 700 11px/1 "Cairo", sans-serif; padding: 6px 10px; }

/* buttons: motion.js fills with --fill and turns the label --fill-ink */
.btn-gold, .btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); --fill: #C3B280; --fill-ink: #142439; }
.btn-glass { background: var(--surface); color: var(--text); border-color: var(--line-strong); --fill: #142439; --fill-ink: #FFFFFF; }
:root[data-theme="dark"] .btn-gold, :root[data-theme="dark"] .btn-navy { background: var(--gold); color: #142439; border-color: var(--gold); --fill: #F3EDE4; }
:root[data-theme="dark"] .btn-glass { background: transparent; --fill: #F3EDE4; --fill-ink: #142439; }
.btn.small { padding: 11px 18px; font-size: 14px; }
.btn.big { padding: 18px 32px; font-size: 16px; }
.btn.wide { width: 100%; justify-content: center; }
.v2b a:focus-visible, .v2b .btn:focus-visible, .v2b button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* header and slide-in menu, as on the main website (Version 5b): language left, logo centred, buttons right.
   The layout is the same in Arabic; only the text inside runs right to left. GSAP owns every movement. */
.hdr { position: fixed; z-index: 100; inset: 0 0 auto; direction: ltr; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px 2.2vw 14px; pointer-events: none; color: var(--text); }
.hdr > * { pointer-events: auto; }
.hdr-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; }
.hdr-left { justify-self: start; display: flex; align-items: center; gap: 4px; min-height: 44px; }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 22px; position: relative; z-index: 10; }
.lang-switch { display: flex; align-items: center; }
.lang-switch a { font: 500 14px/1 "Manrope", "Cairo", sans-serif; letter-spacing: .02em; padding: 8px 0; opacity: .6; }
.lang-switch a[lang="ar"] { font-family: "Cairo", "Manrope", sans-serif; letter-spacing: 0; }
.lang-switch a[aria-current] { opacity: 1; font-weight: 700; }
.lang-switch a + a::before { content: "|"; display: inline-block; margin-inline: 12px; opacity: .45; font-weight: 400; }
.hdr-icon { display: none; width: 40px; height: 44px; align-items: center; justify-content: center; }
.brand { display: block; height: 36px; }
.logo { display: block; height: 100%; }
.logo svg { display: block; height: 100%; width: auto; overflow: visible; fill: currentColor; }
.logo .yas-mark .gold { fill: #CBB689; }
.logo img { display: block; height: 100%; width: auto; max-width: none; }
.logo .logo-dark, :root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
.ico { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hdr-icon .ico, .theme-btn .ico, .theme-set .ico { width: 18px; height: 18px; }
.i-sun, :root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }

.btn.hbtn { justify-content: center; gap: 10px; height: 44px; padding: 0 20px; background: var(--surface); color: var(--text); border-color: var(--line); --fill: #142439; --fill-ink: #FFFFFF; font-size: 13px; font-weight: 600; }
:root[data-theme="dark"] .btn.hbtn { background: var(--bg); --fill: #F3EDE4; --fill-ink: #142439; }
.btn.theme-btn { width: 44px; padding: 0; }
.btn.contact-btn { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
:root[lang="ar"] .btn.contact-btn { font-size: 13px; text-transform: none; letter-spacing: 0; }
:root[lang="ar"] .hbtn { direction: rtl; }
.btn.menu-btn { padding: 0 16px; font-family: "Manrope", "Cairo", sans-serif; }
.menu-btn b { display: grid; overflow: hidden; line-height: 1.5; font-weight: 600; }
.menu-btn em { grid-area: 1 / 1; font-style: normal; }
.menu-btn .plus { width: 11px; height: 11px; }
/* open: navy with white text, held over the hover tween's inline colours */
html.drawer-open .btn.menu-btn { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }
html.drawer-open[data-theme="dark"] .btn.menu-btn { background: var(--gold) !important; color: var(--navy) !important; border-color: var(--gold) !important; }

.scrim { position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; background: rgba(20, 36, 57, .38); visibility: hidden; }
:root[data-theme="dark"] .scrim { background: rgba(0, 0, 0, .5); }
.drawer { position: fixed; top: 0; right: 0; z-index: 5; width: clamp(340px, 34vw, 520px); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 100px clamp(28px, 3.4vw, 56px) 28px; background: var(--surface); color: var(--text); box-shadow: -24px 0 60px rgba(20, 36, 57, .18); visibility: hidden; }
:root[dir="rtl"] .drawer { direction: rtl; }
.drawer-label { margin: 0 0 22px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
:root[lang="ar"] .drawer-label { letter-spacing: 0; font-size: 12px; }
.drawer > ul > li { overflow: hidden; flex: none; }
.drawer > ul > li > a, .drawer .has-sub > button { display: flex; align-items: center; width: fit-content; max-width: calc(100% + 14px); margin-inline-start: -14px; padding: 2px 14px; font: 400 clamp(30px, 3vw, 42px)/1.3 "Manrope", "Cairo", sans-serif; letter-spacing: -.01em; text-align: start; color: var(--text); background: linear-gradient(var(--text), var(--text)) no-repeat left center / 0% 100%; }
:root[dir="rtl"] .drawer > ul > li > a, :root[dir="rtl"] .drawer .has-sub > button { background-position: right center; letter-spacing: 0; }
.drawer [aria-current="page"]::before { content: "\2013"; margin-inline-end: .35em; }
.chev { width: 18px; height: 18px; margin-inline-start: 14px; }
.drawer .sub { display: none; overflow: hidden; padding-block: 2px 8px; }
.sub a { display: flex; align-items: center; gap: 16px; width: fit-content; min-height: 38px; margin-inline-start: -10px; padding-inline: 10px; font-size: 17px; color: var(--mute); background: linear-gradient(var(--text), var(--text)) no-repeat left center / 0% 100%; }
:root[dir="rtl"] .sub a { background-position: right center; }
.sub .n { min-width: 22px; font: 600 11px "Manrope", sans-serif; letter-spacing: .14em; }
.drawer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.drawer-theme { display: none; }
.theme-set { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); }
.theme-set + .theme-set { margin-inline-start: -1px; }
:root:not([data-theme="dark"]) .theme-set[data-theme-set="light"], :root[data-theme="dark"] .theme-set[data-theme-set="dark"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.drawer .btn { height: 44px; padding-block: 0; justify-content: center; }
.drawer .btn.hbtn { border-color: var(--line-strong); }
.v2b .drawer a:focus-visible, .v2b .drawer button:focus-visible { outline-offset: -2px; }
/* links to a section stop below the fixed header */
#main section[id] { scroll-margin-top: 80px; }

@media (max-width: 900px) {
  .lang-switch, .hdr-right .theme-btn, .hdr-right .contact-btn { display: none; }
  .btn.hbtn.theme-btn, .btn.hbtn.in-header { display: none; }
  .hdr-icon { display: inline-flex; }
  .drawer-theme { display: flex; }
}
@media (max-width: 700px) { .hdr { padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; gap: 8px; } .brand { height: 28px; } .btn.menu-btn { padding: 0 12px; } }
@media (max-width: 600px) { .drawer { width: 100vw; padding-top: 88px; } .drawer .drawer-register { order: -1; width: 100%; } .drawer .btn.hbtn.in-drawer { flex: 1; } }
@media (max-width: 360px) { .brand { height: 24px; } .hdr-icon { width: 34px; } }

/* hero: type on the open page, then the Route */
.hero { position: relative; padding: 138px 0 0; }
.hero-text { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-text.is-read { opacity: 0; pointer-events: none; }
.chip { display: inline-flex; gap: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.chip b { color: var(--gold); }
.hero-h { font-size: clamp(42px, 5.8vw, 80px); line-height: 1.22; }
.hero-p { max-width: 640px; font-size: 19px; line-height: 1.75; color: var(--mute); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* the Route (main website): a wave through the four fields; route.js places everything when it is live */
.route-wrap { position: relative; z-index: 2; width: min(1360px, 100% - 48px); margin-top: 8px; }
.route { position: relative; direction: inherit; }
.route ol, .route ul { margin: 0; padding: 0; list-style: none; }
.r-svg, .r-guides, .r-pin { display: none; }
.r-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; }
.r-dot { display: block; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); }
.r-name { font: 700 17px/1.4 "Manrope", "Cairo", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--mute); }
:root[lang="ar"] .r-name { letter-spacing: 0; text-transform: none; font-size: 20px; }
.r-card { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 44px var(--shadow); padding-block: 6px !important; text-align: start; }
.r-card li + li { border-top: 1px solid var(--line); }
.r-card a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; margin-inline: 6px; padding: 6px 10px; font-size: 14px; line-height: 1.5; color: var(--text); background: linear-gradient(var(--text), var(--text)) no-repeat left center / 0% 100%; }
:root[dir="rtl"] .r-card a { background-position: right center; }
.r-go { display: grid; place-items: center; width: 24px; height: 24px; flex: none; background: rgba(120, 110, 96, .16); }
.r-go svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:root[dir="rtl"] .r-go svg { transform: scaleX(-1); }
.is-passed .r-dot { background: var(--text); }
.is-current .r-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(195, 178, 128, .28); }
.is-current .r-name { color: var(--text); font-weight: 800; }
.is-current .r-card { border-color: var(--text); }
.route.is-live .r-svg { display: block; position: absolute; top: 0; left: 0; overflow: visible; fill: none; }
.r-line { stroke: var(--text); stroke-opacity: .4; stroke-width: 1.2; }
.r-prog { stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.r-tail { stroke: var(--text); stroke-opacity: .3; stroke-width: 1.2; stroke-dasharray: 5 9; }
.route.is-live .r-pin { display: block; position: absolute; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 1; }
.r-pin i { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--gold); }
.route.is-live:not(.is-tall) .r-guides { display: block; position: absolute; inset: 0; pointer-events: none; }
.r-guides i { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--line); opacity: .45; }
.route.is-live:not(.is-tall) .r-btn { position: absolute; z-index: 2; width: 44px; height: 44px; justify-content: center; }
.route.is-live:not(.is-tall) .r-name { position: absolute; }
.route.is-live:not(.is-tall) .r-card { position: absolute; z-index: 3; }
/* phones (and before the script runs): the line runs down the side, the open card sits under its stop */
.route.is-tall ol { display: grid; gap: 10px; padding-block: 18px 24px; }
.route.is-tall .r-dot { position: relative; z-index: 2; margin-inline: 12px 6px; }
.route.is-tall .r-btn { width: 100%; }
.route.is-tall .r-card { margin-inline-start: 44px !important; margin-top: 2px !important; overflow: hidden; }
.route.is-tall .r-card a { min-height: 38px; font-size: 14px; padding-block: 3px; }
.route.is-tall .r-card li:nth-child(n+3):not(:last-child) { display: none; }
.route.is-tall .r-svg { z-index: 1; pointer-events: none; }

/* photo tiles: the photo in full colour, the name on a white strip under it */
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tile-media { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.tile-info > span { display: flex; flex-direction: column; gap: 4px; }
.tile-info b { font: 700 19px/1.5 "Manrope", "Cairo", sans-serif; }
.tile-info small { font-size: 13px; color: var(--mute); }

/* footer: light, closed by a thin line */
.foot-logo { display: block; height: 40px; }
.foot { padding: 104px 0 32px; border-top: 1px solid var(--line); }
.v2b .foot { margin-top: 0; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.foot-h { font-size: clamp(40px, 5.4vw, 72px); }
.foot-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; margin-top: 56px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-row nav { display: flex; gap: 26px; flex-wrap: wrap; color: var(--mute); }
.foot-row > span { color: var(--mute); font-size: 13px; }

/* counters */
.counters { background: var(--surface); border-block: 1px solid var(--line); padding-block: 88px 72px; }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.count-grid li { position: relative; padding-top: 28px; padding-inline-end: 24px; }
.count-grid .rule { position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--gold); }
.count-grid b { text-align: right; display: block; font: 500 clamp(44px, 5vw, 72px)/1.1 "Manrope", "Cairo", sans-serif; white-space: nowrap; }
.count-grid h3 { font-weight: 700; font-size: 19px; margin-top: 12px; }
.count-grid p { font-size: 15px; color: var(--mute); line-height: 1.65; margin-top: 6px; }
.counters .note { margin-top: 40px; font-size: 13px; color: var(--mute); }

/* seat map: a white card, free seats outlined, the chosen one gold, booked ones greyed and crossed */
.seats { margin-top: 104px; padding-block: 96px; background: var(--band); }
.seats-row { display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.seats-text { flex: 0 1 440px; display: flex; flex-direction: column; align-items: flex-start; }
.seats-lead { font-size: 19px; line-height: 1.75; color: var(--mute); margin-top: 16px; }
.seats .fine { margin-top: 16px; font-size: 13px; color: var(--mute); }
.seat-plan { --seat-w: 76px; position: relative; margin: 0; flex: 0 0 620px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 24px 60px var(--shadow); }
.plan-in { padding: 28px 32px 24px; display: flex; flex-direction: column; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-title { font: 700 16px/1.6 "Manrope", "Cairo", sans-serif; }
.plan-count { font-size: 14px; color: var(--mute); }
.plan-count b { font: 500 44px/1 "Manrope", "Cairo", sans-serif; color: var(--text); margin-inline-end: 6px; }
.plan-wall { position: relative; margin: 20px 0; padding: 28px 0 36px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.plan-screen { width: 300px; max-width: 70%; height: 6px; background: var(--navy); }
:root[data-theme="dark"] .plan-screen { background: var(--gold); }
.plan-cap { font-size: 12px; color: var(--mute); margin-top: 8px; }
.plan-desk { margin-top: 18px; min-width: 130px; height: 38px; display: grid; place-items: center; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 13px; }
.seat-grid { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.seat-row { display: flex; gap: 56px; }
.pair { display: flex; gap: 16px; }
.seat { position: relative; width: var(--seat-w); height: 60px; display: grid; place-items: end center; padding: 0 0 10px; font: 700 15px "Manrope", "Cairo", sans-serif; color: #77736B; background: #E4E1DA; border: 1.5px solid #D3CEC4; cursor: pointer; }
.seat-back { position: absolute; top: 8px; left: 10px; right: 10px; height: 6px; }
.seat:not(.is-open) .seat-back { height: auto; display: grid; place-items: center; }
.seat:not(.is-open) .seat-back::before { content: "✕"; font: 700 14px/1 sans-serif; }
.seat.is-open { background: #fff; border-color: #142439; color: #142439; }
.seat.is-open .seat-back { background: #142439; }
.seat.is-hot, .seat.is-open.is-hot { background: var(--gold); border-color: #142439; border-width: 2.5px; color: #142439; }
.seat.is-hot .seat-back { background: #142439; }
:root[data-theme="dark"] .seat:not(.is-open) { background: #24354E; border-color: #31435D; color: #8E9AAE; }
.seat-plan.can-book .seat:not(.is-open) { cursor: not-allowed; }
.v2b .seat:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.plan-door { position: absolute; bottom: -1px; left: 28px; width: 44px; height: 44px; border-top: 1px dashed var(--line-strong); border-right: 1px solid var(--line-strong); border-top-right-radius: 44px; }
.seat-book { display: grid; gap: 8px; margin-bottom: 14px; text-align: center; }
.seat-hint { margin: 0; font-weight: 700; }
.seat-next { display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 10px 18px; background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; }
:root[data-theme="dark"] .seat-next { background: var(--gold); color: #142439; }
.seat-next[hidden] { display: none; }
.seat-small { margin: 0; font-size: 13px; line-height: 1.7; color: var(--mute); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 20px; height: 18px; display: inline-block; border: 1.5px solid; }
.lg-taken { background: #E4E1DA; border-color: #BDB7AC !important; } .lg-open { background: #fff; border-color: #142439 !important; } .lg-hot { background: var(--gold); border-color: #142439 !important; }
.seat-tip { position: absolute; left: 0; top: 0; z-index: 5; margin-top: -14px; background: #142439; color: #fff; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; pointer-events: none; box-shadow: 0 12px 30px rgba(20, 36, 57, .22); }
.seat-tip::after { content: ""; position: absolute; bottom: -9px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: #142439; border-bottom: 0; }
.tip-title { font: 700 15px/1.6 "Manrope", "Cairo", sans-serif; }
.tip-sub { font-size: 12px; color: #D5DAE2; }

@media (max-width: 1100px) {
  .seats-row { flex-direction: column; align-items: stretch; }
  .seats-text { flex-basis: auto; }
  .seat-plan { flex-basis: auto; width: 100%; max-width: 620px; margin-inline: auto; }
  .count-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 108px; }
  .hero-ctas { flex-direction: column; width: 100%; } .hero-ctas .btn { justify-content: center; }
  .seats { margin-top: 72px; padding-block: 64px; }
  .counters { padding-block: 64px; }
  .seat-plan { --seat-w: 54px; } .plan-in { padding: 20px 12px; }
  .plan-wall { padding-bottom: 56px; }
  .seat-row { gap: 20px; } .pair { gap: 8px; } .seat { height: 52px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .foot { padding-top: 72px; }
  .foot-row { flex-direction: column; text-align: center; } .foot-row nav { justify-content: center; }
}
@media (max-width: 480px) { .count-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .hero-h { font-size: 36px; } .foot-h { font-size: 36px; } .plan-title { font-size: 14px; } .plan-count { font-size: 12px; } .plan-count b { font-size: 32px; } }
@media (max-width: 360px) { .seat-plan { --seat-w: 48px; } .plan-in { padding-inline: 8px; } .seat-row { gap: 12px; } .pair { gap: 6px; } .legend { gap: 12px; font-size: 13px; } }
.foot-row > span:last-child { white-space: nowrap; }
/* short laptop screens: a tighter headline block, so the whole Route stays in the first screen */
@media (min-width: 701px) and (max-height: 800px) {
  .hero { padding-top: 92px; }
  .hero-text { gap: 14px; }
  .hero-text .chip { display: none; }
  .hero-h { font-size: clamp(40px, 7.4vh, 60px); }
  .hero-p { font-size: 16px; line-height: 1.65; }
  .hero-ctas .btn { padding-block: 12px; }
  .route-wrap { margin-top: 0; }
}

/* the opening and the hero sequence (motion.js): on a first visit the logo builds in the middle of a clean cover, then the headline
   comes and goes and the Route rises to the middle. With reduced motion none of this applies and the hero is the plain page. */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 90; cursor: pointer; background: var(--bg) linear-gradient(125deg, var(--bg), var(--bg-end)); }
html.intro-on:not(.intro-out) #main, html.intro-on:not(.intro-out) .foot, html.intro-on:not(.intro-out) #consent { visibility: hidden; }
html.intro-on .hdr-left, html.intro-on .hdr-right { opacity: 0; pointer-events: none; }
html.yt-anim .hero { min-height: 100vh; min-height: 100svh; padding-top: 96px; }
html.yt-anim .hero-text { position: absolute; top: 128px; inset-inline: 0; margin-inline: auto; width: min(1200px, 100% - 48px); z-index: 1; }
html.hero-hold .route-wrap { opacity: 0; }
/* the headline is never in the first paint: only the sequence shows it (inline opacity), and only on a first visit */
html.yt-anim .hero-text { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { html.yt-anim .hero { padding-top: 76px; } html.yt-anim .hero-text { top: 104px; } }
@media (min-width: 701px) and (max-height: 800px) { html.yt-anim .hero { padding-top: 76px; } html.yt-anim .hero-text { top: 92px; } }

/* sections can be reordered in the dashboard: spacing must not depend on which one is last */
#main > .sec:last-child { padding-bottom: 104px; }
.sec + .counters { margin-top: 104px; }
@media (max-width: 760px) { #main > .sec:last-child { padding-bottom: 72px; } .sec + .counters { margin-top: 72px; } }

/* a course picture: on its card and at the top of its page */
.card .card-img { display: block; margin: -4px -4px 14px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line, #e8e2d8); }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-hero { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin: 0 0 24px; }

/* intro text, picture and button a section can have (set in the dashboard) */
.sec-intro { max-width: 62ch; margin: 10px 0 0; color: var(--ink-soft, #4a5568); font-size: 1.05rem; line-height: 1.7; }
.sec-pic { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin: 22px 0 0; }
.sec-cta { margin: 28px 0 0; }
.counters .sec-intro, .counters .h2 { color: inherit; }

/* course picker above the seat card (choose the course, then the seat) */
.seat-side { flex: 0 0 620px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.seat-side .seat-plan { flex: none; width: 100%; }
/* the course popup after a seat (homepage): a centred card, a bottom sheet on phones */
.seat-dialog { padding: 0; border: 0; background: transparent; color: var(--text); width: min(520px, calc(100vw - 32px)); max-width: none; max-height: none; overflow: visible; }
.seat-dialog::backdrop { background: rgba(20, 36, 57, .45); }
.sd-in { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(20, 36, 57, .25); padding: 22px; max-height: 80vh; overflow: auto; }
.sd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.sd-kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--mute); }
.sd-head h3 { margin: 2px 0 0; font: 700 20px/1.3 "Manrope", "Cairo", sans-serif; }
.sd-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.sd-close:hover { border-color: var(--line-strong); }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sd-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.sd-item[href]:hover { border-color: var(--text); }
.sd-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sd-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-text b { font-weight: 700; font-size: 15px; line-height: 1.35; }
.sd-text small { font-size: 13px; color: var(--mute); }
.sd-state { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(46, 107, 52, .1); color: #2E6B34; }
:root[data-theme="dark"] .sd-state { color: #9FD3A5; }
.sd-go { flex: none; display: flex; }
:root[dir="rtl"] .sd-go svg { transform: scaleX(-1); }
.sd-item.is-taken { cursor: not-allowed; }
.sd-item.is-taken .sd-text { opacity: .55; }
.sd-item.is-taken .sd-state { background: var(--band); color: var(--mute); }
.sd-item.is-taken .sd-go { visibility: hidden; }
.sd-note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--mute); }
@media (max-width: 600px) {
  .seat-dialog { width: 100vw; margin: auto 0 0; }
  .sd-in { border-radius: 16px 16px 0 0; border-bottom: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 85vh; }
}
.plan-course { margin: 0 0 12px; font: 700 20px/1.4 "Manrope", "Cairo", sans-serif; }
@media (max-width: 1100px) { .seat-side { flex-basis: auto; width: 100%; max-width: 620px; margin-inline: auto; } }
@media (max-width: 420px) { .plan-course { font-size: 17px; } }
.seats-row:has(.seat-side) { align-items: flex-start; }
@media (min-width: 1101px) { .seats-row:has(.seat-side) .seats-text { position: sticky; top: 120px; } }
