/* Commercial skin on top of style.css. Loaded second, so it wins ties. */
:root{color-scheme:light}
body{font-size:16px;color:#163c38}
button{min-height:44px;font-size:14px}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.cover{position:fixed;inset:0;background:linear-gradient(90deg,#082b29eb 0%,#082b29b0 34%,#082b2910 78%),url('photos/sala.jpg') center/cover;z-index:1;transition:opacity .45s}
.exploring .cover,.exploring .cover-caption{opacity:0;pointer-events:none}
.brand{background:#fffaf3}
.brand div>span{font-size:12px;letter-spacing:1.8px}
.brand-icon{width:44px;height:44px;font-size:14px}
.tools button{font-size:14px;background:#fffaf3}
.tools kbd{font-size:12px}

/* Intro */
#intro{background:none;box-shadow:none;left:6vw;top:23vh;padding:0 0 0 6px;margin-left:-6px;color:white;max-width:540px;max-height:72vh;overflow:auto}
#intro .eyebrow{color:#c8dace;font-size:12px}
#intro h1{font-size:clamp(38px,4.8vw,76px);line-height:1.04;margin:22px 0 24px;letter-spacing:-2px}
#intro p{font-size:17px;line-height:1.65;color:#e2eae5;max-width:420px}
#intro .model-note{font-size:12px;line-height:1.5;color:#c2d0c8;margin:20px 0 0;max-width:430px}
.features{display:flex;gap:0;flex-wrap:wrap;font-size:14px;margin:25px 0 30px}
.features span{padding-right:18px;margin-right:18px;border-right:1px solid #dbe6df66}
.features span:last-child{border:0}
.entry-actions{display:flex;flex-wrap:wrap;gap:10px}
.entry-actions button{font-size:15px;padding:16px 20px;border-radius:4px}
.entry-actions .primary{background:#d5ecdf;color:#123a32;min-width:240px;display:flex;justify-content:space-between;gap:20px}
.entry-actions #start{background:transparent;color:white;border:1px solid #ffffff77}
.entry-actions button:hover{filter:brightness(1.12)}
#load-detail{font-size:12px;color:#cfdbd2;margin-top:14px}
.intro-keys{font-size:12px;line-height:1.6;color:#c5d3cb;margin-top:16px}
.cover-caption{position:fixed;bottom:44px;right:40px;color:white;z-index:2;font-size:12px;letter-spacing:1.7px}

/* Bottom dock: room card, room chips and footer. On desktop the wrapper has no box
   and each child keeps its own fixed position; on phones it becomes a flex column. */
#dock{display:contents}
body:not(.exploring) #rooms,body:not(.exploring) footer,body:not(.exploring) #room-info{display:none}
#rooms{bottom:38px;max-width:calc(100vw - 48px);border-radius:8px;padding:6px;scroll-behavior:smooth}
#rooms button{font-size:14px;padding:10px 13px;min-height:44px;border-radius:4px}
.nav-label{font-size:12px}
footer{bottom:10px;font-size:12px;letter-spacing:0}

/* Room card */
#room-info{position:fixed;left:30px;bottom:122px;z-index:3;width:330px;background:#fffaf3f2;border-left:3px solid #214c40;padding:18px 20px;box-shadow:0 7px 35px #123a3215}
#room-info .eyebrow{font-size:12px;color:#50685e}
.room-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tour-mode{min-height:32px;padding:6px 10px;font-size:12px;background:#e5ece3;border-radius:4px;white-space:nowrap}
.room-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 6px}
#room-info h2{font-family:Georgia,serif;font-size:26px;font-weight:400;margin:0;line-height:1.15}
#tour-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
#tour-actions button{min-height:36px;width:36px;padding:0;background:#e5ece3;border-radius:4px;font-size:16px}
#tour-count{font-size:13px;min-width:38px;text-align:center;white-space:nowrap}
#tour-prev:disabled{cursor:default}
#room-info p{font-size:14px;line-height:1.5;color:#53665e;margin:0}

/* Map, help, toast, gallery, touch pad */
#map-panel{width:240px}
.map-title{font-size:12px;letter-spacing:1px}
.map-footer,.map-footer>span:last-child{font-size:12px}
#toast{font-size:14px}
#help{font-size:16px;max-height:75vh;overflow:auto;width:360px}
dialog{border:0;padding:28px;border-radius:10px;max-width:1040px;width:calc(100% - 36px);max-height:88dvh;background:#fffaf3;color:#163c38}
dialog::backdrop{background:#092c2be6;backdrop-filter:blur(5px)}
.gallery-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.gallery-header h2{font:36px Georgia,serif;margin:8px 0}
.gallery-header .eyebrow{font-size:12px}
.gallery-header button{padding:10px 15px;background:#e5ece3;border-radius:4px}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media (max-width:900px){.gallery{grid-template-columns:1fr 1fr}}
figure{margin:0}
figure img{width:100%;height:230px;object-fit:cover;background:#d8ded7;border-radius:4px}
figcaption{font-size:15px;margin-top:9px}
#touch-controls button{width:48px;height:48px;font-size:22px}
#touch-controls{bottom:130px;left:18px}

@media(max-width:900px){
 #room-info{width:290px;bottom:130px}
 #rooms{width:calc(100% - 32px);max-width:none}
 #rooms .nav-label{display:none}
 .tools button{padding:10px 12px}
 .brand div>span{display:none}
}

/* Phones in portrait */
@media(max-width:600px){
 header{inset:calc(12px + env(safe-area-inset-top)) 12px auto;gap:8px}
 .brand{padding:6px 9px;gap:6px}
 .brand strong{font-size:15px;letter-spacing:2px}
 .brand-icon{width:32px;height:32px;font-size:12px}
 .tools{gap:4px}
 .tools button{font-size:12px;padding:8px;min-width:44px}
 #fullscreen{display:none}
 .cover{background-image:linear-gradient(0deg,#082b29f5 5%,#082b29b8 65%,#082b2944),url('photos/sala.jpg')}
 #intro{inset:auto 24px calc(28px + env(safe-area-inset-bottom));max-height:calc(100dvh - 110px);max-width:none}
 #intro h1{font-size:45px;letter-spacing:-1px;margin:14px 0 18px}
 #intro p{font-size:16px;margin:0 0 18px}
 .features{margin:20px 0;font-size:13px;gap:6px}
 .features span{margin-right:5px;padding-right:10px}
 .entry-actions{display:grid}
 .entry-actions button{width:100%}
 #intro .model-note{margin-top:14px}
 .intro-keys,.cover-caption{display:none}
 #dock{display:flex;flex-direction:column;gap:8px;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:3}
 body:not(.exploring) #dock{display:none}
 #room-info,#rooms,footer{position:static;width:auto;max-width:none;transform:none;margin:0}
 #room-info{padding:12px 14px;max-height:36dvh;overflow:auto}
 #room-info h2{font-size:21px}
 .room-title{margin:6px 0 4px}
 #room-info p{font-size:13px;line-height:1.45}
 #rooms{padding:5px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 36px),transparent)}
 #rooms button{font-size:13px;padding:9px 12px}
 #rooms::after{content:'';flex:0 0 36px} /* lets the last chip scroll clear of the fade */
 footer{font-size:10px;justify-content:center;text-align:center;text-shadow:0 0 4px #fff,0 0 8px #fff}
 footer>span:first-child{display:none}
 #map-panel{top:calc(66px + env(safe-area-inset-top));right:12px;width:190px}
 .map-footer>span:last-child{display:none}
 .map-title{font-size:12px}
 #help{inset:calc(66px + env(safe-area-inset-top)) 12px auto;width:auto;max-height:calc(100dvh - 100px)}
 .gallery{grid-template-columns:1fr}
 dialog{padding:18px}
 .gallery-header h2{font-size:28px}
 .gallery-header .eyebrow{font-size:12px;letter-spacing:1px}
 figure img{height:240px}
 body.exploring #touch-controls{top:auto;left:auto;right:12px;bottom:calc(var(--dock-h,230px) + 24px + env(safe-area-inset-bottom))}
 #touch-controls button{width:50px;height:50px;background:#f9f8efd9}
 #toast{top:calc(66px + env(safe-area-inset-top));font-size:13px}
}

/* Phones in landscape: little height, so everything hugs the edges and the card stays small. */
@media(max-height:500px){
 header{inset:10px 12px auto;gap:8px}
 .brand{padding:6px 9px;gap:6px}
 .brand div>span{display:none}
 .brand strong{font-size:15px;letter-spacing:2px}
 .brand-icon{width:32px;height:32px;font-size:12px}
 .tools button{font-size:12px;padding:8px 10px}
 .tools kbd{display:none}
 #fullscreen{display:none}
 #intro{left:24px;right:auto;top:auto;bottom:16px;max-width:min(560px,calc(100vw - 48px));max-height:calc(100dvh - 72px);overflow:auto}
 #intro h1{font-size:30px;letter-spacing:-1px;margin:8px 0 10px}
 #intro p{font-size:14px;line-height:1.4;margin:0 0 10px}
 .features{margin:8px 0 12px;font-size:12px}
 .entry-actions{display:flex}
 .entry-actions button{width:auto;padding:10px 14px;font-size:14px}
 .entry-actions .primary{min-width:0}
 #intro .model-note,.intro-keys,.cover-caption{display:none}
 #load-detail{margin-top:8px}
 #dock{display:contents}
 body:not(.exploring) #dock{display:contents}
 #room-info,#rooms{position:fixed}
 #rooms{left:12px;right:12px;width:auto;transform:none;max-width:none;bottom:calc(8px + env(safe-area-inset-bottom));padding:4px;border-radius:8px;-webkit-mask-image:none;mask-image:none}
 #rooms .nav-label{display:none}
 #rooms button{font-size:12px;padding:8px 10px;min-height:38px}
 footer{display:none}
 #room-info{left:12px;right:auto;bottom:calc(64px + env(safe-area-inset-bottom));width:300px;max-height:calc(100dvh - 128px);overflow:auto;padding:10px 12px}
 #room-info h2{font-size:19px}
 .room-title{margin:4px 0}
 #room-info p{font-size:12px;line-height:1.4}
 body.exploring #touch-controls{top:auto;left:auto;right:12px;bottom:calc(64px + env(safe-area-inset-bottom))}
 #touch-controls button{width:42px;height:42px;font-size:18px;margin:2px;background:#f9f8efd9}
 #map-panel{top:58px;right:12px;width:180px;padding:10px}
 #help{top:58px;right:12px;left:auto;width:360px;max-height:calc(100dvh - 68px);overflow:auto;padding:14px 16px;font-size:13px;line-height:1.45}
 #help h2{font-size:20px;margin-bottom:6px}
 #help p{margin:6px 0}
 #help button{min-height:36px;padding:6px 14px;margin-top:4px}
 #toast{top:58px;font-size:13px}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
