:root {
    --tour-ink: #151719;
    --tour-glass: rgba(18, 19, 21, 0.72);
    --tour-line: rgba(255, 255, 255, 0.16);
    --tour-copy: rgba(255, 255, 255, 0.78);
    --tour-accent: #c9682c;
    --tour-accent-strong: #f08b3b;
    --tour-green: #6d8f5d;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x pan-y;
}

button,
a {
    font: inherit;
}

#panorama {
    width: 100%;
    height: 100%;
    background: #111;
}

.resolution-loading {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    color: white;
    background:
        radial-gradient(circle at 50% 44%, rgba(201, 104, 44, 0.22), transparent 34%),
        #101112;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.resolution-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo-container {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 28px;
}

.loading-o-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    animation: spin 1.6s linear infinite;
}

.loading-ozkhan-logo {
    width: 150px;
    max-height: 46px;
    object-fit: contain;
    filter: brightness(1.08);
    animation: soft-pulse 1.8s ease-in-out infinite;
}

.quality-info {
    min-height: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

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

@keyframes soft-pulse {
    0%,
    100% {
        opacity: 0.64;
    }

    50% {
        opacity: 1;
    }
}

.top-nav-menu {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    padding: 0;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    will-change: transform;
    contain: layout style paint;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 16px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.nav-btn:last-child {
    border-right: 0;
}

.nav-btn:first-child {
    border-radius: 20px 0 0 20px;
}

.nav-btn:last-child {
    border-radius: 0 20px 20px 0;
}

.nav-btn.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.nav-btn:hover,
.nav-btn:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.quality-toggle-btn {
    position: fixed;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: qualityPulse 2s ease-in-out infinite;
}

.quality-toggle-btn.low-quality {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    animation: none;
}

@keyframes qualityPulse {
    0%,
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3), 0 0 0 0 rgba(40, 167, 69, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5), 0 0 15px 3px rgba(40, 167, 69, 0.3);
    }
}

.quality-toggle-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    background: linear-gradient(135deg, #1e7e34, #28a745);
    animation: none;
}

.quality-toggle-btn.low-quality:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.5);
}

.quality-toggle-btn:active {
    transform: translateX(-50%) translateY(0);
}

.scene-panel {
    display: none;
}

.scene-panel-header {
    padding: 7px 8px 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.scene-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.06);
    padding: 8px;
    cursor: pointer;
    text-align: left;
}

.scene-button::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.scene-button span {
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.scene-button.active {
    color: white;
    border-color: rgba(240, 139, 59, 0.42);
    background: rgba(201, 104, 44, 0.24);
}

.scene-button.active::before {
    background: var(--tour-accent-strong);
    box-shadow: 0 0 0 4px rgba(240, 139, 59, 0.18);
}

.ozkhan-logo-link {
    position: fixed;
    bottom: 25px;
    left: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 44px;
}

.ozkhan-logo {
    height: 30px;
    width: auto;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ozkhan-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.ersa-text-logo {
    position: fixed;
    right: 50px;
    bottom: 48px;
    transform: translateY(50%);
    z-index: 1000;
    isolation: isolate;
    width: 235px;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 9px 13px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(216, 222, 229, 0.5)),
        rgba(242, 244, 247, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 11px;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
    backdrop-filter: blur(16px) saturate(1.12);
    text-decoration: none;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.ersa-text-logo::before,
.ersa-text-logo::after {
    content: "";
    position: absolute;
    top: 16%;
    bottom: 16%;
    z-index: 0;
    width: 58px;
    pointer-events: none;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.86) 0%, rgba(232, 237, 243, 0.5) 40%, rgba(255, 255, 255, 0) 72%);
    filter: blur(14px);
    opacity: 0.88;
}

.ersa-text-logo::before {
    left: -28px;
}

.ersa-text-logo::after {
    right: -28px;
}

.ersa-text-logo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ersa-text-logo:hover {
    opacity: 1;
    transform: translateY(50%) scale(1.05);
}

.nav-hotspot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-hotspot:hover {
    transform: scale(1.15);
}

.hotspot-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: hotspot-pulse 2s ease-in-out infinite;
    background: rgba(62, 0, 233, 0.247);
    padding: 5px;
}

@keyframes hotspot-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }
}

.hotspot-label {
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(16, 17, 19, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-hotspot:hover .hotspot-label {
    opacity: 1;
    transform: translateY(0);
}

.psv-navbar {
    background: rgba(40, 44, 52, 0.05) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 8px !important;
    z-index: 200 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 0 20px 20px 20px !important;
    max-width: calc(100vw - 40px) !important;
}

.psv-navbar-button {
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    margin: 4px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.psv-navbar-button::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.psv-navbar-button:hover::before {
    opacity: 1 !important;
}

.psv-navbar-button:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

.psv-navbar-button.psv-navbar-button--active {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4) !important;
}

.psv-caption {
    font-weight: 800 !important;
}

.seo-hidden {
    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-width: 880px) {
    .psv-navbar {
        margin: 0 10px 35px 10px !important;
        max-width: calc(100vw - 20px) !important;
        padding: 6px !important;
        border-radius: 15px !important;
    }

    .top-nav-menu {
        top: 5px !important;
        padding: 0 !important;
        border-radius: 15px !important;
    }

    .nav-btn {
        padding: 8px 12px !important;
        font-size: 10px !important;
    }

    .quality-toggle-btn {
        top: 45px;
        padding: 5px 12px;
        font-size: 9px;
        border-radius: 12px;
    }

    .ersa-text-logo {
        bottom: 33px;
        right: 15px;
        transform: none;
        width: 165px;
        min-height: 0;
        padding: 7px 9px;
    }

    .ersa-text-logo:hover {
        transform: scale(1.05);
    }

    .ozkhan-logo-link {
        bottom: 33px;
        left: 15px;
        height: 38px;
    }

    .ozkhan-logo {
        height: 24px;
    }
}

@media (max-width: 560px) {
    .top-nav-menu {
        max-width: calc(100vw - 10px);
    }

    .nav-btn {
        padding: 8px 10px !important;
        font-size: 10px;
    }

    .psv-navbar {
        margin: 0 8px 25px 8px !important;
    }

    .ozkhan-logo-link {
        display: none;
    }

    .ersa-text-logo {
        width: 145px;
        min-height: 0;
    }

    .ersa-text-logo::before,
    .ersa-text-logo::after {
        width: 38px;
        filter: blur(11px);
    }

    .ersa-text-logo::before {
        left: -18px;
    }

    .ersa-text-logo::after {
        right: -18px;
    }

    .hotspot-logo {
        width: 40px;
        height: 40px;
        padding: 4px;
    }

    .hotspot-label {
        font-size: 11px;
        padding: 5px 10px;
    }
}
