:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
/* Layout: a calm harbour-office console — fixed role bar, side rail per role, content on a sea-glass ground */
:root {
  --bg: #F3F6F7;
  --surface: #FFFFFF;
  --surface-2: #E9EFF1;
  --ink: #12232E;
  --muted: #5B6E78;
  --line: #D6E0E4;
  --sea: #0E2D4A;
  --sea-soft: #D7ECEE;
  --sun: #E9A23B;
  --sun-soft: #FBEBD0;
  --ok: #2E7D4F;
  --ok-soft: #DCEFE3;
  --warn: #B26A00;
  --warn-soft: #FCEBCF;
  --bad: #B3362E;
  --bad-soft: #F7DCDA;
  --wa: #1F8F55;
  --shadow: 0 1px 2px rgba(18,35,46,.06), 0 6px 18px rgba(18,35,46,.06);
  --f-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --r: 12px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0D171D; --surface: #14222A; --surface-2: #1B2D37; --ink: #E6EEF1; --muted: #93A7B1; --line: #26404C;
  --sea: #D2B585; --sea-soft: #2A2618; --sun: #F0B357; --sun-soft: #3B2C14; --ok: #6FD39A; --ok-soft: #173826;
  --warn: #F2B65A; --warn-soft: #3A2A10; --bad: #F08A82; --bad-soft: #3D1C1A; --wa: #3CC274; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0D171D; --surface: #14222A; --surface-2: #1B2D37; --ink: #E6EEF1; --muted: #93A7B1; --line: #26404C;
  --sea: #D2B585; --sea-soft: #2A2618; --sun: #F0B357; --sun-soft: #3B2C14; --ok: #6FD39A; --ok-soft: #173826;
  --warn: #F2B65A; --warn-soft: #3A2A10; --bad: #F08A82; --bad-soft: #3D1C1A; --wa: #3CC274; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25); color-scheme: dark }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14.5px; line-height: 1.6; direction: rtl; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.example { font-size: 11.5px; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--sea); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.brand b { font-family: var(--f-display); font-size: 17px; letter-spacing: .2px; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); margin-top: -3px; }
.roles { display: flex; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-inline-start: auto; overflow-x: auto; max-width: 100%; }
.roles button { border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; white-space: nowrap; color: var(--muted); font-weight: 500; }
.roles button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.shell.no-rail { grid-template-columns: minmax(0, 1fr); }
.rail { background: var(--surface); border-left: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.rail .who { padding: 6px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rail .who b { display: block; font-family: var(--f-display); font-size: 15px; }
.rail .grp { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; padding: 12px 12px 4px; }
.rail button { border: 0; background: transparent; text-align: right; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.rail button:hover { background: var(--surface-2); }
.rail button[aria-current="true"] { background: var(--sea-soft); color: var(--sea); font-weight: 600; }
.rail .count { margin-inline-start: auto; font-size: 12px; background: var(--sun-soft); color: var(--warn); border-radius: 999px; padding: 0 8px; }
.main { padding-block: 22px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .main { padding-inline: 28px; } }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 7px 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--sea); }
.btn.primary { background: var(--sea); border-color: var(--sea); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0D171D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0D171D; } }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.ok { border-color: var(--ok); color: var(--ok); }
.btn.bad { border-color: var(--bad); color: var(--bad); }
.btn.wa-btn { background: var(--wa); border-color: var(--wa); color: #fff; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.panel > h2 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3c { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 420px) { .g2 { grid-template-columns: 1fr; } }

.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .v { font-family: var(--f-display); font-size: 26px; font-weight: 600; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi .d { font-size: 12.5px; }
.up { color: var(--ok); } .down { color: var(--bad); }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 10px; font-size: 12.5px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-ok { background: var(--ok-soft); color: var(--ok); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-bad { background: var(--bad-soft); color: var(--bad); }
.p-sea { background: var(--sea-soft); color: var(--sea); }
.p-mute { background: var(--surface-2); color: var(--muted); }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 7px; padding: 5px 14px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.f-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 80px; gap: 10px; align-items: center; }
.f-bar { height: 26px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--sea); border-radius: 6px; }
.f-row.drop .f-bar i { background: var(--sun); }
.f-row b { text-align: left; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .f-row { grid-template-columns: 1fr 70px; } .f-row .f-bar { grid-column: 1 / -1; order: 3; } }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: right; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td input { width: 90px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; background: var(--surface); }
.thumb { width: 54px; height: 40px; border-radius: 7px; flex: none; }
.cell-apt { display: flex; align-items: center; gap: 10px; }
.cell-apt b { display: block; font-weight: 600; }
.cell-open { all: unset; cursor: pointer; display: block; border-radius: 10px; padding: 2px; }
.cell-open:hover b, .cell-open:focus-visible b { color: var(--sea, #0E2D4A); text-decoration: underline; }
.cell-open:focus-visible { outline: 2px solid var(--sea, #0E2D4A); outline-offset: 2px; }
.cell-site { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--sea, #0E2D4A); text-decoration: none; }

/* kanban */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--surface-2); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.col h3 { font-size: 13.5px; display: flex; gap: 6px; align-items: center; padding: 2px 4px 6px; }
.col h3 span { margin-inline-start: auto; color: var(--muted); font-family: var(--f-body); font-weight: 500; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.card .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.card b { font-weight: 600; }
.timer { font-size: 12px; font-variant-numeric: tabular-nums; }
.card.hot { border-color: var(--sun); box-shadow: inset -3px 0 0 var(--sun); }
.paybar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.paybar i { display: block; height: 100%; background: var(--ok); }

/* timeline: units x days */
.tl { display: grid; grid-template-columns: 140px repeat(7, minmax(46px, 1fr)); min-width: 520px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tl > div { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 7px 6px; font-size: 12.5px; min-height: 46px; position: relative; }
.tl .hd { text-align: center; color: var(--muted); min-height: 0; background: var(--surface-2); }
.tl .hd b { display: block; color: var(--ink); }
.tl .hd.now { background: var(--sun-soft); }
.tl .u { font-weight: 600; }
.tl .bar { position: absolute; inset: 8px 3px; border-radius: 7px; background: var(--sea); color: #fff; font-size: 12px; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; z-index: 1; }
.tl .bar.closed { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }

.change { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.change:last-child { border-bottom: 0; }
.diff { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.diff s { color: var(--bad); }
.diff ins { color: var(--ok); text-decoration: none; font-weight: 600; }

.media-q { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.media-q:last-child { border-bottom: 0; }
.media-q .shot { border-radius: 10px; aspect-ratio: 4 / 3; max-width: 100%; position: relative; overflow: hidden; }
.checks { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; margin: 6px 0 8px; }
.checks label { display: flex; gap: 8px; align-items: center; }
.flag { position: absolute; bottom: 8px; right: 8px; background: var(--bad); color: #fff; font-size: 11.5px; border-radius: 6px; padding: 1px 7px; }
.fake-phone { position: absolute; top: 30%; left: 10%; color: #fff; font-weight: 700; font-size: 12.5px; background: rgba(0,0,0,.4); padding: 0 6px; border-radius: 4px; }
.rule { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.rule b { color: var(--warn); }
@media (max-width: 520px) { .media-q { grid-template-columns: 1fr; } }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--muted); }
.day { aspect-ratio: 1 / 1; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-variant-numeric: tabular-nums; padding: 2px; }
.day small { font-size: 10.5px; color: var(--muted); }
.day.wk { background: var(--sun-soft); }
.day.blocked { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.day.booked { background: var(--sea-soft); border-color: var(--sea); color: var(--sea); }
.day.past { opacity: .4; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-inline-end: 5px; border: 1px solid var(--line); }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12.5px; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch button { width: 46px; height: 26px; border-radius: 999px; border: 0; background: var(--line); position: relative; flex: none; }
.switch button::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: right .15s; }
.switch button[aria-checked="true"] { background: var(--sea); }
.switch button[aria-checked="true"]::after { right: 23px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; color: var(--muted); }

/* listing cards */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.lphoto { aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.lphoto .tag { position: absolute; top: 10px; right: 10px; background: rgba(18,35,46,.72); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 10px; }
.lphoto .badge { position: absolute; top: 10px; left: 10px; color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.b-hot { background: #C2362B; } .b-new { background: #2563D9; } .b-offer { background: #D9731F; } .b-last { background: #0E7A47; } .b-disc { background: #7C3AED; }
.lphoto .count-ph { position: absolute; bottom: 10px; left: 10px; background: rgba(18,35,46,.72); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 10px; }
.lphoto .today { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.94); color: #0E7A47; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; display: inline-flex; gap: 5px; align-items: center; }
.lphoto .today::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22A45A; }
.lbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lbody h3 { font-size: 15.5px; }
.lmeta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.lprice { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.lprice b { font-family: var(--f-display); font-size: 19px; }
.wa { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--wa); color: #fff; border: 0; border-radius: 10px; padding: 9px; font-weight: 600; }
.wa svg { width: 18px; height: 18px; }

/* site */
.cover { border-radius: 16px; background: linear-gradient(180deg, #0A2238 0 60%, #0E2D4A 60% 78%, #E8D6B4 78%); color: #fff; padding: 26px 22px 70px; }
.cover h1 { font-size: clamp(22px, 4vw, 32px); color: #fff; }
.cover p { margin: 6px 0 0; opacity: .9; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: -48px; padding-inline: 16px; }
.contact-row .btn { box-shadow: var(--shadow); }
.search { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.trust div { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { width: 22px; height: 22px; flex: none; color: var(--sea); }
.float { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 25; }
.float button { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: var(--shadow); color: #fff; }
.float svg { width: 24px; height: 24px; }

/* reviews */
.stars { color: var(--sun); letter-spacing: 1px; }
.verified { background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 0 9px; font-size: 12px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tags span { background: var(--surface-2); border-radius: 999px; padding: 1px 10px; font-size: 12.5px; }
.reply { background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin-top: 6px; font-size: 13px; }

/* broker */
.tier { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tier-badge { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #C9CFD6, #8E99A4); display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 700; }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--sun); border-radius: 99px; }
.story { aspect-ratio: 9 / 16; max-width: 100%; border-radius: 16px; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.story::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, rgba(11,40,48,.92)); }
.story > * { position: relative; z-index: 1; }
.story .brand-chip { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.45); border-radius: 999px; padding: 2px 10px; font-size: 12px; z-index: 1; }
.story h3 { font-size: 18px; color: #fff; }
.story .pr { display: inline-block; background: var(--sun); color: #12232E; border-radius: 999px; padding: 2px 12px; font-weight: 700; margin: 8px 0 4px; }
.qr { width: 96px; height: 96px; border-radius: 8px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border: 6px solid var(--surface); outline: 1px solid var(--line); }
.lb { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lb:last-child { border-bottom: 0; }
.lb .rk { font-family: var(--f-display); color: var(--muted); text-align: center; }
.lb.me { background: var(--sea-soft); border-radius: 8px; padding-inline: 6px; }

.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 10px; font-size: 13.5px; z-index: 40; max-width: calc(100% - 32px); text-align: center; }

.ph-a { background: linear-gradient(180deg, #8CC9D3 0 46%, #2D8C9C 46% 70%, #E8D6B4 70%); }
.ph-b { background: linear-gradient(180deg, #A9D7DE 0 40%, #1F7383 40% 64%, #DCC7A0 64%); }
.ph-c { background: linear-gradient(160deg, #F2E3C6 0 55%, #C9A97A 55%); }
.ph-d { background: linear-gradient(180deg, #9DD0D8 0 52%, #37919E 52% 75%, #EBDDBF 75%); }
.ph-e { background: linear-gradient(135deg, #DDE6E9 0 50%, #B7C8CE 50%); }

/* ---------- customer site v2 ---------- */
.site { display: flex; flex-direction: column; gap: 22px; max-width: 1120px; width: 100%; margin-inline: auto; }
.hero { border-radius: 22px; background: linear-gradient(180deg, #0A2238 0 58%, #0E2D4A 58% 76%, #E8D6B4 76%); color: #fff; padding: 34px 26px 96px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(24px, 4.2vw, 40px); color: #fff; max-width: 18ch; }
.hero p { margin: 8px 0 0; opacity: .9; max-width: 46ch; }
.hero .stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; opacity: .95; }
.hero .stats b { font-family: var(--f-display); font-size: 17px; }
.sbox { margin-top: -78px; margin-inline: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(18,35,46,.12); padding: 8px; display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr auto; gap: 4px; position: relative; z-index: 2; }
.sbox .sf { padding: 8px 14px; border-radius: 14px; display: flex; flex-direction: column; min-width: 0; }
.sbox .sf:hover { background: var(--surface-2); }
.sbox .sf label { font-size: 12px; font-weight: 600; }
.sbox .sf select, .sbox .sf input { border: 0; background: transparent; padding: 0; min-width: 0; color: var(--muted); }
.sbox .go { border: 0; background: var(--sea); color: #fff; border-radius: 14px; padding: 0 22px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
:root[data-theme="dark"] .sbox .go { color: #0D171D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sbox .go { color: #0D171D; } }
@media (max-width: 760px) { .sbox { grid-template-columns: 1fr 1fr; } .sbox .sf:first-child { grid-column: 1 / -1; } .sbox .go { grid-column: 1 / -1; justify-content: center; padding: 12px; } }
.cats { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.cats button { border: 0; background: transparent; padding: 8px 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; border-bottom: 2px solid transparent; }
.cats button svg { width: 24px; height: 24px; }
.cats button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sec-h h2 { font-size: 20px; }
.dests { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.dest { border: 0; padding: 0; background: transparent; text-align: right; display: flex; flex-direction: column; gap: 6px; }
.dest .img { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 16px; position: relative; overflow: hidden; }
.dest .img span { position: absolute; bottom: 10px; right: 10px; left: 10px; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.dest[aria-pressed="true"] .img { outline: 3px solid var(--sea); outline-offset: 2px; }
.dest small { color: var(--muted); }
.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 16px; }
.uc { display: flex; flex-direction: column; gap: 6px; }
.uc .lphoto { border-radius: 16px; overflow: hidden; }
.uc .heart { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; color: #12232E; }
.uc .heart[aria-pressed="true"] { color: #C2362B; }
.uc .heart svg { width: 18px; height: 18px; }
.uc .lphoto .badge { top: 10px; left: 10px; }
.uc .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.uc .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.65); }
.uc .dots i:first-child { background: #fff; }
.uc .t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.uc .t b { font-weight: 600; }
.uc .sub { color: var(--muted); font-size: 13.5px; }
.uc .pr { font-size: 14px; }
.uc .pr b { font-family: var(--f-display); font-size: 16px; }
.instant { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--sea); font-weight: 600; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mapbox { border-radius: 18px; border: 1px solid var(--line); background: var(--sea-soft); position: relative; overflow: hidden; aspect-ratio: 16 / 7; max-width: 100%; }
.mapbox svg { width: 100%; height: 100%; display: block; }
.mpin { position: absolute; transform: translate(50%, -50%); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; border: 0; }
.mpin.on { background: var(--ink); color: var(--bg); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.why div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.why svg { width: 26px; height: 26px; color: var(--sea); }
.rev-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; }
.rev-strip blockquote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.foot { border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; color: var(--muted); font-size: 13.5px; }
.foot b { color: var(--ink); display: block; margin-bottom: 4px; }
/* unit page */
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 21 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; position: relative; }
.gal > div:first-child { grid-row: 1 / 3; }
.gal .all { position: absolute; bottom: 12px; left: 12px; }
@media (max-width: 640px) { .gal { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; } .gal > div:not(:first-child) { display: none; } }
.unit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .unit-grid { grid-template-columns: 1fr; } }
.book-box { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.book-box .dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.book-box .dates .field { padding: 8px 10px; }
.book-box .dates .field + .field { border-right: 1px solid var(--line); }
.book-box .dates input { border: 0; padding: 0; }
.highlights { display: flex; flex-direction: column; gap: 14px; padding-block: 16px; border-block: 1px solid var(--line); }
.highlights div { display: flex; gap: 12px; }
.highlights svg { width: 24px; height: 24px; flex: none; color: var(--ink); }
.amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; }
.amen span { display: flex; gap: 8px; align-items: center; }
.amen span.no { color: var(--muted); text-decoration: line-through; }
.mini-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 13px; }
.mini-cal span { padding: 6px 0; border-radius: 8px; font-variant-numeric: tabular-nums; }
.mini-cal .x { color: var(--muted); text-decoration: line-through; }
.mini-cal .sel { background: var(--ink); color: var(--bg); }
.mini-cal .rng { background: var(--surface-2); }
.tag-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-sum span { background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.mbar { display: none; }
@media (max-width: 900px) { .mbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 24; background: var(--surface); border-top: 1px solid var(--line); padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); justify-content: space-between; align-items: center; gap: 10px; } }
/* admin extras */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); min-height: 460px; }
.inbox .list { border-left: 1px solid var(--line); overflow-y: auto; }
.inbox .it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); width: 100%; text-align: right; background: transparent; border-inline: 0; border-top: 0; }
.inbox .it[aria-current="true"] { background: var(--sea-soft); }
.inbox .it small { color: var(--muted); grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat { display: flex; flex-direction: column; }
.chat .msgs { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.bub { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; }
.bub.in { background: var(--surface); align-self: flex-start; border-top-right-radius: 4px; }
.bub.out { background: var(--sea-soft); align-self: flex-end; border-top-left-radius: 4px; }
.bub .btns { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.bub .btns span { border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; font-size: 12px; background: var(--surface); }
.chat .compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: center; }
.chat .compose input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; background: var(--surface); }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } .inbox .list { max-height: 220px; border-left: 0; border-bottom: 1px solid var(--line); } }
.bars-v { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.bars-v div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 12px; color: var(--muted); }
.bars-v i { display: block; width: 100%; max-width: 46px; background: var(--sea); border-radius: 6px 6px 0 0; }
.bars-v b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.qscore { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.qscore i { width: 46px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: inline-block; }
.qscore i b { display: block; height: 100%; }
.gov-filter { display: flex; gap: 6px; flex-wrap: wrap; }

/* customer site: always light and airy */
body.site-mode { --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F3F6F8; --ink: #14232D; --muted: #5F6E76; --line: #E5EBEE;
  --sea: var(--brand-light, #0E2D4A); --sea-soft: color-mix(in srgb, var(--sea) 12%, #FFFFFF); --ok: #2E7D4F; --ok-soft: #DCEFE3; --warn: #B26A00; --warn-soft: #FCEBCF; --bad: #B3362E; --bad-soft: #F7DCDA; --sun: #E9A23B; --sun-soft: #FBEBD0;
  color-scheme: light; background: #FFFFFF; color: var(--ink); }
body.site-mode .main { background: #FFFFFF; }
body.site-mode .hero { background: linear-gradient(160deg, color-mix(in srgb, var(--sea) 14%, #FFFFFF) 0%, #F6FAFB 55%, #FFFFFF 100%); color: var(--ink); border: 1px solid var(--line); }
body.site-mode .hero h1 { color: var(--ink); }
body.site-mode .hero p { opacity: 1; color: var(--muted); }
body.site-mode .btn.primary, body.site-mode .sbox .go { color: #FFFFFF; }
.snav { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.slogo { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 17px; padding: 0; }
.snav-links { display: flex; gap: 4px; }
.snav-links button { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.snav-links button:hover { background: var(--surface-2); color: var(--ink); }
.snav-r { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.ava { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--sea); color: #fff; font-weight: 700; }
@media (max-width: 640px) { .snav-links { display: none; } }
.auth { max-width: 420px; width: 100%; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.auth h1 { font-size: 22px; }
.oauth { display: flex; flex-direction: column; gap: 8px; }
.oauth button { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px; font-weight: 600; }
.oauth button:hover { border-color: var(--ink); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.email-login { display: flex; flex-direction: column; gap: 8px; }
.similar { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.main { max-width: 1480px; width: 100%; }
@media (max-width: 480px) {
  body { font-size: 14px; }
  .page-head h1 { font-size: 19px; }
  .kpi .v { font-size: 21px; }
  .hero { padding: 24px 18px 92px; }
  .panel { padding: 14px; }
  .uc .lphoto { aspect-ratio: 4 / 3 !important; }
  .top { gap: 10px; }
  .brand small { display: none; }
}
@media (min-width: 1600px) { body { font-size: 15px; } .site { max-width: 1280px; } }
/* price filter, acting banner */
.pricebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pricebar .chip:disabled { opacity: .45; cursor: default; }
.range { display: flex; gap: 6px; align-items: center; }
.range input { width: 86px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.acting { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--sun-soft); border: 1px solid var(--sun); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
/* services and offers */
.svc-list { display: flex; flex-direction: column; gap: 8px; }
.svc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: right; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.svc small { display: block; color: var(--muted); font-size: 12.5px; }
.svc[aria-pressed="true"] { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); background: var(--sea-soft); }
.svc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; flex: none; }
.svc-pr { text-align: left; font-weight: 600; }
.svc-pr small { display: block; font-weight: 400; color: var(--muted); }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.offer { border: 1px dashed var(--sun); background: var(--sun-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.offer span { font-weight: 600; color: var(--warn); }
.offer small { color: var(--muted); }
.pkg { display: flex; flex-direction: column; gap: 6px; }
/* in-platform booking */
.steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.steps span { border-bottom: 3px solid var(--line); padding-bottom: 4px; flex: 1; min-width: 90px; }
.steps span.on { border-color: var(--sea); color: var(--ink); font-weight: 600; }
.paylist { display: flex; flex-direction: column; gap: 8px; }
.payopt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: right; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.payopt small { display: block; color: var(--muted); font-size: 12.5px; }
.payopt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.payopt[aria-pressed="true"] { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.payopt[aria-pressed="true"] .radio { border-color: var(--sea); background: radial-gradient(circle, var(--sea) 45%, transparent 50%); }
.safe { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.safe svg { color: var(--ok); flex: none; }
.sysmsg { align-self: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 6px 12px; font-size: 12.5px; color: var(--muted); text-align: center; max-width: 92%; }
.blockmsg { align-self: center; background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 6px 12px; font-size: 12.5px; text-align: center; max-width: 92%; }
.leak-warn { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-top: 8px; }
.linkbtn { border: 0; background: transparent; color: var(--sea); text-decoration: underline; padding: 0; font: inherit; }
.trip { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
@media (max-width: 520px) { .trip { grid-template-columns: 1fr; } }
.unlocked { margin-top: 12px; background: var(--sea-soft); border-radius: 12px; padding: 12px; font-size: 13.5px; }
/* story studio */
.studio { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 820px) { .studio { grid-template-columns: 1fr; } }
.sp-wrap { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (max-width: 820px) { .sp-wrap { position: static; max-width: 340px; width: 100%; margin-inline: auto; } }
.sp { width: 100%; max-width: 100%; border-radius: 18px; overflow: hidden; position: relative; color: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.sp-brand { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 600; z-index: 2; }
.sp .sp-body { display: flex; flex-direction: column; gap: 4px; padding: 16px; position: relative; z-index: 1; }
.sp-tag { align-self: flex-start; background: var(--sun); color: #12232E; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }
.sp-name { font-family: var(--f-display); font-size: 20px; line-height: 1.25; }
.sp-sub { font-size: 12.5px; opacity: .92; }
.sp-price { align-self: flex-start; background: #fff; color: #12232E; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 14px; margin-top: 4px; }
.sp-cta { font-size: 11.5px; opacity: .9; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.3); padding-top: 6px; }
.sp-glass { justify-content: flex-end; }
.sp-glass::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sea) 30%, #071a20) 70%); }
.sp-frame { background: #fff; color: #12232E; padding: 10px; }
.sp-frame .sp-img { flex: 1; border-radius: 12px; position: relative; min-height: 40%; }
.sp-frame .sp-sub { opacity: .75; }
.sp-frame .sp-cta { border-top-color: #e4e9eb; color: #12232E; }
.sp-frame .sp-price { background: var(--sea); color: #fff; }
.sp-split .sp-img { flex: 1.2; position: relative; }
.sp-split .sp-body { background: var(--sea); flex: 1; justify-content: center; }
.sp-list { background: linear-gradient(180deg, color-mix(in srgb, var(--sea) 70%, #000), var(--sea)); padding: 44px 16px 16px; gap: 8px; justify-content: center; }
.sp-list .sp-h { font-family: var(--f-display); font-size: 20px; }
.sp-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; background: rgba(255,255,255,.12); border-radius: 12px; padding: 6px; }
.sp-row small { display: block; opacity: .85; }
.sp-th { width: 54px; height: 44px; border-radius: 8px; }
.caption { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-family: var(--f-body); font-size: 13.5px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.theme-sw { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px; display: flex; align-items: center; gap: 8px; text-align: right; }
.theme-sw span { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.theme-sw[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rail { align-self: start; }
  .rail { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; gap: 4px; }
  .rail .who, .rail .grp { display: none; }
  .rail button { white-space: nowrap; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- EJAR additions ---- */
.login-hint { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--muted); }
.login-hint code { direction: ltr; unicode-bidi: embed; }
.err { color: var(--bad); font-size: 13px; }
.creds { background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.creds code { direction: ltr; unicode-bidi: embed; font-weight: 700; }
.lphoto.has-img, .shot.has-img, .thumb.has-img, .gal > div.has-img, .sp-th.has-img, .sp-img.has-img, .sp.has-img { background-size: cover; background-position: center; }
.uc .lphoto, .uc .t, .uc .sub { cursor: pointer; }
.mini-nav { display: flex; gap: 8px; align-items: center; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.day.past { cursor: default; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-top: 10px; }
.inline-form input, .inline-form select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; min-width: 0; }
.photo-grid .lphoto { cursor: pointer; }
.sortbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 0 6px; }
canvas.hidden { display: none; }

/* ---------- site look (EJAR classic): navy header, rich unit cards ---------- */
:root { --navy: #2B4A66; --navy-2: #22405A; --busy: #B4453A; --busy-soft: #FBEDEB; --free: #1E7A4C; --free-soft: #EAF5EE; --tag-purple: #6B3FA0; }
.snav.snav2 { background: var(--navy); margin: -16px -16px 0; padding: 12px 16px; border-bottom: 0; box-shadow: 0 2px 10px rgba(16,32,48,.18); position: sticky; top: 0; z-index: 20; }
.snav2 .slogo { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 19px; gap: 10px; }
.snav2 .slogo i { font-style: normal; opacity: .55; margin: 0 2px; }
.snav2 .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: #0F1F2E; }
.snav2 .snav-links button { color: rgba(255,255,255,.85); }
.snav2 .snav-links button:hover { color: #fff; }
.snav2 .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.snav2 .ava { background: #fff; color: var(--navy); }
@media (min-width: 861px) { .snav.snav2 { margin: -24px -24px 0; padding: 12px 24px; } }
.wa-float { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); z-index: 30; }

.ucards.ucards2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.uc2 { background: var(--surface); border-radius: 24px; box-shadow: 0 6px 24px rgba(18,35,46,.09); overflow: hidden; display: flex; flex-direction: column; }
.uc-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); cursor: pointer; }
.uc-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.uc-track::-webkit-scrollbar { display: none; }
.uc-track > img, .uc-track > div { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.uc-loc { position: absolute; top: 12px; right: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.uc-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.uc-tags span { color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 12px; }
.uc-tags .t-type { background: var(--tag-purple); }
.uc-tags .t-badge { background: #B33A2F; }
.uc-tags .t-badge.b-new { background: #2F5FD0; }
.uc-media .heart { position: absolute; bottom: 12px; right: 12px; top: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #12232E; }
.uc-media .heart[aria-pressed="true"] { color: #C2362B; }
.uc-media .heart svg { width: 18px; height: 18px; }
.uc-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.uc-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .2s; }
.uc-dots i.on { background: #fff; width: 18px; }
.uc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.uc-body h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.35; cursor: pointer; }
.uc-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.uc-rate .stars { color: #D9A13B; letter-spacing: 2px; font-size: 15px; }
.uc-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.uc-specs span { display: inline-flex; align-items: center; gap: 5px; }
.uc-specs svg { width: 19px; height: 19px; }
.uc-desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-more { align-self: center; color: var(--navy); font-weight: 600; margin-top: -6px; }
.uc-am { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-am span { background: var(--surface-2); border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.uc-am .more { color: var(--navy); font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wd { border-radius: 12px; text-align: center; padding: 6px 2px; display: flex; flex-direction: column; line-height: 1.25; }
.wd small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd b { font-size: 16px; }
.wd.free { background: var(--free-soft); color: var(--free); }
.wd.busy { background: var(--busy-soft); color: var(--busy); }
.wd.busy b { text-decoration: line-through; }
.uc-price { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
.uc-price b { font-family: var(--f-display); font-size: 21px; font-weight: 700; }
.uc-actions { display: flex; gap: 10px; align-items: center; }
.uc-book { flex: 1; border: 0; border-radius: 999px; background: #161C22; color: #fff; font: 600 16px var(--f-display); padding: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.uc-book svg { width: 20px; height: 20px; }
.uc-ic { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 2px solid #161C22; background: transparent; color: #161C22; display: grid; place-items: center; }
.uc-ic.video { border-color: #E0A36A; color: #E0A36A; }
.uc-ic svg { width: 22px; height: 22px; }
:root[data-theme="dark"] .uc-book { background: #E6EEF1; color: #0D171D; }
:root[data-theme="dark"] .uc-ic { border-color: #E6EEF1; color: #E6EEF1; }
.gal [data-lb] { cursor: zoom-in; }
.gal .all.vid { left: auto; right: 12px; }

/* calendar with prices */
.cal-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav .btn { min-width: 38px; justify-content: center; font-size: 18px; line-height: 1; }
.mini-cal.cal2 { gap: 5px; }
.cal2 .cd { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 5px 0 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; color: var(--ink); font: inherit; }
.cal2 .cd b { font-size: 14px; font-weight: 600; }
.cal2 .cd small { font-size: 10.5px; color: var(--free); font-weight: 600; }
.cal2 button.cd:hover { border-color: var(--sea); }
.cal2 .cd.x { border-color: transparent; background: transparent; color: var(--muted); }
.cal2 .cd.x b { text-decoration: line-through; font-weight: 400; }
.cal2 .cd.taken { background: var(--busy-soft); color: var(--busy); }
.cal2 .cd.taken small { color: var(--busy); font-size: 9.5px; }
.cal2 .cd.sel { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cal2 .cd.sel small { color: var(--bg); }
.cal2 .cd.rng { background: var(--sea-soft); border-color: var(--sea-soft); }

/* photo viewer */
.lb-wrap { position: fixed; inset: 0; background: rgba(6,10,14,.96); z-index: 100; display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; color: #fff; }
.lb-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; }
.lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; padding: 8px; }
.lb-slide img, .lb-slide video { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 6px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 1; }
.lb-arrow.prev { right: 14px; } .lb-arrow.next { left: 14px; }
@media (max-width: 640px) { .lb-arrow { display: none; } }

/* owner upload staging */
.up-stage { display: flex; flex-direction: column; gap: 12px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.up-it, .ph-tile { position: relative; }
.up-it { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.up-it img, .up-it video { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-it .tag { position: absolute; bottom: 6px; right: 6px; background: rgba(18,35,46,.75); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 8px; }
.up-x { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(18,24,30,.78); color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; z-index: 2; }
.up-prog { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.up-prog i { display: block; height: 100%; background: var(--sea); border-radius: 99px; transition: width .25s; }

/* ---- Airbnb-style browsing (white header, photo-first cards, rows, tab bar) ---- */
.snav.snav2 { background: var(--surface); box-shadow: none; border-bottom: 1px solid var(--line); }
.snav2 .slogo { color: var(--sea); }
.snav2 .slogo i { opacity: .35; }
.snav2 .brand-mark { background: var(--sea); }
.snav2 .snav-links button { color: var(--ink); }
.snav2 .snav-links button:hover { color: var(--ink); background: var(--surface-2); }
.snav2 .btn { background: var(--surface); border-color: var(--line); color: var(--ink); border-radius: 999px; }
.snav2 .ava { background: var(--ink); color: var(--surface); }

.spill { width: min(100%, 560px); margin: 14px auto 6px; display: flex; align-items: center; gap: 14px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 3px 12px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05); text-align: start; color: var(--ink); cursor: pointer; }
.spill svg { flex: none; }
.spill span { display: flex; flex-direction: column; min-width: 0; }
.spill b { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.spill small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .sbox { margin-top: 14px; }
.site .cats { justify-content: center; border-bottom: 0; margin: 6px 0 4px; }
.site .cats button { opacity: .72; }
.site .cats button[aria-pressed="true"] { opacity: 1; }

.arow { margin: 26px 0 6px; }
.arow-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.arow-h h2 { font-size: 20px; font-weight: 600; }
.arow-go { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 17px; display: grid; place-items: center; cursor: pointer; }
.arow-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.arow-track::-webkit-scrollbar { display: none; }
.arow-track > .ac { scroll-snap-align: start; }
@media (min-width: 1100px) { .arow-track { grid-auto-columns: calc((100% - 5 * 18px) / 6); } }
@media (max-width: 760px) { .arow-track { grid-auto-columns: 72%; gap: 14px; } }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 26px 20px; margin-top: 10px; }

.ac { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-media { position: relative; aspect-ratio: 1 / 0.95; border-radius: 18px; overflow: hidden; background: var(--surface-2); cursor: pointer; margin-bottom: 8px; }
.ac-media .ph-a, .ac-media [class^="ph-"] { width: 100%; height: 100%; }
.ac-fav { position: absolute; top: 12px; right: 12px; background: #fff; color: #12232E; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 4px 12px; box-shadow: 0 1px 6px rgba(0,0,0,.16); }
.ac-heart { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border: 0; background: transparent; display: grid; place-items: center; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.ac-heart svg { width: 24px; height: 24px; fill: rgba(0,0,0,.35); stroke: #fff; stroke-width: 2; }
.ac-heart[aria-pressed="true"] svg { fill: #E0344B; }
.ac-t { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.ac-t b { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-t .num { font-size: 14px; }
.ac-new { font-size: 12.5px; color: var(--sea); font-weight: 600; }
.ac-sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ac-hl { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 2px; }
.ac-hl span { font-size: 12px; background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.ac-p { font-size: 14.5px; margin-top: 2px; cursor: pointer; }
.ac-p b { font-weight: 600; }

.geo-map { position: relative; aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.geo-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.geo-ring { position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); border-radius: 50%; background: color-mix(in srgb, var(--sea) 22%, transparent); border: 2px solid var(--sea); pointer-events: none; }
@media (max-width: 760px) { .geo-map { aspect-ratio: 4 / 3; } }

.tabbar { display: none; }
@media (max-width: 760px) {
  .snav2 .snav-links, .snav2 .snav-r .btn { display: none; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; }
  .tabbar button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; padding: 4px 0; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar button[aria-current="true"] { color: var(--sea); font-weight: 600; }
  body.site-mode:has(.tabbar) { padding-bottom: 72px; }
  body.site-mode:has(.tabbar) .wa-float { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
}
.site .cats { justify-content: safe center; }
.ac-fav { max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-hl { flex-wrap: nowrap; overflow: hidden; mask-image: linear-gradient(to left, #000 85%, transparent); }
.ac-hl span { flex: none; }
@media (max-width: 760px) { .arow-track { grid-auto-columns: 62%; } }
.site .sbox { grid-template-columns: 1fr 1fr 1fr 1fr .8fr auto; }
@media (max-width: 760px) { .site .sbox { grid-template-columns: 1fr 1fr; } .site .sbox .sf:nth-child(2) { grid-column: 1 / -1; } }
.achips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 12px; padding-bottom: 2px; }
.achips::-webkit-scrollbar { display: none; }
.achips button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.achips button .num { color: var(--muted); font-size: 12px; }
.achips button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.achips button[aria-pressed="true"] .num { color: inherit; opacity: .7; }
.ac-fast { font-size: 12.5px; color: var(--sea); font-weight: 600; }
.ac-fav.ac-lm { background: #FFF4D6; color: #7A4B00; }
.alt-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sea-soft, #E6F2F3); }
.alt-box .alt-ic { font-size: 22px; }
.alt-pick { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.alt-list { display: flex; flex-direction: column; gap: 6px; }
.alt-list .btn { justify-content: space-between; }
.wa-share { background: #25D366; border-color: #25D366; color: #fff; text-decoration: none; }

/* ---- Warmer palette: sand background, white cards, sea + sun accents ---- */
body.site-mode { --bg: #F6F2EA; --surface: #FFFFFF; --surface-2: #EFE9DD; --line: #E4DCCB; --muted: #6B6A62; --sand: #F6F2EA; --sun: #E3962F;
  background: var(--bg); }
body.site-mode .main { background: transparent; }
body.site-mode { background: linear-gradient(180deg, color-mix(in srgb, var(--sea) 9%, #F6F2EA) 0, #F6F2EA 420px) no-repeat, #F6F2EA; }
.snav.snav2 { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom-color: var(--line); }
.spill { border-color: transparent; box-shadow: 0 6px 22px rgba(70, 55, 20, .12), 0 1px 2px rgba(0,0,0,.05); }
.site .cats button[aria-pressed="true"] { color: var(--sea); border-bottom-color: var(--sea); }
.ac-hl span { background: #FFFFFF; border: 1px solid var(--line); }
.achips button, .arow-go { background: #FFFFFF; }
.book-box { background: #FFFFFF; border-color: var(--line); box-shadow: 0 10px 30px rgba(70, 55, 20, .10); }
.why > div, .rev-strip blockquote { background: #FFFFFF; }
.tabbar { background: #FFFFFF; }
.foot { background: color-mix(in srgb, var(--sea) 7%, var(--bg)); border-radius: 20px; padding: 20px; }

/* ---- Numbers: Manrope for digits, tabular so prices and clocks don't jump ---- */
:root { --f-num: "Manrope", "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif; }
.num, b.num, .num b, .ac-p b, .ac-p s, .lprice b, .kpi .v { font-family: var(--f-num) !important; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.ac-p b.num { font-weight: 800; }

/* ---- Card signals ---- */
.ac-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.ac-facts span { display: inline-flex; align-items: center; gap: 4px; }
.ac-facts svg { width: 16px; height: 16px; color: var(--sea); flex: none; }
.ac-facts b { font-weight: 600; color: var(--ink); }
.ac-p s { margin-inline-end: 4px; font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1FB36B; flex: none; align-self: center; position: relative; box-shadow: 0 0 0 0 rgba(31,179,107,.55); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(31,179,107,.55); } 70% { box-shadow: 0 0 0 6px rgba(31,179,107,0); } 100% { box-shadow: 0 0 0 0 rgba(31,179,107,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---- Countdown offers ---- */
.ac-fav.ac-timer { background: linear-gradient(135deg, #FF6A3D, #E3352B); color: #fff; box-shadow: 0 4px 14px rgba(227,53,43,.35); max-width: calc(100% - 56px); }
.ac-fav.ac-timer .num { font-weight: 700; }
.tbanner { border-radius: 16px; padding: 14px; color: #fff; background: radial-gradient(120% 140% at 100% 0, #FF8A4C 0, #E3352B 55%, #B8202A 100%); box-shadow: 0 10px 26px rgba(227,53,43,.28); overflow: hidden; position: relative; }
.tbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); transform: translateX(-100%); animation: tbShine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes tbShine { 60%, 100% { transform: translateX(100%); } }
.tb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tb-tag { font-size: 13px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px 10px; }
.tb-top b { font-family: var(--f-display); font-size: 22px; }
.tb-clock { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 8px; direction: ltr; }
.tb-clock span { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.22); border-radius: 12px; padding: 6px 0 4px; min-width: 62px; }
.tb-clock b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.tb-clock b.tick { animation: tbTick .35s ease-out; }
@keyframes tbTick { from { transform: translateY(-4px); opacity: .4; } to { transform: none; opacity: 1; } }
.tb-clock small { font-size: 11px; opacity: .85; }
.tb-clock i { font-style: normal; font-weight: 800; font-size: 22px; opacity: .8; }
.tbanner p { margin: 0; font-size: 12.5px; opacity: .95; text-align: center; }
@media (prefers-reduced-motion: reduce) { .tbanner::after, .tb-clock b.tick { animation: none; } }
.mb-timer { display: block; font-size: 12px; font-weight: 700; color: #E3352B; }
.apt-code { font-family: var(--f-num); font-size: 12px; font-weight: 700; color: var(--sea); background: var(--sea-soft); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.apt-ref { font-family: var(--f-num); font-size: 11px; color: var(--muted); opacity: .45; text-align: end; margin-top: 10px; user-select: all; }
.pct-in { display: flex; align-items: center; gap: 6px; }
.pct-in input { flex: 1; }
.pct-in span { font-weight: 700; color: var(--muted); }
.own-timer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.own-timer span { color: #E3352B; font-weight: 700; }
.tbanner.tb-mini { padding: 10px 12px; }
.tbanner.tb-mini .tb-clock { margin: 8px 0 0; }
.tbanner.tb-mini .tb-clock b { font-size: 22px; }
.tbanner.tb-mini .tb-clock span { min-width: 52px; }

.wa-btn{background:#25D366;color:#fff;border-color:#25D366;display:inline-flex;align-items:center;gap:6px;text-decoration:none}.wa-btn:hover{background:#1FB857;color:#fff}
.wa-follow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;padding:10px 12px;border-radius:12px;background:#E9F9EF;border:1px solid #BFEBD0;font-size:13px;color:#14532D}.wa-own{margin:0 0 16px;font-size:14px}


.bk-focus{box-shadow:0 0 0 3px var(--brand,#0E2D4A),0 8px 30px rgba(14,45,74,.25);transition:box-shadow .3s}

/* Look v3: Cairo everywhere, calm off-white, outlined rounded cards (matches the reference screenshot) */
:root { --f-display: "Tajawal", system-ui, sans-serif; --f-body: "Tajawal", system-ui, sans-serif; --f-num: "Tajawal", system-ui, sans-serif; }
body, button, input, select, textarea { font-family: var(--f-body); }
body.site-mode { --bg: #F8F7F4; --surface: #FFFFFF; --surface-2: #F0EFEB; --line: #E6E4DF; --ink: #1A1B2E; --muted: #6F7079; --sand: #F8F7F4; }
body.site-mode, body.site-mode .main { background: #F8F7F4; }
body.site-mode h1, body.site-mode h2, body.site-mode h3 { font-weight: 700; }
.ac { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 12px 12px 16px; gap: 4px; }
.ac-media { border-radius: 20px; margin-bottom: 10px; }
.ac-t, .ac-sub, .ac-facts, .ac-hl, .ac-fast, .ac-p { padding-inline: 6px; }
.ac-t b { font-weight: 700; font-size: 16px; }
.spill { border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 20, 40, .06); }
.spill .go, .sbox .go { background: #111111 !important; color: #FFFFFF; }
.achips button { background: #FFFFFF; border-color: var(--line); }
.achips button[aria-pressed="true"] { background: #1C1F3A; border-color: #1C1F3A; color: #FFFFFF; }
.num, b.num, .num b, .ac-p b, .ac-p s, .lprice b, .kpi .v { letter-spacing: 0; }
/* Look v4: public site uses the same palette as the dashboards (Cairo + outlined cards kept) */
body.site-mode { --bg: inherit; --surface: inherit; --surface-2: inherit; --ink: inherit; --muted: inherit; --line: inherit; --sun: inherit; --sand: var(--bg); }
body.site-mode, body.site-mode .main { background: var(--bg); }
.spill .go, .sbox .go { background: var(--sea) !important; color: #FFFFFF; }
.achips button { background: var(--surface); }
.achips button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #FFFFFF; }
.proof-prev { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.proof-prev img { max-width: 220px; max-height: 260px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }

/* ---------- Admin · new apartment page (8pt grid: every size is a multiple of 8, 4px half-steps only in tiny details) ---------- */
.na { display: flex; flex-direction: column; gap: 16px; max-width: 1120px; }
.na .page-head { margin: 0; }
.na-form { display: flex; flex-direction: column; gap: 16px; }
.na-sec { padding: 24px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.na-sec-h, .na-more summary { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.na-sec h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.na-sec-h .muted, .na-more summary .muted { font-size: 13px; line-height: 16px; }
.na-sub { margin: 8px 0 0; font-size: 14px; line-height: 24px; font-weight: 700; }
.na-sub .muted { font-weight: 400; font-size: 13px; }
.na .form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.na .field { gap: 8px; }
.na .field label { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink); }
/* inputs: 48px tall, 16px inside padding on both sides */
.na .field input, .na .field select, .na .field textarea { height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; line-height: 24px; }
.na .field select { -webkit-appearance: none; appearance: none; padding-inline-end: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6E78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: left 16px center; }
html[dir="ltr"] .na .field select { background-position: right 16px center; }
.na .field textarea { height: auto; min-height: 96px; padding: 16px; resize: vertical; }
.na .field input:focus, .na .field select:focus, .na .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.na-wide { grid-column: 1 / -1; }
.na-req { color: var(--bad); }
/* checkbox chips */
.na-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.na-check { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; }
.na-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--sea); }
.na-check:has(input:checked) { border-color: var(--sea); background: var(--sea); color: #fff; font-weight: 700; }
.na-check:has(input:checked) input { accent-color: #fff; }
.na-check:has(input:focus-visible) { outline: 2px solid var(--sea); outline-offset: 2px; }
/* optional section */
.na-more summary { cursor: pointer; list-style: none; }
.na-more summary::-webkit-details-marker { display: none; }
.na-more summary::after { content: "+"; margin-inline-start: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); font-weight: 700; }
.na-more[open] summary::after { content: "−"; }
.na-more:not([open]) { gap: 0; }
/* photos */
.na-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.na-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.na-ph img, .na-ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.na-ph .tag { position: absolute; bottom: 8px; right: 8px; background: rgba(18, 35, 46, .75); color: #fff; font-size: 12px; border-radius: 999px; padding: 0 8px; }
.na-cover { position: absolute; top: 8px; right: 8px; background: var(--sea); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 8px; line-height: 24px; }
.na-mkcover { position: absolute; bottom: 8px; left: 8px; border: 0; border-radius: 999px; padding: 0 8px; line-height: 24px; background: rgba(255, 255, 255, .92); color: #12232E; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .15s; }
.na-ph:hover .na-mkcover, .na-mkcover:focus-visible { opacity: 1; }
.na-add { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: 2px dashed var(--line); border-radius: 8px; background: transparent; color: var(--sea); text-align: center; }
.na-add:hover { border-color: var(--sea); background: var(--sea-soft); }
.na-add small { color: var(--muted); font-size: 12px; }
/* sticky action bar */
.na-actions { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 16px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 -8px 24px rgba(18, 35, 46, .08); }
.na-actions-sp { flex: 1; }
.na-actions .btn { height: 48px; padding: 0 24px; font-weight: 700; justify-content: center; }
.na-pub { height: 48px; }
@media (max-width: 1100px) { .na .form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .na .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .na-sec { padding: 16px; } .na-actions { padding: 16px; flex-wrap: wrap; } .na-pub { flex: 1 1 100%; } }
@media (max-width: 480px) { .na .form { grid-template-columns: minmax(0, 1fr); } }

.lcard-link{color:inherit;text-decoration:none;display:block}
h3 .lcard-link{display:inline}
h3 .lcard-link:hover{text-decoration:underline}

/* owner · published photos: real thumbnails with a control bar under each */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pm-tile { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.pm-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.pm-img img, .pm-img video, .pm-img .lphoto { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-num { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(18,35,46,.78); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.pm-cover { position: absolute; bottom: 8px; right: 8px; background: var(--sea); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 8px; line-height: 24px; }
.pm-tag { position: absolute; bottom: 8px; left: 8px; background: rgba(18,35,46,.78); color: #fff; font-size: 12px; border-radius: 999px; padding: 0 8px; line-height: 24px; }
.pm-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.pm-grp { display: flex; gap: 6px; }
.pm-btn { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pm-btn svg { display: block; }
.pm-btn:disabled { opacity: .3; cursor: default; }
.pm-btn:not(:disabled):hover { border-color: var(--sea); color: var(--sea); }
.pm-star { color: #C9961A; }
.pm-star:not(:disabled):hover { border-color: #C9961A !important; color: #C9961A !important; background: #FFF8E6; }
.pm-del { color: var(--muted); }
.pm-del:not(:disabled):hover { border-color: var(--bad) !important; color: var(--bad) !important; }
@media (max-width: 480px) { .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .pm-bar { padding: 6px; gap: 4px; } .pm-grp { gap: 4px; } .pm-btn { width: 30px; height: 30px; border-radius: 8px; } .pm-btn svg { width: 16px; height: 16px; } .pm-num, .pm-cover { transform: scale(.9); transform-origin: top right; } }

/* Admin: banner photo picker */
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bn-pic { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 4 / 3; }
.bn-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-pic small { position: absolute; inset-inline: 0; bottom: 0; padding: 14px 8px 5px; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); color: #fff; font-size: 11.5px; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-pic[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea); }
.bn-pic:not([aria-pressed="true"]) img { opacity: .75; }
.bn-n { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 26px; height: 26px; border-radius: 999px; background: var(--sea); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* Admin: ads banners */
.bn-form { display: flex; flex-direction: column; gap: 12px; }
.bn-img { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bn-prev { width: min(100%, 420px); height: 140px; border-radius: 16px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; box-sizing: border-box; overflow: hidden; }
.bn-prev > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bn-prev-tag { align-self: flex-start; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); }
.bn-prev b { font-size: 20px; } .bn-prev small { opacity: .9; }
.bn-prev-ico { font-size: 56px; line-height: 1; }
.bn-prev img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.bn-prev.ad-hot, .bn-sw.ad-hot, .bn-thumb.ad-hot { background: linear-gradient(120deg, #E3352B, #B8202A 60%, #7E1420); }
.bn-prev.ad-sun, .bn-sw.ad-sun, .bn-thumb.ad-sun { background: linear-gradient(120deg, #C9741A, #9A4E0E); }
.bn-prev.ad-sea, .bn-sw.ad-sea, .bn-thumb.ad-sea { background: linear-gradient(120deg, #0B6E79, #07434A); }
.bn-prev.ad-ink, .bn-sw.ad-ink, .bn-thumb.ad-ink { background: linear-gradient(120deg, #13263A, #1E4A62); }
.bn-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -2px; }
.bn-thumb { display: grid; place-items: center; width: 140px; aspect-ratio: 2 / 1; border-radius: 8px; font-size: 32px; }
.bn-apts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-top: 6px; max-height: 280px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.bn-apt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.bn-apt:hover { background: var(--surface-2); }
.bn-apt input { width: 18px; height: 18px; flex: none; }
.bn-list { display: flex; flex-direction: column; gap: 10px; }
.bn-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.bn-row img { width: 140px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; }
.bn-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .bn-row { grid-template-columns: 96px minmax(0, 1fr); } .bn-row img, .bn-thumb { width: 96px; } .bn-acts { grid-column: 1 / -1; justify-content: flex-start; } }
/* admin: broker levels editor */
.tier-list { display: flex; flex-direction: column; gap: 8px; }
.tier-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tier-row .t-name { flex: 1 1 140px; min-width: 120px; }
.tier-row label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tier-row .t-min, .tier-row .t-pct { width: 80px; }
/* admin: badge checklist per stay */
.bdg { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; color: #FFFFFF; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.bdg-pick { position: relative; min-width: 180px; }
.bdg-pick > summary { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.bdg-pick > summary::-webkit-details-marker { display: none; }
.bdg-pick > summary::after { content: "▾"; margin-inline-start: auto; color: var(--ink-3, #888); }
.bdg-list { position: absolute; z-index: 30; top: calc(100% + 4px); inset-inline-start: 0; min-width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.bdg-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 4px; border-radius: 8px; cursor: pointer; }
.bdg-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.bdg-opt input { width: 18px; height: 18px; accent-color: var(--primary); }
/* owner: consent to gap-night deals */
.gap-ok { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, #0E7A47 30%, var(--line)); border-radius: 12px; background: color-mix(in srgb, #0E7A47 6%, var(--surface)); }
.gap-ok > div { flex: 1; min-width: 0; }
.gap-ok p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; }
.gap-ok .btn { flex: none; }
.btn.danger { color: #B42318; border-color: color-mix(in srgb, #B42318 40%, var(--line)); background: color-mix(in srgb, #B42318 6%, var(--surface)); }
.btn.danger:hover { background: #B42318; color: #FFFFFF; border-color: #B42318; }
/* owner: calendar import from Airbnb / Booking.com */
.ical-imp { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ical-imp > p { margin: 0; font-size: 13.5px; line-height: 1.7; }
.ical-feed { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ical-feed.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-soft); }
.ical-info { min-width: 0; flex: 1; }
.ical-info .muted { font-size: 12px; overflow-wrap: anywhere; }
.ical-st { margin-top: 4px; font-size: 13px; }
.ical-st.warn { color: var(--bad); font-weight: 700; }
.ical-act { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.ical-add { display: flex; gap: 8px; }
.ical-add input { flex: 1; min-width: 0; }
.ical-how summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 13.5px; }
.ical-how p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }
.day.ext { background: color-mix(in srgb, #FF5A5F 12%, var(--surface)); border-color: color-mix(in srgb, #FF5A5F 45%, var(--line)); }
.day.ext small { color: #C1363B; font-weight: 700; }
.lg-ext { background: color-mix(in srgb, #FF5A5F 12%, var(--surface)) !important; border-color: color-mix(in srgb, #FF5A5F 45%, var(--line)) !important; }

/* ===== Brand v5 — from the EJAR logo: navy #0E2D4A, gold #C6A673, cream #F7F4ED;
   Montserrat for Latin letters and digits, Readex Pro for Arabic (the browser picks per glyph). ===== */
:root {
  --navy: #0E2D4A; --gold: #C6A673; --gold-deep: #8C6B36; --cream: #F7F4ED;
  --f-display: "Tajawal", "Montserrat", system-ui, sans-serif;
  --f-body: "Tajawal", "Montserrat", system-ui, sans-serif;
  --f-num: "Tajawal", "Montserrat", system-ui, sans-serif;
  --bg: #F7F4ED; --surface: #FFFFFF; --surface-2: #EFEBE3; --line: #E3DDD1; --ink: #13263A; --muted: #66707A;
  --sun: #B8904F; --sun-soft: #F3EAD9;
}
/* dark: deep navy instead of the old blue-green */
:root[data-theme="dark"] { --bg: #0A1520; --surface: #112131; --surface-2: #182B3E; --line: #243A50; --ink: #EEF1F4; --muted: #9AA9B7; --sun: #D9BC8A; --sun-soft: #3A2F1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0A1520; --surface: #112131; --surface-2: #182B3E; --line: #243A50; --ink: #EEF1F4; --muted: #9AA9B7; --sun: #D9BC8A; --sun-soft: #3A2F1C; } }
body, button, input, select, textarea { font-family: var(--f-body); }
.num, b.num, .num b, .ac-p b, .ac-p s, .lprice b, .kpi .v { font-family: var(--f-num) !important; font-feature-settings: "tnum" 1, "lnum" 1; }
/* logo: navy strokes follow the text colour, the wave stays gold */
.lg-mark { display: block; height: 34px; width: auto; color: var(--logo-navy, #0E2D4A); flex: none; }
.lg-word { display: inline-flex; align-items: center; gap: 8px; color: var(--logo-navy, #0E2D4A); }
.lg-word svg { display: block; width: auto; }
.lg-word .lg-ar { height: 18px; }
.lg-word .lg-lat { height: 19px; margin-top: 4px; }
.lg-word i { width: 1.5px; height: 20px; border-radius: 1px; background: var(--gold); }
.slogo { gap: 10px !important; }
.snav2 .slogo, body.site-mode .snav2 .slogo { color: var(--logo-navy, #0E2D4A); }
.fbrand-logo { gap: 12px; }
.fbrand-logo .lg-mark { height: 48px; }
.brand-mark { background: transparent !important; border-radius: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand b { font-family: var(--f-display); letter-spacing: .04em; color: var(--navy); }
:root[data-theme="dark"] .lg-mark, :root[data-theme="dark"] .lg-word { color: #F2EEE6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-mark, :root:not([data-theme="light"]) .lg-word { color: #F2EEE6; } }
/* admin: badge colour palette */
.bdg-colors { display: flex; flex-direction: column; gap: 12px; }
.bdgc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bdgc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bdgc-row > .bdg { min-width: 140px; justify-content: center; height: 30px; font-size: 13px; }
.bdgc-sw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bdgc-sw .sw { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.bdgc-sw .sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.bdgc-sw .sw-custom { position: relative; overflow: hidden; background: conic-gradient(#E53935, #FDD835, #43A047, #1E88E5, #8E24AA, #E53935); }
.bdgc-sw .sw-custom input { position: absolute; inset: -8px; width: 46px; height: 46px; opacity: 0; cursor: pointer; }
.bn-prev.ad-navy, .bn-sw.ad-navy, .bn-thumb.ad-navy { background: linear-gradient(120deg, #0E2D4A, #081A2B); }
.bn-prev.ad-gold, .bn-sw.ad-gold, .bn-thumb.ad-gold { background: linear-gradient(120deg, #B38E55, #7A5A2A); }
.bn-custom { position: relative; cursor: pointer; }
.bn-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bn-custom.on { background: var(--sea); border-color: var(--sea); color: #FFFFFF; }
/* banner + pins forms: 16px between fields, at most 5 per row, buttons full width on one line */
#bn-form .form, #pins-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
#bn-form .form + .form, #bn-form .form + .field { margin-top: 16px; }
@media (max-width: 1100px) { #bn-form .form, #pins-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { #bn-form .form, #pins-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { #bn-form .form, #pins-form { grid-template-columns: minmax(0, 1fr); } }
.bn-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; grid-column: 1 / -1; }
.bn-btns.one { grid-template-columns: minmax(0, 1fr); }
.bn-btns .btn { width: 100%; justify-content: center; height: 44px; }
.bn-apts { gap: 12px 16px !important; }
/* admin: pager, clickable rows, detail pages */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pg-btn { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.pg-btn.on { background: var(--sea); border-color: var(--sea); color: #FFFFFF; }
.pg-btn:disabled { opacity: .4; cursor: default; }
.pg-gap { padding: 0 4px; color: var(--muted); }
.pg-info { margin-inline-start: 10px; font-size: 13px; }
tr.is-link, .card.is-link { cursor: pointer; }
tr.is-link:hover td { background: color-mix(in srgb, var(--sea) 6%, transparent); }
tr.is-link:focus-visible, .card.is-link:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--muted); font-size: 13.5px; flex: none; }
.kv > b { font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.bk-page .panel h2 { margin-bottom: 6px; }
#bn-form .form.bn-f2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 420px) { #bn-form .form.bn-f2 { grid-template-columns: minmax(0, 1fr); } }
/* Dashboards: the side menu stays put while the page scrolls, and scrolls on its own when it is long */
@media (min-width: 861px) {
  .rail { position: sticky; top: var(--top-h, 64px); align-self: start; height: calc(100vh - var(--top-h, 64px)); height: calc(100dvh - var(--top-h, 64px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* ===== Brand v6 colours — from the reference design: deep navy #012E62, sky blue accents #1A9ECB,
   light blue-grey page, white cards, amber stars. The logo itself keeps its own navy and gold. ===== */
:root {
  --logo-navy: #0E2D4A; --navy: #012E62; --sky: #1A9ECB; --sky-deep: #0B7FA8;
  --bg: #EEF3F8; --surface: #FFFFFF; --surface-2: #EEF2F7; --line: #DCE4EE; --ink: #0A1F44; --muted: #5E6E82;
  --sun: #FEB834; --sun-soft: #FFF3D6;
}
.bdg { font-weight: 500; }
.bdg.is-fav { background: #FFFFFF; color: #0A1F44; box-shadow: inset 0 0 0 1px var(--line); }
.bdg.avail { background: #E3F6EA; color: #17663E; }

/* ---------- owner edit wizard ---------- */
.wz-top { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.wz-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 13px; }
.wz-info b { font-size: 15px; color: var(--ink); }
.wz-n { margin-inline-start: auto; font-size: 12.5px; }
.wz-prog { height: 4px; border-radius: 4px; background: var(--line); margin: 10px 0 12px; overflow: hidden; }
.wz-prog i { display: block; height: 100%; background: var(--sky, #1A9ECB); border-radius: 4px; transition: width .25s; }
.wz-steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wz-steps::-webkit-scrollbar { display: none; }
.wz-s { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.wz-s b { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; background: var(--surface-2); color: var(--muted); }
.wz-s.ok b { background: var(--sky, #1A9ECB); color: #fff; }
.wz-s.on { background: var(--navy, #012E62); border-color: var(--navy, #012E62); color: #fff; }
.wz-s.on b { background: #fff; color: var(--navy, #012E62); }
.wz-dot { position: absolute; top: 3px; inset-inline-end: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun, #FEB834); border: 1.5px solid var(--surface); }
.wz-bar { position: sticky; bottom: 0; z-index: 20; margin: 18px 0 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -6px 18px rgba(10,31,68,.06); }
.wz-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.wz-btns { display: flex; gap: 8px; }
.wz-btns .btn { min-height: 46px; justify-content: center; }
.wz-back { flex: 1; }
.wz-next { flex: 2.6; font-weight: 600; }
.wz-story { width: 100%; margin-top: 8px; justify-content: center; }
@media (max-width: 860px) {
  .wz-bar { margin: 18px -14px 0; border-radius: 14px 14px 0 0; border-bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
.wz-save { flex: 1; }
.wz-next { flex: 2.2; }
.bn-end { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.lmiss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.lmiss-b { border: 1px solid color-mix(in srgb, var(--sun, #FEB834) 55%, transparent); background: color-mix(in srgb, var(--sun, #FEB834) 14%, transparent); color: #7a5200; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.cb-form { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; margin-top: 12px; align-items: end; }
@media (max-width: 560px) { .cb-form { grid-template-columns: minmax(0, 1fr) 80px; } .cb-form > div:last-child { grid-column: 1 / -1; } .cb-form .btn { width: 100%; } }
/* Owner profile photo */
.oph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.oph-i { display: flex; align-items: center; justify-content: center; background: var(--navy, #012E62); color: #fff; font-size: 24px; font-weight: 700; }
.own-photo .change { flex-wrap: wrap; gap: 12px; align-items: center; }
.own-photo .change > div:first-child { flex: 1 1 260px; min-width: 0; }

/* Booking receipt sheet (screen) + A4 print, which is how it becomes a PDF. */
.rcpt-wrap { position: fixed; inset: 0; z-index: 200; background: #EEF2F6; overflow-y: auto; padding: 0 12px 40px; }
body.rcpt-open { overflow: hidden; }
.rcpt-bar { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; justify-content: center; padding: 12px 0; background: #EEF2F6; }
.rcpt-bar .btn { min-width: 120px; justify-content: center; }
.rcpt { max-width: 720px; margin: 0 auto; background: #fff; color: #0A1F44; border-radius: 16px; border: 1px solid #DCE4EE; padding: 28px; font-size: 14px; line-height: 1.6; }
.rcpt .num { font-variant-numeric: tabular-nums; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid #012E62; }
.rc-brand { display: flex; gap: 12px; align-items: center; }
.rc-brand .lg-mark { height: 46px; color: #012E62; }
.rc-brand b { display: block; font-size: 18px; }
.rc-brand small, .rc-no small { display: block; color: #5E6E82; font-size: 12px; }
.rc-no { text-align: left; }
.rc-no b { display: block; font-size: 16px; }
.rc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 18px 0; border-bottom: 1px solid #E6ECF2; }
.rc-info small { display: block; color: #5E6E82; font-size: 12px; }
.rc-info b { display: block; font-weight: 700; }
.rc-info span { display: block; color: #33415C; font-size: 13px; }
.rc-lines, .rc-pay { padding: 12px 0; }
.rc-ln { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.rc-ln.is-disc .num { color: #0F7A52; }
.rc-ln.is-total { border-top: 1px solid #E6ECF2; margin-top: 6px; padding-top: 12px; font-size: 16px; }
.rc-pay { background: #E9F6F4; border-radius: 12px; padding: 10px 14px; color: #0A3B44; }
.rc-stamp { width: max-content; margin: 22px auto 6px; padding: 6px 18px; border: 2px solid #B26A00; color: #B26A00; border-radius: 10px; font-weight: 700; transform: rotate(-3deg); }
.rc-stamp.is-paid { border-color: #0F7A52; color: #0F7A52; }
.rc-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid #E6ECF2; text-align: center; color: #5E6E82; font-size: 12px; }
@media (max-width: 520px) { .rcpt { padding: 18px; } .rc-head { flex-direction: column; } .rc-no { text-align: start; } .rc-info { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 14mm; }
  body.rcpt-open > *:not(#rcpt) { display: none !important; }
  body.rcpt-open { overflow: visible; background: #fff !important; }
  .rcpt-wrap { position: static; background: #fff; padding: 0; overflow: visible; }
  .rcpt-bar { display: none !important; }
  .rcpt { border: 0; border-radius: 0; max-width: none; padding: 0; }
  .rcpt, .rc-pay, .rc-stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
