/* =====================================================================
   EJAR guest site · v5 — 8pt grid layer
   Loaded after styles.css and scoped to body.site-mode, so the admin,
   owner and broker panels are untouched.
   Spacing, radii and control heights are all multiples of 8px
   (4px half-steps only inside small chips and badges).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
body.site-mode {
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --h-chip: 40px; --h-control: 48px; --h-cta: 56px;
  --page-x: 16px;                                   /* side margin of the page content */
  --primary: var(--sea);                            /* fills: buttons, selected states */
  --on-primary: #FFFFFF;
  --primary-text: var(--sea);                       /* primary used as text colour */
  --icon: var(--sea);                               /* icons: primary in light mode, white in dark */
  --ink-2: color-mix(in srgb, var(--ink) 80%, var(--surface));
  --soft-red: #FDF0EE; --soft-red-ink: #A3332A;
  --day-free: #FFFFFF; --day-free-ink: #12232E;
  --sea-soft: color-mix(in srgb, var(--sea) 16%, var(--surface));
  --card-shadow: 0 1px 2px rgba(18, 35, 46, .04), 0 8px 24px rgba(18, 35, 46, .06);
  --card-shadow-hover: 0 16px 40px rgba(18, 35, 46, .12);
}
/* Dark mode: the brand fill stays the light brand colour (white text keeps contrast),
   but primary *text* switches to the dark-mode brand tint so it stays readable on dark surfaces. */
:root[data-theme="dark"] body.site-mode {
  --primary-text: var(--brand-dark, #7FC6E4); --soft-red: rgba(240, 138, 130, .12); --soft-red-ink: #F5B4AE;
  --day-free: #EAF1F3; --card-shadow: 0 1px 2px rgba(0, 0, 0, .3); --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, .4);
  --icon: #FFFFFF;
  --sun: #F0B357; --sun-soft: #3B2C14; --ok: #6FD39A; --ok-soft: #173826; --warn: #F2B65A; --warn-soft: #3A2A10; --bad: #F08A82; --bad-soft: #3D1C1A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.site-mode {
    --primary-text: var(--brand-dark, #7FC6E4); --soft-red: rgba(240, 138, 130, .12); --soft-red-ink: #F5B4AE;
    --day-free: #EAF1F3; --card-shadow: 0 1px 2px rgba(0, 0, 0, .3); --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, .4);
    --icon: #FFFFFF;
    --sun: #F0B357; --sun-soft: #3B2C14; --ok: #6FD39A; --ok-soft: #173826; --warn: #F2B65A; --warn-soft: #3A2A10; --bad: #F08A82; --bad-soft: #3D1C1A;
  }
}
@media (min-width: 600px)  { body.site-mode { --page-x: 32px; } }
@media (min-width: 900px)  { body.site-mode { --page-x: 48px; } }
@media (min-width: 1200px) { body.site-mode { --page-x: 80px; } }
/* Large desktop: 120px each side; on very wide screens the content caps at 1680px and centres. */
@media (min-width: 1440px) { body.site-mode { --page-x: max(120px, calc((100vw - 1680px) / 2)); } }

/* Primary buttons always carry white, semibold text (beats the dark-mode rule in styles.css). */
:root body.site-mode .btn.primary, :root body.site-mode .sbox .go { color: var(--on-primary); font-weight: 700; }

/* Older site layers hard-coded white surfaces; route them through tokens so dark mode works. */
body.site-mode .book-box, body.site-mode .achips button, body.site-mode .tabbar { background: var(--surface); }

/* ---------- 2. Page frame & direction ---------- */
html[dir="ltr"] body { direction: ltr; }
body.site-mode .main { max-width: none; padding: 0 var(--page-x) var(--s8); gap: 0; }
body.site-mode .site { max-width: none; gap: var(--s6); padding-top: var(--s4); }
body.site-mode .site.apt { gap: var(--s4); }
body.site-mode .sec-h { margin: 0 0 var(--s3); gap: var(--s2); align-items: center; }
body.site-mode .sec-h h2, body.site-mode .arow-h h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
.sec-meta { color: var(--ink-2); font-size: 14px; }
.sec-count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 var(--s1); margin-inline-start: var(--s1); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 14px; vertical-align: middle; }
.sec-note { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.sblock { display: flex; flex-direction: column; }
/* Arrows are drawn for RTL and mirrored for LTR (never rely on bidi-mirrored glyphs like ‹ ›). */
.dir-ico { flex: none; }
html[dir="ltr"] .dir-ico { transform: scaleX(-1); }

/* ---------- 3. Top navigation ---------- */
body.site-mode .snav.snav2 { margin: 0 calc(-1 * var(--page-x)); padding: var(--s2) var(--page-x); gap: var(--s3); min-height: 72px; top: env(safe-area-inset-top, 0px); }
body.site-mode .snav2 .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
body.site-mode .snav-links { gap: var(--s1); }
body.site-mode .snav-links button { height: var(--h-chip); padding: 0 var(--s2); border-radius: var(--r-pill); font-weight: 600; }
body.site-mode .snav-r { gap: var(--s1); }
body.site-mode .snav2 .btn.small { height: var(--h-chip); padding: 0 var(--s2); font-size: 14px; font-weight: 600; }
body.site-mode .snav2 .ava { width: 40px; height: 40px; }
.icon-btn { width: 40px; height: 40px; padding: 0; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary-text); }

