﻿/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

/* Общие стили для тур-страницы */


.tour-header {
    width: 100%;
    display: flex;
    background-color: #F9F9F9;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.tour-header-content {
    flex: 1;
    padding-right: 20px;
}

.tour-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.tour-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
}

.tour-rating {
    margin-bottom: 15px;
}

.star {
    color: #FFD700;
    font-size: 18px;
}

.star.empty {
    color: #ccc;
}

.rating-value {
    font-weight: bold;
    margin-left: 5px;
}

.reviews-count {
    color: #0066cc;
    text-decoration: none;
    margin-left: 10px;
}

.tour-price {
    margin-bottom: 15px;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.price-current {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.price-per {
    font-size: 14px;
    color: #666;
}

.tour-deposit {
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
}

.btn-book {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.tour-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

.gallery-item:hover .tour-image {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .tour-header {
        flex-direction: column;
    }
    
    .tour-header-content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .tour-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tour-description-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    font-family: Arial, sans-serif;
}

.tour-description {
    flex: 2;
}

.tour-sidebar {
    flex: 1;
}

.tour-description h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.tour-recommendation {
    background-color: #e8f5e9;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.recommendation-label {
    font-weight: bold;
    color: #4caf50;
    margin-right: 10px;
}

.tour-content {
    line-height: 1.6;
    color: #333;
}

.guide-info {text-align: center;}

.guide-info, .tour-details, .important-info, .refund-info {
    background-color: #F9F9F9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guide-info h3, .tour-details h3, .important-info h3, .refund-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.guide-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.guide-description {
    color: #666;
    margin-bottom: 10px;
}

.ask-question-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #40B44B;
    color: white !important;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.ask-question-btn:hover {
    background-color: #0056b3;

}

.guide-rating {
    margin-top: 10px;
    font-weight: bold;
    color: #f39c12;
}

.tour-details ul {
    list-style-type: none;
    padding: 0;
}

.tour-details li {
    margin-bottom: 10px;
    color: #555;
}

.tour-details li strong {
    color: #333;
}

.important-info, .refund-info {
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .tour-description-container {
        flex-direction: column;
    }

    .tour-sidebar {
        margin-top: 30px;
    }
}



.guide-quote {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-left: 4px solid #40B44B;
}

.guide-info, .tour-details, .tour-inclusions, .tour-landmarks, .important-info, .refund-info {
    margin-bottom: 20px;
}

.guide-info h3, .tour-details h3, .tour-inclusions h3, .tour-landmarks h3, .important-info h3, .refund-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #DBE3EC;
    padding-bottom: 5px;
}

.guide-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.guide-description {
    color: #666;
    margin-bottom: 10px;
}

.ask-question-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #40B44B;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.ask-question-btn:hover {
    background-color: #3BA645;
}

.guide-rating {
    margin-top: 10px;
    font-weight: bold;
    color: #f39c12;
}

.tour-description h2, .tour-description h3 {
    margin-bottom: 10px;
    padding-top: 20px;
    text-align: left;
}

.tour-content {
    margin-bottom: 30px;
}



.external-link-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


.exc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .exc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .exc-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tour-card-custom {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.tour-card-custom:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tour-card-custom__image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.tour-card-custom__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-card-custom__discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.tour-card-custom__content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-card-custom__title {
    font-size: 1.2em;
    margin: 0 0 10px;
}

.tour-card-custom__description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.tour-card-custom__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #666;
}

.tour-card-custom__duration,
.tour-card-custom__location {
    display: flex;
    align-items: center;
}

.tour-card-custom__duration i,
.tour-card-custom__location i {
    margin-right: 5px;
}

.tour-card-custom__rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-card-custom__star {
    color: #ffc107;
}

.tour-card-custom__star--empty {
    color: #e0e0e0;
}

.tour-card-custom__rating-value,
.tour-card-custom__reviews-count {
    font-size: 0.85em;
    color: #666;
}

.tour-card-custom__price {
    margin-top: auto;
    font-size: 1.2em;
    font-weight: bold;
}

.tour-card-custom__price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
    margin-right: 5px;
}

.tour-card-custom__price-current {
    color: #28a745;
}

