/* Tokens lifted from the design PDF (تصميم2.pdf) */
:root {
  --bg: #fbf4ea;
  --card: #fffbf5;
  --line: #e2d4c2;
  --line-strong: #cdbba5;
  --ink: #2a1a10;
  --muted: #7a6656;
  --brand: #94602c;      /* logo background */
  --primary: #9c4a2f;    /* rust buttons / selected */
  --primary-soft: #f6e6dc;
  --green: #4c6b3c;
  --green-soft: #e8efe1;
  --gold: #a8742f;
  --radius: 16px;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }

/* header */
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; }
.topbar .brand img { width: 36px; height: 36px; border-radius: 9px; }
.topbar .spacer { flex: 1; }
.guest-pill { white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.guest-pill b { color: var(--primary); }
.guest-pill i { width: 1px; height: 14px; background: var(--line-strong); }
.icon-btn { background: none; border: 0; padding: 4px; color: var(--ink); display: inline-flex; }

/* progress */
.progress { padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.stages { display: flex; align-items: flex-start; gap: 10px; }
.back { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); display: grid; place-items: center; text-decoration: none; }
.stage-row { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stage { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.stage::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 4px; }
.stage.done { color: var(--green); } .stage.done::before { background: var(--green); }
.stage.current { color: var(--primary); } .stage.current::before { background: var(--primary); }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.steps .count { font-size: 12px; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.chip.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip.done { background: var(--green-soft); color: var(--green); border-color: #b9caa9; }

/* content */
main { flex: 1; padding: 20px 16px 120px; }
h1 { font-size: 24px; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stack > * + * { margin-top: 12px; }
.error { background: #fbe9e4; color: var(--primary); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; }
.note { background: #f3ebe0; border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.link { color: var(--primary); font-weight: 700; font-size: 14px; background: none; border: 0; text-decoration: underline; padding: 0; }

/* bottom bar */
.bottombar { position: fixed; bottom: 0; inset-inline: 0; max-width: 480px; margin: 0 auto; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 14px; align-items: center; z-index: 5; }
.total small { display: block; color: var(--muted); font-size: 12px; }
.total b { color: var(--gold); font-size: 20px; }
.btn { flex: 1; border: 0; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; padding: 14px; text-align: center; text-decoration: none; }
.btn:disabled { background: #cfc3b6; }
.btn.green { background: var(--green); }

/* welcome */
.hero { text-align: center; padding-top: 10px; }
.hero img { width: 72px; height: 72px; border-radius: 18px; }
.plan-card { border: 1.5px solid var(--green); }
.plan-card h2 { display: flex; justify-content: space-between; align-items: center; font-size: 19px; margin: 0 0 10px; }
.badge { font-size: 12px; background: var(--green); color: #fff; padding: 3px 10px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { padding: 4px 0; display: flex; gap: 8px; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 700; }
.login-card { border-color: #d9a796; display: flex; justify-content: center; gap: 10px; align-items: baseline; text-decoration: none; }
.login-card b { color: var(--primary); font-size: 16px; }
.login-card span { color: var(--muted); font-size: 13px; }
.timeline h3 { color: var(--gold); font-size: 16px; margin: 0 0 10px; }
.timeline .lbl { font-size: 13px; font-weight: 700; color: var(--green); margin: 8px 0 4px; }
.timeline .lbl.req { color: var(--primary); }
.timeline ol { list-style: none; margin: 0; padding: 0 4px 0 0; }
.timeline li { position: relative; padding: 4px 22px 4px 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.timeline .req li::before { background: var(--primary); }
.timeline .divider { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.timeline .divider::before, .timeline .divider::after { content: ""; flex: 1; height: 1px; background: var(--primary); }
.timeline .divider span { background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }

/* calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: 17px; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--muted); padding: 6px 0; }
.cal-grid button { border: 0; background: none; height: 42px; font-weight: 700; font-size: 15px; color: var(--ink); }
.cal-grid button:disabled { color: #cbbfb2; cursor: default; }
.cal-grid .in-range { background: #f1e3d6; }
.cal-grid .edge span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; }
.range-box { border: 1.5px solid var(--primary); border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.range-box b { display: block; font-size: 16px; }
.range-box small { color: var(--muted); }

/* counters */
.counter-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.counter-row + .counter-row { border-top: 1px solid var(--line); }
.counter-row small { display: block; color: var(--muted); font-size: 13px; }
.counter { display: flex; align-items: center; gap: 14px; }
.counter button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); font-size: 20px; }
.counter button:disabled { opacity: .4; }
.counter output { min-width: 20px; text-align: center; font-weight: 700; font-size: 18px; }

/* radio cards & tiles */
.option { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.option input { appearance: none; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; flex: none; margin: 0; }
.option input:checked { border-color: var(--primary); background: radial-gradient(var(--primary) 0 45%, transparent 50%); }
.option:has(input:checked) { border-color: var(--primary); }
.option b { display: block; font-size: 16px; }
.option small { color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 14px; cursor: pointer; }
.tile input { position: absolute; opacity: 0; }
.tile:has(input:checked) { border-color: var(--primary); }
.tile svg { color: var(--brand); }
.tile b { display: block; margin-top: 6px; font-size: 16px; }
.tile small { color: var(--muted); font-size: 13px; }
.tile:has(input:disabled:not(:checked)) { opacity: .5; cursor: default; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

/* segmented choice (screen 6) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.seg label { border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 14px; text-align: center; font-weight: 700; background: var(--card); cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.field { display: block; }
.field + .field { margin-top: 14px; }
.field span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; direction: ltr; text-align: left; }
.note.icon { display: flex; gap: 10px; align-items: flex-start; }

/* nested checkbox inside an option (screen 7) */
.option.block { display: block; }
.option.block > .head { display: flex; gap: 12px; align-items: center; }
.sub-check { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; }
.sub-check input { appearance: auto; width: 20px; height: 20px; accent-color: var(--brand); border-radius: 4px; background: none; }
.option.block:not(:has(input[type=radio]:checked)) .sub-check { display: none; }

/* vehicles (screen 8) */
.pax-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f3ebe0; border-radius: 14px; padding: 10px; margin-bottom: 14px; }
.pax-box > div { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.pax-box small { color: var(--muted); font-size: 12px; display: block; }
.pax-box output, .pax-box .num { font-weight: 700; font-size: 18px; }
.pax-box .counter button { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.pax-box .counter { gap: 10px; }
.vehicle { display: flex; gap: 12px; position: relative; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 12px; cursor: pointer; }
.vehicle input { position: absolute; opacity: 0; }
.vehicle:has(input:checked) { border-color: var(--primary); }
.vehicle .thumb { flex: none; width: 84px; height: 62px; border-radius: 10px; background: #efe5d8 center/cover; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.vehicle .body { flex: 1; min-width: 0; }
.vehicle .top { display: flex; justify-content: space-between; gap: 8px; }
.vehicle b { font-size: 16px; }
.vehicle .price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.vehicle .price small, .vehicle .meta { color: var(--muted); font-size: 12px; }
.vehicle .meta { display: flex; justify-content: space-between; margin-top: 2px; }
.vehicle .ex { font-size: 13px; color: var(--muted); }
.vehicle .nofit { display: none; margin-top: 8px; background: #fbe9e4; color: var(--primary); font-size: 13px; font-weight: 600; border-radius: 10px; padding: 6px 10px; text-align: center; }
.vehicle.disabled { opacity: .55; cursor: default; }
.vehicle.disabled .nofit { display: block; }

/* packages (screen 9) */
.done-line { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.done-line::before, .done-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title { color: var(--gold); font-weight: 700; margin: 6px 0 10px; }
.pkg { display: block; position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; }
.pkg input { position: absolute; opacity: 0; }
.pkg:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.pkg .cover { height: 150px; background: linear-gradient(135deg, #b9773f, #6e3d1d) center/cover; position: relative; display: flex; align-items: flex-end; padding: 12px; color: #fff3e6; font-weight: 700; font-size: 18px; }
.pkg .cover .ribbon { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(42,26,16,.85); color: #fff; font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.pkg .info { padding: 12px 14px 14px; }
.tag-match { display: inline-block; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-bottom: 4px; }
.pkg .title { display: flex; justify-content: space-between; align-items: center; }
.pkg .title b { font-size: 17px; }
.pkg .fit { color: var(--gold); font-weight: 700; font-size: 13px; }
.pkg .fit.exact { color: var(--green); }
.pkg .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 14px; }
.pkg .foot b { color: var(--gold); font-size: 18px; }
.pill-brand { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.scratch { border: 1.5px dashed var(--line-strong); }
.scratch:has(input:checked) { border-style: solid; border-color: var(--primary); }
.pkg .info, .pkg .fit, .pkg .tag-match + .title, .vehicle .ex { display: block; }
.pkg .tag-match { display: inline-block; }

/* stage 3 «سكنك» */
.based-on { margin-top: 8px; font-size: 13px; color: var(--muted); }
.based-on b { color: var(--gold); }
.tile.none { grid-column: 1 / -1; border-style: dashed; }
.tile.none:has(input:checked) { border-style: solid; }
.seg4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 4px; }
.seg4 label { text-align: center; padding: 10px 2px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.seg4 input, .chips input { position: absolute; opacity: 0; }
.seg4 label:has(input:checked) { background: var(--primary); color: #fff; }
.label { font-weight: 700; margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .chip-btn { border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; background: var(--card); cursor: pointer; color: var(--ink); }
.chips label:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.match-count { display: inline-block; margin-top: 16px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; border-radius: 12px; padding: 8px 14px; }
.match-count.zero { background: #fbe9e4; color: var(--primary); }
.stay-card { display: block; position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; }
.stay-card input { position: absolute; opacity: 0; }
.stay-card:has(input:checked) { border-color: var(--primary); }
.stay-card .cover { display: grid; place-items: center; height: 130px; background: #efe5d8 center/cover; color: var(--muted); font-weight: 700; position: relative; }
.stay-card .picked { display: none; position: absolute; top: 10px; inset-inline-start: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.stay-card:has(input:checked) .picked { display: block; }
.stay-card .info { display: block; padding: 12px 14px 14px; }
.stay-card .title { display: flex; justify-content: space-between; }
.stay-card .title b { font-size: 17px; }
.stay-card .sub { display: block; color: var(--muted); font-size: 13px; }
.stay-card .feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.stay-card .feats span { background: #f3ebe0; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.stay-card .foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.stay-card .foot b { color: var(--gold); font-size: 17px; }
.fit-ok { color: var(--green); font-weight: 700; }
.fit-more { color: var(--gold); font-weight: 700; }
.add-box h3 { margin: 0; font-size: 16px; }
.add-box p { margin: 2px 0 10px; color: var(--muted); font-size: 13px; }
.chip-btn.dashed { border-style: dashed; border-color: var(--gold); color: var(--gold); }
.notice { margin-top: 10px; color: var(--green); font-weight: 700; font-size: 14px; }
.room { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; }
.room.target { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); cursor: pointer; }
.room.over { border-color: #d9534f; }
.room .head { display: flex; gap: 10px; align-items: flex-start; }
.room .thumb { flex: none; width: 70px; height: 56px; border-radius: 10px; background: #efe5d8 center/cover; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.room .meta { flex: 1; }
.room .meta b { font-size: 16px; display: block; }
.room .meta small { display: block; color: var(--muted); font-size: 12px; }
.room .meta .cost { color: var(--gold); font-weight: 700; font-size: 13px; }
.room .x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--primary); }
.room .occ { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.room .occ button { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 13px; }
.room .occ button.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.room .occ .empty { color: var(--muted); font-size: 13px; }
.room .alts { border-top: 1px dashed var(--line-strong); margin-top: 10px; padding-top: 8px; font-size: 13px; }
.room .alts .t { color: var(--muted); font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.room .alts button { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--ink); text-align: start; }
.room .alts .cheaper { color: var(--green); font-weight: 700; }
.room .alts .dearer { color: var(--gold); font-weight: 700; }
.room .warn { color: #c0392b; font-size: 12px; font-weight: 700; margin-top: 6px; }
.two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold); background: var(--card); border-radius: 14px; padding: 12px; font-weight: 700; }
.btn-outline.green { border-color: var(--green); color: var(--green); }
.hint-move { font-size: 13px; color: var(--primary); font-weight: 700; text-align: center; }

/* stage 4 «مرشدك» */
.ai-note { border: 1px solid var(--green); background: var(--card); color: var(--ink); }
.chips.solid label:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: #e9dccb center/cover; color: var(--brand); font-weight: 700; font-size: 22px; }
.guide-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 12px; text-decoration: none; color: var(--ink); }
.guide-card.chosen { border-color: var(--primary); }
.guide-card .body { flex: 1; display: block; }
.guide-card .top { display: flex; justify-content: space-between; }
.guide-card b { font-size: 16px; }
.guide-card .price { color: var(--gold); font-weight: 700; }
.guide-card .price small { color: var(--muted); font-size: 12px; }
.guide-card .meta { display: block; color: var(--muted); font-size: 13px; }
.guide-card[hidden] { display: none; }
.guide-hero { text-align: center; }
.guide-hero .avatar { font-size: 36px; }
.guide-hero h1 { margin-top: 8px; }
.meta-line { margin-top: 6px; color: var(--muted); font-size: 14px; }
.day-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.day-row span:first-child { flex: 1; }
.day-row .amt { font-weight: 700; font-size: 13px; color: var(--muted); }
.day-row .amt.off { color: var(--green); }
.day-row input { width: 24px; height: 24px; accent-color: var(--green); }
.summary-bar { flex-direction: column; align-items: stretch; gap: 10px; }
.sum-lines > div { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.sum-lines b { color: var(--ink); }
.sum-lines .saved { color: var(--green); font-weight: 700; } .sum-lines .saved b { color: var(--green); }
.sum-lines .grand { border-top: 1px dashed var(--line-strong); margin-top: 6px; padding-top: 6px; font-size: 14px; }
.sum-lines .grand b { color: var(--primary); font-size: 18px; }
.sum-lines [hidden] { display: none; }

/* stage 5 «تنقّلك» */
.tr-opt .head .grow { flex: 1; }
.tr-price { color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tr-price.free { color: var(--green); }
.tr-desc { display: block; color: var(--muted); font-size: 13px; margin: 4px 34px 0 0; }
.tr-why { display: block; color: var(--primary); font-size: 13px; font-weight: 600; margin: 6px 34px 0 0; }
.tr-opt .tag-match { margin-inline-start: 34px; }
.option.disabled { opacity: .55; cursor: default; }
.need { width: 100%; text-align: center; color: var(--primary); font-weight: 700; font-size: 13px; }
.need[hidden] { display: none; }

/* stage 6 «برنامجك» */
.free-note { border: 1.5px solid var(--primary); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; background: var(--card); }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 -16px 14px; padding-inline: 16px; scrollbar-width: thin; }
.day-tab { flex: none; min-width: 96px; text-align: center; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 8px 12px; text-decoration: none; background: var(--card); }
.day-tab b { display: block; font-size: 14px; }
.day-tab small { color: var(--muted); font-size: 12px; }
.day-tab.current { border-color: var(--primary); }
.day-tab.last.current, .day-tab.last:hover { background: var(--green); border-color: var(--green); color: #fff; }
.day-tab.last.current small { color: #e6eedf; }
.day-head { font-size: 17px; margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.day-head::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.day-head.last::before { background: var(--green); }
.timeline-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tl-row { border-bottom: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 0; }
.tl-row summary, .tl-row.auto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; list-style: none; cursor: pointer; }
.tl-row summary::-webkit-details-marker { display: none; }
.tl-time { flex: none; width: 52px; display: flex; flex-direction: column; }
.tl-time b { font-size: 15px; } .tl-time small { color: var(--muted); font-size: 12px; }
.tl-row.visit .tl-time { border-left: 3px solid var(--green); }
.tl-body { flex: 1; }
.tl-body b { display: block; } .tl-body small { color: var(--muted); font-size: 13px; }
.tl-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--primary); }
.tl-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 12px; font-size: 13px; color: var(--muted); }
.tl-row.auto { cursor: default; color: var(--muted); background: #f7f0e6; }
.auto-tag { font-size: 11px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; }
.tl-after { padding: 10px 14px; text-align: center; font-weight: 700; font-size: 13px; color: var(--muted);
  background: repeating-linear-gradient(-45deg, #eee3d5 0 6px, #f6eee3 6px 12px); }
.tl-empty { padding: 18px; text-align: center; color: var(--muted); }
.add-visit { width: 100%; margin-top: 12px; border: 1.5px dashed var(--primary); color: var(--primary); background: var(--card); border-radius: 14px; padding: 14px; font-weight: 700; }
.slot { border: 1.5px solid var(--primary); color: var(--primary); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.slot:disabled { border-color: var(--line); color: #b9aea2; background: #f1ebe3; text-decoration: line-through; cursor: not-allowed; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(42,26,16,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop[hidden] { display: none; }
.sheet { width: 100%; max-width: 480px; max-height: 88dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 16px 16px; }
.grab { width: 44px; height: 5px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 8px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h3 { margin: 0; font-size: 18px; }
.x-round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); }
.search { width: 100%; margin: 10px 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.scroll-x label { flex: none; }
.sheet-list { overflow-y: auto; margin-top: 8px; padding-bottom: 8px; }
.exp-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px; }
.exp-card[hidden] { display: none; }
.exp-card .thumb { flex: none; width: 70px; height: 70px; border-radius: 12px; background: #efe5d8 center/cover; display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; padding: 4px; }
.exp-body { flex: 1; }
.exp-body b { display: block; font-size: 16px; }
.exp-body small { display: block; color: var(--muted); font-size: 13px; }
.exp-body .tags { font-size: 12px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.added { color: var(--green); font-weight: 700; font-size: 13px; }
.sheet > * { flex: none; }
.sheet > .sheet-list { flex: 1; min-height: 0; }

/* summary + login (screens 26-28) */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.page-head h1 { margin: 0; }
.head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.sum-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sum-card header b { flex: 1; font-size: 16px; }
.sum-card header a { color: var(--primary); font-weight: 700; text-decoration: none; }
.sum-card .num { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.sum-card p { margin: 2px 32px 0 0; font-size: 14px; color: var(--ink); }
.sum-card.missing { border-color: var(--primary); }
.sum-card .miss { color: var(--primary); font-weight: 700; }
.price-card header b { font-size: 16px; }
.pl { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.pl small { display: block; color: var(--muted); font-size: 12px; }
.pl b { white-space: nowrap; }
.pl.vat { color: var(--muted); border-bottom: 0; }
.pl.grand { border: 0; border-top: 1.5px solid var(--line-strong); margin-top: 4px; padding-top: 10px; font-size: 16px; }
.pl.grand b { color: var(--primary); font-size: 20px; }
.error a { color: inherit; }
.guest-pill { text-decoration: none; }
.pill-link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 700; font-size: 13px; }
.login-box { text-align: center; padding-top: 24px; }
.login-box .lock { font-size: 40px; }
.login-box h1 { margin-top: 8px; }
.saved-pill { display: inline-block; border: 1px solid var(--green); color: var(--green); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.login-form { text-align: start; display: flex; flex-direction: column; gap: 12px; }
.login-form .field input { direction: ltr; text-align: right; background: #fff; }
.login-form .field input.code { text-align: center; letter-spacing: 12px; font-size: 22px; }
.link.center { text-align: center; text-decoration: none; display: block; }
.link.muted { color: var(--muted); }
.dev-code { border: 1.5px dashed #b58900; background: #fff8e1; color: #6b5200; border-radius: 12px; padding: 8px 12px; text-align: center; font-size: 14px; }
.dev-code b { font-size: 20px; letter-spacing: 4px; }

/* screens 29-31 «بياناتك قبل الدفع» */
.page-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.page-head h1 { margin: 0; font-size: 22px; }
.tv-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-bottom: 14px; }
.tv-progress .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tv-progress .bar i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.in { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fdf3e7; color: var(--ink); }
.in.ltr { direction: ltr; text-align: right; }
.in::placeholder { color: #a8968a; }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: 14px 52%, 19px 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 30px; font-weight: 600; }
textarea.in { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tv-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.tv-card[open] { border-color: var(--gold); }
.tv-card summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.tv-card summary::-webkit-details-marker { display: none; }
.tv-card[open] summary { border-bottom: 1.5px solid var(--gold); }
.tv-card .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.tv-card.done .num { background: var(--green); }
.tv-card .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tv-card .who small { color: var(--muted); font-size: 12px; }
.tv-card.done .who small { color: var(--green); font-weight: 600; }
.tv-card .caret { color: var(--muted); transition: transform .2s; }
.tv-card[open] .caret { transform: rotate(180deg); }
.tv-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.tv-errors div { color: var(--primary); font-size: 13px; font-weight: 600; }
.tv-errors:empty { display: none; }
.tv-sec { display: flex; flex-direction: column; gap: 10px; }
.tv-sec h2 { margin: 0; font-size: 15px; color: var(--brand); }
.tv-sec h2.req { color: var(--primary); }
.tv-sec label { display: block; }
.muted-line { margin: 0; color: var(--muted); font-size: 13px; }
.tv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 4px 2px 8px; }
.tv-consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); }
.tv-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
.tv-bottom #tv-missing { font-size: 13px; text-decoration: underline; }
.tv-saved { text-align: center; color: var(--green); font-size: 12px; font-weight: 700; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pay-line.total-line { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; }

/* ---------- maps (static/js/tripmap.js) ---------- */
.map-box { position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #ece3d6; margin-bottom: 14px; }
.map-box.tall { height: 300px; margin-bottom: 0; }
.map-box.full { position: fixed; inset: 0; height: auto; z-index: 50; border-radius: 0; margin: 0; }
.map-box > .trip-map { position: absolute; inset: 0; }
.map-loading, .map-failed { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.map-full-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); display: grid; place-items: center; color: var(--ink); box-shadow: 0 1px 4px #0002; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 2px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 4px; vertical-align: -1px; }
.map-hint { margin: -8px 0 12px; font-size: 12px; color: var(--muted); }
.map-pin { --pin: var(--primary); width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #fff; background: var(--pin); color: #fff; font: 700 13px var(--font); display: grid; place-items: center; padding: 0; box-shadow: 0 2px 6px #0004; cursor: pointer; }
.map-pin.approx { border-style: dashed; }
.map-pin.hotel { background: var(--green); border-radius: 9px; }
.map-pin.airport { background: #2a1a10; }
.map-pin.landmark { width: 12px; height: 12px; border-width: 2px; background: #b79f84; box-shadow: none; }
.map-pin.stay { width: auto; height: auto; min-width: 44px; border-radius: 999px; padding: 3px 9px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line-strong); font-size: 12px; transition: transform .15s; }
.map-pin.stay { white-space: nowrap; }
.map-pin.stay.on { background: var(--primary); color: #fff; border-color: #fff; transform: scale(1.15); z-index: 3; }
.map-pop { font-family: var(--font); direction: rtl; text-align: right; display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.map-pop b { font-size: 14px; } .map-pop small { color: var(--muted); font-size: 12px; }
.map-pop .approx-note { color: var(--gold); }
.map-pop a { color: var(--primary); font-weight: 700; font-size: 13px; text-decoration: none; margin-top: 4px; }
.map-3d { font: 700 11px var(--font) !important; color: var(--ink); }
.map-3d.on { background: var(--primary) !important; color: #fff !important; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: 0 1px 4px #0002 !important; }
.maplibregl-popup-content { border-radius: 12px; padding: 10px 12px; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* drive connector between visits */
.tl-drive { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 14px; margin-inline-start: 26px; border-inline-start: 2px dashed var(--line-strong); font-size: 12px; color: var(--muted); background: transparent; }
.tl-drive svg { flex: none; }
.tl-drive.tight { color: var(--primary); border-color: var(--primary); background: #fbe9e4; }
.tl-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-style: normal; margin-inline-end: 6px; vertical-align: 1px; }

/* add-sheet cards */
.exp-desc { margin: 2px 0 4px; font-size: 13px; line-height: 1.5; color: var(--ink); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exp-drive { display: block; color: var(--green) !important; font-weight: 600; }
.exp-card .thumb { color: #fff; }
.thumb.cat-classic { background: linear-gradient(135deg, #b8733a, #7d4322); }
.thumb.cat-culture { background: linear-gradient(135deg, #a8742f, #6b4520); }
.thumb.cat-arts { background: linear-gradient(135deg, #8f8a85, #4d4b4a); }
.thumb.cat-adventure { background: linear-gradient(135deg, #c0703f, #8a3a22); }
.thumb.cat-nature { background: linear-gradient(135deg, #3d4f78, #1f2741); }
.thumb.cat-relax { background: linear-gradient(135deg, #6f8a5c, #3f5a33); }
.thumb[style*="background-image"] { background-size: cover; }

/* stays */
.stay-card .near { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: var(--green); font-weight: 600; }

/* summary */
.trip-map-card { padding: 12px; }
.tm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 10px; }
.tm-head span { font-size: 12px; color: var(--muted); }

/* ---------- photos ---------- */
.tl-photo { flex: none; width: 46px; height: 46px; border-radius: 10px; background: #efe5d8 center/cover; }
.map-pop img { width: 180px; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; display: block; }
.photo-credits { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px; }
.pkg .cover.photo { background-size: cover; background-position: center; }
.pkg .cover.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,26,16,.65), transparent 60%); }
.pkg .cover .cover-name { position: relative; }
.discover { margin: 0 -16px 18px; }
.discover h2 { font-size: 17px; margin: 0 16px 10px; }
.discover-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.discover-row::-webkit-scrollbar { display: none; }
.disc-card { flex: none; width: 150px; margin: 0; scroll-snap-align: start; }
.disc-img { display: block; height: 110px; border-radius: 14px; background: #efe5d8 center/cover; }
.disc-card figcaption { padding: 6px 2px 0; line-height: 1.35; }
.disc-card b { display: block; font-size: 13px; } .disc-card small { color: var(--muted); font-size: 11px; }
.discover .photo-credits { text-align: start; margin: 4px 16px 0; }
.credit-row { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.credit-img { flex: none; width: 72px; height: 54px; border-radius: 10px; background: #efe5d8 center/cover; }
.credit-row small { display: block; color: var(--muted); font-size: 12px; }
.credit-row a { color: var(--primary); }

/* =====================================================================
   Desktop (≥ 960px): wide shell, steps on one side, trip panel + map on
   the other. Phone layout above is untouched.
   ===================================================================== */
.side { display: none; }
@media (min-width: 960px) {
  body { background: #f3e9db; font-size: 16px; }
  .app { max-width: 1240px; background: transparent; }
  .topbar { border-radius: 0 0 18px 18px; padding: 14px 28px; }
  .progress { padding: 16px 28px 12px; }
  .stage { font-size: 13px; }
  .shell { display: flex; gap: 28px; align-items: flex-start; padding: 0 28px; flex: 1; }
  .main-col { flex: 1; min-width: 0; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100dvh - 160px); }
  .shell.has-aside .main-col { margin: 0; }
  main { padding: 28px 4px 24px; }
  h1 { font-size: 30px; }
  .lead { font-size: 16px; }

  /* bottom bar: under the steps column, not across the screen */
  .bottombar { position: sticky; bottom: 0; max-width: none; margin: auto 0 0; border: 1px solid var(--line); border-bottom: 0;
               border-radius: 18px 18px 0 0; padding: 14px 20px; box-shadow: 0 -6px 24px rgba(42,26,16,.06); }
  .bottombar .btn { max-width: 320px; margin-inline-start: auto; }

  /* side panel */
  .side { display: flex; flex-direction: column; gap: 14px; flex: none; width: 400px; position: sticky; top: 84px;
          padding-top: 28px; max-height: calc(100dvh - 84px); overflow-y: auto; scrollbar-width: thin; }
  .side-map:not(.on), .side-map:empty { display: none; }
  .side-map .map-box { height: min(52vh, 460px); margin: 0; }
  .side-map .trip-map-card { padding: 12px; }
  .side-map .trip-map-card .map-box.tall { height: min(56vh, 500px); }
  .side-map .map-legend { padding-top: 8px; }
  .side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
  .side-card h2 { font-size: 17px; margin: 0 0 10px; }
  .side-line { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
  .side-stages { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; font-weight: 600; }
  .side-stages li { color: var(--muted); } .side-stages .done { color: var(--green); } .side-stages .current { color: var(--primary); }
  .side-total { border-top: 1px dashed var(--line-strong); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .side-total small { color: var(--muted); font-size: 12px; } .side-total b { font-size: 22px; color: var(--gold); }

  /* lists become grids */
  .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .card-grid > * + * { margin-top: 0; }
  .card-grid > input, .card-grid > .note, .card-grid > .photo-credits, .card-grid > p { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pkg .cover { height: 180px; }

  /* add-visit sheet → centred dialog */
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { max-width: 860px; max-height: 86vh; border-radius: 22px; padding: 14px 22px 22px; }
  .sheet .grab { display: none; }
  .exp-card .thumb { width: 96px; height: 96px; }

  /* full-screen map stays full-screen */
  .map-box.full { position: fixed; inset: 0; height: auto; z-index: 50; }

  /* welcome: hero + plan side by side, discover strip wide */
  .discover { margin: 0 0 22px; }
  .discover h2, .discover .photo-credits { margin-inline: 0; }
  .discover-row { padding: 0 0 8px; scrollbar-width: thin; }
  .disc-card { width: 190px; }
  .disc-img { height: 125px; }
  .hero { padding-top: 0; } .hero img { width: 60px; height: 60px; }
  .welcome-cards { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
  .welcome-cards > * + * { margin-top: 0; }
  .welcome-cards > .plan-card { grid-row: span 2; }
  .welcome-cards > .plan-card:only-child { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .card-grid.wide-3, .tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- live tracking */
.live-body { background: var(--bg); min-height: 100dvh; }
.muted { color: var(--muted); }
.live-car { width: 40px; height: 40px; position: relative; display: grid; place-items: center; pointer-events: auto; }
.live-car .live-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #2a7f7a; border: 3px solid #fff; box-shadow: 0 3px 10px #0005; display: grid; place-items: center; }
.live-car.guide .live-dot { background: var(--gold); }
.live-car .live-dot svg { opacity: 0; transition: opacity .3s; }
.live-car.moving .live-dot svg { opacity: 1; }
.live-car:not(.moving) .live-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.live-car .live-ring { position: absolute; inset: 0; border-radius: 50%; background: #2a7f7a55; animation: live-pulse 2s ease-out infinite; }
.live-car.guide .live-ring { background: #a8742f55; }
.live-car.stale .live-dot { background: #9a8f86; }
.live-car.stale .live-ring { animation: none; opacity: 0; }
@keyframes live-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-car .live-ring { animation: none; } }
.map-follow { display: grid !important; place-items: center; color: #7a6656; }
.map-follow.on { color: #2a7f7a; }

.live-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #eee8e1; color: var(--muted); }
.live-chip i { width: 9px; height: 9px; border-radius: 50%; background: #b0a69d; }
.live-chip.live { background: #e1f0ee; color: #1f5f5b; }
.live-chip.live i { background: #2a7f7a; box-shadow: 0 0 0 0 #2a7f7a88; animation: chip-pulse 1.6s infinite; }
.live-chip.stale { background: #f7ecd9; color: #7d5521; }
.live-chip.stale i { background: var(--gold); }
@keyframes chip-pulse { 70% { box-shadow: 0 0 0 7px #2a7f7a00; } 100% { box-shadow: 0 0 0 0 #2a7f7a00; } }

/* traveller screen: map fills the phone, details in a bottom sheet; side panel on desktop */
.lt { display: flex; flex-direction: column; height: 100dvh; }
.lt-map { position: relative; flex: 1 1 auto; min-height: 46dvh; }
.lt-map .trip-map { position: absolute; inset: 0; }
.lt-brand { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: #fffbf5ee; box-shadow: 0 2px 10px #0002; font-weight: 700; font-size: 14px; text-decoration: none; }
.lt-brand img { width: 28px; height: 28px; border-radius: 8px; }
.lt-sheet { position: relative; z-index: 3; margin-top: -18px; background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px #0002; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 54dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lt-grab { align-self: center; width: 42px; height: 5px; border-radius: 9px; background: var(--line-strong); }
.lt-eta small { color: var(--muted); font-size: 13px; }
.lt-eta h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.3; }
.lt-eta-row { margin: 0; color: var(--muted); }
.lt-eta-row b { color: var(--ink); font-size: 17px; }
.lt-eta-row [data-eta-min] { font-size: 28px; color: #1f5f5b; }
.lt-dot { margin: 0 4px; }
.lt-late { margin: 6px 0 0; padding: 6px 10px; border-radius: 10px; background: #f7ecd9; color: #7d5521; font-size: 13px; }
.lt-person { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.lt-person .avatar { width: 44px; height: 44px; font-size: 18px; }
.lt-person div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lt-person small { color: var(--muted); font-size: 13px; }
.lt-call { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.lt-call.wa { background: #e3f4e7; color: #1c8a43; }
.lt-h { margin: 0; font-size: 15px; }
.lt-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; }
.lt-stops li { display: flex; align-items: center; gap: 10px; padding: 7px 0; position: relative; }
.lt-stops li + li::before { content: ""; position: absolute; inset-inline-start: 13px; top: -10px; height: 16px; border-inline-start: 2px dotted var(--line-strong); }
.lt-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; }
.lt-stops li.hotel .lt-mark { background: var(--green); border-radius: 9px; }
.lt-stops li.airport .lt-mark { background: #3d5a80; }
.lt-name { flex: 1; min-width: 0; }
.lt-stops time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lt-stops li.done { opacity: .5; }
.lt-stops li.done .lt-mark { background: #b0a69d; }
.lt-stops li.done .lt-name { text-decoration: line-through; }
.lt-stops li.next .lt-mark, .lt-stops li.here .lt-mark { box-shadow: 0 0 0 4px #2a7f7a44; background: #2a7f7a; }
.lt-stops li.next .lt-name::after { content: " · التالية"; color: #1f5f5b; font-size: 12px; font-weight: 700; }
.lt-stops li.here .lt-name::after { content: " · هنا الآن"; color: #1f5f5b; font-size: 12px; font-weight: 700; }
.lt-other { color: var(--primary); font-weight: 600; text-decoration: none; }
.lt-privacy { margin: 0; color: var(--muted); font-size: 12px; }
@media (min-width: 960px) {
  .lt { flex-direction: row-reverse; }
  .lt-map { min-height: 0; }
  .lt-sheet { margin: 0; width: 400px; flex: none; max-height: none; height: 100dvh; border-radius: 0; box-shadow: 4px 0 24px #0002; padding: 24px; }
  .lt-grab { display: none; }
}

/* ops */
.lt-ops-h { margin: 0; font-size: 20px; }
.ops-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ops-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ops-list li div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ops-list small { color: var(--muted); font-size: 12.5px; }
.ops-list a { color: var(--primary); font-weight: 600; text-decoration: none; }
.live-dot-s { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #b0a69d; }
.live-dot-s.live { background: #2a7f7a; }
.live-dot-s.stale { background: var(--gold); }

/* driver page */
.ld { max-width: 480px; margin: 0 auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.ld-top { display: flex; align-items: center; gap: 8px; }
.ld-top img { width: 32px; height: 32px; border-radius: 9px; }
.ld-badge { margin-inline-start: auto; padding: 3px 10px; border-radius: 99px; background: #e1f0ee; color: #1f5f5b; font-size: 13px; font-weight: 700; }
.ld-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ld-hello { margin: 0; font-size: 20px; font-weight: 700; }
.ld-card > .muted { margin: -8px 0 0; }
.ld-go { position: relative; margin: 10px auto 2px; width: 190px; height: 190px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 10px 30px #9c4a2f55; display: grid; place-items: center; padding: 20px; line-height: 1.4; }
.ld-go-ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid #9c4a2f33; }
.ld-go.on { background: #2a7f7a; box-shadow: 0 10px 30px #2a7f7a55; }
.ld-go.on .ld-go-ring { border-color: #2a7f7a; animation: live-pulse 2s ease-out infinite; }
.ld-state { margin: 0; text-align: center; color: var(--muted); }
.ld-state.on { color: #1f5f5b; font-weight: 600; }
.ld-state.warn { color: #9c4a2f; font-weight: 600; }
.ld-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.ld-facts div { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.ld-facts dt { color: var(--muted); font-size: 12px; }
.ld-facts dd { margin: 0; font-weight: 700; }
.ld-next { margin: 0; padding: 10px 12px; border-radius: 12px; background: #e1f0ee; color: #1f5f5b; }
.ld-next em { color: #9c4a2f; font-style: normal; font-weight: 700; }
.ld-nav { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.ld-tips { color: var(--muted); font-size: 13px; }
.ld-tips p { margin: 0 0 6px; }
.empty-live { padding: 30px 4px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty-live h1 { margin: 0; font-size: 22px; }
.live-car .live-dot svg { transform: rotate(var(--hd, 0deg)); }
.live-tag { position: absolute; top: 38px; white-space: nowrap; padding: 1px 8px; border-radius: 99px; background: #fffbf5; box-shadow: 0 1px 4px #0003; font: 700 12px var(--font); color: var(--ink); }
[hidden] { display: none !important; }

/* explore */
.dest-tabs { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; }
.dest-tabs a { flex: none; padding: 7px 16px; border-radius: 99px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 700; background: var(--card); }
.dest-tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.map-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.map-hint i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px #0002; }
.dot-exp { background: #8a6f55; } .dot-place { background: #a8742f; width: 8px !important; height: 8px !important; }
.ex-h { margin: 22px 0 10px; font-size: 18px; }
.ex-h .muted { font-weight: 400; font-size: 14px; }
.ex-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.ex-card { flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; }
.ex-card small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ex-img { display: block; aspect-ratio: 16/10; border-radius: 12px; background: #e9dccb center/cover; }
.ex-img.none { background: linear-gradient(135deg, #e9d3b8, #c9a27a); }
.ex-cta { display: block; text-align: center; margin-top: 12px; }
.place-grid { gap: 10px; }
.place-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.place-card .ex-img { border-radius: 0; }
.place-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.place-body p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.7; }
.place-links { display: flex; gap: 14px; }
.place-links a { color: var(--primary); font-weight: 600; font-size: 13px; text-decoration: none; }
.src-note { margin: 24px 0 8px; font-size: 12px; color: var(--muted); }
.disc-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; }
.explore-link { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 14px; }
.place-grid { align-items: start; }
.place-grid:empty { display: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.place-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.place-list:not(:has(li)) { display: none; }
.place-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.place-list li + li { border-top: 1px solid var(--line); }
.place-list a { flex: none; color: var(--primary); font-weight: 600; font-size: 13px; text-decoration: none; }

/* ---------------------------------------------------------------- ops: dispatch board + crew page */
.op-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.op-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.op-brand img { width: 30px; height: 30px; border-radius: 8px; }
.op-nav { margin-inline-start: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.op-nav a { color: var(--primary); font-weight: 600; text-decoration: none; }
.op-nav form { margin: 0; }
.op-main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 60px; }
.op-main.op-narrow { max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.op-msgs { list-style: none; margin: 12px auto 0; padding: 0 16px; max-width: 1180px; display: flex; flex-direction: column; gap: 6px; }
.op-msgs li { padding: 9px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 14px; }
.op-msgs li.error { background: #fbe4df; color: #9b2c1c; }
.op-msgs li.warning { background: #fbf0d9; color: #85591b; }
.op-msgs li.info { background: #e1f0ee; color: #1f5f5b; }

.op-week { display: flex; align-items: center; gap: 6px; }
.op-week ol { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.op-week ol a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; line-height: 1.3; }
.op-week ol a small { color: var(--muted); font-size: 11.5px; }
.op-week ol a b { font-size: 17px; }
.op-week ol a span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.op-week ol a.today { border-color: var(--gold); }
.op-week ol a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.op-week ol a.on small, .op-week ol a.on span { color: #fff; }
.op-week em { position: absolute; top: -6px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #c0392b; color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.op-arrow { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 20px; text-decoration: none; }
.op-jump { flex: none; margin: 0; }
.op-jump input { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.op-h { margin: 18px 0 0; font-size: 22px; }
.op-lead { margin: 2px 0 14px; }
.op-gap { color: #c0392b; }

.op-trip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; scroll-margin-top: 70px; }
.op-trip:target { box-shadow: 0 0 0 2px var(--primary); }
.op-trip-head { display: flex; align-items: flex-start; gap: 10px; }
.op-trip-head > div { flex: 1; min-width: 0; }
.op-trip-head h2 { margin: 0; font-size: 16.5px; }
.op-trip-head p { margin: 0; font-size: 13px; }
.op-admin { color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.op-needs { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 860px) { .op-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.op-need { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 12px; min-width: 0; }
.op-need.open { border-color: #d9a093; background: #fdf3ef; }
.op-need.done { border-style: solid; border-color: var(--line); }
.op-need h3 { margin: 0 0 8px; font-size: 14.5px; }
.op-need h3 small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }

.op-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.op-form label, .op-login label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.op-form select, .op-form input, .op-login input { font: inherit; font-size: 14px; color: var(--ink); width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.op-btn { display: inline-block; align-self: flex-start; padding: 8px 18px; border: 0; border-radius: 99px; background: var(--primary); color: #fff; font: 700 14px var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.op-btn.ghost { background: var(--primary-soft); color: var(--primary); }
.op-btn.big { align-self: stretch; padding: 13px 18px; font-size: 16px; }
.op-login { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; }

.op-card { display: flex; flex-direction: column; gap: 6px; }
.op-card-head { display: flex; align-items: center; gap: 10px; }
.op-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.op-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.op-who small { color: var(--muted); font-size: 12.5px; }
.op-chip { flex: none; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); }
.op-chip.pending, .op-chip.submitted { background: #fbf0d9; color: #85591b; }
.op-chip.accepted, .op-chip.confirmed { background: var(--green-soft); color: var(--green); }
.op-chip.declined, .op-chip.cancelled { background: #fbe4df; color: #9b2c1c; }
.op-car, .op-sub { margin: 0; font-size: 13.5px; }
.op-bad, .op-warn { margin: 0; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.op-bad { background: #fbe4df; color: #9b2c1c; }
.op-warn { background: #fbf0d9; color: #85591b; }
.op-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.op-acts a { color: var(--primary); font-weight: 600; text-decoration: none; }
.op-acts a.op-wa { padding: 4px 12px; border-radius: 99px; background: #25d366; color: #fff; }
.op-acts a.op-wa.ghost { background: #e3f7ea; color: #137a3c; }
.op-more summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 13px; }
.op-more[open] summary { margin-bottom: 8px; }
.op-del { margin: 8px 0 0; }
.op-add { margin-top: 12px; }
.op-add-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .op-add-grid { grid-template-columns: 1fr 1fr; } }
.op-add-grid h4 { margin: 0 0 6px; font-size: 14px; }
.op-empty { padding: 30px 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.op-job.today { border-color: var(--primary); box-shadow: 0 4px 16px #9c4a2f22; }
.op-job.declined { opacity: .65; }
.op-note-box { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 13.5px; }
.op-respond { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.op-respond form { margin: 0; }
.crew-card .crew-day { margin: 6px 32px 0 0; }
.crew-card .crew-day p { margin: 2px 0 0; }
.crew-card .crew-day a { color: var(--primary); font-weight: 700; margin-inline-start: 6px; }
@media (max-width: 700px) {
  .op-week { flex-wrap: wrap; }
  .op-week ol { grid-template-columns: repeat(7, minmax(52px, 1fr)); overflow-x: auto; padding: 7px 4px 2px; scrollbar-width: none; }
  .op-jump { order: -1; flex-basis: 100%; }
  .op-jump input { width: 100%; box-sizing: border-box; }
}
.empty-live .crew-card { align-self: stretch; }

/* ---------------------------------------------------------------- partners: hotel page */
.pt-main { max-width: 760px; }
.pt-switch { margin: 0 0 6px; }
.pt-switch label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.pt-switch select { font: inherit; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.pt-h { margin: 18px 0 8px; font-size: 16px; }
.pt-req { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.pt-req.pending { border-color: #e2c48f; }
.pt-req.late { border-color: #c0392b; box-shadow: 0 0 0 1px #c0392b33; }
.pt-req header { display: flex; align-items: flex-start; gap: 10px; }
.pt-req header div { flex: 1; display: flex; flex-direction: column; }
.pt-req header small { color: var(--muted); font-size: 13px; }
.pt-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pt-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-lines li.sum { font-weight: 700; border-bottom: 0; }
.pt-answer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; }
.pt-answer > form { flex: 1 1 220px; }
.pt-answer details { flex: 1 1 200px; }
.pt-hist { margin-top: 16px; }

.pt-calnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pt-legend { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pt-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-inline-start: 6px; }
.c-custom { background: #e8efe1; border: 1px solid var(--green); }
.c-closed { background: #ececec; border: 1px solid #aaa; }
.c-full { background: #fbe4df; border: 1px solid #c0392b; }
.pt-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pt-cal { border-collapse: collapse; min-width: 100%; font-size: 13px; }
.pt-cal th, .pt-cal td { border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); padding: 6px; text-align: center; white-space: nowrap; }
.pt-cal thead th { background: var(--bg); font-weight: 600; }
.pt-cal thead th small { display: block; color: var(--muted); font-weight: 400; }
.pt-cal thead th.we, .pt-cal td.we { background: #fbf6ee; }
.pt-cal thead th.today { color: var(--primary); }
.pt-cal tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--card); text-align: start; min-width: 150px; }
.pt-cal tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.pt-cal td b { display: block; font-size: 14px; }
.pt-cal td small { display: block; color: var(--muted); font-size: 11px; }
.pt-cal td.custom b { color: var(--green); }
.pt-cal td.closed { background: #ececec; color: #777; }
.pt-cal td.full { background: #fbe4df; }
.pt-held { color: #85591b !important; }
.pt-x { font-weight: 700; }
.pt-base { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.pt-base input { width: 70px; font: inherit; padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 8px; }
.pt-bulk { margin-top: 16px; }
.pt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pt-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.pt-checks legend { padding: 0; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.pt-checks label { display: inline-flex; align-items: center; gap: 4px; }
.op-stay { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.op-stay.pending { background: #fbf0d9; }
.op-stay.confirmed { background: var(--green-soft); }
.op-stay.rejected, .op-stay.late { background: #fbe4df; }
.op-stay .op-wa { padding: 3px 12px; border-radius: 99px; background: #25d366; color: #fff; font-weight: 600; text-decoration: none; }
.crew-card .crew-day p.ok { color: var(--green); font-weight: 600; }
.op-form .pt-checks label { flex-direction: row; color: var(--ink); font-size: 14px; }

/* supplier (wholesaler) hotels on «اختر مكان إقامتك» */
.sup-head { grid-column: 1 / -1; margin-top: 8px; }
.sup-head h2 { margin: 0; font-size: 17px; }
.sup-head p { margin: 2px 0 0; font-size: 13.5px; }
.sup-card .cover { background-color: #e9dccb; background-size: cover; background-position: center; }
.sup-rate { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sup-rate:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.sup-rate input { accent-color: var(--primary); }
.sup-rate > span:first-of-type { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sup-rate small { color: var(--muted); font-size: 12.5px; }
.sup-price { text-align: end; display: flex; flex-direction: column; }
.sup-card { cursor: default; }
.sup-card .info { gap: 8px; }

/* ---- payments */
.pay-steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.pay-steps li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--muted); }
.pay-steps li::before { content: counter(s); flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.pay-steps b { color: var(--ink); }
.pay-box { display: grid; gap: 10px; }
.pay-box .btn { display: block; }
.pay-test-tag { background: #fff4d6; color: #8a5a00; border-radius: 10px; padding: 8px 10px; font-size: 13px; text-align: center; }
.pay-fine { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.pay-done { text-align: center; padding: 18px 0 8px; }
.pay-done h1 { margin: 10px 0 6px; font-size: 24px; }
.pay-done-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; font-weight: 800; display: grid; place-items: center; }
.pay-done-ic.off { background: var(--primary); }
.pay-cta { display: block; margin-top: 16px; }
.pay-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e6f3ea; color: var(--green); }
.pay-chip.due { background: #fbe9e4; color: var(--primary); }
.pay-chip.off { background: #eee; color: var(--muted); }
.op-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-size: 13px; }
.op-pay form { margin: 0; }
.op-btn.ok { background: var(--green); }
.op-btn.bad { background: #9b2c1c; }
.op-cancel summary { cursor: pointer; color: #9b2c1c; font-weight: 700; font-size: 13px; }
.op-cancel form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.op-in { flex: 1 1 220px; font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.op-waiting { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 16px 0; }
.op-waiting h2 { font-size: 15px; margin: 0 0 8px; }
.op-waiting h2 small { background: #fbf0d9; color: #85591b; border-radius: 99px; padding: 1px 8px; font-size: 12px; }
.op-waiting ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.op-waiting a { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; text-decoration: none; color: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: #faf6f0; }
.op-waiting li.late a { background: #fbe4df; }
.op-waiting .op-by { margin-inline-start: auto; font-weight: 700; }
/* home: the guest's booked trip */
.booked-card { display: flex; gap: 14px; align-items: stretch; background: var(--card); border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 10px; margin: 0 0 18px; text-decoration: none; color: inherit; max-width: 752px; margin-inline: auto; }
.booked-img { flex: 0 0 112px; border-radius: 12px; background: center/cover #e9dccb; min-height: 112px; }
.booked-body { display: flex; flex-direction: column; gap: 3px; font-size: 14px; min-width: 0; flex: 1; }
.booked-body small { color: var(--gold); font-weight: 700; font-size: 12px; }
.booked-body b { font-size: 18px; }
.booked-body > span { color: var(--muted); }
.booked-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 6px; }
.booked-foot i { font-style: normal; }
.booked-foot em { font-style: normal; color: var(--green); font-weight: 700; font-size: 13px; }
.booked-foot strong { margin-inline-start: auto; color: var(--primary); font-size: 14px; }
@media (max-width: 420px) { .booked-img { flex-basis: 84px; min-height: 84px; } }
/* header: account menu + «حجوزاتي» */
a.icon-btn { text-decoration: none; }
.acct { position: relative; }
.acct > summary { list-style: none; cursor: pointer; }
.acct > summary::-webkit-details-marker { display: none; }
.acct-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px #0002; padding: 6px; display: grid; z-index: 20; }
.acct-menu a, .acct-menu button { display: block; text-align: start; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; background: none; border: 0; width: 100%; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: #f5ece0; }
.acct-menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.acct-menu button { color: var(--primary); font-weight: 700; }
.acct-who { padding: 6px 12px 8px; font-size: 13px; color: var(--muted); text-align: start; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.trips-h { margin: 8px 0 14px; }
.trips-sub { font-size: 15px; color: var(--muted); margin: 18px 0 8px; }
.trip-row { margin-bottom: 12px; display: grid; gap: 4px; }
.trip-row header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.trip-row header b { font-size: 17px; }
.trip-row p { margin: 0; color: var(--muted); font-size: 14px; }
.trip-row .trip-money { color: var(--ink); font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.trip-row .trip-money small { margin-inline-start: auto; color: var(--muted); font-weight: 400; }
.trip-row footer { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.trip-row footer .btn, .trip-row footer form { flex: 0 1 auto; }
.trip-row footer .btn { padding: 10px 22px; font-size: 15px; }
.trip-row.cancelled { opacity: .85; }
.trips-empty { text-align: center; }
/* header: «استكشف» — its own entry, for everyone */
.explore-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f3e7d6; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.explore-btn:hover, .explore-btn.on { background: var(--gold); color: #fff; }
@media (max-width: 600px) { .topbar .guest-pill { display: none; } .topbar .brand { white-space: nowrap; } }
@media (max-width: 370px) { .explore-btn span { display: none; } .explore-btn { padding: 6px 8px; } }

/* ---- owner pages (/owner/) */
.ow-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; }
.ow-tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.ow-tabs a.on { color: var(--primary); border-color: var(--primary); }
.ow-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.ow-stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: inherit; display: grid; gap: 4px; }
.ow-stat b { font-size: 28px; line-height: 1.1; }
.ow-stat b small { font-size: 15px; }
.ow-stat span { color: var(--muted); font-size: 13px; }
.ow-stat em { font-style: normal; font-size: 12px; font-weight: 700; }
.ow-stat.warn { border-color: #e7c98f; background: #fdf7ea; }
.ow-stat.bad { border-color: #e7a99c; background: #fdf0ed; }
.ow-stat.bad em { color: #9b2c1c; } .ow-stat.warn em { color: #85591b; }
.ow-h2 { font-size: 16px; margin: 8px 0 10px; }
.ow-problem { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid #c9b79f; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.ow-problem.off { border-inline-start-color: #b9412c; } .ow-problem.warn { border-inline-start-color: #d39b2a; }
.ow-problem span:nth-child(2) { display: grid; flex: 1; } .ow-problem small { color: var(--muted); }
.ow-problem i { font-style: normal; color: var(--primary); font-weight: 700; font-size: 13px; }
.ow-ic { font-size: 24px; line-height: 1; }
.ow-allgood { color: var(--green); font-weight: 700; }
.ow-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.ow-legend li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 5px; background: var(--c); }
.ow-legend .ok, .ow-status.ok { --c: #3f7a4a; } .ow-legend .test, .ow-status.test { --c: #2f6fa8; }
.ow-legend .warn, .ow-status.warn { --c: #b77b12; } .ow-legend .off, .ow-status.off { --c: #a3402c; }
.ow-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; scroll-margin-top: 80px; }
.ow-card:target { box-shadow: 0 0 0 3px #e8d3b4; }
.ow-card > header { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ow-card > header > div { flex: 1 1 260px; }
.ow-card h2 { font-size: 17px; margin: 0 0 3px; }
.ow-card header p { margin: 0; color: var(--muted); font-size: 14px; }
.ow-status { font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); padding: 4px 10px; border-radius: 99px; max-width: 100%; }
.ow-note { margin: 10px 0 0; font-size: 13px; background: #fbf0d9; color: #6d4a14; padding: 7px 10px; border-radius: 8px; }
.ow-steps { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ow-steps summary { cursor: pointer; font-weight: 700; color: var(--primary); font-size: 14px; }
.ow-steps ol { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 14px; }
.ow-links { margin: 8px 0 0; display: flex; gap: 14px; font-size: 13px; }
.ow-copy { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 12px; font-size: 13px; }
.ow-copy code { background: #f6efe5; padding: 5px 9px; border-radius: 8px; word-break: break-all; flex: 1 1 220px; }
.ow-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ow-field { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.ow-field .op-in { font-weight: 400; width: 100%; box-sizing: border-box; }
.ow-src { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); background: #eee; padding: 1px 6px; border-radius: 99px; margin-inline-start: 4px; }
.ow-src.ok { background: var(--green-soft); color: var(--green); }
.ow-clear { font-weight: 400; color: var(--muted); }
.ow-reveal { display: flex; gap: 6px; }
.ow-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.ow-toggle { grid-column: 1 / -1; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.ow-toggle input { width: 18px; height: 18px; }
.ow-test { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ow-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 14px; }
.ow-filter .op-in { flex: 1 1 220px; }
.ow-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.ow-kinds button { border: 1px solid var(--line-strong); background: var(--card); border-radius: 99px; padding: 6px 12px; font: 700 13px var(--font); cursor: pointer; color: var(--ink); }
.ow-kinds button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ow-kinds small { opacity: .7; }
.ow-list { display: grid; gap: 8px; }
.ow-row { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; scroll-margin-top: 80px; }
.ow-row.warn, .ow-row.missing { border-inline-start: 4px solid #d39b2a; }
.ow-row:target { box-shadow: 0 0 0 3px #e8d3b4; }
.ow-who { flex: 1 1 280px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ow-who b { font-size: 16px; }
.ow-who > span { color: var(--muted); font-size: 13px; }
.ow-kind { flex-basis: 100%; font-size: 11px !important; font-weight: 700; color: var(--gold) !important; }
.ow-phone { color: var(--ink) !important; font-weight: 600; }
.ow-tag { font-size: 12px !important; background: #f3ece2; color: var(--ink) !important; padding: 1px 8px; border-radius: 99px; }
.ow-tag.bad { background: #fbe4df; color: #9b2c1c !important; }
.ow-do { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ow-do .op-btn { padding: 7px 14px; font-size: 13px; }
.ow-edit { font-size: 13px; color: var(--muted); margin-inline-start: 4px; }
.ow-add { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.ow-add .op-in { flex: 1 1 150px; }
@media (max-width: 600px) { .ow-do { flex-basis: 100%; } }

/* ---- English (left-to-right) */
@media (max-width: 600px) { html[lang=en] .topbar .brand { white-space: normal; line-height: 1.15; font-size: 15px; max-width: 128px; } }
.lang-btn .lang-short { display: none; }
@media (max-width: 600px) { .topbar { gap: 6px; } .lang-btn .lang-full { display: none; } .lang-btn .lang-short { display: inline; } }
.lang-btn { font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; padding: 4px 6px; white-space: nowrap; }
[dir=ltr] .cal-head { flex-direction: row-reverse; }
[dir=ltr] .back svg, [dir=ltr] .flip-x { transform: scaleX(-1); }
[dir=ltr] .login-form .field input, [dir=ltr] .in.ltr { text-align: left; }
[dir=ltr] select.in { padding-left: 14px; padding-right: 30px; background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; }
[dir=ltr] .map-pop { direction: ltr; text-align: left; }
[dir=ltr] .tv-card .caret, [dir=ltr] .op-arrow { display: inline-block; }
[dir=ltr] body { font-family: var(--font); }
