:root {
    --ink: #121722;
    --muted: #667085;
    --surface: #ffffff;
    --soft: #f3f6f8;
    --dark: #0e141d;
    --dark-2: #151d29;
    --accent: #e44848;
    --accent-dark: #bd2f2f;
    --teal: #2a9d8f;
    --line: rgba(18, 23, 34, 0.12);
    --white-line: rgba(255, 255, 255, 0.16);
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

body.tour-active {
    overflow: hidden;
}

body.hotspots-active {
    overflow-x: hidden;
    overflow-y: auto;
}

button,
a {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.page-switcher {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 90;
    display: flex;
    gap: 4px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.page-switcher a {
    min-width: 126px;
    padding: 9px 14px;
    color: #273142;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
}

.label-short {
    display: none;
}

.page-switcher a:hover,
.page-switcher a:focus-visible,
.page-switcher a.is-active {
    color: var(--accent-dark);
    background: #ffffff;
    outline: none;
}

.challenge-view {
    display: none;
}

.challenge-view.is-active {
    display: block;
}

.tour-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--dark);
    isolation: isolate;
}

.tour-frame,
.tour-vignette {
    position: absolute;
    inset: 0;
}

.tour-frame {
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tour-vignette {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(8, 12, 18, 0.82),
            rgba(8, 12, 18, 0.22) 42%,
            rgba(8, 12, 18, 0.64)
        ),
        linear-gradient(
            180deg,
            rgba(8, 12, 18, 0.42),
            transparent 38%,
            rgba(8, 12, 18, 0.68)
        );
}

.side-menu {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100%;
    padding: 96px 22px 24px;
    color: #ffffff;
    background: rgba(12, 17, 25, 0.74);
    border-right: 1px solid var(--white-line);
    box-shadow: 20px 0 44px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.menu-kicker,
.panel-kicker,
.eyebrow,
.floorplan-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-kicker,
.eyebrow {
    color: var(--accent);
}

.side-menu h2 {
    margin: 8px 0 18px;
    font-size: 1.55rem;
    line-height: 1.08;
}

.tour-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 28px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--white-line);
    border-radius: 999px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(42, 157, 143, 0.22);
}

.tour-links {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.tour-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    border-radius: 7px;
}

.tour-links a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.tour-links a:hover,
.tour-links a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--white-line);
    outline: none;
}

.hamburger {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    background: rgba(12, 17, 25, 0.8);
    border: 1px solid var(--white-line);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.hamburger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.tour-screen.menu-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tour-screen.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.tour-screen.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.floorplan-widget {
    position: absolute;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 25;
    width: clamp(168px, 18vw, 270px);
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.floorplan-title {
    margin-bottom: 8px;
    color: #485467;
}

.floorplan-widget img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(18, 23, 34, 0.1);
    border-radius: 6px;
}

.splash-overlay {
    position: absolute;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(6, 9, 14, 0.68);
    backdrop-filter: blur(4px);
}

.splash-overlay.is-hidden {
    display: none;
}

.splash-modal {
    width: min(90vw, 440px);
    padding: 34px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.splash-modal h1,
.section-heading h2,
.hotspot-panel h3 {
    margin: 0;
    line-height: 1.08;
}

.splash-modal h1 {
    margin-top: 8px;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.splash-modal p:not(.eyebrow) {
    margin: 14px 0 26px;
    color: var(--muted);
}

.enter-tour {
    min-width: 150px;
    min-height: 46px;
    padding: 0 20px;
    color: #ffffff;
    background: var(--accent);
    border: 0;
    border-radius: 7px;
    box-shadow: 0 14px 28px rgba(228, 72, 72, 0.28);
    cursor: pointer;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.enter-tour:hover,
.enter-tour:focus-visible {
    background: var(--accent-dark);
    outline: none;
    transform: translateY(-1px);
}

.hotspot-section {
    min-height: 100vh;
    padding: 96px 24px 84px;
    background:
        radial-gradient(
            circle at top left,
            rgba(42, 157, 143, 0.14),
            transparent 34%
        ),
        linear-gradient(180deg, #f7f8fa 0%, #edf2f5 100%);
}

.section-heading,
.hotspot-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: 0;
}

.hotspot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.image-stage {
    position: relative;
    overflow: hidden;
    background: #dfe5ea;
    border: 1px solid rgba(18, 23, 34, 0.1);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(18, 23, 34, 0.18);
}

.image-stage img {
    display: block;
    width: 100%;
    height: auto;
}

.hotspot-button {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    background: var(--accent);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        background 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.hotspot-button::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: inherit;
    opacity: 0.75;
}

.hotspot-button:hover,
.hotspot-button:focus-visible,
.hotspot-button.is-active {
    background: var(--accent-dark);
    box-shadow:
        0 0 0 8px rgba(228, 72, 72, 0.22),
        0 16px 34px rgba(0, 0, 0, 0.32);
    outline: none;
    transform: translate(-50%, -50%) scale(1.06);
}

.hotspot-panel {
    position: sticky;
    top: 96px;
    min-height: 150px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(180deg, var(--dark-2), var(--dark));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(18, 23, 34, 0.2);
}

.panel-kicker {
    color: #89d8cf;
}

.hotspot-panel h3 {
    margin-top: 10px;
    font-size: 1.55rem;
}

.hotspot-panel p:not(.panel-kicker) {
    margin: 14px 0 22px;
    color: rgba(255, 255, 255, 0.72);
}

.hotspot-meta {
    padding: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--white-line);
    border-radius: 7px;
}

@media (max-width: 900px) {
    .hotspot-layout {
        grid-template-columns: 1fr;
    }

    .hotspot-panel {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .page-switcher {
        top: 12px;
        left: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: min(340px, calc(100vw - 24px));
        transform: none;
    }

    .page-switcher a {
        min-width: 0;
        padding-inline: 10px;
        font-size: 0.92rem;
    }

    .label-long {
        display: none;
    }

    .label-short {
        display: inline;
    }

    .tour-screen {
        min-height: 520px;
    }

    .tour-vignette {
        background:
            linear-gradient(
                180deg,
                rgba(8, 12, 18, 0.7),
                transparent 44%,
                rgba(8, 12, 18, 0.72)
            ),
            linear-gradient(90deg, rgba(8, 12, 18, 0.68), transparent);
    }

    .hamburger {
        display: block;
        top: 76px;
    }

    .side-menu {
        width: min(82vw, 250px);
        padding-top: 142px;
        transform: translateX(-104%);
        transition: transform 220ms ease;
    }

    .tour-screen.menu-open .side-menu {
        transform: translateX(0);
    }

    .floorplan-widget {
        width: clamp(138px, 42vw, 180px);
    }

    .splash-modal {
        width: min(330px, calc(100vw - 28px));
        padding: 28px 22px;
    }

    .hotspot-section {
        padding: 86px 14px 56px;
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .hotspot-button {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .hotspot-button::after {
        inset: -8px;
    }
}
