/* Глобальный сброс отступов */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #000;
}

/* Основной контейнер */
#interactiveContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    background-color: #000;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
}

/* Контейнер для изображений */
.image-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important;
    background-color: #000;
    overflow: hidden !important;
}

/* Базовое изображение на весь экран */
.base-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: auto !important;
    z-index: 3 !important;
}

/* Затемнение */
.darken-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 4 !important;
}

/* Слои с объектами */
.object-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5 !important;
}

.object-layer img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    z-index: 5 !important;
}

/* Активные состояния */
#interactiveContainer.active .darken-layer {
    opacity: 1;
}

#interactiveContainer.active .object-layer.active {
    opacity: 1;
    z-index: 6 !important;
}

/* Кнопка закрытия объектов (справа) */
.close-button {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 4px !important;
    background: #DE3030 !important;
    color: white !important;
    font-size: 30px !important;
    line-height: 50px !important;
    text-align: center !important;
    cursor: pointer !important;
    z-index: 100 !important;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid #DE3030 !important;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.29) !important;
}

#interactiveContainer.active .close-button {
    opacity: 1;
    pointer-events: auto;
}

.close-button:hover {
    background: #6C1C1C !important;
    transform: scale(1.05) !important;
}

/* БУРГЕР-МЕНЮ */
.burger-menu {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #DE3030 !important;
    border: 2px solid #DE3030 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.29) !important;
    position: fixed !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.burger-menu:hover {
    background-color: #6C1C1C !important;
    transform: scale(1.05) !important;
}

/* Полоски бургер-меню */
.burger-menu .line {
    width: 30px !important;
    height: 3px !important;
    background: white !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    left: 10px !important;
    transform-origin: center !important;
}

/* Позиции полосок в обычном состоянии */
.burger-menu .line:nth-child(1) {
    top: 14px !important;
}

.burger-menu .line:nth-child(2) {
    top: 23px !important;
}

.burger-menu .line:nth-child(3) {
    top: 32px !important;
}

/* Анимация превращения в крестик */
.burger-menu.open .line:nth-child(1) {
    transform: rotate(45deg) !important;
    top: 22px !important;
    width: 28px !important;
}

.burger-menu.open .line:nth-child(2) {
    opacity: 0 !important;
}

.burger-menu.open .line:nth-child(3) {
    transform: rotate(-45deg) !important;
    top: 22px !important;
    width: 28px !important;
}

/* Затемнение для меню */
.menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 9998 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px) !important;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Контейнер меню */
.menu-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    width: 90% !important;
    max-width: 500px !important;
    text-align: center !important;
}

.menu-container.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ЗАГОЛОВОК МЕНЮ */
.menu-title {
    font-family: "Ubuntu", Sans-serif !important;
    font-size: 2.2em !important;
    font-weight: 700 !important;
    color: #DE3030 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin-bottom: 20px !important;
    text-shadow: 0 0 20px rgba(222, 48, 48, 0.5) !important;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(222, 48, 48, 0.5); }
    to { text-shadow: 0 0 40px rgba(222, 48, 48, 0.8); }
}

/* Элементы меню */
.menu-item {
    display: block !important;
    padding: 15px 30px !important;
    margin: 15px 0 !important;
    font-family: "Ubuntu", Sans-serif !important;
    font-size: 1em !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-style: normal !important;
    text-decoration: none !important;
    line-height: 1em !important;
    letter-spacing: 1.3px !important;
    color: #FFFFFF !important;
    background-color: #DE3030 !important;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.29) !important;
    border: 2px solid #DE3030 !important;
    border-radius: 4px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    animation: menuItemFadeIn 0.5s ease forwards;
    opacity: 0;
}

.menu-item:hover {
    color: #FFFFFF !important;
    background-color: #6C1C1C !important;
    border-color: #DE3030 !important;
    transform: scale(1.05) !important;
}

/* Разделитель меню */
.menu-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DE3030, transparent);
    margin: 20px 0;
    opacity: 0.5;
}

/* СОЦИАЛЬНЫЕ КНОПКИ */
.social-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 30px !important;
    animation: menuItemFadeIn 0.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.social-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: #DE3030 !important;
    border: 2px solid #DE3030 !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.29) !important;
}

