* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Geologica", sans-serif;
    font-weight: 300;
}

body {
    position: relative;
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
}

@keyframes pulse {
    0% {
        box-shadow:
            0 0 20px rgba(24, 1, 1, 0.6),
            0 0 0 0 rgba(183, 83, 51, 0.7);
        outline-color: rgba(183, 83, 51, 1);
    }
    100% {
        box-shadow:
            0 0 40px rgba(24, 1, 1, 0.8),
            0 0 0 10px rgba(183, 83, 51, 0);
        outline-color: rgba(183, 83, 51, 0.8);
    }
}

@keyframes pulse-white {
    0% {
        box-shadow:
            0 0 20px rgba(24, 1, 1, 0.6),
            0 0 0 0 rgba(249, 190, 0, 0.7);
        border-color: rgb(183, 83, 51);
    }
    100% {
        box-shadow:
            0 0 40px rgba(24, 1, 1, 0.8),
            0 0 0 10px rgba(249, 190, 0, 0);
        border-color: rgba(183, 83, 51, 0.8);
    }
}

@keyframes scale {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

#panorama {
    width: 100vw;
    height: 100vh;
}

.pnlm-about-msg {
    display: none !important;
}
.pnlm-load-box {
    display: none !important;
}
.pnlm-hotspot .pnlm-pointer {
     display: none !important;
}

.rotate-25::after,
.rotate-25::before {
    transform: translate(-50%, -50%) rotate(25deg) !important;
}

.rotate-45::after,
.rotate-45::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.-rotate-25::after,
.-rotate-25::before {
    transform: translate(-50%, -50%) rotate(-25deg) !important;
}

.-rotate-45::after,
.-rotate-45::before {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.btn-back {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    background: none;
    backdrop-filter: blur(4px) invert(25%);
    color: rgba(249, 190, 0, 1);
    border: 2px solid rgba(183, 83, 51, 1);
    box-shadow: 0 0 20px rgba(24, 1, 1, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #fff;
    color: rgb(67, 83, 99);
}

/* Точки интереса */
.pnlm-hotspot {
    background-image: none;
    backdrop-filter: blur(4px) invert(25%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(249, 190, 0, 1);
    outline: 2px solid rgba(183, 83, 51, 0.6);
    box-shadow: 0 0 20px rgba(24, 1, 1, 0.6);
    cursor: pointer;
    animation: pulse 1.5s infinite alternate;
    transition: border 0.3s ease;
}

.pnlm-hotspot::after,
.pnlm-hotspot::before {
    content: "";
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.pnlm-hotspot::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(249, 190, 0, 1)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
    opacity: 1;
}

.pnlm-hotspot::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
    opacity: 0;
}

.pnlm-hotspot:hover::after {
    opacity: 0;
}

.pnlm-hotspot:hover::before {
    opacity: 1;
}

.hotspot-info {
    background-image: none;
    backdrop-filter: blur(4px) invert(25%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(249, 190, 0, 1);
    outline: 2px solid rgba(183, 83, 51, 0.6);
    box-shadow: 0 0 20px rgba(24, 1, 1, 0.6);
    cursor: pointer;
    animation: pulse 1.5s infinite alternate;
    transition: border 0.3s ease;
}

.hotspot-info::after {
    content: "!";
    font-size: 32px;
    font-weight: bold;
    color: rgba(249, 190, 0, 1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.3s ease;
}

.pnlm-hotspot:hover,
.hotspot-info:hover {
    background: rgba(24, 1, 1, 0.055);
    border-color: #fff !important;
    box-shadow: 0 0 40px rgba(24, 1, 1, 0.9);
}

.pnlm-hotspot:hover::after,
.hotspot-info:hover::after {
    color: #fff;
}

/* Тултип инфо хотспота */

div.hotspot-info span {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    background: #fff;
    color: rgb(67, 83, 99);
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 14px;

    width: max-content !important;
    max-width: 40dvw !important;
    min-width: 200px !important;

    max-height: 80dvh !important;
    overflow-y: auto !important;

    z-index: 1000;
    pointer-events: auto;
    transition: visibility 1s ease;
}

div.hotspot-info span::after {
    display: none !important;
}

.tooltip-content-image img {
    width: 100%;
    height: 100%;
    max-height: 50dvh;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tooltip-content-text h3,
.tooltip-content-image h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.tooltip-content-text p,
.tooltip-content-image p {
    margin: 0 10px;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Аудиоплеер */
.audio-player {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;

    backdrop-filter: blur(4px) invert(25%);
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(183, 83, 51, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    transition: opacity 0.5s ease;
}

.audio-player__toggle {
    background: rgba(249, 190, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-player__toggle:hover {
    transform: scale(1.05);
    background: rgba(249, 190, 0, 1);
}

.audio-player__toggle svg {
    width: 20px;
    height: 20px;
}

.audio-player__toggle.playing svg {
    content: none;
}

.audio-player__progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.audio-player__time-current,
.audio-player__time-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.audio-player__progress {
    position: relative;

    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
}

.audio-player__progress-bar {
    height: 100%;
    background: rgba(249, 190, 0, 1);
    border-radius: 4px;
    width: 0%;
    transition: width 0.05s linear;
    pointer-events: none;
}

.audio-player__progress-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.audio-player__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.audio-player__mute {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.audio-player__mute:hover {
    color: #fff;
}

.audio-player__mute svg {
    width: 24px;
    height: 24px;
}

.audio-player__volume {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.audio-player__volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(249, 190, 0, 1);
    cursor: pointer;
}

.audio-player__volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(249, 190, 0, 1);
    cursor: pointer;
}

.slider-slick {
    border-radius: 4px;
    margin: 0 20px;
}

.slick-list {
    border-radius: 4px;
    overflow: hidden;
}

.slider-slick .slide-item img {
    width: 100%;
    height: auto;
    max-height: 50dvh;
    object-fit: contain;
    display: block;
}

.slider-slick .slick-prev,
.slider-slick .slick-next {
    width: 28px;
    height: 28px;
    z-index: 10;
}

.slider-slick .slick-prev:before,
.slider-slick .slick-next:before {
    font-size: 28px;
    color: rgb(67, 83, 99);
}

.slider-slick .slick-prev {
    left: -30px;
}

.slider-slick .slick-next {
    right: -30px;
}

.slider-slick .slick-dots li button:before {
    color: rgba(249, 190, 0, 1);
}

.slider-slick .slick-dots li.slick-active button:before {
    color: rgb(67, 83, 99);
}

/* Media */
@media (max-width: 1024px) {
    div.hotspot-info span {
        max-width: 60dvw !important;
    }
}

@media (max-width: 768px) {
    div.hotspot-info span {
        max-width: 65dvw !important;
    }

    .audio-player {
        bottom: 40px;
        padding: 8px 14px;
        min-width: 280px;
        gap: 8px;
    }

    .audio-player__toggle {
        width: 34px;
        height: 34px;
    }

    .audio-player__toggle svg {
        width: 16px;
        height: 16px;
    }

    .audio-player__time-current,
    .audio-player__time-duration {
        font-size: 10px;
        min-width: 28px;
    }

    .audio-player__volume {
        width: 40px;
    }

    .audio-player__controls {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    div.hotspot-info span {
        max-width: 80dvw !important;
    }
}
