/* --- СТИЛИ СТРАНИЦЫ "ТУРЫ ПО ГОРОДУ ВЫЕЗДА" (departure-city-style.css) --- */

/* --- БЛОК 1: ЗАГОЛОВОК СТРАНИЦЫ --- */
.tours-hero {
    background-color: var(--light-color);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.tours-hero h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.tours-hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* --- БЛОК 2: ПАНЕЛЬ ФИЛЬТРОВ --- */
.category-filter-bar {
    background: var(--white-color);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    
    /* "Прилипание" - ключевая UX-фишка */
    position: sticky;
    /* 80px - примерная высота вашей шапки .header */
    top: 80px; 
    z-index: 90; /* Ниже шапки, но выше контента */
    
    /* Плавная тень для "отрыва" от контента */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.category-filter-bar .container {
    display: flex;
    flex-wrap: wrap; /* Для переноса на моб. */
    justify-content: center; /* Центрируем кнопки */
    gap: 10px;
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 30px; /* Форма "пилюли" */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    color: var(--text-color);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* --- БЛОК 3: СЕТКА ТУРОВ --- */
.all-tours-section {
    padding: 60px 0;
    background-color: #fcfcfc; /* Чуть-чуть не белый фон */
}

/* Стили для .tours-grid и .tour-card 
уже существуют в вашем главном 'style.css'.
Мы их просто переиспользуем.
*/

/* NEW: Style for tour review info below image */
.tour-review-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin: 0 0 8px auto !important; /* Increased bottom margin for better spacing */
    padding: 0 15px; /* Add some padding to prevent text from touching edges */
}

.tour-review-count-below {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
}

.tour-average-rating {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block; /* Ensure it's visible */
}

.tour-rating-star {
    color: #E0A01E; /* Gold color for the star */
    font-size: 0.8rem;
    font-weight: 500;
}

/* Tour card title spacing */
.tour-card-content h3 {
    margin: 15px 0 10px 0; /* Consistent top and bottom margins */
    padding: 0;
}
/* END NEW */

/* Стили для .quiz-cta (БЛОК 4) 
также уже есть в 'style.css'.
*/

/* Departure Cities */
.departure-cities { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.city-item { 
    display: flex; 
    align-items: center; 
    font-size: 0.8rem; 
    color: #666; 
    background: #f5f5f5; 
    padding: 2px 8px; 
    border-radius: 10px; 
}
.city-item .location-icon { margin-right: 3px; width: 12px; height: 12px; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .category-filter-bar {
        /* Высота шапки на мобильных может быть меньше */
        top: 70px; 
    }
    
    .category-btn {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .all-tours-section {
        padding: 40px 0;
    }
}