/* ===== СЕКЦИЯ ТУРОВ ===== */
.tours-combined-section {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 15, 0.5), transparent);
    position: relative;
}

/* Заголовок секции */
.tours-combined-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Навигация и фильтры */
.tours-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.route-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    color: white;
    border-color: transparent;
}

.filter-btn i {
    margin-right: 0.3rem;
}

/* Сетка туров */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Карточка тура */
.tour-card-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

.tour-card {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-blue);
    border-color: rgba(0, 243, 255, 0.3);
}

/* Бейдж */
.tour-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(45deg, var(--neon-magenta), #ff0080);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
}

/* Кнопка быстрого просмотра */
.quick-view-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.quick-view-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: var(--glow-blue);
}

/* Изображение */
.tour-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image {
    transform: scale(1.05);
}

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.tour-type {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(5px);
}

/* Контент */
.tour-content {
    padding: var(--card-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tour-header {
    margin-bottom: 0.5rem;
}

.tour-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-title a {
    color: inherit;
    text-decoration: none;
}

.tour-title a:hover {
    color: var(--neon-blue);
}

.tour-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Статистика */
.tour-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
}

.stat i {
    color: var(--amber);
    font-size: 1.1rem;
}

.stat-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Маршрут компактный */
.tour-route-compact {
    margin: 0.5rem 0;
}

.route-title {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.route-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    white-space: nowrap;
}

.route-arrow {
    color: var(--neon-blue);
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Даты */
.tour-dates {
    margin: 0.5rem 0;
}

.dates-title {
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.date-option {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.date-option:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--neon-blue);
}

.date-option.selected {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

.date-option.selected::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 5px;
    color: var(--neon-green);
    font-size: 0.8rem;
    font-weight: bold;
}

.date-option.no-seats {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.date-month {
    color: var(--neon-blue);
    font-size: 0.7rem;
    text-transform: lowercase;
}

.date-time {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.date-seats {
    color: var(--neon-green);
    font-size: 0.7rem;
    font-weight: 500;
}

.no-dates {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Футер тура */
.tour-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tour-price {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.current-price {
    font-size: 1.5rem;
    color: var(--neon-green);
}

.old-price {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.price-per-person {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.book-tour-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.book-tour-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.book-tour-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

/* Секция футера */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}



/* СТРАНИЦА СПИСКА ТУРОВ */
.tours-page {
    padding: 40px 0;
}

.tours-page .page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--neon-blue);
    position: relative;
    padding-bottom: 1rem;
}

.tours-page .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta));
}

.tours-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-link {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-link.active {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    color: white;
    border-color: transparent;
}

/* СТРАНИЦА ТУРА */
.tour-page {
    padding: 90px 0;
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tour-header .tour-title {
    font-size: 2.5rem;
    margin: 0;
}

.tour-badge-large {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, var(--neon-magenta), #ff0080);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
}

.tour-gallery {
    margin-bottom: 3rem;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.gallery-thumbnails .thumbnail {
    height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    opacity: 0.8;
}

.gallery-thumbnails .thumbnail:hover {
    border-color: var(--neon-blue);
    transform: scale(0.98);
    opacity: 1;
}

.gallery-thumbnails .thumbnail.active {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    opacity: 1;
}

.tour-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.tour-description-section h2,
.tour-route-section h2,
.tour-features-section h2,
.tour-related-posts h2 {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
}

.tour-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.route-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.route-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 243, 255, 0.2);
}

.route-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: var(--glow-blue);
}

.route-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.route-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Исправление для списка "Что включено" */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.3rem 0;
}

.features-list i {
    color: var(--neon-green);
}

.booking-card {
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-lg);
}

.tour-price-block {
    text-align: center;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2.5rem;
    color: var(--neon-green);
    font-weight: 700;
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.tour-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item i {
    width: 20px;
    color: var(--neon-blue);
}

.meta-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item strong {
    color: var(--text-primary);
    margin-left: 0.3rem;
}

.tour-dates-select {
    margin-bottom: 1.5rem;
}

.tour-dates-select label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tour-dates-select select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
}

.tour-dates-select select option {
    background: var(--deep-space);
    color: var(--text-primary);
}

.book-now-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3);
}

.no-dates-message {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
}

.no-dates-message i {
    font-size: 2rem;
    color: var(--neon-magenta);
    margin-bottom: 0.5rem;
}

.tour-related-posts {
    margin-top: 3rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--glow-blue);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-decoration: none; /* Убираем подчёркивание */
}

.related-post-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none; /* Убираем подчёркивание */
}

/* Исправление: убираем подчёркивание у ссылок на статьи */
.related-post-content .read-more {
    color: var(--neon-blue);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.related-post-content .read-more:hover {
    color: var(--neon-magenta);
    transform: translateX(5px);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-link:hover {
    color: inherit;
}

.related-post-link h4,
.related-post-link p {
    text-decoration: none;
}

@media (max-width: 992px) {
    .tour-content-grid {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: static;
    }

    .main-image {
        height: 400px;
    }

    .tour-header .tour-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tour-page {
        padding: 20px 0;
    }

    .tour-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-image {
        height: 300px;
    }

    /* Адаптация для мобильных - список в одну колонку */
    .features-list {
        grid-template-columns: 1fr;
    }

    .tour-description {
        font-size: 1rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .tour-header .tour-title {
        font-size: 1.6rem;
    }

    .main-image {
        height: 250px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-thumbnails .thumbnail {
        height: 60px;
    }
}