/* ---------- 4. Search & sub-navigation filter bar ---------- */
.discover { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); }
body.site-mode .spill { width: min(100%, 640px); min-height: 64px; margin: 0; padding: var(--s1) var(--s3); gap: var(--s2); border-radius: var(--r-pill); }
/* Search bar: always expanded — one white frame, fields split by thin dividers, primary search button */
body.site-mode .site .sbox { width: 100%; margin: 0; padding: var(--s1); gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); grid-template-columns: 1.1fr 1.1fr 1fr 1fr .8fr 1.3fr auto; }
body.site-mode .sbox .sf { position: relative; justify-content: center; gap: 4px; min-height: 64px; padding: var(--s1) var(--s3); border-radius: var(--r-md); }
body.site-mode .sbox .sf + .sf::before { content: ""; position: absolute; inset-inline-start: 0; top: var(--s2); bottom: var(--s2); width: 1px; background: var(--line); }
body.site-mode .sbox .sf:hover::before, body.site-mode .sbox .sf:hover + .sf::before { opacity: 0; }
body.site-mode .sbox .sf label { font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink); }
body.site-mode .sbox .sf select, body.site-mode .sbox .sf input { height: 24px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
body.site-mode .sbox .go { min-width: 112px; min-height: 64px; padding: 0 var(--s3); margin-inline-start: var(--s1); justify-content: center; gap: var(--s1); border-radius: var(--r-md); font-size: 16px; }
@media (max-width: 1199px) { body.site-mode .site .sbox { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s1); } body.site-mode .sbox .sf:nth-child(4)::before { display: none; } body.site-mode .sbox .go { margin: 0; } }
@media (max-width: 760px) { body.site-mode .site .sbox { grid-template-columns: 1fr 1fr; } body.site-mode .sbox .sf::before { display: none; } body.site-mode .sbox .sf { background: var(--surface-2); padding: var(--s1) var(--s2); } body.site-mode .sbox .sf:first-child, body.site-mode .sbox .sf:nth-child(5), body.site-mode .sbox .sf-price { grid-column: 1 / -1; } body.site-mode .site .sbox { gap: var(--s1); } body.site-mode .sbox .go { grid-column: 1 / -1; min-height: var(--h-control); } }

/* Each category is its own framed chip — no underline row beneath the search bar.
   Light mode: primary chips with white text. Dark mode: dark chips with white text and icons.
   The selected chip is always the primary colour. */
