/* sirajalhuda.com — one stylesheet, no framework.

   The look follows the wordmark (brand/BRAND.md): green #065F46 letters, a
   copper flame for the dot of ج, and a dashed road under the word. The road
   comes back on the page as the dashed copper rule between the hero and the
   rest; cream #FBF6EE is the paper everything sits on.

   The Riyadh pages' <main> is pinned by tests/riyadh-baseline.json (Google
   ranks them). The first restyle (2026-10-29 01:48) was CSS only for that
   reason; the second (same day) changed their markup on purpose — galleries,
   related links — and re-pinned the baseline in the same commit. */

:root {
  --brand: #065f46;
  --brand-ink: #064e3b;
  --brand-deep: #0b2e24;
  --brand-soft: #e9f3ee;
  --copper: #b45309;
  --copper-ink: #92400e;
  --copper-soft: #fbeedd;
  --flame: #e8a15e;           /* the flame on dark grounds — a symbol, never text */
  --cream: #fbf6ee;
  --sand: #f5ebdd;
  --ink: #1c2430;
  --muted: #5b6573;
  --line: #ebe3d6;
  --bg: #ffffff;
  --wa: #1c9d4f;
  /* «الطريق المضيء»: the night the bus drives through, and the Fajr it
     arrives in (parts.mjs road(), the hero) */
  --night: #06231d;
  --night-2: #0c3a33;
  --dusk: #3d4a3c;
  --fajr: #e9b877;
  --fajr-soft: #f8e3c0;
  --hair: rgb(180 83 9 / .35);
  --r: 18px;
  --shadow: 0 1px 2px rgb(40 30 10 / .05), 0 10px 28px rgb(40 30 10 / .07);
  /* the road: copper dashes, as under the wordmark */
  --road: repeating-linear-gradient(90deg, var(--copper) 0 22px, transparent 22px 36px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.85 Tajawal, system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.85rem, 4.4vw, 3.1rem); color: var(--brand); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.05rem); color: var(--brand-ink); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.2rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.small { font-size: .92rem; color: var(--muted); }

/* section titles carry a short stretch of the road */
.sec h2, .faq h2 { padding-bottom: .45em; position: relative; }
.sec h2::after, .faq h2::after { content: ""; position: absolute; right: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: var(--road); }

/* header */
.top { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.chrome-off .top { transform: translateY(-100%); }
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav a[aria-current] { color: var(--brand); background: var(--brand-soft); font-weight: 700; }

/* buttons — pills, like the mock-up */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--copper); color: #fff; box-shadow: 0 6px 16px rgb(180 83 9 / .25); }
.btn-wa:hover { background: var(--copper-ink); }
.top .btn-wa { background: var(--brand); box-shadow: none; }
.foot .btn-wa { box-shadow: none; }
.top .btn-wa:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid currentColor; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-ghost-dark { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.btn-ghost-dark:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 10px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* hero: photo on the left with a sweeping edge, cream panel with the
   heading on the right, the copper road running underneath both */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #f6efe2;
  /* night at the top of the panel, the glow of Fajr at its foot: the bus
     leaves at noon, drives the night and reaches Makkah before Fajr */
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 46%, var(--dusk) 72%, #a8703d 90%, var(--fajr) 100%);
  background-size: 100% 220%; background-position: 0 0; animation: dawn 2.6s cubic-bezier(.3,.6,.2,1) .2s forwards;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); padding-bottom: 46px; }
.hero-bg { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 440px; max-height: 560px; object-fit: cover;
  border-bottom-right-radius: 36% 100%; }
.hero-in { grid-column: 1; grid-row: 1; align-self: center; width: auto; max-width: 600px;
  margin-inline: max(16px, calc((100vw - 1120px) / 2)) 0; padding: 48px 0 48px 40px; }
.hero::before { content: ""; position: absolute; bottom: 20px; height: 3px; border-radius: 3px; background: var(--road); z-index: 1;
  inset-inline: max(16px, calc((100% - 1120px) / 2)); }
