/* Owner Dashboard shell (owner-shell.js): dark navy sidebar on the start side, gold active item, Owner Support card,
   and the owner header. Only pages listed in OWNER_SHELL_ROUTES get body.os-route and .os-has-side.
   Palette (Moataz, 2026-11-07; lightened 2026-11-08 to a muted slate navy close to #203D4E, homepage gold #E8B65C):
   header #1F3B4D, sidebar #1A3446, primary navy #203D4E, dark text #10283D, gold #E8B65C,
   gold gradient #E8B65C → #B98412 (dark end kept so white text on it stays readable), page #F5F7F9, borders #E0E5EB,
   secondary text #64748B. Every owner page reads these tokens, so this one block sets the whole Owner Dashboard. */
:root{
  --os-header:#1F3B4D; --os-side:#1A3446; --os-navy:#203D4E; --os-ink:#10283D; --os-gold:#E8B65C;
  --os-gold-grad:linear-gradient(135deg,#E8B65C 0%,#B98412 100%); --os-bg:#F5F7F9; --os-card:#FFFFFF;
  --os-line:#E0E5EB; --os-muted:#64748B; --os-side-w:268px;
}

/* ---------- header ---------- */
body.os-route{background:var(--os-bg)}
body.os-route header.top{background:var(--os-header)!important;box-shadow:none;border-bottom:0}
body.os-route header.top .navlinks,
body.os-route header.top .nav-ai-btn{display:none!important}
body.os-route header.top .nav .btn-ghost{border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.04);color:#fff;min-height:44px}
body.os-route header.top .nav .btn-ghost:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3)}
body.os-route .acct-trigger{gap:10px;padding-inline:6px 14px}
body.os-route .acct-trigger .avatar-sm{width:40px;height:40px;background:#fff;color:var(--os-ink);font-size:1rem;border:2px solid rgba(255,255,255,.85)}
body.os-route .acct-trigger .avatar-sm img{display:block}
body.os-route .acct-trigger .hide-sm{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.15;font-weight:700}
body.os-route .acct-trigger .os-role{font-size:.74rem;font-weight:500;color:rgba(255,255,255,.72)}
/* outline bell in place of the emoji, as in the mockup (the unread badge stays) */
body.os-route header.top .nav .notif-trigger{font-size:0!important;width:52px;justify-content:center;position:relative}
body.os-route header.top .nav .notif-trigger::before{content:"";width:22px;height:22px;background:currentColor;
  -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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0c0 6 2.5 7.5 2.5 7.5h-17S6 15 6 9z'/%3E%3Cpath d='M10 20a2.2 2.2 0 0 0 4 0'/%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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0c0 6 2.5 7.5 2.5 7.5h-17S6 15 6 9z'/%3E%3Cpath d='M10 20a2.2 2.2 0 0 0 4 0'/%3E%3C/svg%3E") center/contain no-repeat}
body.os-route header.top .nav .notif-trigger .notif-badge{font-size:.72rem!important;position:absolute;top:4px;inset-inline-end:8px;background:#E5484D;color:#fff}

/* ---------- layout: sidebar + page ---------- */
.os-has-side{display:grid!important;grid-template-columns:var(--os-side-w) minmax(0,1fr);align-items:stretch;max-width:none!important;width:100%;padding:0!important;margin:0!important;background:var(--os-bg);min-height:calc(100vh - 72px)}
.os-has-side>:not(.os-side):not(.os-menu-btn){grid-column:2;min-width:0}
.os-side{grid-column:1;grid-row:1 / span 20;background:var(--os-side);color:#fff;padding:22px 14px 28px;display:flex;flex-direction:column;gap:18px;
  border-start-start-radius:0;position:sticky;top:72px;align-self:start;min-height:calc(100vh - 72px);max-height:calc(100vh - 72px);overflow-y:auto;scrollbar-width:thin}
.os-side-top{display:none}
.os-nav{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.os-link{display:flex;align-items:center;gap:14px;min-height:52px;padding:0 16px;border-radius:14px;color:#fff;text-decoration:none;font-weight:600;font-size:1.02rem;
  transition:background-color .18s ease,color .18s ease,transform .18s ease}
.os-link .os-ic{width:24px;height:24px;flex:none;opacity:.95}
.os-link .os-label{flex:1}
.os-link:hover{background:rgba(255,255,255,.07)}
.os-link:focus-visible{outline:2px solid var(--os-gold);outline-offset:2px}
.os-link.is-active{background:var(--os-gold-grad);color:#fff;box-shadow:0 8px 20px -10px rgba(185,132,18,.8)}
.os-badge{min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#E5484D;color:#fff;font-size:.8rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.os-support{margin-top:auto;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border:1px solid rgba(199,162,80,.28);border-radius:18px;padding:22px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.os-support .os-support-ic{width:40px;height:40px;color:var(--os-gold)}
.os-support b{font-size:1.15rem}
.os-support p{margin:0 0 8px;color:rgba(255,255,255,.82);font-size:.95rem}
.os-support-btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;min-height:46px;padding:0 26px;border-radius:999px;background:linear-gradient(135deg,#F1D58A,#E0B755);color:var(--os-ink);font-weight:800;text-decoration:none}
.os-support-btn:hover{filter:brightness(1.05)}
.os-support-btn .os-arrow{width:18px;height:18px}
html[dir="rtl"] .os-support-btn .os-arrow{transform:scaleX(-1)}
.os-menu-btn{display:none}
.os-backdrop{display:none}

/* ---------- tablets and phones: the sidebar is a drawer ---------- */
@media (max-width:1024px){
  .os-has-side{display:block!important}
  /* align-self:stretch: the desktop rule's align-self:start would otherwise size the fixed drawer to its content (taller than the
     screen), so its last items could never be scrolled to */
  .os-side{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(86vw,300px);max-height:none;min-height:0;align-self:stretch;z-index:60;border-radius:0!important;transform:translateX(-105%);transition:transform .25s ease;visibility:hidden}
  html[dir="rtl"] .os-side{transform:translateX(105%)}
  body.os-drawer-open .os-side{transform:none;visibility:visible}
  .os-side-top{display:flex;justify-content:flex-end}
  .os-close{width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
  .os-close .os-ic{width:22px;height:22px}
  .os-backdrop{position:fixed;inset:0;background:rgba(4,18,32,.5);z-index:55}
  body.os-drawer-open .os-backdrop{display:block}
  header.top .os-menu-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;min-height:42px;padding:0;margin:0;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.04);color:#fff;cursor:pointer}
  header.top .os-menu-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  header.top .os-menu-btn .os-ic{width:22px;height:22px}
  body.os-route header.top .acct-trigger .hide-sm{display:none}
}
@media (prefers-reduced-motion:reduce){.os-side,.os-link{transition:none}}
body.os-route header.top .wrap{max-width:none;padding-inline:24px}
/* the open drawer sits above everything on the page: the phone bottom bar steps aside while it is open */
body.os-drawer-open .bottom-nav{display:none!important}

/* the page's sticky header would otherwise sit over the open drawer */
@media (max-width:1024px){body.os-drawer-open header.top{z-index:1}}

/* ---------- desktop: measured against his owner mockups at 1536×1024 (2026-11-07) ----------
   Header 72px. Sidebar 268px, var(--os-side), the 14-item menu (Login & Security mockup), rows 44px, support card at the foot. */
@media (min-width:1025px){
  /* header */
  body.os-route header.top .wrap{height:72px;padding-inline:31px 25px}
  body.os-route header.top .logo img.logo-mark{width:240px}
  body.os-route header.top .logo .logo-tag{display:none}
  body.os-route header.top .nav{gap:18px}
  body.os-route header.top .nav .btn-ghost{min-height:52px;padding-inline:18px}
  /* account: photo · name / role · chevron, read from the left, no pill outline */
  body.os-route header.top .nav .acct-trigger{border-color:transparent!important;background:transparent!important;justify-content:flex-start;padding-inline:10px 16px!important;gap:14px;direction:ltr}
  body.os-route .acct-trigger .avatar-sm{width:52px;height:52px}
  body.os-route .acct-trigger .hide-sm{font-size:1.12rem;flex:1;align-items:flex-start;text-align:left}
  html[dir="rtl"] body.os-route .acct-trigger .hide-sm{align-items:flex-end;text-align:right}
  body.os-route .acct-trigger .os-role{font-size:.92rem;font-weight:600;color:#fff}
  /* bell: round outline, larger glyph */
  body.os-route header.top .nav .notif-trigger{width:66px;min-height:52px;border-radius:999px}
  body.os-route header.top .nav .notif-trigger::before{width:30px;height:30px;flex:none;display:block}
  body.os-route header.top .nav .notif-trigger .notif-badge{min-width:22px;height:22px;top:2px;inset-inline-end:10px;font-size:.8rem!important;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}
  /* USD pill with the US flag and a chevron */
  body.os-route header.top .nav .currency-trigger{min-width:146px;justify-content:center;gap:8px;direction:ltr;font-size:1.05rem;font-weight:700}
  body.os-route header.top .nav .currency-trigger::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px)}
  body.os-route .os-cur-flag{width:30px;height:30px;border-radius:50%;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 20'%3E%3Cpath fill='%23B22234' d='M0 0h38v20H0z'/%3E%3Cpath stroke='%23fff' stroke-width='1.54' d='M0 2.31h38M0 5.38h38M0 8.46h38M0 11.54h38M0 14.62h38M0 17.69h38'/%3E%3Cpath fill='%233C3B6E' d='M0 0h16v10.77H0z'/%3E%3C/svg%3E") center/cover no-repeat;box-shadow:0 0 0 1px rgba(255,255,255,.25)}
  body.os-route .os-cur-flag[hidden]{display:none}
  /* language pill: globe + language name, no flag */
  body.os-route header.top .lang-trigger #langTriggerLabel{display:inline}
  body.os-route header.top .lang-trigger .flag-badge{display:none!important}
  body.os-route header.top .nav .lang-trigger{min-width:134px;padding-inline:16px 18px;display:inline-flex;align-items:center;gap:12px;font-weight:700;font-size:1.12rem}
  body.os-route header.top .nav .lang-trigger::before{content:"";width:26px;height:26px;background:currentColor;-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='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M2.8 12h18.4M12 2.8c2.6 2.6 3.8 5.6 3.8 9.2s-1.2 6.6-3.8 9.2c-2.6-2.6-3.8-5.6-3.8-9.2S9.4 5.4 12 2.8z'/%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='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M2.8 12h18.4M12 2.8c2.6 2.6 3.8 5.6 3.8 9.2s-1.2 6.6-3.8 9.2c-2.6-2.6-3.8-5.6-3.8-9.2S9.4 5.4 12 2.8z'/%3E%3C/svg%3E") center/contain no-repeat}

  /* sidebar */
  .os-has-side{grid-template-columns:268px minmax(0,1fr);min-height:calc(100vh - 72px)}
  .os-side{top:72px;min-height:calc(100vh - 72px);max-height:calc(100vh - 72px);padding:12px 8px 24px 12px;gap:14px;z-index:3}
  html[dir="rtl"] .os-side{border-top-left-radius:22px;padding:12px 12px 24px 8px}
  html[dir="ltr"] .os-side{border-top-right-radius:22px}
  .os-nav{gap:0;flex:none}
  /* every row one line at the same 44px height, the longest label («البيانات الشخصية والهوية») included */
  .os-link{height:44px;min-height:44px;font-size:.94rem;font-weight:700;padding:0 10px 0 12px;gap:10px;white-space:nowrap}
  html[dir="rtl"] .os-link{padding:0 12px 0 10px}
  .os-link .os-ic{width:26px;height:26px;stroke-width:2}
  .os-link .os-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
  /* the site menu button has no place on owner pages: the sidebar is the menu */
  .os-support{margin-top:auto;margin-inline:8px 4px;padding:18px 16px;gap:4px}
  .os-support .os-support-ic{width:42px;height:42px}
  .os-support b{font-size:1.3rem;line-height:1.35;display:block}
  .os-support p{line-height:1.5}
  .os-support p{font-size:1.1rem;margin-bottom:10px}
  .os-support-btn{min-height:46px;font-size:1.15rem;white-space:nowrap;width:85%;padding:0 18px}
}
/* older owner pages (dashboard, listings, bookings, offers, earnings, verification) inside the shell keep breathing room;
   redesigned pages set their own spacing */
[data-view="host"].os-has-side>:not(.os-side):not(.os-menu-btn),
[data-view="host-verification"].os-has-side>:not(.os-side):not(.os-menu-btn){padding-inline:28px;box-sizing:border-box}
[data-view="host"].os-has-side>:not(.os-side):not(.os-menu-btn):nth-child(2),
[data-view="host-verification"].os-has-side>:not(.os-side):not(.os-menu-btn):nth-child(2){padding-top:24px}
@media (max-width:1024px){
  [data-view="host"].os-has-side>:not(.os-side):not(.os-menu-btn),
  [data-view="host-verification"].os-has-side>:not(.os-side):not(.os-menu-btn){padding-inline:16px}
}
/* "9+" reads the same in Arabic */
body.os-route header.top .notif-badge{direction:ltr;unicode-bidi:isolate}
/* guard: the shell's icons draw in the text colour whatever other page CSS says about .os-ic */
.os-side svg.os-ic,.os-menu-btn svg.os-ic,.os-close svg.os-ic,.os-support-btn svg.os-arrow{fill:none!important;stroke:currentColor!important}
/* owner pages: the shell's drawer button replaces the site menu button in the header */
body.os-route header.top .nav-menu-btn{display:none!important}
/* room for Arabic ascenders and descenders whatever font loads: labels never clip, support title never meets its line */
@media (min-width:1025px){
  .os-link .os-label{line-height:28px;padding-block:1px}
  /* a label never ends in "…": one line when it fits, otherwise it wraps to a second line inside the same row */
  .os-link{height:auto;white-space:normal;padding-block:4px;gap:8px;padding-inline-end:6px}
  .os-link .os-label{overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35;padding-block:2px}
  .os-support b{line-height:1.45;margin-bottom:4px}
  .os-support p{line-height:1.6}
}
/* floating AI button on owner pages: fades away while it would cover a control (owner-shell.js) */
body.os-route .as-launch{transition:opacity .2s}
body.osh-launch-aside .as-launch{opacity:0;pointer-events:none}
