.tour-variant-detail-text .fmt-red strong,
.tour-variant-detail-text .fmt-blue strong,
.tour-variant-detail-text .fmt-green strong,
.tour-variant-detail-text .fmt-gold strong,
.tour-variant-description .fmt-red strong,
.tour-variant-description .fmt-blue strong,
.tour-variant-description .fmt-green strong,
.tour-variant-description .fmt-gold strong,
.tour-variant-plan .fmt-red strong,
.tour-variant-plan .fmt-blue strong,
.tour-variant-plan .fmt-green strong,
.tour-variant-plan .fmt-gold strong {
    color: inherit;
}
/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Стили для компактных карточек вариантов туров */
.tour-variants-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    font-family: 'Open Sans', sans-serif;
}

/* Основная карточка варианта */
.tour-variant-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.tour-variant-card:hover {
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 
        0 8px 30px rgba(0, 123, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tour-variant-card.expanded {
    border-color: #007bff;
    box-shadow: 
        0 12px 40px rgba(0, 123, 255, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Заголовок карточки (кликабельная область) */
.tour-variant-header {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 251, 252, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.tour-variant-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.tour-variant-header:hover::before {
    left: 100%;
}

.tour-variant-header:hover {
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.95) 0%, rgba(240, 247, 255, 0.95) 100%);
}

.tour-variant-card.expanded .tour-variant-header {
    background: linear-gradient(135deg, rgba(240, 247, 255, 1) 0%, rgba(230, 243, 255, 1) 100%);
    border-bottom-color: rgba(0, 123, 255, 0.15);
}

/* Заголовок с иконкой */
.tour-variant-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tour-variant-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1d23;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a1d23 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expand-icon {
    color: #6c757d;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.expand-icon:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: scale(1.1);
}

.expand-icon svg {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 16px;
    height: 16px;
}

.tour-variant-card.expanded .expand-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.tour-variant-card.expanded .expand-icon svg {
    transform: rotate(180deg);
}

/* Блок цен */
.tour-variant-prices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tour-variant-price-item {
    flex: 1;
    min-width: 95px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 255, 0.8) 100%);
    border: 1px solid rgba(0, 123, 255, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tour-variant-price-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3, #004085);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-variant-price-item:hover::before {
    opacity: 1;
}

.tour-variant-price-item:hover {
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.9) 0%, rgba(230, 243, 255, 0.9) 100%);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.tour-variant-price-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tour-variant-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #007bff;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 123, 255, 0.2);
}

.tour-variant-price.no-price {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    text-shadow: none;
}

/* Детальная информация */
.tour-variant-details {
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.6) 0%, rgba(240, 247, 255, 0.8) 100%);
    border-top: 1px solid rgba(0, 123, 255, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: none !important; /* Принудительно скрываем по умолчанию */
    position: relative;
}

.tour-variant-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.3), transparent);
}

/* Показываем детали только когда явно открыто */
.tour-variant-details[style*="display: block"] {
    display: block !important;
}

.tour-variant-details[style*="display: block"] {
    animation: expandDetails 0.3s ease-out;
}

@keyframes expandDetails {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Описание */
.tour-variant-description {
    margin-bottom: 24px;
    color: #2c3e50;
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 123, 255, 0.15);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tour-variant-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px 0 0 2px;
}

/* План программы */
.tour-variant-plan {
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 240, 0.95) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(40, 167, 69, 0.15);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tour-variant-plan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #28a745 0%, #1e7e34 100%);
    border-radius: 2px 0 0 2px;
}

.tour-variant-plan .detail-header {
    margin-bottom: 12px;
    color: #1a1d23;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.tour-variant-plan .detail-content {
    color: #2c3e50;
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

/* Метаинформация */
.tour-variant-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.tour-variant-duration,
.tour-variant-participants {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.9) 100%);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tour-variant-duration:hover,
.tour-variant-participants:hover {
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.95) 0%, rgba(230, 243, 255, 0.95) 100%);
    border-color: rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.tour-variant-duration strong,
.tour-variant-participants strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a1d23;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Сетка деталей */
.tour-variant-details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.tour-variant-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.tour-variant-detail::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px 0 0 2px;
}

.tour-variant-detail.includes::before {
    background: linear-gradient(180deg, #28a745 0%, #1e7e34 100%);
}

.tour-variant-detail.excludes::before {
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
}

.tour-variant-detail.requirements::before {
    background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%);
}

.tour-variant-detail:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tour-variant-detail.includes:hover {
    background: linear-gradient(135deg, rgba(240, 255, 240, 0.95) 0%, rgba(230, 248, 230, 0.95) 100%);
}

