:root {
    --vt-bg-ambient: radial-gradient(circle at 50% 0%, #f8fafc 0%, #e2e8f0 100%);

    /* Frosted Dark Glass Tokens */
    --vt-glass-bg: rgba(20, 25, 35, 0.20);
    --vt-glass-bg-hover: rgba(20, 25, 35, 0.45);
    --vt-glass-blur: blur(20px) saturate(160%);

    --vt-glass-border: rgba(255, 255, 255, 0.45);
    --vt-shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.5);

    --vt-text-main: #ffffff;
    --vt-text-blue: #002366;
    --vt-text-dark: #0f172a;
    --vt-text-muted: rgba(255, 255, 255, 0.82);

    --vt-radius-pill: 999px;
    --vt-radius-m: 20px;
    --vt-radius-l: 28px;
    --vt-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Fluid spacing used by overlays */
    --vt-gap: clamp(10px, 2vw, 24px);

    /* Type scale (16px root): sizes grow slightly with the screen, never below 13px for body text */
    --vt-fs-title: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
    /* placard title: 16 - 20px */
    --vt-fs-body: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
    /* placard text: 13 - 15px */
    --vt-fs-ui: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9rem);
    /* tabs, dropdown: 13 - 14.4px */
    --vt-fs-small: 0.75rem;
    /* labels, captions: 12px */
}

/* The hidden attribute must win over the display values set below */
.vt-wrap [hidden] {
    display: none !important;
}

/* ---------- OUTER CONTAINER ---------- */
.vt-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    padding: clamp(20px, 4vw, 48px) clamp(14px, 5vw, 64px) clamp(32px, 6vw, 64px);
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.vt-wrap *,
.vt-wrap *::before,
.vt-wrap *::after {
    box-sizing: border-box;
}

/* ---------- BUILDING TABS ---------- */
.vt-building-tabs {
    width: fit-content;
    max-width: min(100%, 1400px);
    margin: 0 auto 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-pill);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vt-building-tabs::-webkit-scrollbar {
    display: none;
}

.vt-building-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-family: inherit;
    font-size: var(--vt-fs-ui);
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: var(--vt-radius-pill);
    padding: 10px clamp(14px, 3vw, 24px);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--vt-transition);
}

.vt-building-tabs button:hover {
    color: var(--vt-text-blue);
    background: rgba(255, 255, 255, 0.8);
}

.vt-building-tabs button.active {
    color: #ffffff;
    background: var(--vt-text-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- FLOOR TABS ---------- */
.vt-floor-tabs {
    max-width: min(100%, 1400px);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    justify-content: safe center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 4px 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vt-floor-tabs::-webkit-scrollbar {
    display: none;
}

.vt-floor-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-family: inherit;
    font-size: calc(var(--vt-fs-ui) * 0.95);
    font-weight: 600;
    color: #475569;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 35, 102, 0.18);
    border-radius: var(--vt-radius-pill);
    padding: 7px clamp(12px, 2.5vw, 18px);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--vt-transition);
}

.vt-floor-tabs button:hover {
    color: var(--vt-text-blue);
    background: #ffffff;
    border-color: rgba(0, 35, 102, 0.4);
}

.vt-floor-tabs button.active {
    color: var(--vt-text-blue);
    background: rgb(var(--rgb-gold, 212, 175, 55));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Keyboard focus */
.vt-building-tabs button:focus-visible,
.vt-floor-tabs button:focus-visible,
.vt-room-dropdown:focus-visible,
.vt-fullscreen-btn:focus-visible,
.vt-close-btn:focus-visible,
.vt-nav-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--vt-text-blue);
}

/* ---------- VIEWER FRAME ---------- */
.vt-main {
    max-width: 1400px;
    margin: 0 auto;
}

.vt-viewer-col {
    width: 100%;
    margin: 0 auto;
}

.vt-viewer-frame {
    position: relative;
    background: #0f172a;
    border-radius: var(--vt-radius-l);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 82vh;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--vt-glass-border);
}

#viewer {
    width: 100%;
    height: 100%;
}

/* Loading spinner (toggled with .is-loading from the script) */
.vt-viewer-frame::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    animation: vt-spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 6;
}

.vt-viewer-frame.is-loading::after {
    opacity: 1;
}

@keyframes vt-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fullscreen applied to the whole frame so overlays stay visible */
.vt-viewer-frame:fullscreen,
.vt-viewer-frame:-webkit-full-screen {
    aspect-ratio: auto;
    max-height: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: 0;
}