.tour-card-custom__price-per {
    font-size: 0.7em;
    color: #666;
}

.tour-card-custom__type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
}

.tour-card-custom__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}



#sputnik8-reviews-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}
.sputnik8-reviews-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}
.sputnik8-reviews-list {
    display: grid;
    gap: 20px;
}
.sputnik8-review {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.sputnik8-review:hover {
    transform: translateY(-5px);
}
.sputnik8-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sputnik8-review-name {
    font-weight: bold;
    color: #4a4a4a;
}
.sputnik8-review-rating {
    display: flex;
}
.sputnik8-star {
    color: #ddd;
    font-size: 20px;
}
.sputnik8-star.full {
    color: #ffc107;
}
.sputnik8-star.half {
    position: relative;
    color: #ddd;
}
.sputnik8-star.half::before {
    content: '★';
    position: absolute;
    color: #ffc107;
    width: 50%;
    overflow: hidden;
}
.sputnik8-review-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}
.sputnik8-review-date {
    color: #999;
    font-style: italic;
}
#sputnik8-show-more {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#sputnik8-show-more:hover {
    background-color: #45a049;
}
.sputnik8-loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}
.sputnik8-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.tour-sidebar {
    flex: 1;
    padding: 20px;
    border-radius: 5px;
    position: relative; /* Добавлено для корректного позиционирования sticky */
}

/* Основные стили для прилипающего блока сайдбара */
.s8_sticky_booking_sidebar {
    position: fixed; /* Фиксированное позиционирование относительно окна браузера */
    top: 100px; /* Отступ сверху от окна */
    right: -320px; /* Скрыть блок за пределами экрана справа (300px ширина + 20px отступ) */
    width: 300px;
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: right 0.5s ease, opacity 0.5s ease; /* Плавная анимация */
    opacity: 0; /* Сделать блок невидимым изначально */
    z-index: 1000; /* Поверх других элементов */
}

/* Состояние видимости: блок выезжает на место */
.s8_sticky_booking_sidebar.visible {
    right: 20px; /* Позиция на экране с отступом */
    opacity: 1; /* Сделать видимым */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .s8_sticky_booking_sidebar {
        position: static; /* Отключить фиксированное позиционирование на мобильных */
        right: 0; /* Разместить блок в потоке документа */
        opacity: 1; /* Сделать блок всегда видимым */
        box-shadow: none;
        border: none;
        padding: 15px;
        width: 100%;
        margin-bottom: 20px;
    }
}



/* Стили для кнопки закрытия (опционально) */
.s8_close_sidebar {
    position: absolute;
    top: -10px;
    right: 0px;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333333;
}

.s8_close_sidebar:hover {
    color: #ff0000;
}

/* Стили для содержимого сайдбара */
.s8_sticky_booking_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.s8_sticky_booking_content img.s8_tour_image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.s8_sticky_booking_content .s8_tour_title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333333;
}

.s8_sticky_booking_content .s8_tour_price {
    font-size: 1.2em;
    color: #e74c3c;
    margin-bottom: 10px;
}

.s8_sticky_booking_content .s8_price_original {
    text-decoration: line-through;
    color: #999999;
    margin-right: 5px;
    font-size: 1em;
}

.s8_sticky_booking_content .s8_price_current {
    font-weight: bold;
    font-size: 1.2em;
}

.s8_sticky_booking_content .s8_price_per {
    display: block;
    font-size: 0.9em;
    color: #555555;
    margin-top: 5px;
}

.s8_sticky_booking_content .s8_booking_button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #28a745;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.s8_sticky_booking_content .s8_booking_button:hover {
    background-color: #218838;
}

.s8_external_link_icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    /* Если используете Font Awesome, добавьте иконку через HTML */
}