@keyframes dawn { to { background-position: 0 100%; } }
.hero h1 { margin-bottom: .45em; color: #fff8ec; text-shadow: 0 1px 24px rgb(0 0 0 / .25); }
.hero .lead { color: #e7dccb; }
.hero .btn-ghost { color: #fbeedd; border-color: rgb(251 238 221 / .6); }
.hero .btn-ghost:hover { background: rgb(255 255 255 / .1); }
.hero .btn-wa { background: linear-gradient(180deg, #d0731f, var(--copper)); box-shadow: 0 10px 26px -8px rgb(232 161 94 / .7); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 46px; background: var(--cream); z-index: -1; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #3b4552; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* cream continues under the hero into the facts row, as in the mock-up */
.hero + .sec-tight { background: var(--cream); padding: 6px 0 44px; }

/* sections */
.sec { padding: clamp(36px, 5vw, 60px) 0; }
/* two white sections in a row would stack both paddings into one gap */
.sec:not(.sec-alt):not(.page-head):not(.sec-tight) + .sec:not(.sec-alt) { padding-top: 0; }
[id] { scroll-margin-top: 92px; }
.sec-tight { padding: 26px 0; }
.sec-alt { background: var(--cream); }
.page-head { background: var(--cream); padding: 40px 0 44px; position: relative; }
.page-head::after { content: ""; position: absolute; bottom: 18px; height: 3px; border-radius: 3px; background: var(--road); inset-inline: max(16px, calc((100% - 1120px) / 2)); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { color: var(--muted); }
.page-head h2::after { display: none; }
.crumbs + .page-head { margin-top: 0; }
.two { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.pic img { border-radius: var(--r); max-height: 460px; object-fit: cover; width: 100%; }

/* facts: white cards, a green line icon in a cream disc */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.facts li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: #fff; border-radius: var(--r); padding: 22px 16px 20px; box-shadow: var(--shadow); }
.facts .ico { color: var(--brand); width: 30px; height: 30px; padding: 13px; box-sizing: content-box; border-radius: 50%; background: var(--brand-soft); }
.facts b { display: block; font-size: .9rem; color: var(--muted); font-weight: 500; }
.facts span { font-weight: 800; color: var(--brand-ink); line-height: 1.5; }

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(40 30 10 / .06), 0 16px 36px rgb(40 30 10 / .1); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-in { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--muted); }
.more { margin-top: auto; font-weight: 700; color: var(--copper); text-decoration: none; }
.more:hover { color: var(--copper-ink); text-decoration: underline; }
.more::after { content: " ←"; }

.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding: 6px 30px 6px 0; }
.check li::before { content: ""; position: absolute; right: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check.no li::before { background: #9aa3ad url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7l1.4-1.4 6.3 6.3 6.3-6.3z'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* steps: the stops of the road, joined by a dashed line */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; right: 29px; top: 24px; bottom: 24px; width: 3px; background: repeating-linear-gradient(180deg, var(--copper) 0 12px, transparent 12px 22px); }
.steps li { counter-increment: s; position: relative; padding: 15px 62px 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 4px #fff; }
.steps b { display: block; color: var(--brand-ink); }
.steps span { color: var(--muted); }

.seat-pair { display: flex; flex-wrap: wrap; gap: 28px; margin: 8px 0 24px; }
.seat-pair figure { margin: 0; text-align: center; background: #fff; border-radius: var(--r); padding: 16px 20px 10px; box-shadow: var(--shadow); }
.seats { width: 200px; height: auto; }
.seats rect { fill: var(--brand); }
.seats.vip rect { fill: var(--copper); }
figcaption { font-size: .92rem; color: var(--muted); margin-top: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 1.2em; }
.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--brand); color: #fff; }
.cmp tbody th { font-weight: 700; width: 30%; color: var(--brand-ink); }
.cmp tbody tr:nth-child(even) > * { background: #fdfaf5; }
.cmp tr:last-child > * { border-bottom: 0; }

/* gallery: the first photo large, the rest in a grid beside it */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; }
.g-item { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--sand); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-item:hover img { transform: scale(1.04); }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.g-main { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-full { grid-column: span 4; }
.services { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.services li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; }
.services .ico { color: var(--brand); }
.gallery-few { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
.gallery-few .g-main { grid-column: span 2; grid-row: span 1; }
.pic .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
.pic .g-main { grid-column: span 2; grid-row: span 2; }

/* the photo viewer */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgb(8 20 16 / .92); }
.lb img { position: absolute; inset: 0; margin: auto; max-width: min(1200px, 94vw); max-height: 82vh; width: auto; height: auto; border-radius: 10px; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgb(255 255 255 / .26); }
.lb-x { top: 16px; left: 16px; }
.lb-p { right: 16px; top: 50%; translate: 0 -50%; }
.lb-n { left: 16px; top: 50%; translate: 0 -50%; }
.lb-c { position: absolute; bottom: 14px; inset-inline: 16px; text-align: center; color: #e3efe9; margin: 0; font-size: .95rem; }

/* city links: «باصات من X إلى مكة», each a tap-sized tile */
.city-grid { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.city-grid a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.city-grid a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.city-grid .ico { color: var(--copper); width: 26px; height: 26px; }
.city-grid b { display: block; font-size: .98rem; line-height: 1.45; }
.city-grid small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.city-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.city-grid.compact a { min-height: 48px; padding: 8px 14px; }

/* related pages */
.related-sec { padding-top: clamp(28px, 4vw, 44px) !important; }
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rel { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; min-height: 64px; border-radius: 16px; background: var(--brand-soft); color: var(--ink); text-decoration: none; transition: background .15s; }
.rel:hover { background: #dcece4; }
.rel .ico { color: var(--brand); width: 28px; height: 28px; margin-top: 2px; }
.rel b { display: block; color: var(--brand-ink); line-height: 1.45; }
.rel small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.55; margin-top: 2px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--copper-soft); color: var(--copper-ink); font-weight: 500; }
.note .ico { margin-top: 4px; }

/* a timetable reads as one card per day on a phone instead of a table
   cut off at the screen edge (seen on the Dammam page, 2026-10-29) */
@media (max-width: 600px) {
  .stack { border: 0; background: transparent; overflow: visible; }
  .stack .cmp { min-width: 0; }
  .stack thead { display: none; }
  .stack tbody tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 12px 16px; }
  .stack tbody tr > * { display: block; padding: 2px 0; border: 0; width: auto; background: transparent !important; }
  .stack tbody th { color: var(--brand); font-size: 1.05rem; }
  .stack tbody td:nth-child(2) { font-weight: 700; color: var(--copper-ink); }
}

.box-muted { background: #fbfaf7; box-shadow: none; }

/* steps as a row of stops on wide screens */
@media (min-width: 900px) {
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .steps-grid::before { display: none; }
  .steps-grid li { padding: 58px 20px 18px; }
  .steps-grid li::before { right: 18px; top: 16px; }
}

.cta { background: var(--brand); color: #fff; padding: clamp(48px, 6vw, 72px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--flame) 0 22px, transparent 22px 36px); }
.cta h2 { color: #fff; }
.cta p { color: #e3efe9; max-width: 56ch; margin-inline: auto; margin-bottom: 1.4em; }
.cta .btn-wa { background: var(--cream); color: var(--brand-ink); box-shadow: none; }
.cta .btn-wa:hover { background: #fff; }

.faq { padding: clamp(36px, 5vw, 60px) 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; }
.faq details[open] { border-color: #d9cdb8; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 20px 14px; color: var(--muted); }

.book { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.book label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.book input, .book select { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid #d8cfc0; border-radius: 12px; background: #fff; min-height: 48px; }
.book input:focus, .book select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.book button { grid-column: 1 / -1; justify-content: center; }

.prose { max-width: 75ch; }
.prose h3 { margin-top: 1.6em; color: var(--brand-ink); }
.prose ul { padding-inline-start: 1.2em; }

/* footer */
.foot { background: var(--brand-deep); color: #d5e2dc; padding: 56px 0 24px; position: relative; }
.foot::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--copper) 0 22px, transparent 22px 36px); }
.foot .cols { display: grid; gap: 28px; grid-template-columns: 1.6fr repeat(4, 1fr); }
.foot h3 { color: #fff; font-size: 1rem; }
.foot a { color: #d5e2dc; display: block; padding: 6px 0; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .about img { height: 56px; width: auto; margin-bottom: 16px; }
.foot .about p { font-size: .95rem; }
.foot .about .btn { display: inline-flex; color: #fff; }
.copy { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 28px; padding-top: 16px; font-size: .9rem; color: #9fb7ad; }

.dock { display: none; }
.wa-float { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.chrome-off .wa-float { transform: translateY(calc(100% + 24px)); }
.wa-float { position: fixed; left: 16px; bottom: 16px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .25); text-decoration: none; font-weight: 800; }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float span { display: none; }

/* the phone drawer: hidden on wide screens */
.drawer { display: none; }
.drawer summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; color: var(--brand-ink); background: #fff; }
.drawer summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.drawer[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.drawer[open] .burger i:nth-child(2) { opacity: 0; }
.drawer[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer-panel { position: fixed; inset: 66px 0 auto 0; max-height: calc(100vh - 66px); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgb(0 0 0 / .12); padding: 12px 16px 20px; z-index: 40; }
.drawer-nav { display: grid; }
.drawer-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.drawer-nav a[aria-current] { color: var(--brand); }
.drawer-h { margin: 16px 0 8px; font-size: .9rem; color: var(--muted); font-weight: 700; }
.drawer-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.drawer-cities a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; font-weight: 500; }
.drawer-cities a[aria-current] { background: var(--brand); color: #fff; }
.drawer-panel .btn-wa { width: 100%; justify-content: center; background: var(--copper); }

/* Mid widths (tablet, small laptop): with the «المدن» item the nav and the
   header WhatsApp button no longer fit on one row — the button wrapped onto
   two lines and the nav hid its last items. The floating button stays. */
.top .btn-wa { white-space: nowrap; }
@media (max-width: 1180px) {
  .top .btn-wa { display: none; }
  .nav a { padding: 8px 9px; }
}

@media (max-width: 860px) {
  .bar { min-height: 66px; gap: 12px; }
  .brand img { height: 38px; }
  .nav { display: none; }
  .drawer { display: block; margin-inline-start: auto; }
  .hide-sm { display: none; }
  .crumbs { padding: 10px 0 6px; font-size: .88rem; }
  .crumbs a { padding: 8px 0; }

  /* galleries and hotel cards scroll sideways, the next one peeking in */
  .gallery, .gallery-few, .pic .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar, .cards-scroll::-webkit-scrollbar { display: none; }
  .g-item, .g-main { flex: 0 0 82%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .cards-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .cards-scroll .card { flex: 0 0 78%; scroll-snap-align: center; }
  .card-in { padding: 16px 18px 18px; }
  .related, .city-grid, .city-grid.compact { grid-template-columns: 1fr; }
  .foot a { padding: 10px 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }

  /* the photo on top with a soft curved foot, the panel under it */
  .hero { grid-template-columns: 1fr; padding-bottom: 40px; 
    /* the panel sits low on a phone: keep the glow of Fajr under the buttons,
       not behind the words (light text on the copper part read at 3:1) */
    background-image: linear-gradient(180deg, var(--night) 0%, var(--night-2) 52%, var(--night-2) 74%, var(--dusk) 87%, #a8703d 95%, var(--fajr) 100%); }
  .hero-bg { grid-column: 1; grid-row: 1; height: auto; min-height: 0; max-height: none; aspect-ratio: 16 / 10;
    border-radius: 0 0 50% 50% / 0 0 12% 12%; }
  .hero-in { grid-column: 1; grid-row: 2; width: min(1120px, 100% - 32px); margin-inline: auto; padding: 22px 0 6px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero::before { bottom: 18px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .facts li { padding: 16px 10px; }
  .facts .ico { width: 24px; height: 24px; padding: 11px; }

  /* the dock: a floating capsule, WhatsApp raised in its middle (the owner
     found the full-width strip flat, 2026-10-30) */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .wa-float { display: none; }
  .dock { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; position: fixed; z-index: 30;
    inset-inline: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 66px; padding: 0 8px 8px;
    border-radius: 26px; background: rgb(255 253 249 / .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 22px 44px -18px rgb(6 35 29 / .6), 0 2px 6px rgb(6 35 29 / .08), inset 0 0 0 1px rgb(180 83 9 / .14);
    transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .chrome-off .dock { transform: translateY(calc(100% + 30px)); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 48px; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--brand-ink); }
  .dock-i .ico { width: 23px; height: 23px; color: var(--brand); }
  .dock a[aria-current] { color: var(--copper); }
  .dock-wa { position: relative; color: var(--copper-ink) !important; }
  .dock-wa-c { position: absolute; top: -30px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #e08a3a, var(--copper) 70%); color: #fff;
    box-shadow: 0 0 0 5px #fffdf9, 0 14px 26px -10px rgb(180 83 9 / .8); }
  .dock-wa-c .ico { width: 30px; height: 30px; }
  .dock a:active { transform: scale(.96); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { animation: none; background-position: 0 100%; }
  .top, .dock, .wa-float, .road-lit, .flame, .stop-dot { transition: none !important; }
  .card, .btn, .g-item img { transition: none; }
  .card:hover { transform: none; }
}

/* ─── «الطريق المضيء» (parts.mjs road()) ─────────────────────────────────
   One vertical road through the night down to the glow of Fajr. A fine
   copper hairline is the road; the part the flame has passed glows; each
   station lights as the flame reaches it (roadScript in html.mjs sets --p). */
.lit-road { --p: 0; position: relative; color: #efe6d6; padding: clamp(64px, 9vw, 112px) 0 clamp(80px, 10vw, 128px);
  background: linear-gradient(180deg, var(--night) 0%, #082c25 38%, var(--night-2) 62%, #4a4735 84%, #c48c4f 96%, var(--fajr) 100%); overflow: hidden; }
.lit-road::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(1px 1px at 12% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 22%, #ffe9c4 50%, transparent 51%), radial-gradient(1px 1px at 30% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 46% 6%, #fff 50%, transparent 51%); }
.road-wrap { position: relative; max-width: 820px; }
.eyebrow { margin: 0 0 10px; font-size: .9rem; font-weight: 700; letter-spacing: .02em; color: var(--flame); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--flame); }
.lit-road h2 { color: #fff8ec; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .35em; }
.road-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #cfc3ae; max-width: 52ch; margin-bottom: 2em; }
.road-note { color: #cfc3ae; border-inline-start: 1px solid var(--hair); padding-inline-start: 16px; max-width: 60ch; }
.road-note b { color: var(--flame); font-weight: 700; }
.road-after { margin-top: 2.6em; color: #3b2a14; background: rgb(255 248 236 / .94); border: 0; border-radius: 16px; padding: 16px 20px; box-shadow: 0 12px 30px -16px rgb(59 42 20 / .5); }
.road-after b { color: var(--copper-ink); }
.road { position: relative; margin-top: 8px; }
.road-line { position: absolute; top: 10px; bottom: 10px; right: 27px; width: 2px; background: rgb(232 161 94 / .22); border-radius: 2px; }
.road-lit { position: absolute; inset: 0 0 auto 0; height: calc(var(--p) * 100%); border-radius: 2px;
  background: linear-gradient(180deg, #f6b864, var(--flame)); box-shadow: 0 0 14px 2px rgb(246 184 100 / .55); transition: height .15s linear; }
/* the flame has its own layer above the station dots: inside the line it
   sat under them and vanished at every station */
.flame { position: absolute; z-index: 2; right: 16px; top: calc(10px + var(--p) * (100% - 20px)); width: 24px; height: 32px; translate: 0 -70%;
  filter: drop-shadow(0 0 10px rgb(246 184 100 / .9)); transition: top .15s linear; animation: flicker 2.4s ease-in-out infinite; }
.flame svg { width: 100%; height: 100%; display: block; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.07, 1.12) rotate(2deg); } }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 72px); }
.stop { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.stop-dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); border: 1px solid rgb(232 161 94 / .35); color: rgb(232 161 94 / .55); transition: all .45s ease; }
.stop-dot .ico { width: 24px; height: 24px; }
.stop small { display: block; font-size: .85rem; letter-spacing: .02em; color: #a99c86; font-weight: 500; margin-bottom: 2px; transition: color .45s; }
.stop h3 { font-size: clamp(1.3rem, 2.8vw, 1.75rem); color: #d9cdb8; margin: 0 0 .25em; transition: color .45s; }
.stop p { color: #b7ab95; margin: 0; max-width: 46ch; transition: color .45s; }
.stop.lit .stop-dot { background: radial-gradient(circle at 50% 35%, #f6b864, var(--copper) 75%); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgb(246 184 100 / .14), 0 0 26px rgb(246 184 100 / .5); }
.stop.lit small { color: var(--flame); }
.stop.lit h3 { color: #fff8ec; }
.stop.lit p { color: #e3d8c4; }
.stop:last-child.lit h3 { color: #fff; }
@media (max-width: 600px) {
  .stop { grid-template-columns: 46px 1fr; gap: 16px; }
  .stop-dot { width: 46px; height: 46px; }
  .road-line { right: 22px; }
  .flame { right: 11px; }
}
@media (prefers-reduced-motion: reduce) { .flame { animation: none; } }

/* ─── WhatsApp by city (html.mjs picker(), parts.mjs quickForm()) ────────
   A shared page asks «من أي مدينة؟» before opening a chat, and the home
   hero takes the booking details in five fields (owner, 2026-10-30). */
.pick { border: 0; padding: 0; width: min(440px, 100vw - 24px); max-height: calc(100vh - 32px); border-radius: 24px; background: var(--night); color: #efe6d6;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); }
.pick::backdrop { background: rgb(6 20 16 / .62); backdrop-filter: blur(4px); }
.pick-in { position: relative; padding: 26px 22px 20px; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, #3d4a3c 100%); }
.pick h2 { color: #fff8ec; font-size: 1.5rem; margin: 0 0 .25em; }
.pick-lead { color: #cfc3ae; font-size: .95rem; }
.pick ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pick a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border-radius: 14px; text-decoration: none;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(232 161 94 / .22); color: #fff8ec; transition: background .15s, border-color .15s; }
.pick a:hover, .pick a:focus-visible { background: rgb(232 161 94 / .16); border-color: var(--flame); }
.pick a .ico { color: #6fd39a; width: 26px; height: 26px; }
.pick a b { display: block; font-size: 1.02rem; }
.pick a small { display: block; color: #bfb39d; font-size: .85rem; text-align: right; }
.pick-x { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 22px; padding: 18px; border-radius: 20px;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(232 161 94 / .3); backdrop-filter: blur(6px); }
.quick-h { grid-column: 1 / -1; margin: 0; color: var(--flame); font-weight: 800; }
.quick label { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: #e7dccb; }
.quick .q-city { grid-column: 1 / -1; }
.quick input, .quick select { font: inherit; font-size: 16px; font-weight: 500; min-height: 46px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid rgb(255 255 255 / .2); background: #fffdf9; color: var(--ink); width: 100%; }
.quick input:focus, .quick select:focus { outline: 2px solid var(--flame); outline-offset: 1px; }
.quick button { grid-column: 1 / -1; justify-content: center; min-height: 50px; font-size: 1.05rem; }
.quick-note { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: #bfb39d; }
.hero-form .hero-in { padding-top: 36px; padding-bottom: 36px; }
.hero-form .hero-bg { max-height: none; }
@media (max-width: 420px) { .quick { grid-template-columns: 1fr; } }