/* ---------- INFO PLACARD (TOP LEFT) ---------- */
.vt-placard {
    position: absolute;
    left: var(--vt-gap);
    top: var(--vt-gap);
    z-index: 10;
    width: clamp(240px, 30vw, 360px);
    max-width: calc(100% - 2 * var(--vt-gap));
    max-height: 45%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    padding: clamp(14px, 2vw, 24px);
    background: var(--vt-glass-bg);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-m);
    color: var(--vt-text-main);
    box-shadow: var(--vt-shadow-glass);
    pointer-events: auto;
}

/* No empty glass box when there is nothing to show */
.vt-placard:has(.vt-placard-title:empty) {
    display: none;
}

.vt-placard-title {
    font-size: var(--vt-fs-title);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
}

.vt-placard-desc {
    font-size: var(--vt-fs-body);
    line-height: 1.5;
    margin: 0;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
}

.vt-placard-desc:empty {
    display: none;
}

/* ---------- TOP RIGHT CONTROLS ---------- */
.vt-top-controls {
    position: absolute;
    top: var(--vt-gap);
    right: var(--vt-gap);
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 50%;
}

.vt-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.vt-room-dropdown {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    background: var(--vt-glass-bg);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-pill);
    padding: 10px 42px 10px 24px;
    color: var(--vt-text-main);
    font-size: var(--vt-fs-ui);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--vt-shadow-glass);
    outline: none;
    transition: var(--vt-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-room-dropdown:hover {
    background: var(--vt-glass-bg-hover);
}

.vt-room-dropdown option,
.vt-room-dropdown optgroup {
    background: #1e293b;
    color: #ffffff;
}

.vt-room-dropdown optgroup {
    font-style: normal;
    font-weight: 700;
}

.vt-dropdown-arrow {
    position: absolute;
    right: 18px;
    pointer-events: none;
    color: var(--vt-text-main);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-fullscreen-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--vt-glass-border);
    background: var(--vt-glass-bg);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    color: var(--vt-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--vt-shadow-glass);
    transition: var(--vt-transition);
}

.vt-fullscreen-btn:hover {
    background: var(--vt-glass-bg-hover);
    transform: scale(1.06);
}

.vt-fullscreen-btn i {
    font-size: 1rem;
}

/* ---------- ZOOM SLIDER (LOWER LEFT) ---------- */
.vt-zoom-control {
    position: absolute;
    left: var(--vt-gap);
    bottom: calc(var(--vt-gap) + 8px);
    z-index: 10;
    width: 48px;
    height: clamp(140px, 28%, 220px);
    background: var(--vt-glass-bg);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-pill);
    box-shadow: var(--vt-shadow-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}

.vt-zoom-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--vt-text-main);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.vt-slider-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.vt-zoom-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    outline: none;
    transform: rotate(-90deg);
    cursor: pointer;
}

.vt-zoom-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.vt-zoom-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

/* ---------- NAV ARROWS ---------- */
.vt-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--vt-glass-border);
    background: var(--vt-glass-bg);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    color: var(--vt-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--vt-transition);
    box-shadow: var(--vt-shadow-glass);
}

.vt-nav-btn:hover {
    background: var(--vt-glass-bg-hover);
    transform: translateY(-50%) scale(1.08);
}

.vt-nav-btn i {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vt-text-main);
}

.vt-nav-prev {
    left: 20px;
}

.vt-nav-next {
    right: 20px;
}

/* ---------- FILMSTRIP ---------- */
.vt-filmstrip {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-m);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.vt-filmstrip::-webkit-scrollbar {
    height: 6px;
}

.vt-filmstrip::-webkit-scrollbar-track {
    background: transparent;
}

.vt-filmstrip::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: var(--vt-radius-pill);
}

.vt-filmstrip::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.4);
}

.vt-filmstrip-thumb {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: clamp(88px, 14vw, 120px);
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--vt-transition);
}

.vt-filmstrip-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.vt-filmstrip-thumb.active {
    border-color: var(--vt-text-dark);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vt-filmstrip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vt-filmstrip-thumb span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 3px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ---------- EMPTY STATE ---------- */
.vt-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: absolute;
    inset: 0;
    padding: 16px;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    color: #94a3b8;
    z-index: 20;
}

.vt-viewer-frame.is-empty .vt-empty-state {
    display: flex;
}

.vt-viewer-frame.is-empty #viewer,
.vt-viewer-frame.is-empty .vt-top-controls,
.vt-viewer-frame.is-empty .vt-zoom-control,
.vt-viewer-frame.is-empty .vt-nav-btn,
.vt-viewer-frame.is-empty .vt-placard {
    visibility: hidden;
}

/* =====================================================
   FULLSCREEN CLOSE BUTTON
   Only visible while the frame is in fullscreen
   ===================================================== */
