/* Shared appearance across public pages, dialogs and the owner workspace. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-width:42px;height:42px;padding:0 11px;border:1px solid #cfc2da;border-radius:22px;background:transparent;color:#594367;cursor:pointer;font-family:inherit;font-size:14px;white-space:nowrap}.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .sun{display:none}.theme-toggle:hover{background:#eae1f0}.theme-toggle:focus-visible{outline:3px solid #9c7eb2;outline-offset:4px}
html[data-theme=dark]{--night-bg:#17141d;--night-panel:#211c29;--night-raised:#2b2435;--night-border:#51415e;--night-text:#f2eaf7;--night-muted:#c5b7cf;--night-accent:#cfb4e2;--ink:#f2eaf7;color-scheme:dark}
html[data-theme=light]{color-scheme:light}
html[data-theme=dark] body{background:var(--night-bg);color:var(--night-text)}
html[data-theme=dark] .theme-toggle{color:#ead8f6;border-color:#756185;background:#2b2435}html[data-theme=dark] .theme-toggle:hover{background:#3b3048}html[data-theme=dark] .theme-toggle .moon{display:none}html[data-theme=dark] .theme-toggle .sun{display:block}
html[data-theme=dark] header,html[data-theme=dark] footer{background:var(--night-panel);border-color:var(--night-border);color:var(--night-text)}
html[data-theme=dark] header img,html[data-theme=dark] footer img.official-logo,html[data-theme=dark] footer>img{background:#f5f1eb;padding:7px 12px;border-radius:8px;object-fit:contain}
html[data-theme=dark] nav a:hover{color:#ddbfef}
html[data-theme=dark] :is(.finder,.properties,.contact,.faq,.examples,.facilityhero,.careprocess,.care-filters,.owner-banner,.owners,.services){background:var(--night-panel);border-color:var(--night-border);color:var(--night-text)}
html[data-theme=dark] :is(.property-card,.card,.searchbar,.bookingbox,.dashboard-card,.caregrid article,.request-section form,.host-contact,.care-stats>div,.care-record){background:var(--night-panel);border-color:var(--night-border);color:var(--night-text)}
html[data-theme=dark] :is(dialog,.gallery,.close,.favorite,.gallerynav button,.gallery-main>button,.calendarhead button){background:var(--night-raised);color:var(--night-text);border-color:var(--night-border)}
html[data-theme=dark] dialog::backdrop{background:#09070ccc}
html[data-theme=dark] :is(input,textarea,select){background:#19151f;color:var(--night-text);border-color:#665175}
html[data-theme=dark] option{background:#211c29;color:#f2eaf7}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#b0a1ba;opacity:1}
html[data-theme=dark] input:focus-visible,html[data-theme=dark] select:focus-visible,html[data-theme=dark] textarea:focus-visible{outline:2px solid #c9a8e2;outline-offset:2px}
html[data-theme=dark] :is(.contact input,.contact select,.contact textarea,.finder select,.advanced select){color:var(--night-text);border-color:#80658e}
html[data-theme=dark] :is(.fine,.demo-note,.listing-note,.about-copy p,.section-heading>p,.property-content small,.property-content p,.specs,.approach li p,.lifestyle>div>p,.lifestyle-options small,.faq-list p,.faq details p,.caregrid p,.caregrid small,.care-stats span,.care-meta,.completion span,.host-contact small,.review-metrics,.care-heading p,.guide-paragraph p,#extra-content>p,#detail-panel p,#count,footer>span){color:var(--night-muted)}
html[data-theme=dark] :is(.eyebrow,em,.facilityhero em,.care-heading em,.completion strong,.contact-details,.care-record summary,.caregrid article>span){color:var(--night-accent)}
html[data-theme=dark] :is(.finder label,.advanced label,.search-tools label){color:var(--night-muted)}
html[data-theme=dark] :is(.pill,.specs span,.amenities span,.notice,.empty,.draft-status,.help-box,.review-overview,.missing-fields,.draft-readonly,.care-record blockquote,.location-panel,.comparison-scroll tbody th,#gallery-thumbs,.care-bell){background:var(--night-raised);color:var(--night-text);border-color:var(--night-border)}
html[data-theme=dark] :is(.outline,.card-action,.filters button,.search-tools>button,.compare-toggle,.lifestyle-options button,.insight-grid button,.detail-tabs button,.property-content .price,.menu){color:var(--night-text);border-color:#80658e}
html[data-theme=dark] :is(.btn,.button.purple,.filters button.active,.search-tools>button[aria-pressed=true],.favorite.selected,.compare-toggle.selected){background:#87639f;color:#fff;border-color:#a680bf}
html[data-theme=dark] .button.cream{background:#e8daef;color:#302638}
html[data-theme=dark] .btn.ghost{background:#ffffff0c;color:#fff}
html[data-theme=dark] .property-tag{background:#292131eb;color:#f2eaf7}
html[data-theme=dark] :is(.stars,.rating-summary){color:#e6c687}
html[data-theme=dark] :is(.advanced,.specs,.approach li,.faq-list details,.faq details,.detail-tabs,.my-drafts,.review-card,.unit-reviews,.followup-form,.caregrid small,form h3,.insight-grid b,.comparison-scroll td,.comparison-scroll th){border-color:var(--night-border)}
html[data-theme=dark] .detail-tabs .active,html[data-theme=dark] #gallery-thumbs button.active{border-color:#cfb4e2}
html[data-theme=dark] .calendar span{background:#254037;color:#d8efdf}html[data-theme=dark] .calendar .busy{background:#512f3d;color:#f5d4de}html[data-theme=dark] .calendar .past{background:#302a36;color:#94859f}
html[data-theme=dark] .rating-options span{background:#211c29;color:#e6c687;border-color:#80658e}html[data-theme=dark] .rating-options input:checked+span{background:#87639f;color:#fff}
html[data-theme=dark] progress,html[data-theme=dark] progress::-webkit-progress-bar{background:#44364e}html[data-theme=dark] progress::-webkit-progress-value{background:#b891d1}
html[data-theme=dark] .care-seal{background:radial-gradient(circle,#32273d,transparent);color:#baa0cd;border-color:#655073}
html[data-theme=dark] .error{color:#ffabba}html[data-theme=dark] .success{color:#9cdbb9}html[data-theme=dark] #toast{background:#e8d9f2;color:#2a2032}
html[data-theme=dark] :is(.hero,.stayhero,.destination-grid button){color:#f5f1eb}
@media(min-width:651px) and (max-width:1150px){body[data-page=home] header{height:auto;min-height:96px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:14px}body[data-page=home] header nav{order:5;justify-content:center;width:100%;padding-bottom:5px}}
@media(max-width:650px){.theme-toggle{width:40px;min-width:40px;height:40px;padding:0}.theme-label{display:none}body[data-page=home] .nav-cta{display:none}body[data-page=home] .theme-toggle{margin-inline-start:auto}html[data-theme=dark] nav{background:var(--night-panel)}header:has(.theme-toggle){gap:10px}header:has(.theme-toggle) img{max-width:160px}html[data-theme=dark] header img{padding:5px 8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.back-to-top{position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:900;width:52px;height:52px;border:1px solid #bca4cd;border-radius:50%;background:#624775;color:#fff;box-shadow:0 5px 20px #0003;display:flex;align-items:center;justify-content:center;cursor:pointer}.back-to-top[hidden]{display:none}.back-to-top svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.back-to-top:hover{background:#7b5a8e}.back-to-top:focus-visible{outline:3px solid #cdb0df;outline-offset:4px}html[data-theme=dark] .back-to-top{background:#cfb4e2;color:#211c29}@media(max-width:700px){.back-to-top{right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:49px;height:49px}}body:has(#compare-bar:not([hidden])) .back-to-top{bottom:calc(96px + env(safe-area-inset-bottom))}
/* Date fields: always English placeholder DD / MM / YYYY (Arabic Chrome shows يوم/شهر/سنة with reversed letters) */
input:is([type=date],[type=datetime-local]){direction:ltr!important;text-align:left}
.ox-date-wrap,.ox-date-wrap:is(span){position:relative!important;display:block!important;width:100%!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:0!important;height:auto!important;border-radius:0!important}
.ox-date-wrap>input{width:100%!important}
.ox-date-wrap.ox-empty>input::-webkit-datetime-edit{color:transparent}
.ox-date-wrap.ox-empty::after{content:attr(data-ph);position:absolute;left:13px;top:50%;transform:translateY(-50%);pointer-events:none;direction:ltr;font-size:14px;letter-spacing:.5px;color:#8d8496;font-family:Arial,sans-serif}
html[data-theme=dark] .ox-date-wrap.ox-empty::after{color:#a99fb4}
@media (max-width:520px){.ox-date-wrap.ox-empty::after{font-size:12px;letter-spacing:0;left:10px}}

/* property / unit video */
.ox-vid{display:block;width:100%;max-height:70vh;aspect-ratio:16/9;background:#140f1a;border-radius:14px;object-fit:contain}
.ox-vid-box{margin:14px 0}.ox-vid-box h3{margin:0 0 8px}
.ox-vfield{display:grid;gap:10px}.ox-vfield .ox-vid{max-height:320px}
.ox-vprog{position:relative;height:30px;border-radius:10px;background:rgba(120,90,150,.12);overflow:hidden;display:flex;align-items:center;padding:0 12px;font-size:13px}
.ox-vprog[hidden]{display:none}.ox-vprog i{position:absolute;inset:0 auto 0 0;width:0;background:rgba(120,90,150,.28);transition:width .2s}
html[dir=rtl] .ox-vprog i{inset:0 0 0 auto}.ox-vprog span{position:relative}.ox-vprog.bad{background:rgba(192,57,43,.12);color:#b3261e}
/* admin: checkbox groups (facilities, rent payment) */
.ox-checks{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:8px}.ox-checks .switch{font-size:14px;font-weight:500}
/* property details: rooms & facilities */
.ox-pspecs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:10px 0 4px}
.ox-pspecs div{border:1px solid rgba(197,175,140,.45);border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.5)}
.ox-pspecs small{display:block;color:#8a7d90;font-size:12px}.ox-pspecs b{font-size:16px}
html[data-theme=dark] .ox-pspecs div{background:rgba(255,255,255,.04)}
.ox-cond{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#2f7d5b1a;color:#2f7d5b}.ox-cond.used{background:#8a5a001a;color:#8a5a00}.ox-cond.offplan{background:#2f5f9e1a;color:#2f5f9e}
.ox-pno{display:inline-flex;gap:6px;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(91,63,114,.1);color:#5b3f72;direction:ltr}
html[data-theme=dark] .ox-pno{color:#cfb4e2;background:rgba(207,180,226,.12)}
.ox-pno-title{font-size:13px;vertical-align:middle;margin-inline-start:6px}
.ox-checks{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px 12px}.ox-checks .switch{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:8px 10px;border:1px solid rgba(197,175,140,.45);border-radius:10px;width:auto!important}
.ox-pspecs{display:flex!important;flex-wrap:wrap}.ox-pspecs>div{flex:1 1 130px}@media(max-width:600px){.ox-pspecs>div{flex-basis:40%}}