body.site-mode .site .cats { max-width: 100%; margin: 0; padding: var(--s1) 4px; border: 0; gap: var(--s1); justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
body.site-mode .site .cats::-webkit-scrollbar { display: none; }
body.site-mode .site .cats .cat { flex: none; flex-direction: row; align-items: center; gap: var(--s1); height: var(--h-chip); padding: 0 var(--s2); border: 0; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600; opacity: 1; transition: background-color .15s, box-shadow .15s; }
body.site-mode .site .cats .cat svg { width: 20px; height: 20px; }
body.site-mode .site .cats .cat:hover { background: color-mix(in srgb, var(--primary) 85%, #000); }
body.site-mode .site .cats .cat[aria-pressed="true"] { background: color-mix(in srgb, var(--primary) 65%, #000); color: #FFFFFF; font-weight: 700; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
:root[data-theme="dark"] body.site-mode .site .cats .cat { background: var(--surface-2); color: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] body.site-mode .site .cats .cat:hover { background: color-mix(in srgb, var(--primary) 30%, var(--surface-2)); }
:root[data-theme="dark"] body.site-mode .site .cats .cat[aria-pressed="true"] { background: var(--primary); color: #FFFFFF; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.site-mode .site .cats .cat { background: var(--surface-2); color: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
  :root:not([data-theme="light"]) body.site-mode .site .cats .cat:hover { background: color-mix(in srgb, var(--primary) 30%, var(--surface-2)); }
  :root:not([data-theme="light"]) body.site-mode .site .cats .cat[aria-pressed="true"] { background: var(--primary); color: #FFFFFF; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
}

/* ---------- 5. Property cards (4 per row on desktop) ---------- */
body.site-mode .agrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4) var(--s3); margin: 0; }
body.site-mode .arow { margin: 0; }
body.site-mode .arow-h { margin: 0 0 var(--s2); gap: var(--s2); }
body.site-mode .arow-go { width: auto; height: var(--h-control); padding: 0 var(--s3); gap: var(--s1); display: inline-flex; align-items: center; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--primary-text); font-size: 16px; font-weight: 700; }
body.site-mode .arow-go svg { width: 20px; height: 20px; color: var(--icon); }
body.site-mode .arow-go:hover { border-color: var(--primary); }
body.site-mode .arow-track { grid-auto-columns: calc((100% - 3 * var(--s3)) / 4); gap: var(--s3); padding: 4px 4px var(--s2); margin: -4px; }
@media (max-width: 1199px) {
  body.site-mode .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.site-mode .arow-track { grid-auto-columns: calc((100% - 2 * var(--s3)) / 3); }
}
@media (max-width: 899px) {
  body.site-mode .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s2); }
  body.site-mode .arow-track { grid-auto-columns: calc((100% - var(--s2)) / 2); gap: var(--s2); }
}
@media (max-width: 599px) {
  body.site-mode .agrid { grid-template-columns: minmax(0, 1fr); }
  body.site-mode .arow-track { grid-auto-columns: 100%; }
}

body.site-mode .ac { padding: var(--s1); gap: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s; }
body.site-mode .ac:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
@media (prefers-reduced-motion: reduce) { body.site-mode .ac, body.site-mode .ac:hover { transition: none; transform: none; } }
body.site-mode .ac-media { aspect-ratio: 4 / 3; margin: 0; border-radius: var(--r-md); }
.ac-body { flex: 1; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s2) var(--s1) var(--s1); }
body.site-mode .ac-t { padding: 0; gap: var(--s1); align-items: center; cursor: pointer; }
.ac-t h3 { flex: 1; min-width: 0; margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-rate { flex: none; font-size: 14px; font-weight: 700; color: var(--ink); }
body.site-mode .ac-sub { padding: 0; font-size: 14px; line-height: 24px; color: var(--ink-2); }
/* Features: framed chips, full-ink text and primary icons for clear contrast */
body.site-mode .ac-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); font-size: 13px; }
body.site-mode .ac-facts li { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font-weight: 600; }
body.site-mode .ac-facts svg { width: 16px; height: 16px; color: var(--primary-text); flex: none; }
body.site-mode .ac-hl { padding: 0; margin: 0; gap: var(--s1); }
body.site-mode .ac-hl span { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
html[dir="ltr"] body.site-mode .ac-hl { mask-image: linear-gradient(to right, #000 85%, transparent); }
.ac-foot { margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s1); cursor: pointer; }
body.site-mode .ac-p { margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
body.site-mode .ac-p b { font-size: 18px; font-weight: 800; color: var(--ink); }
body.site-mode .ac-p s { color: var(--muted); }
body.site-mode .ac-fast { flex: none; padding: 4px var(--s1); border-radius: var(--r-pill); background: var(--sea-soft); color: var(--primary-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
/* One badge per card, at the start corner; the save heart at the end corner */
.ac-badge { position: absolute; top: var(--s2); inset-inline-start: var(--s2); max-width: calc(100% - 88px); height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-pill); background: #FFFFFF; color: #12232E; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.ac-badge.is-new { background: var(--primary); color: #FFFFFF; }
.ac-badge.is-lm { background: #FFF4D6; color: #6B4200; }
.ac-badge.is-timer { background: linear-gradient(135deg, #FF6A3D, #E3352B); color: #FFFFFF; }
body.site-mode .ac-heart { left: auto; right: auto; top: var(--s1); inset-inline-end: var(--s1); width: 48px; height: 48px; }
/* Branded placeholder (never an empty gradient) while photos are missing */
.ac-ph, .gal-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); color: var(--primary-text); background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--primary) 22%, var(--surface)) 0%, color-mix(in srgb, var(--primary) 7%, var(--surface)) 75%); }
.ac-ph span, .gal-ph span { width: 64px; height: 64px; border-radius: var(--r-md); display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ac-ph svg, .gal-ph svg { width: 32px; height: 32px; }
.ac-ph small, .gal-ph small { font-size: 13px; font-weight: 600; }

/* ---------- 6. Filters page ("مباشر بحر" etc.) ---------- */
.results { display: flex; flex-direction: column; gap: var(--s3); }
.results .sec-h { margin: 0; }
.sres { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; color: var(--ink-2); }
.area-intro { margin: 0; color: var(--ink-2); line-height: 24px; }
body.site-mode .achips { margin: 0; padding: 0; gap: var(--s1); }
body.site-mode .achips button { height: var(--h-chip); padding: 0 var(--s2); font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
@media (max-width: 899px) { .filters { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s2); } }
/* Title on its own line above the options */
.fgroup { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); min-width: 0; }
.fgroup-t { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.fgroup-t small { font-size: 13px; font-weight: 600; color: var(--muted); }
body.site-mode .chips { gap: var(--s1); }
body.site-mode .chip { height: var(--h-chip); padding: 0 var(--s2); display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
body.site-mode .chip:hover:not(:disabled) { border-color: var(--primary); }
body.site-mode .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
body.site-mode .chip:disabled { opacity: .45; cursor: default; }
.chip-n { min-width: 24px; height: 24px; padding: 0 var(--s1); display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12px; }
body.site-mode .chip[aria-pressed="true"] .chip-n { background: rgba(255, 255, 255, .22); color: inherit; }
/* Price range: "من — لحد كام" on its own line, above the preset chips */
body.site-mode .range { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: 0; }
body.site-mode .range input { width: 136px; height: var(--h-control); padding: 0 var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.range-sep { color: var(--muted); }
body.site-mode .range .btn { height: var(--h-control); padding: 0 var(--s3); border-radius: var(--r-md); justify-content: center; }
body.site-mode .results .toolbar { gap: var(--s1); }
body.site-mode .results .toolbar .btn.small { height: var(--h-chip); padding: 0 var(--s2); border-radius: 12px; font-size: 14px; }
body.site-mode .results .seg { padding: 4px; border-radius: 12px; }
body.site-mode .results .seg button { height: 32px; padding: 0 var(--s2); border-radius: var(--r-sm); }

/* ---------- 7. "Why EJAR" & reviews ---------- */
.why-grid, .rev-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 1199px) { .why-grid, .rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .why-grid, .rev-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s2); } }
.why-card, .rev-card { margin: 0; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.why-card { gap: var(--s1); }
.why-ic { width: 48px; height: 48px; margin-bottom: var(--s1); display: grid; place-items: center; border-radius: var(--r-md); background: var(--sea-soft); color: var(--primary-text); }
.why-ic svg { width: 24px; height: 24px; }
.why-card h3 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--primary-text); }
.why-card p { margin: 0; font-size: 14px; line-height: 24px; color: var(--ink-2); }
.rev-card { gap: var(--s2); }
.rev-stars { color: #D9A13B; font-size: 16px; letter-spacing: 2px; line-height: 24px; }
.rev-stars i { font-style: normal; color: var(--line); }
.rev-card blockquote { flex: 1; margin: 0; font-size: 15px; line-height: 24px; font-weight: 600; color: var(--primary-text); }
.rev-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s2); border-top: 1px solid var(--line); }
.rev-who { display: flex; flex-direction: column; min-width: 0; }
.rev-who b { font-size: 14px; line-height: 24px; color: var(--primary-text); }
.rev-who small { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-card .verified { flex: none; padding: 4px 12px; font-size: 12px; font-weight: 700; }

/* ---------- 8. Footer ---------- */
.sfoot { margin: var(--s8) calc(-1 * var(--page-x)) calc(-1 * var(--s8)); padding: var(--s8) var(--page-x) var(--s4); border-top: 1px solid var(--line); background: var(--surface); }
.sfoot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
@media (max-width: 1199px) { .sfoot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fbrand { grid-column: 1 / -1; } }
@media (max-width: 599px)  { .sfoot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); } .sfoot { padding-top: var(--s6); } }
.fbrand { display: flex; flex-direction: column; gap: var(--s2); max-width: 360px; }
.fbrand-logo { display: inline-flex; align-items: center; gap: var(--s1); font: 700 20px/1 var(--f-display); color: var(--ink); }
.fbrand-logo .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); }
.fbrand p { margin: 0; font-size: 14px; line-height: 24px; color: var(--ink-2); }
.soc-row { display: flex; gap: var(--s1); }
.soc { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.soc svg { width: 20px; height: 20px; }
.soc:hover { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.fcol h3 { margin: 0 0 var(--s2); font-size: 15px; line-height: 24px; font-weight: 700; color: var(--ink); }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); }
.flink { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; line-height: 24px; color: var(--ink-2); text-align: start; text-decoration: none; cursor: pointer; }
.flink:hover { color: var(--primary-text); text-decoration: underline; }
.fnote { font-size: 13px; line-height: 20px; color: var(--muted); }
.sfoot-bar { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.sfoot-legal { display: flex; gap: var(--s3); }
.sfoot-legal .flink { font-size: 13px; }

/* ---------- 9. Apartment page ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); font-size: 14px; line-height: 24px; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s1); min-width: 0; }
.crumbs li + li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
html[dir="ltr"] .crumbs li + li::before { transform: scaleX(-1); }
.crumbs button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--primary-text); cursor: pointer; }
.crumbs button:hover { text-decoration: underline; }
.crumbs [aria-current] { max-width: 40ch; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.apt-head h1 { font-size: 28px; line-height: 40px; }
.apt-head .lmeta { margin-top: var(--s1); }
body.site-mode .gal { gap: var(--s1); border-radius: var(--r-lg); }
body.site-mode .gal .all { bottom: var(--s2); left: var(--s2); }
body.site-mode .gal .all.vid { left: auto; right: var(--s2); }
html[dir="ltr"] body.site-mode .gal .all { left: auto; right: var(--s2); }
html[dir="ltr"] body.site-mode .gal .all.vid { right: auto; left: var(--s2); }
body.site-mode .unit-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s6); }
@media (max-width: 1199px) { body.site-mode .unit-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s4); } }
@media (max-width: 899px)  { body.site-mode .unit-grid { grid-template-columns: minmax(0, 1fr); } }
.apt-main { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.apt-sec { display: flex; flex-direction: column; gap: var(--s2); }
.apt-sec h2, .cal-h h2 { margin: 0; font-size: 20px; line-height: 32px; font-weight: 700; }
.apt-sum h2 { font-size: 22px; line-height: 32px; }
.apt-sum p { margin: var(--s1) 0 0; color: var(--ink-2); }
.apt-desc { margin: 0; line-height: 28px; }
body.site-mode .highlights { gap: var(--s3); padding-block: var(--s3); margin: 0; }
body.site-mode .highlights div { gap: var(--s2); }
body.site-mode .highlights b { display: block; }
body.site-mode .highlights span span { display: block; color: var(--muted); }
/* Features & house rules: one framed tile per item; unavailable features are not shown */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s2); }
.feat { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: var(--s2); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font-size: 14px; line-height: 24px; font-weight: 600; }
.feat svg { width: 20px; height: 20px; flex: none; color: var(--primary-text); }
.feat.rule { background: var(--soft-red); }
.feat.rule svg { color: var(--soft-red-ink); }
/* Calendar: one tile per day */
.cal-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.cal-nav { display: flex; gap: var(--s1); }
body.site-mode .cal-nav .btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; font-size: 18px; }
body.site-mode .mini-cal.cal2 { gap: var(--s1); }
.cal2 .cd-dow { padding: var(--s1) 0; font-size: 12px; font-weight: 700; color: var(--muted); }
body.site-mode .cal2 .cd { min-height: 56px; padding: var(--s1) 0; gap: 2px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--day-free); color: var(--day-free-ink); }
body.site-mode .cal2 .cd b { font-size: 15px; }
body.site-mode .cal2 .cd small { font-size: 11px; color: #1E7A4C; }
body.site-mode .cal2 button.cd:hover { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
body.site-mode .cal2 .cd.x { background: var(--surface-2); border-color: transparent; color: var(--muted); opacity: .5; }
body.site-mode .cal2 .cd.x b { text-decoration: line-through; font-weight: 500; }
body.site-mode .cal2 .cd.x small { color: var(--muted); font-size: 10px; }
body.site-mode .cal2 .cd.rng { background: var(--sea-soft); border-color: transparent; color: var(--ink); }
body.site-mode .cal2 .cd.rng small { color: var(--primary-text); }
body.site-mode .cal2 .cd.sel { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
body.site-mode .cal2 .cd.sel small { color: #FFFFFF; }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--s3); font-size: 13px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: var(--s1); }
.cal-legend i { width: 16px; height: 16px; border-radius: 4px; }
.lg-free { background: var(--day-free); border: 1px solid var(--line); }
.lg-sel { background: var(--primary); }
.lg-off { background: var(--surface-2); opacity: .7; }
/* Booking box: 24px frame, 16px inset in every field and frame */
body.site-mode .book-box { top: calc(88px + env(safe-area-inset-top, 0px)); padding: var(--s3); gap: var(--s2); border-radius: var(--r-lg); }
.bb-price { font-size: 14px; color: var(--ink-2); }
.bb-price b { font-size: 24px; line-height: 32px; color: var(--ink); }
.bb-price s { color: var(--muted); font-size: 16px; }
.bb-dates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); padding: var(--s2); border: 0; border-radius: var(--r-md); background: var(--surface-2); }
.bb-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bb-f label { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-2); }
.bb-f input, .bb-f select { height: 24px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 600; }
.bb-guests { padding: var(--s2); border-radius: var(--r-md); background: var(--surface-2); }
.bb-quote .change { padding: var(--s1) 0; }
.bb-note { font-size: 13px; line-height: 20px; color: var(--muted); }
.promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1); align-items: stretch; margin: 0; }
.promo input { height: var(--h-control); min-width: 0; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: start; }
.promo input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
body.site-mode .promo .btn { height: var(--h-control); padding: 0 var(--s3); justify-content: center; border-radius: var(--r-md); font-weight: 700; }
body.site-mode .bb-cta { height: var(--h-cta); justify-content: center; border-radius: var(--r-md); font-size: 16px; font-weight: 700; }
.bb-foot { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); text-align: center; }
/* Similar stays reuse the home card grid */
body.site-mode .similar { padding-top: var(--s5); gap: var(--s3); }
body.site-mode .similar .sec-h { margin: 0; }