/* Плавная анимация при появлении (опционально, если хотите добавить дополнительную анимацию) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.tour-highlight {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.tour-highlight.discount {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.tour-highlight.recommendation {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.highlight-icon {
    font-size: 18px;
    margin-right: 8px;
}

.highlight-text {
    font-weight: 500;
}

@media (max-width: 768px) {
    .tour-highlight {
        font-size: 12px;
    }
    .highlight-icon {
        font-size: 16px;
    }
}


.sputnik8-reviews-summary {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sputnik8-reviews-rating {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.sputnik8-reviews-rating-value {
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

.sputnik8-reviews-count {
    font-size: 16px;
    color: #666;
}


/* ===================================================
   Стили для блока "Что включено" и "Что не включено"
   =================================================== */
   .article-post .tour-inclusions {
    padding: 40px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-post .tour-inclusions .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-post .tour-inclusions .col-md-6 {
    flex: 1 1 45%;
    min-width: 280px;
}

.article-post .tour-inclusions h3 {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.article-post .tour-inclusions h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff9800;
    left: 0;
    bottom: 0;
}

.article-post .tour-inclusions .included-list,
.article-post .tour-inclusions .not-included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-post .tour-inclusions .included-list li,
.article-post .tour-inclusions .not-included-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.article-post .tour-inclusions .included-list li::before,
.article-post .tour-inclusions .not-included-list li::before {
    content: '✔️'; /* Иконка для включенных пунктов */
    position: absolute;
    left: 0;
    top: 0;
    color: #ff9800;
    font-size: 1em;
}

.article-post .tour-inclusions .not-included-list li::before {
    content: '❌'; /* Иконка для исключённых пунктов */
    color: #f44336;
}

/* ===================================================
   Стили для блока "Достопримечательности на маршруте"
   =================================================== */
.article-post .tour-landmarks {
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-post .tour-landmarks h3 {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.article-post .tour-landmarks h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff9800;
    left: 0;
    bottom: 0;
}

.article-post .tour-landmarks .landmarks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-post .tour-landmarks .landmarks-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.article-post .tour-landmarks .landmarks-list li::before {
    content: '🏛️'; /* Иконка для достопримечательностей */
    position: absolute;
    left: 0;
    top: 0;
    color: #2196f3;
    font-size: 1em;
}

/* ===================================================
   Стили для блока "Важная информация"
   =================================================== */
.article-post .important-info {
    padding: 40px 20px;
    background-color: #E8F5E9;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-post .important-info h3 {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.article-post .important-info h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #40B44B;
    left: 0;
    bottom: 0;
}

.article-post .important-info p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* ===================================================
   Дополнительные стили для адаптивности
   =================================================== */
@media (max-width: 768px) {
    .article-post .tour-inclusions .col-md-6 {
        flex: 1 1 100%;
    }

    .article-post .tour-inclusions {
        padding: 20px 10px;
    }

    .article-post .tour-landmarks,
    .article-post .important-info {
        padding: 20px 10px;
    }
}



.tour-inclusions .included-list ul > li::before,
.tour-inclusions .not-included-list ul > li::before,
.tour-landmarks .landmarks-list ul > li::before {
   border: none;
}


.refund-info {
    padding: 40px 20px;
    background-color: #fffbe6;
    border-radius: 8px;
    margin-bottom: 40px;
}


.exc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    justify-content: center;
}

@media (min-width: 768px) {
    .exc-cards-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .exc-cards-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
}

.tour-card-custom {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
}


/* Основной контейнер */
.s8-exc-search-sort-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    position: relative;
}

.s8-exc-search-sort-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f6f8fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Стили сортировки */
.s8-exc-sort-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.s8-exc-sort-container label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
    white-space: nowrap;
}

.s8-exc-sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 10px 30px 10px 10px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.s8-exc-sort-select:hover, .s8-exc-sort-select:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    outline: none;
}

/* Стили поиска */
.s8-exc-search-form {
    flex-grow: 1;
    display: flex;
}

.s8-exc-search-input {
    flex-grow: 1;
    border: 2px solid #3498db;
    border-right: none;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.s8-exc-search-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.s8-exc-search-button {
    background-color: #3498db;
    border: 2px solid #3498db;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s8-exc-search-button:hover {
    background-color: #2980b9;
}

.s8-exc-search-button svg {
    width: 20px;
    height: 20px;
}

/* Стили результатов поиска */
.s8-exc-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
}

.s8-exc-result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.s8-exc-result-item:last-child {
    border-bottom: none;
}

.s8-exc-result-item:hover {
    background-color: #f9f9f9;
}

.s8-exc-result-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.s8-exc-result-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
}

.s8-exc-result-content {
    flex-grow: 1;
}

