/* Shared airport typography and controls, with the model remaining fully interactive. */
body { font-family: Montserrat, Arial, sans-serif; --ink:#07376d; --accent:#087cff; }
body button, body input { font-family:inherit; }
body button:focus-visible, body a:focus-visible { outline:3px solid #087cff; outline-offset:3px; }
body #viewport canvas { cursor:grab; }
body #viewport canvas:active { cursor:grabbing; }
body .floor-controls, body.embed-preview .floor-controls {
    position:fixed; left:calc(var(--sidebar) + 16px); top:14px; right:auto;
    transform:none; display:flex; flex-direction:row; align-items:center; gap:6px;
    padding:0 0 5px; margin:0; border:0; border-radius:0; background:transparent;
    max-width:calc(100% - var(--sidebar) - 272px); overflow-x:auto; scrollbar-width:none;
    box-shadow:none; z-index:7;
}
body.embed-preview .floor-controls { left:16px; max-width:calc(100% - 184px); }
body .floor-controls::-webkit-scrollbar { display:none; }
body .floor-controls > span { display:none; }
body .floor-controls button, body.embed-preview .floor-controls button {
    flex-shrink:0; width:auto; min-width:62px; height:38px; padding:0 13px;
    background:#fff; color:#07376d; border:1px solid #dbe7ed; border-radius:12px;
    font-size:11px; font-weight:600; white-space:nowrap; box-shadow:0 2px 8px #0c34530c;
}
body .floor-controls button::after { content:' этаж'; }
body .floor-controls [data-floor='0'], body.embed-preview .floor-controls [data-floor='0'] {
    display:block!important; order:0; min-width:108px; font-size:0;
}
body .floor-controls [data-floor='0'] svg { display:none; }
body .floor-controls [data-floor='0']::after, body.embed-preview .floor-controls [data-floor='0']::after { content:'Общий вид'; font-size:11px; }
body .floor-controls [data-floor='1'] { order:1; }
body .floor-controls [data-floor='2'] { order:2; }
body .floor-controls [data-floor='3'] { order:3; }
body .floor-controls [data-floor='4'] { order:4; }
body .floor-controls [data-floor='5'] { order:5; }
body .floor-controls button.active, body.embed-preview .floor-controls button.active { color:white; background:#0057af; border-color:#0057af; }
body .view-controls, body.embed-preview > .view-controls {
    display:flex!important; align-items:center; left:auto; right:14px; top:14px; bottom:auto;
    transform:none; gap:6px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none;
}
body .view-controls button {
    width:38px; height:38px; padding:9px; border:1px solid #dbe7ed; border-radius:12px;
    background:#fff; color:#07376d; font-size:12px; box-shadow:0 2px 8px #0c34530c;
}
body .view-controls #mode3d, body .view-controls #plan { width:48px; }
body .view-controls #mode3d { order:0; }
body .view-controls #plan { order:1; }
body .view-controls #explode { order:2; }
body .view-controls #panorama { order:3; }
body .view-controls #info { order:4; }
body .view-controls #fullscreen { order:5; }
body .view-controls #exterior, body.embed-preview .view-controls :is(#explode,#panorama,#info) { display:none; }
body .view-controls button.active { color:white; background:#0057af; border-color:#0057af; }
body .view-controls #fullscreen img { width:20px; height:20px; display:block; }
body .map-tools, body.embed-preview .map-tools {
    top:auto; right:14px; bottom:16px; padding:5px; gap:4px;
    border:1px solid #dbe7ed; background:#fff; border-radius:16px; box-shadow:0 4px 16px #12385818;
}
body .map-tools button { width:34px; height:34px; border-radius:10px; color:#07376d; }
body .map-tools #minus { order:1; }
body .map-tools #plus { order:2; }
body .searchbox, body .chips button { border-radius:12px; }
body .place { border-radius:12px; }
body .source { display:flex!important; font-size:10px; }
body.embed-preview .source { display:none!important; }
body .floor-place.always-visible { border-radius:10px; }
body .floor-place .map-place-name { border-radius:9px; font-size:11px; }
body .floor-walk { border-radius:14px; }
body #exterior-labels {
    position:fixed; inset:0 0 0 var(--sidebar); pointer-events:none; z-index:4; overflow:hidden;
}
body.embed-preview #exterior-labels { inset:0; }
.exterior-pin {
    position:absolute; display:flex; align-items:center; gap:7px; min-height:36px;
    padding:6px 12px 6px 7px; border:1px solid #e1eaf2; border-radius:22px;
    background:#fff; color:#07376d; font-size:12px; font-weight:600; white-space:nowrap;
    box-shadow:0 3px 14px #163d5e28; transform:translate(-50%,calc(-100% - 32px)); pointer-events:auto;
}
.exterior-pin::after { content:''; position:absolute; top:100%; left:var(--stem-x,50%); width:1px; height:29px; background:#fff; pointer-events:none; }
.exterior-pin::before { content:''; position:absolute; top:calc(100% + 27px); left:calc(var(--stem-x,50%) - 4px); width:7px; height:7px; border:1px solid #fff; border-radius:50%; background:#087cff; pointer-events:none; }
.exterior-pin img { width:24px; height:24px; filter:invert(32%) sepia(92%) saturate(2482%) hue-rotate(199deg) brightness(98%) contrast(104%); }
.exterior-pin:hover { background:#eef7ff; border-color:#087cff; }
.exterior-pin[hidden], #exterior-detail[hidden] { display:none; }
body #exterior-detail {
    position:fixed; left:calc(var(--sidebar) + 16px); bottom:16px; z-index:8;
    width:280px; max-width:calc(100% - var(--sidebar) - 150px); padding:20px;
    background:white; border:1px solid #dae7ee; border-radius:20px; box-shadow:0 12px 36px #173d5e24;
}
body.embed-preview #exterior-detail { left:16px; max-width:calc(100% - 150px); }
#exterior-detail h2 { font-size:16px; font-weight:600; margin:0 24px 8px 0; }
#exterior-detail p { font-size:12px; line-height:1.6; margin:0 0 14px; color:#516d83; }
#closeExteriorDetail { position:absolute; right:10px; top:8px; color:#526b82; background:transparent; font-size:24px; }
#exteriorAction { background:#0065c7; color:#fff; padding:11px 15px; border-radius:12px; font-size:12px; }
body.is-panorama #exterior-labels, body.is-panorama #exterior-detail { display:none; }
@media(max-width:850px) {
    body #exterior-labels { inset:0 0 35vh; }
    body .map-tools { bottom:calc(35vh + 12px); }
    body #exterior-detail { bottom:calc(35vh + 12px); max-width:calc(100% - 150px); }
}
@media(max-width:700px) {
    body .floor-controls, body.embed-preview .floor-controls { left:10px; right:10px; top:10px; max-width:calc(100% - 20px); }
    body .floor-controls button, body.embed-preview .floor-controls button { height:36px; min-width:60px; padding:0 11px; font-size:10px; border-radius:11px; }
    body .floor-controls [data-floor='0'], body.embed-preview .floor-controls [data-floor='0'] { min-width:99px; }
    body .floor-controls [data-floor='0']::after, body.embed-preview .floor-controls [data-floor='0']::after { font-size:10px; }
    body .view-controls, body.embed-preview > .view-controls { top:57px; right:10px; gap:5px; }
    body .view-controls button { height:34px; width:34px; border-radius:11px; padding:7px; }
    body .view-controls #mode3d, body .view-controls #plan { width:42px; }
    body .map-tools, body.embed-preview .map-tools { right:10px; }
    body.embed-preview .map-tools { top:57px; bottom:auto; left:10px; right:auto; padding:2px; gap:0; border-radius:12px; }
    body.embed-preview .map-tools button { width:30px; height:28px; }
    .exterior-pin { font-size:10px; gap:4px; padding:5px 9px 5px 6px; min-height:30px; }
    .exterior-pin img { width:20px; height:20px; }
    body #exterior-detail, body.embed-preview #exterior-detail { left:10px; width:calc(100% - 20px); max-width:none; bottom:calc(35vh + 58px); padding:16px; }
    body.embed-preview #exterior-detail { bottom:64px; }
}

/* Floor navigation stays inside the photographic tour, including mobile. */
body .tour-floor-controls{position:fixed;z-index:9;top:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:5px;border:1px solid #ffffff66;border-radius:14px;background:#fffffff0;box-shadow:0 4px 18px #102d4b26;max-width:calc(100% - 32px)}
body .tour-floor-controls[hidden]{display:none!important}
body .tour-floor-controls button{border:0;border-radius:9px;background:transparent;color:#07376d;padding:9px 13px;line-height:1.2;font-family:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;min-height:36px}
body .tour-floor-controls button.active{background:#0057af;color:#fff;box-shadow:0 2px 5px #0057af30}
body .tour-floor-controls button:hover:not(.active){background:#e6f2fb}
body.is-panorama .view-controls button:not(#fullscreen){display:none!important}
@media(max-width:600px){body .tour-floor-controls{top:68px;gap:3px;padding:4px}body .tour-floor-controls button{padding:9px 11px;font-size:11px}}