.tour-variant-detail.excludes:hover {
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.95) 0%, rgba(248, 230, 230, 0.95) 100%);
}

.tour-variant-detail.requirements:hover {
    background: linear-gradient(135deg, rgba(255, 252, 240, 0.95) 0%, rgba(248, 245, 230, 0.95) 100%);
}

/* Иконки деталей */
.tour-variant-detail-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tour-variant-detail-icon.includes {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.tour-variant-detail-icon.excludes {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.tour-variant-detail-icon.requirements {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.tour-variant-detail-icon.requirements {
    color: #ffc107;
}

.tour-variant-detail-text {
    color: #2c3e50;
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.tour-variant-detail-text strong {
    color: #1a1d23;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* Поддержка цветовых акцентов из редактора */
.tour-variant-detail-text .fmt-red,
.tour-variant-description .fmt-red,
.tour-variant-plan .fmt-red {
    color: #dc2626;
    font-weight: 600;
}

.tour-variant-detail-text .fmt-blue,
.tour-variant-description .fmt-blue,
.tour-variant-plan .fmt-blue {
    color: #2563eb;
    font-weight: 600;
}

.tour-variant-detail-text .fmt-green,
.tour-variant-description .fmt-green,
.tour-variant-plan .fmt-green {
    color: #059669;
    font-weight: 600;
}

.tour-variant-detail-text .fmt-gold,
.tour-variant-description .fmt-gold,
.tour-variant-plan .fmt-gold {
    color: #d97706;
    font-weight: 600;
}

/* Кнопка бронирования */
.tour-variant-booking {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
    margin-top: 20px;
}

.tour-variant-book-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 
        0 4px 15px rgba(0, 123, 255, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.tour-variant-book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.tour-variant-book-btn:hover::before {
    left: 100%;
}

.tour-variant-book-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 50%, #002752 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 6px 20px rgba(0, 123, 255, 0.35),
        0 3px 10px rgba(0, 0, 0, 0.12);
}

.tour-variant-book-btn:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 
        0 3px 12px rgba(0, 123, 255, 0.25),
        0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Состояния загрузки и ошибок */
.loading,
.error,
.no-variants {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1rem;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.no-variants {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tour-variant-header {
        padding: 12px 16px;
    }
    
    .tour-variant-details {
        padding: 14px;
    }
    
    .tour-variant-prices {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .tour-variant-price-item {
        min-width: 90px;
        flex: 1 1 auto;
        padding: 8px 10px;
    }
    
    .tour-variant-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tour-variant-name {
        font-size: 1.1rem;
    }
    
    .tour-variant-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tour-variant-header {
        padding: 10px 14px;
    }
    
    .tour-variant-details {
        padding: 12px;
    }
    
    .tour-variant-title {
        margin-bottom: 8px;
    }
    
    .tour-variant-name {
        font-size: 1rem;
    }
    
    .tour-variant-price {
        font-size: 0.95rem;
    }
    
    .tour-variant-detail {
        padding: 12px;
    }
    
    .tour-variant-price-item {
        min-width: 80px;
        padding: 6px 8px;
        flex: 1 1 auto;
    }
    
    .tour-variant-prices {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .tour-variant-description,
    .tour-variant-plan {
        padding: 12px;
    }
    
    .tour-variant-book-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        min-width: 120px;
        border-radius: 18px;
    }
}

/* Стили для галереи вариантов */
.variant-gallery {
    margin-bottom: 20px;
}

.variant-gallery-loading,
.variant-gallery-error {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.variant-gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.variant-gallery-carousel.single-image .variant-gallery-nav,
.variant-gallery-carousel.single-image .variant-gallery-dots {
    display: none;
}

.variant-gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.variant-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.variant-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px 16px 16px;
    font-size: 0.9rem;
}

.variant-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.variant-gallery-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(1.1);
}

.variant-gallery-nav svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.variant-gallery-nav.prev {
    left: 16px;
}

.variant-gallery-nav.next {
    right: 16px;
}

.variant-gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.variant-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.variant-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.variant-gallery-dot.active {
    background: #fff;
    border-color: rgba(0, 123, 255, 0.8);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .variant-gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .variant-gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .variant-gallery-nav.prev {
        left: 8px;
    }
    
    .variant-gallery-nav.next {
        right: 8px;
    }
    
    .variant-gallery-caption {
        font-size: 0.85rem;
        padding: 16px 12px 12px;
    }
}