.s8-exc-result-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.s8-exc-result-type,
.s8-exc-result-duration,
.s8-exc-result-price {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.s8-exc-result-type {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}

.s8-exc-result-price {
    font-weight: bold;
    color: #28a745;
}

.s8-exc-result-icon {
    margin-right: 5px;
}

/* Стили спиннера и оверлея */
.excursion-sort-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* Увеличен размер */
    height: 80px; /* Увеличен размер */
    z-index: 1001;
    display: none;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #3498db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.loading-text {
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.excursion-sort-spinner::before,
.excursion-sort-spinner::after {
    content: '';
    position: absolute;
    border: 5px solid transparent; /* Увеличена толщина границы */
    border-radius: 50%;
    animation: excursion-sort-spin 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; /* Увеличено время анимации */
}

.excursion-sort-spinner::before {
    width: 100%;
    height: 100%;
    border-top-color: #3498db;
    border-right-color: #3498db;
    animation-delay: -1.5s;
}

.excursion-sort-spinner::after {
    width: 70%;
    height: 70%;
    border-bottom-color: #28a745;
    border-left-color: #28a745;
    top: 15%;
    left: 15%;
}

@keyframes excursion-sort-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(720deg); } /* Увеличено количество оборотов */
}

.excursion-sort-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(52, 73, 94, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
}

/* Стили для главной страницы */
.home .excursion-sort-spinner,
.home .excursion-sort-overlay {
    display: none !important; /* Принудительно скрываем на главной странице */
}

/* Индикатор загрузки для главной страницы */
.home .loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #3498db;
    display: none;
}

.home .loading-indicator::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
.excursion-sort-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(52, 73, 94, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .s8-exc-search-sort-container {
        flex-direction: column;
        align-items: stretch;
    }

    .s8-exc-sort-container {
        margin-right: 0;
        margin-bottom: 15px;
        justify-content: space-between;
    }

    .s8-exc-sort-select {
        flex-grow: 1;
        margin-left: 10px;
    }

    .s8-exc-search-form {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .s8-exc-search-sort-container {
        padding: 10px;
    }

    .s8-exc-sort-container {
        flex-direction: column;
        align-items: stretch;
    }

    .s8-exc-sort-container label {
        margin-bottom: 5px;
    }

    .s8-exc-sort-select {
        width: 100%;
        margin-left: 0;
    }

    .s8-exc-search-input,
    .s8-exc-search-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Стили для сетки экскурсий */
.exc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tour-card-custom {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-card-custom {
    animation: fadeInUp 0.5s ease-out;
}


label {margin-bottom: 0px;}


/* Секция Категорий */
.home-categories {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.home-categories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовок секции */
.home-categories h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

/* Сетка категорий */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Бейджи категорий */
.category-item {
    background-color: #ffffff;
    color: #333;
    padding: 8px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 120px;
    flex: 1 1 calc(16.666% - 15px); /* 6 items per row by default */
    max-width: calc(16.666% - 15px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Кнопка "Показать еще" */
.load-more-button {
    display: block;
    margin: 30px auto 0;
    padding: 12px 24px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.load-more-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.4);
}

.load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(41, 128, 185, 0.4);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .category-item {
        flex: 1 1 calc(20% - 15px); /* 5 items per row */
        max-width: calc(20% - 15px);
    }
}

@media (max-width: 992px) {
    .category-item {
        flex: 1 1 calc(25% - 15px); /* 4 items per row */
        max-width: calc(25% - 15px);
    }
}

@media (max-width: 768px) {
    .category-item {
        flex: 1 1 calc(33.333% - 15px); /* 3 items per row */
        max-width: calc(33.333% - 15px);
    }
    .home-categories h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 576px) {
    .category-item {
        flex: 1 1 calc(50% - 15px); /* 2 items per row */
        max-width: calc(50% - 15px);
    }
    .home-categories h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 360px) {
    .category-item {
        flex: 1 1 100%; /* 1 item per row */
        max-width: 100%;
    }
}

.tour-summary {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}


.page-header h1.page-title {font-size: 28px;}

button#load-more-button {margin-bottom: 30px;}

.category-text {   
    background: #F9F9F9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;}