@font-face{font-family:Tajawal;src:url('/vendor/Tajawal-Regular.ttf');font-weight:400;font-display:swap}@font-face{font-family:Tajawal;src:url('/vendor/Tajawal-Bold.ttf');font-weight:700;font-display:swap}
*{box-sizing:border-box}body{margin:0;background:#f6f4ef;color:#172b37;font:16px Tajawal,Tahoma,sans-serif;--accent:#185b79;--edge:#d9dfdb;--muted:#4d6066}
.shell{width:min(1440px,100%);margin:auto;padding-inline:clamp(14px,4vw,54px)}a{color:inherit;text-decoration:none}button{color:inherit;font:inherit;cursor:pointer;min-height:42px}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid #13799f;outline-offset:2px}.top{border-bottom:1px solid #dddcd2;height:71px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:1.13rem}.mark{display:grid;place-items:center;color:#184f66;background:#e6edf1;border-radius:10px;width:39px;height:39px}.mark svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.small{border:1px solid #c1ccd0;border-radius:8px;background:#fdfdfa;padding:7px 12px;white-space:nowrap}.small:hover,.small[aria-pressed=true]{background:#e3f0f7;border-color:#91b8cc}
.intro{display:flex;align-items:end;gap:8px;justify-content:space-between;padding-block:23px 16px}.intro h1{font-size:clamp(1.85rem,4vw,3.25rem);margin:0;line-height:1.16}.intro p{margin:0;color:var(--muted)}
.columns{display:grid;grid-template-columns:minmax(265px,355px) minmax(0,1fr);gap:13px;align-items:start;padding-bottom:28px}.card{background:#fffefa;border:1px solid var(--edge);border-radius:14px;min-width:0}.plan{padding:13px}.plan-head,.viewer-head{display:flex;justify-content:space-between;align-items:center;gap:9px}.plan-head h2,.viewer-head h2{margin:0;font-size:1.32rem}.plan-head span{font-size:.81rem;background:#edf1f2;border-radius:12px;color:#39525e;padding:5px 8px;white-space:nowrap}
.map{background:#eef0ea;border-radius:9px;margin-top:11px;padding:3px;line-height:0}.map>svg{width:100%;height:auto;display:block}.shadow{fill:#c5d0ca;transform:translate(3px,4px)}.common{fill:#eeece0;stroke:#566469;stroke-width:2.3}
g[data-room]{cursor:pointer;color:#263f4c}.map g[data-room]>rect:first-child{fill:#faf6e8;stroke:#4f5f66;stroke-width:3}.map g[data-room="terrace"]>rect:first-child{fill:#e4e5d6}.map g[data-room="bath"]>rect:first-child,.map g[data-room="kitchen"]>rect:first-child{fill:#edf1ef}.map g.approx>rect:first-child{stroke-dasharray:6 3;stroke-width:2.5}
.map g[data-room]:hover>rect:first-child,.map g[data-room]:focus-visible>rect:first-child{fill:#d6e9ef;stroke:#1e607c}.map g[data-room][aria-pressed=true]>rect:first-child{fill:#c8e5f5;stroke:#165e83;stroke-width:4}.map text{pointer-events:none;font-size:19px;font-family:Tajawal,Tahoma,sans-serif;font-weight:bold;fill:currentColor;text-anchor:middle}.map .furniture{fill:none;stroke:#758485;stroke-width:1.5;pointer-events:none}.map .pattern{pointer-events:none}.map .door-light{stroke:#9bbfce;stroke-width:4;pointer-events:none}.map .interior{stroke:#b0b9b3;stroke-width:3.4;stroke-dasharray:7 5;pointer-events:none}.map-note{font-size:.82rem;color:var(--muted);line-height:1.4;margin:9px 0 8px}.outdoor{width:100%;color:var(--accent);font-weight:700}
.viewer{padding:12px}.viewer-head{padding-bottom:8px}.viewer-head .kicker{display:block;font-size:.79rem;color:#506671;font-weight:700}.viewer-head h2{margin-top:2px}.stage{position:relative;min-height:280px;height:min(59svh,670px);overflow:hidden;border-radius:9px;background:#252822;cursor:grab;touch-action:none;isolation:isolate}.stage:active{cursor:grabbing}.stage img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;user-select:none;-webkit-user-drag:none;display:block}.stage img.placed{inset:auto;left:50%;top:50%;max-width:none;max-height:none;object-fit:contain;transform:translate3d(-50%,-50%,0);pointer-events:none}.stage p{position:absolute;bottom:9px;right:10px;color:#fff;background:#18262add;border-radius:6px;margin:0;padding:6px 9px}.assist{display:flex;align-items:center;justify-content:space-between;gap:6px;color:var(--muted);font-size:.83rem;padding-top:7px}.angles{display:flex;gap:5px;overflow:auto;scrollbar-width:thin;padding:6px 1px 2px}.angles button{background:none;border:1px solid transparent;border-radius:7px;padding:2px;min-height:0;flex:0 0 clamp(62px,8vw,102px)}.angles button[aria-pressed=true]{border-color:#26749a;background:#e7f3fa}.angles img{display:block;width:100%;aspect-ratio:1.52;object-fit:cover;border-radius:4px}.angles button:hover{border-color:#abc6d4}#toast{position:fixed;bottom:14px;right:14px;background:#17394a;color:#fff;padding:8px 12px;border-radius:8px;z-index:3}#toast:empty{display:none}
@media(max-width:760px){.top{height:58px}.intro{display:block;padding-block:14px 9px}.intro p{margin-top:2px}.columns{grid-template-columns:1fr;gap:8px}.plan{padding:9px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px}.plan-head{grid-column:1/-1}.map{grid-column:1/-1;margin-top:6px}.map>svg{height:clamp(163px,44vw,245px)}.map-note{align-self:center;margin:6px 0;font-size:.79rem}.outdoor{width:auto;min-height:36px;padding-inline:7px;margin-top:4px;font-size:.80rem}.viewer{padding:8px}.stage{height:clamp(245px,53svh,460px);min-height:0}.viewer-head h2{font-size:1.18rem}.plan-head span{padding:3px 7px}.viewer-head .small{min-height:38px}}
[hidden]{display:none!important}.top{background:#fffefaab}.intro{padding-top:27px}.eyebrow{display:block;color:#186080;font-weight:700;font-size:.88rem;letter-spacing:.02em}.intro h1{font-size:clamp(2.2rem,6vw,4.1rem);line-height:1.08}.columns{display:block}.plan{display:block;max-width:760px;margin:auto;padding:clamp(12px,2.2vw,23px);border-color:#d1dbd9;box-shadow:0 15px 45px #1b3e4310}.map{background:#eff3f1;margin-top:12px;padding:5px;line-height:0}.map>svg{height:min(51svh,510px);min-height:230px}.map text{font-size:22px;fill:#173c4c;stroke:#fbfaf3;stroke-width:1.8px;paint-order:stroke fill}.map g[data-room]{outline:none}.map g[data-room]:focus-visible>rect:first-child{stroke:#0083b3;stroke-width:6}.map g[data-room]>rect:first-child{stroke:#40576a;stroke-width:3.4}.map .furniture{stroke:#627b85;stroke-width:1.7}.map-note{margin-block:11px 9px}.outdoor{width:100%}.viewer{margin:14px auto 0;max-width:1180px;box-shadow:0 13px 32px #18344610}.viewer-head h1{font-size:clamp(1.55rem,4vw,2.7rem);margin:0;line-height:1.08}.viewer-head #back{font-weight:700;color:#185b79}.viewer-head{padding-bottom:11px}.modebar{display:flex;align-items:center;gap:6px;margin-bottom:9px}.modebar button{border:1px solid #b8cbd2;background:#f6f8f7;border-radius:7px;padding:6px 12px}.modebar button[aria-pressed=true]{background:#193c4c;color:#fff;border-color:#193c4c}.modebar #tag{font-size:.82rem;color:#5f3f16;background:#f8edd6;border:1px solid #d9bd80;border-radius:8px;padding:6px 8px;margin-inline-start:auto}.stage{height:min(64svh,690px);min-height:270px;background:#1d2426}.stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}.stage p{z-index:1}.assist{font-size:.92rem;line-height:1.35}.assist output{white-space:nowrap}
@media(max-width:760px){.intro{padding-block:15px 9px}.intro h1{font-size:2.1rem}.plan{display:block}.map>svg{min-height:210px;height:44svh;max-height:410px}.stage{min-height:220px;height:min(60svh,520px)}.viewer-head{padding-bottom:8px}.modebar button{min-height:40px}.outdoor{font-size:.92rem}.map-note{font-size:.83rem}}
:root{color-scheme:light}body{background:radial-gradient(ellipse at 50% -12%,#fbfbf4 0%,#f3f3ee 52%,#edeeea 100%);color:#172f3a}.header-tools{display:flex;align-items:center;gap:8px}.sr-only{width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);position:absolute;white-space:nowrap}.language select{font:inherit;color:#244957;background:#fffefa;border:1px solid #c2ced0;border-radius:8px;min-height:42px;padding:4px 9px;font-weight:700}.top{background:transparent;border-color:#d9e0d9}.mark{background:#deebe8;color:#214f58}.intro{max-width:815px;margin:auto;padding-top:26px}.plan{max-width:815px;border:1px solid #d4dedd;box-shadow:0 16px 50px #19394112;background:#fffefa}.map{background:#ecf0ec;padding:7px}.map text{font-size:20px;stroke-width:1.6px}.map g[data-room="terrace"]>rect:first-child{fill:#dbe9e4;rx:0}.map g[data-room="terrace"]:hover>rect:first-child,.map g[data-room="terrace"]:focus-visible>rect:first-child{fill:#c6e2d9}.map .furniture{stroke:#577582}.modebar #tag{background:#edf3f2;border:1px solid #bed1d1;color:#254750}.modebar button[aria-pressed=true]{background:#194d5c;border-color:#194d5c}.viewer{max-width:1150px}.intro h1{color:#173843}
html[dir=ltr] body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif}html[dir=ltr] .map text{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px}html[dir=ltr] .intro h1{font-size:clamp(2.1rem,5.5vw,3.55rem);letter-spacing:-.035em}html[dir=ltr] .viewer-head h1{letter-spacing:-.025em}
@media(max-width:465px){.brand{font-size:.93rem}.header-tools{gap:5px}.header-tools .small,.language select{padding-inline:7px;font-size:.78rem;min-height:38px}.mark{width:33px;height:33px}.mark svg{width:18px;height:18px}.intro{padding-top:12px}.modebar #tag{font-size:.68rem;padding:3px 5px}.modebar button{font-size:.84rem;padding-inline:7px}.map>svg{height:clamp(230px,45svh,410px)}}
#sphere-gl{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
#language-picker{border:1px solid #cedcda;border-radius:22px;width:min(470px,calc(100% - 32px));max-height:calc(100dvh - 30px);padding:0;color:#163a43;background:#fffefa;box-shadow:0 22px 85px #06232657;overflow:auto}
#language-picker::backdrop{background:#11293291;backdrop-filter:blur(6px)}.pick-inner{padding:clamp(19px,6vw,32px);text-align:center;font-family:Tajawal,Tahoma,sans-serif}.pick-icon{display:grid;place-items:center;width:43px;height:43px;margin:0 auto 9px;border:1px solid #c8deda;border-radius:13px;background:#e7f1ef;color:#24555c;font-size:1.65rem}.pick-inner h2{margin:0;font-size:clamp(1.5rem,5.4vw,2.12rem);line-height:1.13}.pick-inner p{font:14px/1.45 system-ui,sans-serif;color:#4a6269;margin:10px 0 17px}.pick-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pick-options button{display:flex;justify-content:space-between;align-items:center;gap:5px;text-align:start;border:1px solid #ccdbd9;border-radius:10px;padding:10px;background:#f6faf8;color:#204652;min-height:53px;font-weight:700}.pick-options button[dir=ltr]{font-family:system-ui,-apple-system,sans-serif}.pick-options button:hover{background:#deeeea;border-color:#8dbbb2}.pick-options button bdi{color:#46616a;font:600 .7rem system-ui,sans-serif}

/* Real angles stay uncropped. Navigation sits outside the image. */
.modebar{flex-wrap:wrap}
.photo-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.photo-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;line-height:1;padding:0;border:1px solid #b8cbd2;background:#f6f8f7;border-radius:8px;font:24px system-ui}
.photo-controls button:hover:not(:disabled){background:#e3f0f7}
.photo-controls button:disabled{opacity:.36;cursor:default}
.photo-controls output{min-width:42px;text-align:center}
@media(max-width:465px){.assist{font-size:.82rem}.photo-controls{gap:4px}}
.stage[data-mode="photo"]{touch-action:pan-y}

/* Photo-grounded route and steady, unwarped photo navigation. */
#map-panel .map svg{max-height:690px;display:block;margin:auto;max-width:100%}
.map .trace{fill:none;stroke:#647f72;stroke-width:3;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:5 6}
.map .trace-dot{fill:#647f72}
.map .plan-divider{stroke:#9aa69d;stroke-width:1;stroke-dasharray:4 5}
.map .other-spaces-label{fill:#52685e;font:700 14px Tajawal,sans-serif}
.angle-label{margin:0 0 .55rem;color:#4f635a;font-size:.9rem;font-weight:700}
.stage #photo[hidden],.route[hidden]{display:none}
.stage img{object-fit:contain}

/* Architectural floor plan and interactive 3D viewer */
[hidden]{display:none!important}
#map-panel .map{background:#f8f7f2;aspect-ratio:auto;padding:clamp(5px,2.2vw,26px)}
#map-panel .map svg{width:100%;max-height:none;max-width:760px}
.map .plan-shadow{fill:#d8daca;opacity:.5}
.map .area{stroke:none;transition:fill .16s;pointer-events:all}
.map .floor-main{fill:#eee4d2}.map .floor-twin{fill:#f1e7db}.map .floor-passage{fill:#e4e6dd}
.map .floor-wet{fill:#e3ebe5}.map .floor-deck{fill:#d8e6df}
.map g[data-room]:hover .area,.map g[data-room]:focus .area{fill:#b8d0bf}
.map g[data-room] text{font-size:18px;font-weight:700;direction:auto;fill:#213e35;pointer-events:none}
.map .plan-furniture{pointer-events:none}.map .furniture{fill:#d5b899;stroke:#8d745a;stroke-width:1.3}
.map .cabinet{fill:#bd9978;stroke:#8c7053;stroke-width:1.45}.map .bedmark,.map .sofa{fill:#e0ceb6;stroke:#957b61;stroke-width:1.6}
.map .cushion,.map .bathmark{fill:#fff9ee;stroke:#8f8476;stroke-width:1.2}.map .bedcover{fill:#b4b592;stroke:#8f9475;stroke-width:1.1}
.map .plant{fill:#9ab39e;stroke:#648576;stroke-width:1.2}.map .corridor-axis{fill:none;stroke:#829c8c;stroke-width:1.75;stroke-dasharray:3 6}
.map .architect-walls{fill:none;stroke:#2e433b;stroke-width:5.7;stroke-linecap:square;stroke-linejoin:miter;pointer-events:none}
.map .architect-windows{fill:none;stroke:#82a697;stroke-width:4;pointer-events:none}
.map .door-swings,.map .plan-rail,.map .symbol,.map .entry-arrow{fill:none;stroke:#6f8478;stroke-width:1.5;pointer-events:none}
.tour-modes{display:flex;gap:.42rem;align-items:center;flex-wrap:wrap;margin:0 0 .75rem}
.tour-modes button,.walk-controls button{border:1px solid #cbd3ca;background:#fffdf8;color:#345447;border-radius:8px;min-height:42px;padding:0 .8rem;font:inherit;font-weight:700;cursor:pointer}
.tour-modes button[aria-pressed="true"]{background:#294c3e;color:#fff;border-color:#294c3e}
.tour-modes span,.model-hint{font-size:.88rem;color:#53675c}
.tour-modes span{margin-inline-start:.35rem}
.model-hint{margin:.75rem 0 .5rem}
.model-stage{position:relative;aspect-ratio:1.66;min-height:300px;max-height:69svh;background:#d5e3e7;border-radius:11px;isolation:isolate;overflow:hidden;touch-action:none;cursor:grab}
.model-stage:active{cursor:grabbing}.model-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.model-badge{position:absolute;inset-inline-end:12px;top:12px;font-weight:700;font-size:.8rem;color:#294c3e;border-radius:50px;background:#fffef2e8;padding:.25rem .65rem;pointer-events:none}
.walk-controls{position:absolute;display:flex;gap:5px;left:50%;bottom:11px;transform:translateX(-50%);border-radius:12px;padding:5px;background:#e3e5d9e6;max-width:98%}
.walk-controls button{font-size:1.12rem;min-width:44px;background:#fffef4;padding:0 9px}
@media(max-width:560px){.model-stage{min-height:max(260px,48svh);max-height:62svh;aspect-ratio:auto}.map g[data-room] text{font-size:22px}.tour-modes span{flex-basis:100%;margin:1px 0 0}}
