:root{--paper:#f5f2ec;--ink:#302d28;--muted:#81786e;--wood:#9a7552;--gold:#ddbc87;--line:#dcd5ca;--white:#fffefa}*{box-sizing:border-box}body{margin:0;background:#252923;font-family:Arial,Helvetica,sans-serif;color:var(--white)}button,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button{border:0}button:disabled{opacity:.45;cursor:wait}button,select,a{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}#tour-app{position:relative;height:100dvh;min-height:450px;overflow:hidden}#panorama{position:absolute;inset:0;background:#b4a797;outline:0}.scrim{position:absolute;left:0;right:0;pointer-events:none;z-index:1}.scrim.top{top:0;height:190px;background:linear-gradient(#151c1bcc,transparent)}.scrim.bottom{bottom:0;height:260px;background:linear-gradient(transparent,#141d1ae6)}.topbar{position:absolute;top:0;left:0;right:0;padding:27px 34px;display:flex;justify-content:space-between;align-items:center;z-index:4;pointer-events:none}.brand,.tools{pointer-events:auto}.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:600;display:block}.brand .eyebrow{color:#e1d4bf;font-size:9px;margin-bottom:7px}.brand a{font-family:Georgia,serif;font-size:32px;text-decoration:none;color:white;letter-spacing:-1px}.brand em{font-style:normal;color:var(--gold)}.tools{display:flex;gap:9px}.tools button{height:40px;background:#202a28a8;border:1px solid #ffffff3c;border-radius:22px;color:white;padding:0 15px;font-size:12px;backdrop-filter:blur(12px)}.tools button:hover{background:#35413cef}.tools button span{font-size:17px;margin-right:5px}.tools .icon{width:40px;padding:0;font-size:19px}.map-panel{position:absolute;right:34px;top:116px;width:284px;background:#f8f5eff7;color:var(--ink);border:1px solid #ffffff90;border-radius:14px;padding:15px;z-index:5;box-shadow:0 12px 45px #0003;backdrop-filter:blur(16px)}.map-heading{display:flex;justify-content:space-between;align-items:center;font-size:8px;font-weight:600;letter-spacing:.13em;margin-bottom:12px}.map-heading button{background:transparent;color:#756e63;font-size:22px;line-height:1;padding:0 2px}.floors{display:flex;background:#e9e3d9;border-radius:7px;padding:3px;gap:4px;margin-bottom:9px}.floors button{flex:1;color:#786e60;background:transparent;border-radius:5px;padding:8px;font-size:11px}.floors button[aria-pressed=true]{background:var(--white);color:var(--ink);box-shadow:0 1px 4px #0001}.floor-map{position:relative;width:100%;aspect-ratio:880/1050;background:#ece7de;border-radius:4px;overflow:hidden}.floor-map>img{width:100%;height:100%;object-fit:fill;display:block}#map-routes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#map-routes line{stroke:#d7ac62;stroke-width:5;stroke-dasharray:7 9;opacity:.8}#map-dots{position:absolute;inset:0}.map-point{position:absolute;transform:translate(-50%,-50%);width:24px;height:24px;border-radius:50%;padding:0;background:transparent;display:grid;place-items:center;z-index:1}.map-point::after{content:'';display:block;width:9px;height:9px;border-radius:50%;background:#ffffff;border:2px solid #69523d;box-shadow:0 1px 5px #0004}.map-point:hover::after{background:#e2b878;transform:scale(1.3)}.map-point.active{z-index:3}.map-point.active::after{width:14px;height:14px;background:#c79a5d;border:2px solid white;box-shadow:0 0 0 5px #caa97044}.map-point.active::before{content:'';position:absolute;width:40px;height:40px;clip-path:polygon(50% 50%,20% 0,80% 0);background:#e4bd72b5;transform:rotate(var(--heading,0deg))}.map-legend{display:flex;align-items:center;gap:5px;font-size:8px;color:#756b5f;margin:11px 0 12px}.active-dot,.plain-dot{width:7px;height:7px;border-radius:50%;background:#bf945a;display:inline-block}.plain-dot{margin-left:auto;background:white;border:1.5px solid #69523d}#room-select{width:100%;border:1px solid var(--line);border-radius:5px;font-size:11px;color:#4d463e;background:#fffdf8;padding:10px 8px}.location{position:absolute;bottom:110px;left:34px;z-index:3;max-width:calc(100% - 360px);pointer-events:none}.location .eyebrow{color:var(--gold);font-size:9px;margin-bottom:10px}.location h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-.03em;font-size:clamp(26px,3vw,43px);line-height:1.06;margin:0 0 9px}.location p{font-size:10px;color:#e0ddd3;margin:0;letter-spacing:.03em}.walking{position:absolute;left:34px;right:34px;bottom:44px;z-index:4;display:flex;gap:18px;align-items:center}.walking-label{font-size:8px;color:#d2cbbf;letter-spacing:.15em;white-space:nowrap}#connections{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:5px 3px}#connections button{white-space:nowrap;border:1px solid #ffffff50;border-radius:24px;padding:11px 16px;background:#f8f4eced;color:#3e372d;font-size:11px;box-shadow:0 3px 14px #0002}#connections button:hover{background:#e6c795}#connections button::after{content:' ↗';margin-left:9px;color:#947544}.gesture-hint{position:absolute;left:34px;bottom:13px;font-size:10px;margin:0;color:#d9d5ce;z-index:3;pointer-events:none}.tour-signature{position:absolute;right:34px;bottom:13px;font-size:8px;letter-spacing:.16em;color:#d8d1c4;z-index:3}.zoom-controls{position:absolute;left:34px;top:45%;z-index:3;display:flex;flex-direction:column;border-radius:25px;overflow:hidden;box-shadow:0 2px 15px #0002}.zoom-controls button{width:38px;height:38px;color:white;background:#1c2a24a3;backdrop-filter:blur(10px);font-size:22px}.zoom-controls button+button{border-top:1px solid #ffffff30}.hot-point{width:46px;height:46px;border-radius:50%;background:transparent}.hot-point button{width:42px;height:42px;border:2px solid white;background:#fffc;color:#70543b;border-radius:50%;box-shadow:0 5px 14px #0005;display:grid;place-items:center;padding:0;transform:rotateX(20deg);font-size:26px;line-height:1}.hot-point button:hover{background:#e8c387;transform:scale(1.13)}.hot-point .hot-label{position:absolute;top:48px;left:50%;transform:translateX(-50%);font-size:10px;padding:6px 9px;border-radius:4px;background:#253129d9;white-space:nowrap;pointer-events:none;opacity:0;color:white}.hot-point:hover .hot-label,.hot-point:focus-within .hot-label{opacity:1}.pnlm-about-msg{font-size:10px}.pnlm-load-box{display:none!important}.pnlm-panorama-info{display:none!important}#loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:12px;padding:15px 22px;background:#25302cdd;color:white;border-radius:8px;font-size:12px;z-index:7;pointer-events:none}.spinner{width:17px;height:17px;border:2px solid #ffffff44;border-top-color:#e5c590;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#error{position:absolute;z-index:10;top:40%;left:50%;transform:translateX(-50%);width:min(90%,420px);border-radius:12px;padding:24px;background:var(--paper);color:var(--ink);font-size:14px;box-shadow:0 10px 40px #0005}#error p{line-height:1.6;color:var(--muted);font-size:12px}#error button{padding:10px;background:#8e6b46;color:white;border-radius:5px;margin:3px}dialog{border:0;background:var(--paper);color:var(--ink);border-radius:16px;padding:32px;box-shadow:0 20px 100px #0007}dialog::backdrop{background:#121a17b8;backdrop-filter:blur(8px)}dialog h2{font-family:Georgia,serif;font-size:35px;font-weight:400;letter-spacing:-.035em;margin:8px 0 17px}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.dialog-header .eyebrow,dialog>.eyebrow{color:#9b7554;font-size:9px}.dialog-header button,.close{border:1px solid var(--line);color:#756b5f;background:transparent;font-size:25px;min-width:38px;height:38px;border-radius:50%}#gallery-dialog{width:min(1160px,94vw);height:90dvh;max-height:90dvh;position:relative}.gallery-tabs{display:flex;gap:7px;margin-bottom:23px}.gallery-tabs button{border-radius:20px;padding:10px 15px;font-size:11px;background:#e5ded3;color:#796f62}.gallery-tabs button[aria-pressed=true]{background:#5f6b5a;color:white}#gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px 18px}#gallery-grid figure{margin:0;min-width:0}#gallery-grid button{padding:0;display:block;width:100%;background:#e6e0d5;border-radius:5px;overflow:hidden}#gallery-grid img{width:100%;height:190px;object-fit:cover;display:block;transition:transform .25s}#gallery-grid button:hover img{transform:scale(1.03)}#gallery-grid figcaption{font-size:11px;line-height:1.5;padding-top:10px;color:#6e6255}#photo-view{position:absolute;inset:0;background:var(--paper);padding:25px;display:flex;flex-direction:column;gap:15px;z-index:2}#photo-back{align-self:flex-start;color:#715839;background:transparent;font-size:12px;padding:5px}#photo-image{flex:1;min-height:0;object-fit:contain;max-width:100%;width:100%}.photo-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}.photo-caption button{border-radius:50%;width:38px;height:38px;font-size:20px;background:#e7dece;color:#70563e}#help-dialog{max-width:500px;width:90vw;line-height:1.8;font-size:13px;padding:35px}#help-dialog h2{line-height:1.15}#help-dialog p{color:#6f665b}#help-dialog .close{float:right}.fineprint{font-size:10px;line-height:1.7;border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.primary{padding:12px 18px;background:#5f6b5a;border-radius:24px;color:white;font-size:12px;margin-top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-height:780px) and (min-width:701px){.map-panel{width:240px;top:104px;padding:11px}.floor-map{max-height:35vh;width:auto;aspect-ratio:880/1050;margin:auto}.map-legend{font-size:7px;margin:7px 0}.map-heading{margin-bottom:8px}#room-select{padding:8px}.map-panel .floors button{padding:6px}.map-legend .plain-dot{margin-left:8px}}
@media(max-width:700px){.topbar{padding:19px 17px;align-items:flex-start}.brand a{font-size:27px}.brand .eyebrow{font-size:7px;letter-spacing:.12em;margin-bottom:5px}.tools{gap:5px}.tools button{padding:0 10px;font-size:10px;height:35px}.tools button span{display:none}.tools .icon{width:33px;font-size:17px}.tools #fullscreen{display:none}.map-panel{right:15px;left:15px;top:93px;width:auto;padding:13px;max-height:calc(100dvh - 295px);overflow:auto}.floor-map{width:auto;height:min(32dvh,295px);margin:auto}.map-heading{margin-bottom:8px}.map-legend{max-width:280px;margin:8px auto}.floors{margin-bottom:6px}.floors button{padding:6px}.map-panel select{padding:8px}.zoom-controls{left:17px;top:42%}.zoom-controls button{width:35px;height:35px}.location{left:18px;bottom:124px;max-width:calc(100% - 36px)}.location h1{font-size:29px;max-width:340px}.location .eyebrow{font-size:8px}.location p{font-size:9px}.walking{left:15px;right:0;bottom:45px;display:block}.walking-label{font-size:7px;display:block;margin-left:4px;margin-bottom:4px}#connections{padding-right:15px}#connections button{font-size:10px;padding:10px 13px}.gesture-hint{left:18px;bottom:18px;font-size:8px}.tour-signature{display:none}#gallery-dialog{padding:22px 17px;width:96vw;max-width:96vw}dialog h2{font-size:26px}.dialog-header .eyebrow{font-size:7px}#gallery-grid{grid-template-columns:repeat(2,1fr);gap:16px 12px}#gallery-grid img{height:125px}#gallery-grid figcaption{font-size:10px}.gallery-tabs button{font-size:10px;padding:9px 12px}#photo-view{padding:15px}.photo-caption{font-size:11px}#help-dialog{padding:25px}.hot-point button{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Planta ampliada: controles seguem a paleta e os diálogos existentes. */
.map-enlarge{width:100%;padding:9px;margin-top:8px;border:1px solid #c8baa5;border-radius:6px;background:#fffdf8;color:#65503a;font-size:11px}.gallery-history{font-size:12px;color:#746a5e;line-height:1.5;margin:-5px 0 18px}
#plan-dialog{width:calc(100vw - 32px);max-width:1600px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:20px;overflow:hidden}#plan-dialog[open]{display:flex;flex-direction:column;gap:12px}.plan-header{flex:none}.plan-header h2{font-size:28px;margin:5px 0 0}.plan-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;flex:none}.plan-toolbar label{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.plan-toolbar input{accent-color:#5f6b5a;width:16px;height:16px}.plan-floors{width:200px;margin:0}.plan-floors button{height:34px;padding:6px 12px}.plan-zoom{display:flex;align-items:center;gap:6px;margin-left:auto}.plan-zoom button,.plan-footer button{height:36px;border:1px solid var(--line);background:var(--white);color:#65503a;border-radius:6px;padding:0 11px;font-size:12px}.plan-zoom #plan-plus,.plan-zoom #plan-minus{width:36px;padding:0;font-size:20px}#plan-scale{font-size:11px;min-width:38px;text-align:center}.plan-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}#plan-viewport{min-width:0;min-height:0;position:relative;background:#e9e3d8;border:1px solid var(--line);border-radius:8px;overflow:hidden;outline-offset:-4px}#plan-svg{display:block;width:100%;height:100%;touch-action:none;cursor:grab;user-select:none}#plan-svg:active{cursor:grabbing}.plan-instruction{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;padding:6px 10px;color:#695f50;background:#fffdf7e6;border-radius:20px;pointer-events:none}#plan-info{overflow:auto;padding:4px 8px 4px 0;min-width:0}#plan-info h3{font-family:Georgia,serif;font-size:22px;font-weight:400;margin:0 0 10px}#plan-legend{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:10px}.documentada{color:#17658c}.derivada{color:#26735d}.estimada{color:#956330}.plan-precision{font-size:10px;line-height:1.55;color:#756c60;margin:10px 0 15px}#plan-measure-list h4{font-size:11px;color:#70624e;margin:18px 0 8px}.measure-item{display:block;width:100%;text-align:left;padding:10px 11px;background:#fffcf5;border:1px solid #ddd4c5;border-radius:6px;margin:0 0 7px;color:#3f3b32}.measure-item:hover,.measure-item[aria-pressed=true]{border-color:#9e805b;background:#eee4d3}.measure-item strong{display:block;font-size:12px;margin-bottom:5px}.measure-item span{display:block;font-size:11px;line-height:1.6}.measure-item small{display:block;font-size:9px;color:#817567;line-height:1.45;margin-top:4px;overflow-wrap:anywhere}#plan-hidden-note{font-size:12px;line-height:1.6;color:#766b5c}.plan-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;border-top:1px solid var(--line);padding-top:10px}.plan-footer span{font-size:10px;color:#807366}.plan-footer button{white-space:nowrap}.plan-visit{cursor:pointer}.plan-visit:focus{outline:none}.plan-visit:focus circle,.plan-visit:hover circle{stroke:#1a6851;stroke-width:5}
@media(max-width:700px){.tools{gap:4px}.tools button{padding:0 8px}.tools .icon{width:29px}.brand a{font-size:25px}#plan-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:14px;gap:10px}#plan-dialog[open]{gap:10px}.plan-header h2{font-size:23px}.plan-header .eyebrow{font-size:8px}.plan-toolbar{gap:8px 12px}.plan-floors{width:100%}.plan-toolbar label{font-size:11px}.plan-zoom{margin-left:0;width:100%}.plan-zoom #plan-fit{margin-left:auto}.plan-body{display:flex;flex-direction:column;gap:8px}#plan-viewport{flex:1;min-height:220px}#plan-info{flex:none;max-height:160px;padding:4px 0}#plan-info h3{font-size:17px;margin-bottom:7px}#plan-legend{font-size:9px}.plan-precision{margin:7px 0}.plan-instruction{font-size:8px}.plan-footer{padding-top:8px}.plan-footer span{font-size:9px;max-width:60%}.plan-footer button{padding:0 9px;font-size:11px}}

.plan-instruction{display:none}

/* Minimapa compacto do passeio. */
.tour-hud{position:absolute;right:34px;top:96px;bottom:140px;width:284px;z-index:5;display:flex;flex-direction:column;gap:10px;pointer-events:none}

.tour-hud>.map-panel{position:static;width:100%;max-height:100%;min-height:0;flex:0 1 auto;overflow:auto;pointer-events:auto;padding:12px}
.tour-hud .floor-map{height:clamp(60px,calc(100dvh - 500px),300px);width:auto;max-width:100%;max-height:none;aspect-ratio:880/1050;margin:auto}
.tour-hud .map-heading{margin-bottom:8px}
.tour-hud .map-legend{margin:8px 0}
@media(max-height:780px) and (min-width:701px){.tour-hud{width:240px}}
@media(max-width:700px){.tour-hud{top:84px;left:15px;right:15px;bottom:205px;width:auto}.tour-hud .floor-map{height:clamp(60px,calc(100dvh - 550px),295px)}.tour-hud>.map-panel{padding:10px}}
@media(max-height:500px) and (min-width:701px){#tour-app{min-height:100dvh}.topbar{padding-top:14px;padding-bottom:14px}.tour-hud{top:78px;bottom:12px;width:240px;gap:8px}.tour-hud>.map-panel{padding:8px}.tour-hud .map-heading{margin-bottom:4px}.tour-hud .floor-map{height:60px}.tour-hud .map-enlarge{padding:5px;margin-top:5px}.tour-hud .map-legend{margin:5px 0}.tour-hud #room-select{padding:5px}.tour-hud .floors{margin-bottom:4px}}

/* Seletor de unidade: mesma paleta e controle do seletor de ambientes. */
.unit-panel{pointer-events:auto;flex:none;width:100%;padding:10px 12px;background:#f8f5eff7;border:1px solid #ffffff90;border-radius:14px;color:var(--ink);display:flex;align-items:center;gap:10px;box-shadow:0 5px 20px #0002}.unit-panel label{font-size:8px;letter-spacing:.12em}.unit-panel select{min-width:0;flex:1;width:100%;border:1px solid var(--line);border-radius:5px;font-size:11px;color:#4d463e;background:#fffdf8;padding:9px 8px}.tour-hud>.map-panel{flex:0 1 auto;max-height:calc(100% - 62px)}.tour-hud .floor-map{height:clamp(60px,calc(100dvh - 560px),280px)}@media(max-width:700px){.tour-hud .floor-map{height:clamp(60px,calc(100dvh - 610px),250px)}}

/* Conter plantas de proporções distintas sem esticar a imagem. */
.tour-hud .floor-map{width:min(100%,calc(clamp(60px,calc(100dvh - 560px),280px) * var(--map-ratio,.838095)));height:auto;max-height:none}@media(max-width:700px){.tour-hud .floor-map{width:min(100%,calc(clamp(60px,calc(100dvh - 610px),250px) * var(--map-ratio,.838095)));height:auto}}

/* Origem da paisagem: faixa própria abaixo dos gestos e da navegação. */
.exterior-credit{position:absolute;left:34px;right:34px;bottom:7px;z-index:3;display:flex;gap:12px;align-items:center;font-size:10px;line-height:15px;color:#eee9e0;pointer-events:none}.exterior-credit a{color:#fff;text-decoration:underline;text-underline-offset:2px;pointer-events:auto}.exterior-credit span{display:block}.gesture-hint,.tour-signature{bottom:33px}.walking{bottom:64px}.location{bottom:130px}
@media(max-width:700px){.exterior-credit{left:18px;right:18px;bottom:7px;display:block;font-size:9px;line-height:14px}.gesture-hint{bottom:42px}.walking{bottom:69px}.location{bottom:148px}}

/* Alvos de caminhada Roma: área de toque real também no breakpoint móvel. */
[data-unit="roma-305"] .hot-point button{width:44px;height:44px;min-width:44px;min-height:44px;transform:none}
[data-unit="roma-305"] .hot-point button:hover,[data-unit="roma-305"] .hot-point button:focus-visible{background:#e8c387;transform:none}
[data-unit="roma-305"] .hot-point:hover .hot-label,[data-unit="roma-305"] .hot-point:focus-within .hot-label{opacity:1}