.vt-close-btn {
    display: none;
    position: absolute;
    top: var(--vt-gap);
    right: var(--vt-gap);
    z-index: 12;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--vt-glass-border);
    background: var(--vt-glass-bg-hover);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    color: var(--vt-text-main);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--vt-shadow-glass);
    transition: var(--vt-transition);
}

.vt-close-btn:hover {
    background: rgba(220, 38, 38, 0.75);
    transform: scale(1.06);
}

.vt-close-btn i {
    font-size: 1.1rem;
}

/* Fallback for browsers without element fullscreen (e.g. iPhone Safari) */
.vt-viewer-frame.is-pseudo-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    border: 0;
}

.vt-viewer-frame:fullscreen .vt-close-btn,
.vt-viewer-frame:-webkit-full-screen .vt-close-btn,
.vt-viewer-frame.is-pseudo-fullscreen .vt-close-btn {
    display: flex;
}

/* Close button replaces the fullscreen toggle while fullscreen */
.vt-viewer-frame:fullscreen .vt-fullscreen-btn,
.vt-viewer-frame:-webkit-full-screen .vt-fullscreen-btn,
.vt-viewer-frame.is-pseudo-fullscreen .vt-fullscreen-btn {
    display: none;
}

/* Keep the room dropdown clear of the close button */
.vt-viewer-frame:fullscreen .vt-top-controls,
.vt-viewer-frame:-webkit-full-screen .vt-top-controls,
.vt-viewer-frame.is-pseudo-fullscreen .vt-top-controls {
    right: calc(var(--vt-gap) + 56px);
}

/* =====================================================
   HERO HEADER
   ===================================================== */
.vt-hero {
    padding: 0 4px;
}

.vt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vt-text-blue);
    background: rgba(var(--rgb-gold, 212, 175, 55), 0.25);
    border: 1px solid rgba(var(--rgb-gold, 212, 175, 55), 0.7);
    border-radius: var(--vt-radius-pill);
    margin-bottom: 14px;
}

.vt-hero-title {
    font-size: clamp(1.75rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--vt-text-dark);
    margin: 0;
}

