/* Property-specific wiring only. Layout, typography and responsive navigation
   are provided by the frozen Floreasca style.css/premium.css/mobile.css. */
:root{--tour-hero-image:url('images/photo-40.jpeg')}
[hidden]{display:none!important}
.brand-mark{font-family:Georgia,serif;font-size:14px;letter-spacing:-1px;padding:0}
#scene-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#211e19}
.photo-mode #panorama{visibility:hidden}
.photo-mode .tool-group,.photo-mode #reset-view{display:none}
.hero-photo{transition:none}
.hero-note{font-size:10px!important;line-height:1.6!important;max-width:380px;margin-top:24px}
.header-actions{width:auto;max-width:none}
#scene-transition{display:none}
.dock-navigation{flex-wrap:wrap;justify-content:flex-end;gap:10px}
#focus-view{margin:0}
#photo-details{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;padding:8px 0 0;color:var(--cream);font-size:10px}
#photo-details svg{width:14px;height:14px}
#exit-focus{position:absolute;bottom:28px;right:6%;z-index:20;min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:24px;background:var(--glass);color:var(--cream);font-size:11px;backdrop-filter:blur(14px)}
.clean .header,.clean .tour-bottom,.clean .view-tools,.clean .disclosure{visibility:hidden;pointer-events:none}
.clean .vignette{opacity:0}
#loading{z-index:20}
#error{position:absolute;z-index:30;top:40%;left:50%;transform:translateX(-50%);background:#292620;padding:22px;max-width:90vw;border:1px solid #d3b88f}
#error button{margin:10px 5px 0;padding:12px}
.plan-section{flex-direction:column}
#tour-map{stroke:none}
#tour-map image{pointer-events:none}
#tour-map a{cursor:pointer}
#tour-map a .plan-pin-face{fill:#292620;stroke:#f4efe5;stroke-width:2;vector-effect:non-scaling-stroke}
#tour-map a .plan-pin-hit{fill:transparent;stroke:none;pointer-events:all}
#tour-map a text{fill:#fff;stroke:none;font-size:18px;font-weight:600;text-anchor:middle;pointer-events:none}
#tour-map a:hover .plan-pin-face,#tour-map a:focus .plan-pin-face,#tour-map a.current-room .plan-pin-face{fill:#8b6b3f}
#route-list button:disabled{cursor:default;opacity:.5}
#route-list button:disabled .room-card-bottom{grid-column:1/-1}
.room-card-bottom{display:flex;flex-direction:column;justify-content:center}
.plan-top .plan-zoom{display:block;min-height:36px;padding:6px 12px;border:1px solid #d9cebb;border-radius:18px;background:#eee8dc;color:var(--ink);font-size:10px}
.plan-viewport.enlarged{display:block;max-height:52svh;overflow:auto;width:100%}
.plan-viewport.enlarged #tour-map{width:150%;max-width:none}
#original-link{font-size:10px;text-decoration:underline;text-underline-offset:3px;color:#e2cfb0}
#photo-count{font-family:inherit;font-size:12px;letter-spacing:0}
.photo-detail-tools{display:flex;align-items:center;gap:16px}
#photo-viewport{width:100%;height:100%;display:flex;align-items:center;justify-content:center;min-height:0}
#real-photo{display:block;width:100%;max-width:100%;height:100%;object-fit:contain}
.photo-stage{position:relative}
.photo-stage .photo-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;background:#292620b8;color:var(--cream);border:1px solid var(--line)}
#photo-prev{left:16px}#photo-next{right:16px}
#photo-dialog.full .photo-return{position:absolute;top:18px;right:18px;z-index:4;background:#292620c9;color:var(--cream)}
#photo-dialog.full .panel-head{display:block;position:absolute;inset:0;z-index:4;pointer-events:none;border:0;background:none}
#photo-dialog.full .panel-head>div{display:none}
#photo-dialog.full .photo-return{pointer-events:auto}
#contact-dialog{width:min(480px,94vw)}
.contact-body{padding:0 30px 30px;font-size:14px;line-height:1.8}
@media(min-width:1001px){.dock-navigation{max-width:62%}.sequence-controls{gap:10px}.map-content{height:min(59svh,620px);overflow:hidden}.plan-section{height:100%;min-height:0}.plan-viewport{display:flex;align-items:center;min-height:0;flex:1;width:100%}#tour-map{max-height:100%;width:100%;height:auto}.plan-section p{flex:none}#route-list{max-height:100%;height:100%}}
@media(max-width:700px){.dock-navigation{justify-content:space-between;width:100%;gap:8px}.sequence-controls{margin-left:auto}.sequence-controls span{display:none}#current-level{display:none}.header-actions{width:auto;max-width:none}.hero-note{font-size:8px!important;max-width:300px}.brand-mark{font-size:12px}.photo-detail-tools{gap:8px;flex-wrap:wrap;justify-content:flex-end}.plan-viewport.enlarged{max-height:none}html #map-dialog #plan-note{display:block;font-size:8px;line-height:1.4;max-height:36px;overflow:auto;margin:0;padding:0 6px}html #map-dialog .plan-section{flex:1}#exit-focus{bottom:max(28px,env(safe-area-inset-bottom));right:16px}}
@media(orientation:landscape) and (max-height:500px){.hero-note{display:none}.dock-navigation{flex-wrap:nowrap}.sequence-controls{display:none}html #current-level{display:none}html #map-dialog #plan-note{display:none}.photo-detail-tools{gap:8px}}
/* The gallery has five rows; the reference's optional filter row is absent. */
.photo-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto}
.photo-dialog #real-photo{left:0;top:0;width:100%;height:100%;max-width:100%;transform:none;will-change:auto}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){html .photo-dialog[open]{grid-template-columns:minmax(0,1fr) min(230px,32vw);grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"stage head" "stage bar" "stage thumbs" "stage note"}html .photo-dialog .photo-note{grid-area:note}}
.photo-dialog.full[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"stage"}
.photo-dialog.full .photo-stage{grid-area:stage}
@media(max-width:700px){#focus-view{min-height:44px}#photo-dialog .photo-return span{display:none}}
/* Explicit bathroom access: the supplied old plan omits the ensuite partition. */
.plan-room-accesses{display:flex;width:100%;gap:8px;flex:none;flex-wrap:wrap}
.plan-room-access{flex:1;min-width:160px;min-height:48px;border:1px solid #cbbba1;border-radius:3px;background:#eee5d7;color:#292620;padding:10px 12px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:5px}
.plan-room-access b{font-size:12px;font-weight:500}.plan-room-access span{font-size:9px;color:#75634b}
.plan-room-access:hover,.plan-room-access:focus-visible{background:#e1cfb3}
@media(max-width:700px){.plan-room-accesses{gap:6px;padding:0 5px}.plan-room-access{min-width:0;min-height:46px;padding:7px 9px}.plan-room-access b{font-size:11px}.plan-room-access span{font-size:8px}}
@media(orientation:landscape) and (max-height:500px){.plan-room-accesses{position:absolute;right:16px;bottom:64px;width:190px;display:flex;flex-direction:column}.plan-room-access{min-height:40px;padding:6px 10px;background:#eee5d7ed}.plan-room-access b{font-size:10px}.plan-room-access span{font-size:8px}}
.door-hotspot .hotspot-label{opacity:1;transform:none}
.clean #hotspots{display:none}
@media(max-width:700px){.door-hotspot .hotspot-label{font-size:10px}.door-hotspot .disk{width:40px;height:40px}}

/* Balcony return stays visible independently of the viewing direction. */
.balcony-entry{position:absolute;z-index:6;top:104px;left:38px;display:flex;align-items:stretch;gap:8px;max-width:calc(100% - 76px)}
.balcony-entry button{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 17px;border:1px solid #d9c3a0;border-radius:26px;background:#f4efe5;color:#292620;text-align:left;font-size:12px;box-shadow:0 3px 16px #0003}
.balcony-entry small{display:block;margin-top:3px;font-size:9px;color:#685b49}
.balcony-entry svg{width:18px;height:18px;flex:none}
#balcony-enter-small{background:#292620ed;color:#f4efe5;font-size:11px}
.balcony-entry button:hover{background:#e2cfb0;color:#292620}
body.welcome .balcony-entry,body.clean .balcony-entry{display:none}
@media(max-width:700px){.balcony-entry{top:94px;left:18px;right:18px;max-width:none;gap:6px;flex-wrap:wrap}.balcony-entry button{min-height:46px;padding:10px 13px;font-size:11px}#balcony-enter-small{font-size:10px}.balcony-entry small{font-size:8px}}
@media(orientation:landscape) and (max-height:500px){.balcony-entry{top:72px;left:24px;max-width:calc(100% - 110px)}.balcony-entry button{min-height:44px;padding:8px 13px}}

.gallery-sources{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.gallery-sources button{min-height:36px;padding:7px 12px;border:1px solid #b6a78e;border-radius:20px;background:transparent;color:inherit;font-size:11px}.gallery-sources button[aria-pressed="true"]{background:#decaa9;color:#292620;border-color:#decaa9}.gallery-sources b{font-size:9px;margin-left:6px;font-weight:500}@media(max-width:700px){.gallery-sources{gap:5px;margin-top:8px}.gallery-sources button{font-size:10px;min-height:36px;padding:7px 10px}}


/* Door markers track the actual opening in the panorama. */
.door-hotspot{z-index:9!important;min-width:48px;min-height:48px;touch-action:manipulation}
.door-hotspot .disk{width:48px;height:48px;background:#f4efe5;color:#292620;box-shadow:0 2px 12px #0006;border:2px solid #fff}
.door-hotspot .hotspot-label{background:#292620ed;color:#fff;opacity:1;white-space:nowrap;font-size:11px;padding:6px 10px;border-radius:12px}
body.clean #hotspots{display:block;visibility:visible;pointer-events:auto}
#balcony-entry,#kitchen-entry{display:none!important}
@media(max-width:700px){.door-hotspot .disk{width:44px;height:44px}.door-hotspot .hotspot-label{font-size:10px}html .route-top .connections{flex-wrap:wrap;overflow:visible}}
@media(max-width:700px){html .route-top .connections{flex-wrap:nowrap;overflow-x:auto}html .route-top .connections button{min-height:44px}}
#tour-map .yard-label{font-size:28px;fill:#292620;text-anchor:start;font-weight:500}

/* Nearby door hints remain at the edge until the door enters the viewport. */
.door-hotspot[data-edge="left"] .disk svg{transform:rotate(-90deg)}
.door-hotspot[data-edge="right"] .disk svg{transform:rotate(90deg)}
.door-hotspot[data-edge="left"] .hotspot-label{transform:translateX(22px)}
.door-hotspot[data-edge="right"] .hotspot-label{transform:translateX(-22px)}