/* ---------- 10. LTR touch-ups for shared components ---------- */
html[dir="ltr"] body.site-mode .svc { text-align: left; }
html[dir="ltr"] body.site-mode .svc-pr { text-align: right; }
html[dir="ltr"] body.site-mode .rail button { text-align: left; }
body.site-mode .gal.gal-empty { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); aspect-ratio: 21 / 7; }
@media (max-width: 640px) { body.site-mode .gal.gal-empty { aspect-ratio: 4 / 3; } }

/* ---------- 11. Icon colour: primary in light mode, white in dark mode ---------- */
body.site-mode .ac-facts svg, body.site-mode .feat svg, body.site-mode .feat.rule svg, body.site-mode .highlights svg,
body.site-mode .ac-ph, body.site-mode .gal-ph, body.site-mode .icon-btn, body.site-mode .cal-nav .btn, body.site-mode .soc,
body.site-mode .sbox .sf::after, body.site-mode .instant svg { color: var(--icon); }
body.site-mode .why-ic { color: var(--icon); }
body.site-mode .ac-ph small, body.site-mode .gal-ph small { color: var(--primary-text); }
body.site-mode .tabbar button[aria-current="true"] { color: var(--icon); }

/* ---------- 12. Ads / offers banner ---------- */
.ads { display: flex; flex-direction: column; gap: var(--s2); }
.ads-view { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.ads-track { --dir: 1; display: flex; transform: translateX(calc(var(--dir) * var(--i, 0) * 100%)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
html[dir="ltr"] .ads-track { --dir: -1; }
@media (prefers-reduced-motion: reduce) { .ads-track { transition: none; } }
.ad { flex: 0 0 100%; min-height: 280px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; color: #FFFFFF; overflow: hidden; }
.ad-sea { background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 100%, #000 0%), color-mix(in srgb, var(--primary) 60%, #06121A)); }
.ad-ink { background: linear-gradient(120deg, #13263A, #1E4A62); }
.ad-hot { background: linear-gradient(120deg, #E3352B, #B8202A 60%, #7E1420); }
.ad-sun { background: linear-gradient(120deg, #C9741A, #9A4E0E); }
.ad-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s2); padding-block: var(--s5); padding-inline: 88px var(--s6); } /* 88px = arrow (48) + its 16px inset + 24px air */
.ad-tag { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s2); border-radius: var(--r-pill); background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; }
.ad h3 { margin: 0; font-size: 36px; line-height: 48px; font-weight: 800; color: #FFFFFF; }
.ad p { margin: 0; font-size: 16px; line-height: 24px; opacity: .92; max-width: 48ch; }
.ad-clock { display: inline-flex; align-items: center; gap: var(--s1); height: 40px; padding: 0 var(--s2); border-radius: 12px; background: rgba(0, 0, 0, .22); font-weight: 700; }
.ad-clock .num { font-size: 18px; letter-spacing: .02em; }
.ad-cta { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: 14px; opacity: .95; }
body.site-mode .ad-btn { height: var(--h-control); padding: 0 var(--s3); gap: var(--s1); border: 0; border-radius: var(--r-pill); background: #FFFFFF; color: #12232E; font-size: 15px; font-weight: 700; }
body.site-mode .ad-btn:hover { background: #E8F1F3; }
.ad-bg { display: none; } /* phone-only background photo, see mobile.css */
.ad-art { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .22), transparent 62%); }
.ad-art img { width: 100%; height: 100%; object-fit: cover; }
.ad-emoji { font-size: 112px; line-height: 1; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25)); }
.ads-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); color: #12232E; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.ads-arrow.is-back { inset-inline-start: var(--s2); }
.ads-arrow.is-fwd { inset-inline-end: var(--s2); }
.ads-arrow:hover { background: #FFFFFF; }
.ads-dots { display: flex; justify-content: center; gap: var(--s1); }
.ads-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--line); transition: width .25s, background-color .25s; }
.ads-dots button[aria-current="true"] { width: 24px; background: var(--icon); }
@media (max-width: 899px) {
  .ad { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ad-art { display: none; }
  .ad-copy { padding: var(--s4) var(--s3) var(--s5); }
  .ad h3 { font-size: 26px; line-height: 32px; }
  .ads-arrow { display: none; }
}

/* ---------- 13. One selection style: anything selected turns the primary colour with white text ---------- */
body.site-mode .achips button[aria-pressed="true"],
body.site-mode .seg button[aria-pressed="true"],
body.site-mode .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #FFFFFF; box-shadow: none; }
body.site-mode .achips button[aria-pressed="true"] .num { color: #FFFFFF; opacity: .85; }
body.site-mode .svc[aria-pressed="true"], body.site-mode .payopt[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); box-shadow: none; color: #FFFFFF; }
body.site-mode .svc[aria-pressed="true"] small, body.site-mode .payopt[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
body.site-mode .svc[aria-pressed="true"] .svc-ic { background: rgba(255, 255, 255, .18); }
body.site-mode .payopt[aria-pressed="true"] .radio { border-color: #FFFFFF; background: radial-gradient(circle, #FFFFFF 45%, transparent 50%); }

/* ---------- 14. Dark mode: every icon is white ---------- */
:root[data-theme="dark"] body.site-mode svg { color: #FFFFFF; }
:root[data-theme="dark"] body.site-mode .crumbs li + li::before { background: #FFFFFF; }
:root[data-theme="dark"] body.site-mode .ad-btn svg, :root[data-theme="dark"] body.site-mode .ads-arrow svg { color: #12232E; } /* these sit on white buttons */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.site-mode svg { color: #FFFFFF; }
  :root:not([data-theme="light"]) body.site-mode .crumbs li + li::before { background: #FFFFFF; }
  :root:not([data-theme="light"]) body.site-mode .ad-btn svg, :root:not([data-theme="light"]) body.site-mode .ads-arrow svg { color: #12232E; }
}
:root[data-theme="dark"] body.site-mode input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); } }

/* ---------- 15. Price range inside the search bar (من — إلى) ---------- */
.sf-range { display: flex; align-items: center; gap: var(--s1); height: 24px; }
.sf-range span { color: var(--muted); flex: none; }
body.site-mode .sbox .sf-range input { flex: 1; width: 0; min-width: 0; height: 24px; padding: 0; border: 0; border-bottom: 1px dashed var(--line); background: transparent; color: var(--ink); font-size: 15px; cursor: text; }
body.site-mode .sbox .sf-range input:focus { outline: none; border-bottom-color: var(--primary); }
body.site-mode .sbox .sf-range input::placeholder { color: var(--muted); }

/* ---------- 16. English uses Inter (Cairo stays as fallback for Arabic text inside English pages) ---------- */
:root[lang="en"] { --f-display: "Montserrat", "Tajawal", system-ui, sans-serif; --f-body: "Montserrat", "Tajawal", system-ui, sans-serif; --f-num: "Montserrat", "Tajawal", system-ui, sans-serif; }
/* Apartment title row; the offer countdown beside it is phone-only (mobile.css) */
.apt-cd { display: none; }
/* Phone-only pieces (shown by mobile.css) */
.m-only { display: none !important; }
/* Balance payment choice on "My trips": two clear buttons, the chosen one filled */
body.site-mode .seg.bal-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 0; background: none; border: 0; }
body.site-mode .seg.bal-choice button { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--primary); border-radius: 12px; background: var(--surface); color: var(--primary-text, var(--primary)); font-size: 15px; font-weight: 700; box-shadow: 0 1px 2px rgba(20, 35, 45, .08); cursor: pointer; }
body.site-mode .seg.bal-choice button:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
body.site-mode .seg.bal-choice button[aria-pressed="true"] { background: var(--primary); color: #FFFFFF; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }
body.site-mode .seg.bal-choice button[aria-pressed="true"]::before { content: "✓ "; }
/* card badges: up to 3 stacked on the photo, each in its own colour */
.ac-badges { position: absolute; top: var(--s2); inset-inline-start: var(--s2); z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(100% - 88px); }
.ac-badges .ac-badge { position: static; max-width: 100%; height: 28px; font-size: 12.5px; }
.ac-badge.b-new { background: var(--primary); color: #FFFFFF; }
.ac-badge.b-hot { background: #C2362B; color: #FFFFFF; }
.ac-badge.b-offer { background: #D9731F; color: #FFFFFF; }
.ac-badge.b-disc { background: #7C3AED; color: #FFFFFF; }
.ac-badge.b-last { background: #0E7A47; color: #FFFFFF; }
/* home: featured destinations (one photo card per governorate) */
.dest-track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.dest-track::-webkit-scrollbar { display: none; }
.dest-card { position: relative; flex: 0 0 auto; width: 180px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; scroll-snap-align: start; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #7FD3E0)); background-size: cover; background-position: center; box-shadow: 0 4px 14px rgba(10, 40, 60, .14); }
.dest-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 60%); }
.dest-card span { position: absolute; z-index: 1; bottom: 10px; inset-inline-start: 12px; color: #FFFFFF; font-size: 17px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.dest-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* home: a block per governorate, rows per area inside */
.gov-sec { margin: 36px 0 0; }
.gov-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.gov-h h2 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.gov-h h2::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); }
.gov-go { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gov-go svg { width: 16px; height: 16px; }
.area-row { margin-top: 32px; }
.gov-h + .area-row, .gov-page .achips + .area-row { margin-top: 14px; }
.area-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 12px; }
.area-h h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink-2, var(--ink)); }
.area-h h3 .num { margin-inline-start: 4px; font-size: 13px; font-weight: 600; color: var(--ink-3, #7A8794); }
.area-go { padding: 4px 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .dest-card { width: 150px; border-radius: 16px; } .gov-h h2 { font-size: 21px; } .gov-sec { margin-top: 28px; }
  /* governorate and area rows: one card and a half on screen */
}
/* gap-night deals */
.ac-badge.is-deal { background: linear-gradient(135deg, #0E7A47, #12A15C); color: #FFFFFF; }
.cd.deal small { color: #0E7A47; font-weight: 800; }
.cd.deal::after { content: "%"; position: absolute; top: 3px; inset-inline-end: 5px; font-size: 10px; font-weight: 800; color: #0E7A47; }
.cd.deal { position: relative; }
.bb-hint { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, #F1F4F7); color: var(--ink-2, #44505C); font-size: 14px; line-height: 1.6; text-align: center; }

/* place sections (governorate / area): title + "الكل" on one line, a row of cards under it */
.gov-sec .gov-h { margin-bottom: 12px; }
.gov-sec + .gov-sec { margin-top: 20px; }
/* 20px from the last card of one place to the next place's title (the page already spaces sections by its own gap) */
body.site-mode .site > .gov-sec + .gov-sec { margin-top: calc(16px - var(--site-gap, 28px)); }
body.site-mode .gov-page > .gov-sec + .gov-sec { margin-top: calc(16px - var(--res-gap, 24px)); }
body.site-mode .gov-page > .gov-title + .gov-sec { margin-top: calc(12px - var(--res-gap, 24px)); }
.gov-page .gov-title { margin-bottom: 4px; }
.gov-page .gov-title h1 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.gov-page .gov-sec { margin-top: 20px; }
.gov-page .gov-title + .gov-sec { margin-top: 16px; }
@media (min-width: 761px) {
  body.site-mode .site > .gov-sec + .gov-sec { margin-top: -40px; }
  body.site-mode .gov-page > .gov-sec + .gov-sec { margin-top: -16px; }
}
.ad-navy { background: linear-gradient(120deg, #0E2D4A, #081A2B); }
.ad-gold { background: linear-gradient(120deg, #B38E55, #7A5A2A); }
/* card badges: medium weight */
.ac-badge, .ac-badges .ac-badge { font-weight: 500 !important; }
/* Category chips (الكل، مباشر بحر…): white when not selected, navy when selected */
:root:not([data-theme="dark"]) body.site-mode .site .cats .cat:not([aria-pressed="true"]) { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
:root:not([data-theme="dark"]) body.site-mode .site .cats .cat:not([aria-pressed="true"]):hover { background: #F4F7FB; }
:root:not([data-theme="dark"]) body.site-mode .site .cats .cat:not([aria-pressed="true"]) svg { color: var(--sky, #1A9ECB); }
/* booking page: the booking type on its own lines, the send button as the last thing on the page */
.change.bk-type { flex-direction: column; align-items: flex-start; gap: 4px; }
.change.bk-type p { margin: 0; line-height: 1.7; color: var(--ink-2, var(--ink)); }
.bk-submit { width: 100%; padding: 12px; justify-content: center; font-size: 16px; min-height: 52px; }
/* booking box: arrival / departure are display-only (picked on the calendar) */
.bb-ro .bb-f { cursor: default; }
.bb-ro .bb-l { display: block; font-size: 12.5px; color: var(--muted); }
.bb-ro .bb-v { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.bb-ro .bb-v.muted { color: var(--muted); font-weight: 500; }

/* Extra services heading on the stay page: 20px */
html body.site-mode .apt .sec-svc h2 { font-size: 20px; }
/* Extra services: 16px text (heading and prices) */
html body.site-mode .apt .sec-svc h2, html body.site-mode .apt .svc-pr, html body.site-mode .apt .svc b { font-size: 16px; line-height: 1.5; }

/* Stay calendar: daily / monthly choice, month rent, booked-days warning */
body.site-mode .bk-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
body.site-mode .bk-mode button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; text-align: center; }
body.site-mode .bk-mode button b { font-size: 16px; font-weight: 600; }
body.site-mode .bk-mode button small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
body.site-mode .bk-mode button[aria-pressed="true"] { background: var(--surface); border-color: var(--navy, #012E62); box-shadow: 0 2px 8px rgba(10, 31, 68, .08); color: var(--navy, #012E62); }
body.site-mode .bk-mode button[aria-pressed="true"] small { color: var(--sky-deep, #0B7FA8); }
html body.site-mode .apt .cal-h h2 { font-size: 16px; line-height: 24px; font-weight: 500; }
body.site-mode .cal-rent { margin: 2px 0 8px; font-size: 14px; color: var(--muted); }
body.site-mode .cal-rent b { color: var(--ink); font-size: 16px; font-weight: 700; }
body.site-mode .cal-clash { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #FDECEC; border: 1px solid #F5B5B5; color: #B42318; font-size: 13.5px; line-height: 1.6; }
body.site-mode .cal-clash b { font-size: 14.5px; }
body.site-mode .mini-cal .cd.clash { background: #FDECEC !important; border-color: #E5484D !important; color: #B42318 !important; }
body.site-mode .mini-cal .cd.clash small { color: #B42318 !important; font-weight: 600; }

/* Nightly / monthly switch: a light track with the chosen side as a raised white pill */
html body.site-mode .apt .bk-mode { gap: 4px; padding: 6px; border: 0; border-radius: 20px; background: #ECECE6; }
html body.site-mode .apt .bk-mode button { flex-direction: row; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 0; border-radius: 15px; color: #727789; box-shadow: none; }
html body.site-mode .apt .bk-mode button b { font-size: 17px; font-weight: 700; }
html body.site-mode .apt .bk-mode button svg { flex: none; }
html body.site-mode .apt .bk-mode button[aria-pressed="true"] { background: #FFFFFF; border: 0; color: var(--ink, #0A1F44); box-shadow: 0 2px 6px rgba(10, 31, 68, .12); }
html[data-theme="dark"] body.site-mode .apt .bk-mode { background: var(--surface-2); }
html[data-theme="dark"] body.site-mode .apt .bk-mode button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }

/* Switch track takes the feature tiles colour; labels 16px; 12px from the month line to the hint */
html body.site-mode .apt .bk-mode { background: var(--m-tile-pri, var(--surface-2)); }
html body.site-mode .apt .bk-mode button b { font-size: 16px; }
html body.site-mode .apt .sec-cal .cal-h { margin-bottom: 0; }
html body.site-mode .apt .sec-cal .cal-rent { margin: 0; }
html body.site-mode .apt .sec-cal .cal-h + .sec-note, html body.site-mode .apt .sec-cal .cal-rent + .sec-note, html body.site-mode .apt .sec-cal .cal-clash + .sec-note { margin-top: -2px; } /* the section already has a 14px gap */
html body.site-mode .apt .sec-cal .cal-rent + .cal-clash { margin-top: -2px; }

/* Search dates: an empty date field shows "اختار اليوم" (iPhone shows nothing at all, Chrome shows mm/dd/yyyy) */
html body.site-mode .sbox .sf { position: relative; }
html body.site-mode .sbox .sf input[type="date"] { min-height: 26px; }
html body.site-mode .sbox .sf .d-ph { display: none; position: absolute; right: 54px; left: 16px; bottom: 14px; text-align: right; font-size: inherit; color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; }
html body.site-mode .sbox .sf input[type="date"]:invalid + .d-ph { display: block; }
html body.site-mode .sbox .sf input[type="date"]:invalid::-webkit-datetime-edit { color: transparent; }
html[dir="ltr"] body.site-mode .sbox .sf .d-ph { left: 54px; right: 16px; text-align: left; }
/* Booking box: price per night 16px */
html body.site-mode .book-box .bb-price b, html body.site-mode .book-box .bb-price b.num { font-size: 16px; line-height: 24px; }

/* Inner frames (features, rules, stats icons, service icons, card facts, search fields, nightly/monthly switch, hints):
   a pale muted turquoise instead of the page colour, so they stand apart from the background. */
html body.site-mode { --tq-tile: #E9F6F4; --tq-ink: #0A3B44; }
:root[data-theme="dark"] body.site-mode { --tq-tile: color-mix(in srgb, #2BB3A6 20%, #1A2C3E); --tq-ink: var(--ink); }
html body.site-mode { --m-tile-pri: var(--tq-tile); }
html body.site-mode .apt .feat:not(.rule-no),
html body.site-mode .apt-stats i, html body.site-mode .svc-ic, html body.site-mode .ac-facts li,
html body.site-mode .sbox .sf, html body.site-mode .why-ic, html body.site-mode .ac-fast,
html body.site-mode .apt .bk-mode, html body.site-mode .bb-hint, html body.site-mode .apt-code { background: var(--tq-tile) !important; }
html body.site-mode .apt .feat:not(.rule-no), html body.site-mode .ac-facts li { color: var(--tq-ink); }
/* Feature and rule tiles: medium text */
html body.site-mode .apt .feat, html body.site-mode .apt .feat span, html body.site-mode .apt .feat b { font-weight: 500; }
/* Nightly/monthly switch: turquoise outline a little darker than its fill */
html body.site-mode .apt .bk-mode { border: 1.5px solid #B5E0DA !important; }
:root[data-theme="dark"] body.site-mode .apt .bk-mode { border-color: color-mix(in srgb, #2BB3A6 45%, #1A2C3E) !important; }

/* Stay page: host row and trust card */
body.site-mode .apt-host { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.site-mode .apt-host .host-av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy, #012E62); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
body.site-mode .apt-host b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
body.site-mode .apt-host span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
body.site-mode .apt-host span svg { width: 16px; height: 16px; flex: none; color: var(--sky-deep, #0B7FA8); }
body.site-mode .trust { list-style: none; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--tq-tile, #E9F6F4); display: flex; flex-direction: column; gap: 10px; }
body.site-mode .trust li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--tq-ink, #0A3B44); }
body.site-mode .trust li svg { flex: none; margin-top: 2px; color: var(--sky-deep, #0B7FA8); }
/* Home: "your booking is safe" strip; the phone-only search pill stays hidden on wider screens */
body.site-mode .s-pill { display: none; }
body.site-mode .safe-strip { display: flex; gap: 12px; align-items: center; margin: 28px 0 8px; padding: 16px 20px; border-radius: 16px; background: var(--tq-tile, #E9F6F4); color: var(--tq-ink, #0A3B44); font-size: 14px; }
body.site-mode .safe-strip > svg { flex: none; width: 26px; height: 26px; color: var(--sky-deep, #0B7FA8); }
body.site-mode .safe-strip b { display: block; font-size: 15px; color: var(--ink); }
body.site-mode .sec-tt { display: flex; flex-direction: column; gap: 2px; }
body.site-mode .sec-tt small { font-size: 13px; color: var(--muted); font-weight: 400; }
/* Continue with Google, above the email form */
body.site-mode .g-btn, .g-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.g-btn:hover { border-color: var(--navy, #012E62); }
.or-line { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
body.site-mode img.host-av { object-fit: cover; padding: 0; }
/* Public site: white page on every screen size (dark mode keeps its own surface) */
html body.site-mode, html body.site-mode main:has(.site) { background: var(--surface, #fff); }
html body.site-mode main:has(.site) .snav { background: color-mix(in srgb, var(--surface, #fff) 92%, transparent) !important; border-bottom: 1px solid var(--line); }
/* Book box: the phone-only wrapper for dates + guests is invisible on desktop. */
.book-box .bb-row { display: contents; }
.book-box .bb-cta .bb-sub { display: none; }
/* Empty state (saved list, etc.): centred icon, line, hint and one action. */
.empty-st { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 16px; }
.empty-st .es-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tq-tile, #E9F6F4); color: var(--sky-deep, #0B7FA8); margin-bottom: 4px; }
.empty-st b { font-size: 16px; }
.empty-st p { margin: 0; color: var(--muted); font-size: 14px; }
.empty-st .btn { margin-top: 8px; padding: 10px 22px; }