.vt-hero-title span {
    display: inline-block;
    padding-bottom: 0.08em;
    /* keeps descenders from being clipped by the gradient text */
    background: linear-gradient(90deg, #002366 0%, #1d4ed8 55%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.vt-hero-line {
    width: 72px;
    height: 4px;
    margin: 16px auto;
    border-radius: var(--vt-radius-pill);
    background: linear-gradient(90deg, #002366, rgb(var(--rgb-gold, 212, 175, 55)));
}

.vt-hero-sub {
    max-width: 620px;
    margin: 0 auto;
    font-size: clamp(0.92rem, 2.4vw, 1.1rem);
    line-height: 1.6;
    color: #475569;
}

.vt-hero-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 18px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.vt-hero-steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--vt-radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vt-hero-steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    color: #fff;
    background: var(--vt-text-blue);
    border-radius: 50%;
}

.vt-hero-steps>i {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* =====================================================
   RESPONSIVE
   Kept last so it can override the base rules.
   Breakpoints: 1920+ / 1600+ / 1200- / 900- / 576- / 380- / 320-
   plus short-height and landscape-phone rules.
   ===================================================== */

/* Comfortable touch targets for every size */
.vt-building-tabs button {
    min-height: 40px;
}

.vt-floor-tabs button {
    min-height: 36px;
}

.vt-map {
    display: block;
    width: 100%;
    height: clamp(260px, 40vh, 420px);
    border: 0;
}

/* Touch devices: no sticky hover "zoom" effects */
@media (hover: none) {

    .vt-fullscreen-btn:hover,
    .vt-close-btn:hover,
    .vt-filmstrip-thumb:hover {
        transform: none;
    }

    .vt-nav-btn:hover {
        transform: translateY(-50%);
    }
}

/* ---------- Ultra-wide / 4K ---------- */
@media (min-width: 1600px) {

    .vt-main,
    .vt-building-tabs,
    .vt-floor-tabs {
        max-width: min(100%, 1500px);
    }
}

@media (min-width: 1920px) {

    .vt-main,
    .vt-building-tabs,
    .vt-floor-tabs {
        max-width: min(100%, 1720px);
    }

    .vt-placard {
        width: 400px;
    }

    .vt-placard-title {
        font-size: 1.4rem;
    }

    .vt-placard-desc {
        font-size: 1rem;
    }

    .vt-room-dropdown {
        font-size: 1rem;
    }
}

/* ---------- Small laptops ---------- */
@media (max-width: 1199px) {
    .vt-placard {
        width: clamp(220px, 34vw, 320px);
    }

    .vt-room-dropdown {
        padding: 9px 38px 9px 18px;
    }
}

/* ---------- Short desktop windows: free up room for the viewer ---------- */
@media (max-height: 560px) {
    .vt-zoom-control {
        display: none;
    }
}

/* ---------- Tablets portrait and below: overlays re-arranged ----------
   Controls span the top, the info placard docks at the bottom, and the zoom
   slider is hidden (pinch-to-zoom works natively on touch screens). */
@media (max-width: 900px) {
    .vt-building-tabs {
        margin-bottom: 12px;
    }

    .vt-floor-tabs {
        margin-bottom: 16px;
    }

    .vt-viewer-frame {
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }

    .vt-top-controls {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
        gap: 8px;
    }

    .vt-fullscreen-btn {
        width: 40px;
        height: 40px;
    }

    .vt-placard {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        max-height: 40%;
        overflow: hidden;
        padding: 10px 14px;
        border-radius: 16px;
        pointer-events: none;
        /* don't block panorama dragging */
    }

    .vt-placard-title {
        font-size: 1rem;
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .vt-placard-desc {
        font-size: 0.8125rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .vt-zoom-control {
        display: none;
    }

    .vt-nav-btn {
        width: 40px;
        height: 40px;
    }

    .vt-nav-prev {
        left: 10px;
    }

    .vt-nav-next {
        right: 10px;
    }

    .vt-filmstrip {
        margin-top: 12px;
        padding: 10px;
        gap: 10px;
    }

    .vt-close-btn {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .vt-viewer-frame:fullscreen .vt-top-controls,
    .vt-viewer-frame:-webkit-full-screen .vt-top-controls,
    .vt-viewer-frame.is-pseudo-fullscreen .vt-top-controls {
        right: 62px;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 576px) {
    .vt-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .vt-viewer-frame {
        aspect-ratio: 3 / 4;
        max-height: 75vh;
        max-height: 75dvh;
        border-radius: 18px;
    }

    .vt-room-dropdown {
        padding: 8px 32px 8px 14px;
    }

    .vt-dropdown-arrow {
        right: 14px;
    }

    .vt-nav-btn {
        top: 42%;
    }

    .vt-building-tabs {
        padding: 4px;
    }

    .vt-building-tabs button {
        padding: 8px 14px;
        min-height: 38px;
    }

    .vt-hero-steps>i {
        display: none;
    }

    .vt-hero-steps span {
        font-size: 0.78rem;
    }

    .vt-hero-badge {
        font-size: 0.68rem;
        padding: 5px 12px;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
    .vt-placard-title {
        font-size: 0.9375rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .vt-placard-desc {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .vt-filmstrip-thumb {
        width: 80px;
    }

    .vt-floor-tabs button {
        padding: 6px 12px;
    }
}

/* ---------- Very narrow screens (e.g. 320px, foldables closed) ---------- */
@media (max-width: 320px) {
    .vt-wrap {
        padding-left: 8px;
        padding-right: 8px;
    }

    .vt-room-dropdown {
        padding-left: 12px;
    }

    .vt-fullscreen-btn,
    .vt-nav-btn,
    .vt-close-btn {
        width: 36px;
        height: 36px;
    }
}

/* ---------- Phones in landscape (short and wide) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .vt-viewer-frame {
        aspect-ratio: auto;
        height: 82vh;
        height: 82dvh;
        max-height: none;
    }

    .vt-placard {
        top: auto;
        bottom: 10px;
        left: 10px;
        right: auto;
        width: min(320px, 45%);
        padding: 8px 12px;
    }

    .vt-placard-desc {
        display: none;
    }

    .vt-top-controls {
        left: auto;
        right: 10px;
        top: 10px;
        max-width: 55%;
    }

    .vt-zoom-control {
        display: none;
    }
}

/* ---------- Fullscreen always wins over the sizing rules above ---------- */
.vt-viewer-frame:fullscreen,
.vt-viewer-frame:-webkit-full-screen,
.vt-viewer-frame.is-pseudo-fullscreen {
    aspect-ratio: auto;
    max-height: none;
    border-radius: 0;
}

/* Notched phones in the CSS fullscreen fallback */
.vt-viewer-frame.is-pseudo-fullscreen .vt-top-controls,
.vt-viewer-frame.is-pseudo-fullscreen .vt-close-btn {
    top: calc(12px + env(safe-area-inset-top, 0px));
}

.vt-viewer-frame.is-pseudo-fullscreen .vt-placard {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {

    .vt-wrap *,
    .vt-wrap *::before,
    .vt-wrap *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .vt-viewer-frame::after {
        animation-duration: 2s;
    }
}