/**
 * CSS для карточки музея
 * Добавить в style.css темы
 */

/* ==========================================
   КАРТОЧКА МУЗЕЯ
   ========================================== */

.museum-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Галерея изображений */
.museum-gallery {
    margin-bottom: 40px;
}

.museum-gallery-main {
    position: relative;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.museum-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.museum-main-image img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.museum-main-image img.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.museum-main-image img.fade-in {
    opacity: 1;
    transform: scale(1);
}

.museum-main-image .zoom-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.museum-main-image:hover .zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Превью карусель */
.museum-gallery-thumbs {
    position: relative;
    padding: 0 40px;
}

.museum-thumbs-swiper {
    overflow: hidden;
}

.museum-thumbs-swiper .swiper-slide {
    width: 80px;
    height: 60px;
    cursor: pointer;
}

.museum-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.museum-thumb:hover {
    opacity: 1;
}

.museum-thumb.active {
    border-color: #8B1538;
    opacity: 1;
}

.museum-thumbs-prev,
.museum-thumbs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #666;
}

.museum-thumbs-prev { left: 0; }
.museum-thumbs-next { right: 0; }

.museum-thumbs-prev:hover,
.museum-thumbs-next:hover {
    background: #8B1538;
    border-color: #8B1538;
    color: #fff;
}

.museum-gallery-counter {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.museum-gallery-counter .current {
    font-weight: 600;
    color: #8B1538;
}

/* Описание */
.museum-description {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.museum-description h2,
.museum-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.museum-description p {
    margin-bottom: 15px;
}

/* Информационный блок */
.museum-info-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 50px;
}

.museum-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.museum-info-icon {
    width: 48px;
    height: 48px;
    background: #8B1538;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.museum-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.museum-info-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.museum-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Секции (экспонаты, модели, новости) */
.museum-section {
    margin-bottom: 50px;
}

.museum-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.museum-section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.museum-section-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 500;
    color: #8B1538;
    text-decoration: none;
    transition: all 0.2s ease;
}

.museum-section-link:hover {
    color: #6B0F2B;
    gap: 10px;
}

/* Карусели */
.museum-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.museum-carousel-prev,
.museum-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #8B1538;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #8B1538;
}

.museum-carousel-prev { left: 0; }
.museum-carousel-next { right: 0; }

.museum-carousel-prev:hover,
.museum-carousel-next:hover {
    background: #8B1538;
    color: #fff;
}

.museum-carousel-prev.swiper-button-disabled,
.museum-carousel-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Карточки в каруселях наследуют существующие стили */
.museum-exhibits-swiper .exhibit-card,
.museum-models-swiper .model-card,
.museum-news-swiper .news-card {
    height: 100%;
}

/* Адаптив */
@media (max-width: 1024px) {
    .museum-gallery-main {
        height: 300px;
    }
    
    .museum-main-image img {
        max-height: 300px;
    }
    
    .museum-carousel-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .museum-single {
        padding: 15px;
    }
    
    .museum-gallery-main {
        height: 250px;
    }
    
    .museum-main-image img {
        max-height: 250px;
    }
    
    .museum-gallery-thumbs {
        padding: 0 35px;
    }
    
    .museum-thumbs-swiper .swiper-slide {
        width: 60px;
        height: 45px;
    }
    
    .museum-info-block {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .museum-info-item {
        min-width: 100%;
    }
    
    .museum-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .museum-section-header h2 {
        font-size: 20px;
    }
    
    .museum-carousel-wrapper {
        padding: 0;
    }
    
    .museum-carousel-prev,
    .museum-carousel-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .museum-gallery-main {
        height: 200px;
    }
    
    .museum-main-image img {
        max-height: 200px;
    }
    
    .museum-info-icon {
        width: 40px;
        height: 40px;
    }
}