.social-button:hover {
    background-color: #6C1C1C !important;
    border-color: #DE3030 !important;
    transform: scale(1.1) rotate(360deg) !important;
}

/* Анимация появления */
@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки анимации */
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }

/* Информация об объекте - базовая */
.object-info {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 20px 40px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    color: white !important;
    border: 2px solid #de3030 !important;
    border-radius: 12px !important;
    z-index: 10001 !important;
    font-family: Arial, sans-serif !important;
    text-align: center !important;
    pointer-events: none !important;
    box-shadow: 0 0 30px rgba(222, 48, 48, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    min-width: 300px !important;
    max-width: 600px !important;
}

/* Позиция снизу (для объектов в верхней половине) */
.object-info.position-bottom {
    bottom: 40px !important;
    top: auto !important;
}

/* Позиция сверху (для объектов в нижней половине) */
.object-info.position-top {
    top: 40px !important;
    bottom: auto !important;
}

/* Анимация появления */
#interactiveContainer.active .object-info {
    opacity: 1;
}

/* Стили для названия */
.object-info .object-name {
    color: #de3030;
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(222, 48, 48, 0.5);
}

/* Стили для описания */
.object-info .object-description {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Отладочные прямоугольники */
.debug-rectangle {
    position: fixed !important;
    border: 3px solid #00ff00 !important;
    background-color: rgba(0, 255, 0, 0.1) !important;
    pointer-events: none !important;
    z-index: 10000 !important;
    display: none;
}

.debug-rectangle.visible {
    display: block !important;
}

.debug-rectangle::after {
    content: attr(data-label);
    position: absolute;
    top: -25px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid #00ff00;
    z-index: 10001;
}

/* Стили для сообщений кота */
.cat-message {
    position: fixed !important;
    color: #DE3030 !important;
    font-family: "Ubuntu", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(222, 48, 48, 0.8) !important;
    z-index: 10002 !important;
    pointer-events: none !important;
    animation: catMessageFade 3s ease-out forwards !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

@keyframes catMessageFade {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.1) rotate(2deg);
    }
    40% {
        transform: scale(1) rotate(0deg);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.5) rotate(5deg);
    }
}

/* Контейнер для сообщений кота */
#catMessagesContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 10001 !important;
    overflow: hidden !important;
}

/* МОДАЛЬНОЕ ОКНО ДЛЯ КАРТЫ */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.map-modal.active {
    display: flex;
}

.map-modal-content {
    background: #1a1a1a;
    border: 2px solid #DE3030;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(222, 48, 48, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.map-modal-header {
    padding: 20px;
    background: #2a2a2a;
    border-bottom: 2px solid #DE3030;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-modal-title {
    color: #DE3030;
    font-family: "Ubuntu", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.map-modal-close {
    color: #DE3030;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.map-modal-close:hover {
    color: #6C1C1C;
    transform: scale(1.2);
}

.map-modal-body {
    padding: 20px;
    background: #000;
}

.map-modal-body iframe {
    border: none;
    border-radius: 8px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .object-info {
        min-width: 250px !important;
        padding: 15px 25px !important;
    }
    
    .object-info .object-name {
        font-size: 22px !important;
    }
    
    .object-info .object-description {
        font-size: 16px !important;
    }
    
    .object-info.position-bottom {
        bottom: 20px !important;
    }
    
    .object-info.position-top {
        top: 20px !important;
    }
    
    .cat-message {
        font-size: 18px !important;
    }
    
    .map-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .map-modal-body iframe {
        height: 350px;
    }
    
    .map-modal-title {
        font-size: 18px;
    }
}

/* Копирайт */
.copyright {
    font-family: "Ubuntu", Sans-serif !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center !important;
    margin-top: 30px !important;
    padding-bottom: 10px !important;
    letter-spacing: 1px !important;
    animation: menuItemFadeIn 0.5s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    border-top: 1px solid rgba(222, 48, 48, 0.3);
    padding-top: 20px;
}

.copyright:hover {
    color: #DE3030 !important;
    transition: color 0.3s ease;
}