/*
  VOICE: واضح وعملي ودود، لعميل أردني يحجز من هاتفه.
  IDEA: لافتة طريق أردنية زرقاء، والمسار يُرسم كطريق عليه محطات.
  PICTURE: طريق سريع وحافلة الشركة تصل إلى لافتة الوجهات.
  COLOUR/TYPE: أزرق الشعار وبرتقاله على أبيض، والطريق رمادي إسفلتي. خط Cairo فقط.
  LAYOUT: عمود واحد للهاتف، محاذاة لليمين، وكل خطوة حجز شاشة كاملة بزر ثابت أسفلها.
*/
:root {
  color-scheme: light;
  --blue: #0a56a8;
  --blue-ink: #083e7b;
  --blue-night: #062d5a;
  --blue-soft: #e9f1fb;
  --orange: #ed7f22;
  --orange-btn: #d2670f;
  --orange-ink: #9a4a08;
  --orange-soft: #fdf1e6;
  --ink: #17212e;
  --muted: #586373;
  --line: #d6dee8;
  --paper: #ffffff;
  --asphalt: #2f3640;
  --danger: #b42318;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --pad: max(5vw, 16px);
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--font);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.ic {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 19px; line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-cta { background: var(--orange-btn); color: #fff; }
.btn-cta:hover { background: #bb5a0a; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 16px; background: var(--blue); color: #fff; }
.btn-small:hover { background: var(--blue-ink); }
.btn-line { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); min-height: 46px; padding: 0 14px; font-size: 16px; }
.btn-ghost .ic { width: 20px; height: 20px; }
.btn-ghost.is-danger { color: var(--danger); }
.btn-block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--blue-soft); }
.link { border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 15px; padding: 8px 4px; min-height: 44px; }

