/**
 * Стили для интерактивных карт территории
 * 
 * Этот файл содержит основные стили для:
 * - Интерактивных областей на картах (прямоугольники над корпусами)
 * - Модального окна с планами зданий
 * - Модального окна с информацией о номерах
 * - Кнопок переключения этажей
 */

/* ============================================
   ИНТЕРАКТИВНЫЕ ОБЛАСТИ НА КАРТЕ
   Прямоугольники, которые подсвечиваются при наведении
   ============================================ */

/* Базовые стили для всех интерактивных областей */
.interactive-area {
    position: absolute;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
    border-style: solid;
}

/* Десктопные версии интерактивных областей */
.dunkan-area {
    top: 25.1%;
    left: 32.5%;
    width: 100px;
    height: 80px;
    border-color: #ffc10700;
}

.mayak-area {
    top: 30%;
    left: 48%;
    width: 10%;
    height: 6%;
    border-color: #ffc10700;
}

.aurora-area {
    top: 41%;
    left: 27%;
    width: 6.5% !important;
    height: 7% !important;
    border-color: #ffc10700;
}

.cottage1-area {
    top: 46%;
    left: 51.5%;
    width: 5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage2-area {
    top: 46.7%;
    left: 45.4%;
    width: 5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage3-area {
    top: 47%;
    left: 39%;
    width: 5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage4-area {
    top: 38.4%;
    left: 19.8%;
    width: 6%;
    height: 4.5%;
    border-color: #ffc10700;
}

.cottage5-area {
    top: 34.5%;
    left: 12%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage6-area {
    top: 30.5%;
    left: 13%;
    width: 5.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

/* Мобильные версии интерактивных областей.
   Схема на мобильном - та же картинка, что на десктопе, только уменьшенная,
   поэтому координаты зон в процентах совпадают с десктопными. */
.dunkan-area-mobile {
    top: 25.1%;
    left: 32.5%;
    width: 8.5%;
    height: 5%;
    border-color: #ffc10700;
}

.mayak-area-mobile {
    top: 30%;
    left: 48%;
    width: 10%;
    height: 6%;
    border-color: #ffc10700;
}

.aurora-area-mobile {
    top: 41%;
    left: 27%;
    width: 6.5%;
    height: 7%;
    border-color: #ffffff00;
}

.cottage1-area-mobile {
    top: 46%;
    left: 51.5%;
    width: 5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage2-area-mobile {
    top: 46.7%;
    left: 45.4%;
    width: 5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage3-area-mobile {
    top: 47%;
    left: 39%;
    width: 5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage4-area-mobile {
    top: 38.4%;
    left: 19.8%;
    width: 6%;
    height: 4.5%;
    border-color: #ffc10700;
}

.cottage5-area-mobile {
    top: 34.5%;
    left: 12%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage6-area-mobile {
    top: 30.5%;
    left: 13%;
    width: 5.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage7-area {
    top: 37.7%;
    left: 79%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage8-area {
    top: 38.1%;
    left: 71.5%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage9-area {
    top: 41.8%;
    left: 77%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage10-area {
    top: 43.5%;
    left: 69%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage11-area {
    top: 46%;
    left: 75%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage12-area {
    top: 38.8%;
    left: 84.5%;
    width: 5.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage13-area {
    top: 43%;
    left: 83%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage14-area {
    top: 47%;
    left: 80%;
    width: 5.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage7-area-mobile {
    top: 37.7%;
    left: 79%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage8-area-mobile {
    top: 38.1%;
    left: 71.5%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage9-area-mobile {
    top: 41.8%;
    left: 77%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage10-area-mobile {
    top: 43.5%;
    left: 69%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage11-area-mobile {
    top: 46%;
    left: 75%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage12-area-mobile {
    top: 38.8%;
    left: 84.5%;
    width: 5.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage13-area-mobile {
    top: 43%;
    left: 83%;
    width: 4.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

.cottage14-area-mobile {
    top: 47%;
    left: 80%;
    width: 5.5%;
    height: 3.5%;
    border-color: #ffc10700;
}

/* Западная территория */
.trum-area {
    top: 29.1%;
    left: 62.2%;
    width: 12%;
    height: 9.2%;
    border-color: #ffc10700;
}

.trum-area-mobile {
    top: 29.1%;
    left: 62.2%;
    width: 12%;
    height: 9.2%;
    border-color: #ffc10700;
}

.interactive-area:hover {
    border-color: #ff8c00 !important;
    border-width: 4px !important;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.6), 0 0 40px rgba(255, 140, 0, 0.3);
    transform: scale(1.02);
}

.interactive-area:active {
    transform: scale(0.98);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО С ПЛАНОМ ЗДАНИЯ
   Отображает SVG план выбранного корпуса
   ============================================ */

.plan-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.plan-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.plan-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.plan-modal-close:hover {
    color: #000;
}

.plan-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

/* ============================================
   КНОПКИ ПЕРЕКЛЮЧЕНИЯ ЭТАЖЕЙ
   Используются для многоэтажных корпусов
   ============================================ */

.floor-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.floor-button {
    position: relative;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

/* Эффект бликов при наведении на кнопку */
.floor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.floor-button:hover::before {
    left: 100%;
}

.floor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.floor-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Активная кнопка этажа */
.floor-button.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
    transform: scale(1.05);
}

/* Галочка для активной кнопки */
.floor-button.active::after {
    content: '✓';
    margin-left: 8px;
    font-size: 14px;
}

.floor-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Альтернативный стиль кнопок (сине-голубой градиент) */
.floor-button.style-blue {
    background: linear-gradient(135deg, #667eea 0%, #007bff 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.floor-button.style-blue:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.floor-button.style-blue.active {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО С ИНФОРМАЦИЕЙ О НОМЕРЕ
   Всплывающее окно с деталями конкретного номера
   ============================================ */

.room-info-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-info-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Центрирование контента модального окна для десктопа */
.room-info-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    margin: auto;
    margin-top: 70px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.room-info-modal.show .room-info-content {
    transform: scale(1);
}

/* Кнопка закрытия модального окна с информацией о номере */
.room-info-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1101;
    transition: all 0.3s ease;
}

.room-info-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg);
}

/* Изображение номера */
.room-info-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Контент модального окна */
.room-info-body {
    padding: 25px;
}

.room-info-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.room-info-subtitle {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 15px;
}

/* Метаданные номера (этаж, гости, площадь) */
.room-info-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.room-info-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.room-info-meta-item i {
    color: #667eea;
}

/* Описание номера */
.room-info-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Цена номера */
.room-info-price {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 20px;
    text-align: center;
}

.room-info-price small {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

/* Кнопки действий (Забронировать, Подробнее) */
.room-info-actions {
    display: flex;
    gap: 15px;
}

.room-info-btn {
    flex: 1;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Основная кнопка (Забронировать) */
.room-info-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.room-info-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Вторичная кнопка (Подробнее) */
.room-info-btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.room-info-btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

/* Индикатор загрузки */
.room-info-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

@media (max-width: 768px) {
    .room-info-content {
        margin-top: auto;
    }
}