:root {
    --vt-nav-offset: 86px;
}

.virtual-tour-page,
.vt-main {
    background: #fbfbfa;
}

.vt-hero {
    position: relative;
    margin-top: var(--vt-nav-offset);
    padding: clamp(86px, 13vh, 132px) 0 clamp(34px, 5vh, 50px);
    background: linear-gradient(145deg, #f6f3ee 0%, #ece5da 50%, #dfd4c5 100%);
    border-bottom: 1px solid rgba(124, 111, 94, 0.24);
}

.vt-hero-content {
    position: relative;
    z-index: 1;
    min-height: auto;
    display: block;
    text-align: center;
}

.vt-hero-title {
    margin: 0;
    max-width: 22ch;
    margin-inline: auto;
    color: #26211b;
    font-size: clamp(1.8rem, 4.1vw, 3.9rem);
    line-height: 1.08;
    font-weight: 700;
}

.vt-hero-title .vt-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--vt-delay, 0ms);
}

.vt-hero-title.is-visible .vt-word {
    opacity: 1;
    transform: translateY(0);
}

.vt-showroom {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: #edeae7;
    padding: clamp(48px, 7vw, 86px) 0;
}

.vt-showroom-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.vt-showroom-title {
    margin: 0 0 clamp(20px, 2.8vw, 34px);
    text-align: center;
    font-size: clamp(1.45rem, 3vw, 3rem);
    line-height: 1.15;
    color: #2b2a28;
}

.vt-iframe-shell {
    background: #111111;
    border: 1px solid rgba(120, 116, 109, 0.44);
    border-radius: 24px;
    box-shadow: 0 28px 45px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.vt-iframe-shell:hover,
.vt-iframe-shell:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 34px 54px rgba(0, 0, 0, 0.28);
}

.vt-iframe-shell iframe {
    width: 100%;
    height: clamp(400px, 70vh, 780px);
    border: 0;
    display: block;
    background: #ffffff;
}

.vt-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.vt-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .virtual-tour-page,
[data-theme="dark"] .vt-main {
    background: linear-gradient(140deg, #060606 0%, #1d1b18 48%, #433f39 100%);
}

[data-theme="dark"] .vt-hero {
    background: linear-gradient(145deg, #0f0e0d 0%, #201c18 55%, #352e26 100%);
    border-bottom-color: rgba(186, 175, 159, 0.22);
}

[data-theme="dark"] .vt-hero-title {
    color: #eee7dc;
}

[data-theme="dark"] .vt-showroom {
    background: linear-gradient(135deg, #050505 0%, #1f1d1a 55%, #44403a 100%);
}

[data-theme="dark"] .vt-showroom-title {
    color: #e5dfd5;
}

[data-theme="dark"] .vt-iframe-shell {
    background: #151413;
    border-color: rgba(216, 208, 194, 0.34);
}

@media (max-width: 960px) {
    html,
    body,
    .virtual-tour-page,
    .vt-main {
        overflow-x: clip;
    }

    .vt-hero {
        padding: calc(var(--vt-nav-offset) + 22px) 0 28px;
    }

    .vt-showroom {
        min-height: auto;
        padding: 42px 0 56px;
    }

    .vt-showroom-wrap,
    .vt-iframe-shell {
        width: 100%;
    }

    .vt-iframe-shell {
        border-radius: 16px;
    }

    .vt-iframe-shell iframe {
        height: clamp(340px, 60vh, 620px);
    }
}
/* High contrast overrides */
html[data-contrast="high"] body,
html[data-contrast="high"] section,
html[data-contrast="high"] main,
html[data-contrast="high"] header,
html[data-contrast="high"] footer {
    background: #000000 !important;
    color: #ffffff !important;
}

html[data-contrast="high"] a,
html[data-contrast="high"] p,
html[data-contrast="high"] h1,
html[data-contrast="high"] h2,
html[data-contrast="high"] h3,
html[data-contrast="high"] h4,
html[data-contrast="high"] h5,
html[data-contrast="high"] h6,
html[data-contrast="high"] li,
html[data-contrast="high"] span,
html[data-contrast="high"] strong {
    color: #ffffff !important;
}

html[data-contrast="high"] .card,
html[data-contrast="high"] .panel,
html[data-contrast="high"] .box,
html[data-contrast="high"] .table,
html[data-contrast="high"] .table-wrap,
html[data-contrast="high"] .grid,
html[data-contrast="high"] .content {
    background: #0d0d0d !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