/* ===== الرأس ===== */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px var(--pad); padding-top: max(8px, env(safe-area-inset-top));
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-plate { display: grid; place-items: center; background: #fff; border-radius: 10px; }
.brand-plate img { height: 44px; width: auto; }
.brand-name { font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--blue); }
.brand-name small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ===== البطل ===== */
.hero { background: var(--blue); color: #fff; overflow: hidden; }
.hero-text { padding: 36px var(--pad) 8px; max-width: 760px; }
.hero h1 { font-size: clamp(32px, 8vw, 54px); font-weight: 800; line-height: 1.25; }
.hero p { margin-top: 14px; font-size: 18px; color: #dce8f7; max-width: 34em; }
.hero .btn-cta { margin-top: 24px; }
.hero .btn-cta:focus-visible { outline-color: #fff; }
.hero-scene { height: clamp(200px, 34vw, 340px); margin-top: 12px; }
.hero-scene svg { width: 100%; height: 100%; }
.wheel { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bus { animation: drive 1.9s cubic-bezier(.16, .8, .24, 1) .25s both; }
  .hero-bus .wheel { animation: spin .45s linear .25s 4; }
  .sign { animation: rise .5s ease-out 1.5s both; }
}
@keyframes drive { from { transform: translateX(-560px); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== الأقسام ===== */
.band { padding: clamp(40px, 6vw, 72px) var(--pad); }
.band > * { max-width: 760px; }
.band h2 { font-size: clamp(26px, 5.5vw, 36px); font-weight: 800; color: var(--blue-ink); }
.band-lead { margin-top: 6px; color: var(--muted); }

/* خطوات الحجز كطريق عمودي */
.how-route { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.how-route::before {
  content: ''; position: absolute; inset-inline-start: 13px; top: 14px; bottom: 26px; width: 6px;
  background: var(--asphalt); border-radius: 3px;
}
.how-route::after {
  content: ''; position: absolute; inset-inline-start: 15.5px; top: 20px; bottom: 32px; width: 1px;
  background: repeating-linear-gradient(to bottom, #fff 0 7px, transparent 7px 14px);
}
.how-route li { position: relative; padding-inline-start: 52px; padding-bottom: 28px; }
.how-route li:last-child { padding-bottom: 0; }
.how-route .pin { position: absolute; inset-inline-start: 4px; top: 4px; }
.how-route h3 { font-size: 21px; font-weight: 700; }
.how-route p { color: var(--muted); margin-top: 2px; }

/* أسطول المركبات: نفس المقياس على خط طريق */
.fleet { background: var(--blue-soft); }
.fleet-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; max-width: 620px; }
.fleet-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: end; gap: 14px;
  padding-bottom: 10px; border-bottom: 4px solid var(--asphalt);
}
.fleet-art { display: block; width: var(--w); justify-self: start; direction: ltr; }
.fleet-art svg, .fleet-art img { width: 100%; height: auto; }
.fleet-name { font-weight: 700; font-size: 18px; color: var(--ink); text-align: start; padding-bottom: 2px; }

.closing { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; border-top: 1px solid var(--line); }

/* ===== التذييل ===== */
.foot {
  display: flex; align-items: center; gap: 16px;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--blue-night); color: #fff;
}
.foot .brand-plate { padding: 6px; }
.foot .brand-plate img { height: 40px; }
.foot p { font-size: 15px; color: #c9d7ea; }
.foot .muted { color: #9fb3cf; }

/* زر الحجز الثابت في الهاتف */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 15;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-on { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ===== نقاط المسار (مشتركة) ===== */
.pin {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  position: relative; z-index: 1;
}
.pin-start { background: var(--blue); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue); width: 22px; height: 22px; margin: 2px; }
.pin-stop { background: #fff; border: 5px solid var(--blue); }
.pin-end { background: var(--orange); border-radius: 7px; color: #fff; box-shadow: 0 0 0 3px #fff; }
.pin-end .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.pin-wait { width: 22px; height: 22px; margin: 2px; background: #fff; color: var(--orange-ink); box-shadow: 0 0 0 2px var(--orange); }
.pin-wait .ic { width: 16px; height: 16px; }
.pin-next { width: 18px; height: 18px; margin: 4px; background: #fff; border: 3px dashed var(--muted); }

/* ===== شاشة الحجز ===== */
.booking {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: #fff;
}
.bk-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px;
  padding: 6px 10px; padding-top: max(6px, env(safe-area-inset-top));
}
.bk-titles { text-align: center; }
.bk-titles p { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bk-titles h2 { font-size: 20px; font-weight: 800; color: var(--blue-ink); outline: none; }
.bk-progress { display: flex; gap: 5px; padding: 0 16px 10px; max-width: 680px; width: 100%; margin: 0 auto; }
.bk-progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background-color .3s; }
.bk-progress .is-done { background: var(--blue); }
.bk-progress .is-now { background: var(--orange); }
.bk-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.bk-inner { max-width: 640px; margin: 0 auto; padding: 22px 16px 32px; }
@media (prefers-reduced-motion: no-preference) {
  .bk-inner[data-dir="1"] { animation: from-left .28s ease-out; }
  .bk-inner[data-dir="-1"] { animation: from-right .28s ease-out; }
}
@keyframes from-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes from-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.bk-foot {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
}
.bk-foot > * { max-width: 608px; margin-inline: auto; }
.bk-error {
  margin-bottom: 10px; padding: 10px 14px; border-radius: 12px;
  background: #fdecea; color: var(--danger); font-size: 15px; font-weight: 600; line-height: 1.5;
}
.lead { color: var(--muted); margin-bottom: 18px; }

/* اختيار المركبة */
.vpick { display: grid; gap: 12px; }
.vp {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 14px;
  width: 100%; min-height: 92px; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 16px; background: #fff; text-align: start;
  transition: border-color .15s, background-color .15s;
}
.vp:hover { border-color: #a9bcd3; }
.vp[aria-checked="true"] { border-color: var(--blue); background: var(--blue-soft); }
.vp-art { order: 2; width: 150px; direction: ltr; }
.vp-art svg, .vp-art img { width: 100%; height: auto; max-height: 56px; object-fit: contain; }
.vp-name { order: 1; font-weight: 700; font-size: 19px; }
.vp-check {
  order: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); color: transparent;
}
.vp-check .ic { width: 18px; height: 18px; stroke-width: 3; }
.vp[aria-checked="true"] .vp-check { background: var(--blue); border-color: var(--blue); color: #fff; }

/* منشئ المسار */
.route-start {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 20px 18px; border: 2px dashed var(--blue); border-radius: 16px;
  background: var(--blue-soft); text-align: start;
}
.route-start strong { display: block; font-size: 19px; color: var(--blue-ink); }
.route-start small { color: var(--muted); font-size: 15px; }
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before {
  content: ''; position: absolute; inset-inline-start: 13px; top: 26px; bottom: 26px; width: 6px;
  background: var(--asphalt); border-radius: 3px;
}
.route::after {
  content: ''; position: absolute; inset-inline-start: 15.5px; top: 30px; bottom: 30px; width: 1px;
  background: repeating-linear-gradient(to bottom, #fff 0 7px, transparent 7px 14px);
}
.route:not(.is-ended)::before {
  background: linear-gradient(to bottom, var(--asphalt) calc(100% - 70px), #c3ccd7 calc(100% - 70px));
}
.route > li { position: relative; display: flex; align-items: center; gap: 14px; }
.route > li > .pin { flex: none; }
.rt-point { padding: 4px 0; }
.rt-main {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 14px; min-height: 64px; justify-content: center;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: start;
  transition: border-color .15s;
}
.rt-main:hover { border-color: var(--blue); }
.rt-main small { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.rt-main strong { font-size: 17px; font-weight: 700; line-height: 1.4; }
.rt-main span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.rt-end .rt-main small { color: var(--orange-ink); }
.rt-start .rt-main small { color: var(--blue); }
.rt-edit { position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; color: #9aa6b5; pointer-events: none; }
.rt-edit .ic { width: 18px; height: 18px; }
.rt-main { padding-inline-end: 40px; }
.rt-wait { padding: 4px 0; }
.chip-wait {
  min-height: 40px; padding: 4px 14px; border-radius: 999px;
  border: 1.5px solid var(--orange); background: var(--orange-soft); color: var(--orange-ink);
  font-weight: 700; font-size: 15px;
}
.rt-next { padding-top: 10px; align-items: flex-start !important; }
.rt-next > .pin { margin-top: 6px; }
.rt-actions { flex: 1; }
.rt-actions > p { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.rt-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.rt-btns button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 76px; padding: 8px 6px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--blue-ink);
  font-weight: 700; font-size: 15px; line-height: 1.3;
}
.rt-btns button:hover { border-color: var(--blue); }
.rt-btns .is-end { background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; }
.rt-btns .is-end:hover { background: #bb5a0a; }
.rt-done {
  display: flex; gap: 8px; align-items: center; margin-top: 16px;
  color: #1d6b3a; font-weight: 600; font-size: 15px;
}
@media (prefers-reduced-motion: no-preference) {
  .route > li:last-of-type { animation: rise .3s ease-out; }
}

/* الحقول */
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
input[type="text"], input:not([type]), input[type="tel"], input[type="date"], input[type="time"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 17px; line-height: 1.5;
}
input[type="date"], input[type="time"] { text-align: start; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #cfe0f5; }
.quick { display: flex; gap: 8px; margin-bottom: 8px; }
.quick button, .presets button {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 15px;
}
.quick button[aria-pressed="true"], .presets button[aria-checked="true"] {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.switch {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui {
  width: 50px; height: 30px; border-radius: 999px; background: #c3ccd7; position: relative; flex: none;
  transition: background-color .2s;
}
.switch-ui::after {
  content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: inset-inline-start .2s;
}
.switch input:checked + .switch-ui { background: var(--blue); }
.switch input:checked + .switch-ui::after { inset-inline-start: 23px; }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--orange); outline-offset: 2px; }
.switch strong { display: block; font-size: 17px; }
.switch small { color: var(--muted); font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -6px 0 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
input[dir="ltr"] { text-align: right; }

/* المراجعة */
.rv { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.rv header { display: flex; align-items: center; justify-content: space-between; }
.rv h3 { font-size: 15px; font-weight: 700; color: var(--muted); }
.rv p { font-weight: 600; }
.rv-vehicle { display: flex; align-items: center; gap: 14px; }
.rv-art { width: 110px; direction: ltr; }
.rv-route { list-style: none; margin: 4px 0 0; padding: 0; }
.rv-route li { position: relative; padding-inline-start: 22px; padding-bottom: 8px; }
.rv-route li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.rv-route li:not(:last-child)::after {
  content: ''; position: absolute; inset-inline-start: 7px; top: 24px; bottom: -6px; width: 2px; background: var(--line);
}
.rv-route .rv-start::before { background: var(--blue); }
.rv-route .rv-end::before { background: var(--orange); border-color: var(--orange); border-radius: 3px; }
.rv-route strong, .rv-route span, .rv-route em { display: block; }
.rv-route span { font-size: 14px; color: var(--muted); }
.rv-route em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* النجاح */
.done { text-align: center; padding-top: 12px; }
.done-scene { max-width: 320px; margin: 0 auto 8px; }
.done h2 { font-size: 30px; font-weight: 800; color: var(--blue-ink); outline: none; }
.done-no { margin: 8px 0 10px; font-size: 18px; }
.done-no strong { font-size: 28px; color: var(--orange-ink); margin-inline-start: 4px; }
.done p { max-width: 30em; margin-inline: auto; }
.done .btn { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .done-bus { animation: done-drive 1s cubic-bezier(.16, .8, .24, 1) both; }
}
@keyframes done-drive { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== اللوحة السفلية ===== */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 29, 58, .5); }
.sheet {
  position: relative; width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 6px 16px calc(18px + env(safe-area-inset-bottom));
}
.sheet.is-tall { height: 92dvh; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: sheet-up .26s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 6px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sh-head h2 { font-size: 21px; font-weight: 800; color: var(--blue-ink); outline: none; }
.sh-sub { margin: -4px 0 14px; color: var(--muted); }
.sh-note { min-height: 0; font-size: 14px; color: var(--danger); margin: 6px 0; }
.sh-note:empty { display: none; }
.search { position: relative; display: block; }
.search .ic { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input { padding-inline-start: 46px; }
.locate {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 10px; padding: 0 14px;
  border: 0; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: 16px;
}
.results { list-style: none; margin: 8px 0 0; padding: 0; }
.res {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 6px;
  border: 0; border-bottom: 1px solid #edf1f5; background: none; text-align: start;
}
.res:hover { background: #f6f9fc; }
.res .ic { color: var(--blue); }
.res strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; }
.res small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.res-custom .ic { color: var(--orange-ink); }
.chosen {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 16px;
  border-radius: 14px; background: var(--blue-soft);
}
.chosen > div { flex: 1; }
.chosen strong { display: block; font-size: 18px; line-height: 1.4; }
.chosen small { display: block; color: var(--muted); font-size: 14px; }
.sh-extra { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.custom-wait .row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; }
.custom-wait { margin-bottom: 14px; }

.noscript { padding: 16px; background: #fdecea; color: var(--danger); text-align: center; }

/* ===== شاشات أوسع ===== */
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-top: 56px; margin-inline-start: max(5vw, calc((100vw - 1180px) / 2)); }
  .band { padding-inline: max(5vw, calc((100vw - 1180px) / 2)); }
  .top { padding-inline: max(5vw, calc((100vw - 1180px) / 2)); }
  .how-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: none; }
  .how-route::before { inset-inline: 13px 0; top: 13px; bottom: auto; width: auto; height: 6px; }
  .how-route::after {
    inset-inline: 18px 6px; top: 15.5px; bottom: auto; width: auto; height: 1px;
    background: repeating-linear-gradient(to left, #fff 0 7px, transparent 7px 14px);
  }
  .how-route li { padding: 44px 0 0; }
  .how-route .pin { top: 0; }
  .how > *, .closing > * { max-width: none; }
  .fleet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; max-width: 980px; }
  .booking { background: #eef2f7; }
  .bk-head, .bk-progress { background: #fff; }
  .bk-head { padding-inline: max(16px, calc((100vw - 680px) / 2)); }
  .bk-progress { max-width: none; padding-inline: max(16px, calc((100vw - 680px) / 2)); padding-bottom: 12px; }
  .bk-body { padding: 24px 16px; }
  .bk-inner { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 1px 0 var(--line); }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; max-height: 84vh; }
  .sheet.is-tall { height: 80vh; }
}

/* ===== تصحيحات بعد المعاينة ===== */
.icon-btn.is-off { visibility: hidden; }
@media (max-width: 899px) { .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) {
  .hero-text { max-width: 1180px; }
  .hero h1 { font-size: clamp(44px, 4.4vw, 60px); }
  .hero p { max-width: 44em; }
  .how-route::before { inset-inline-end: calc(33.333% - 45px); }
  .how-route::after { inset-inline-end: calc(33.333% - 40px); }
}

/* خريطة اختيار المكان */
.mapbox { position: relative; height: min(52dvh, 460px); border-radius: 14px; overflow: hidden; background: #dfe7f0; margin-bottom: 12px; }
.map { position: absolute; inset: 0; }
.map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  transform: translate(-50%, -100%); color: var(--orange-btn);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.map-pin .ic { width: 44px; height: 44px; fill: #fff; stroke-width: 2.2; }
#pl-pick { margin-top: 8px; }

/* خط Cairo إجباري على كل العناصر، ومنها عناصر النماذج التي لا ترث الخط افتراضياً في بعض المتصفحات */
html, body, button, input, select, option, optgroup, textarea, dialog, table, th, td, pre, code, kbd, samp, label, legend {
  font-family: var(--font);
}
svg text { font-family: var(--font); }
