/* --- СТИЛИ СТРАНИЦЫ "ВСЕ ТУРЫ" (all-tours-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: ПАНЕЛЬ ФИЛЬТРОВ ГОРОДОВ ВЫЕЗДА --- */
.combined-filter-bar {
    background: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    
    /* Removed sticky positioning to prevent filter from covering content */
    position: relative;
    /* top: 80px;  Removed this line */
    z-index: 1; /* Reduced z-index since it's no longer sticky */
    
    /* Kept the shadow for visual separation */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.combined-filter-bar .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.combined-filter-bar h3 {
    text-align: center;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-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;
}

.filter-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    color: var(--text-color);
}

.filter-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 2px auto !important; /* Reduced bottom margin as per specification */
    padding: 0 10px; /* 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;
}
/* END NEW */

/* Стили для .quiz-cta (БЛОК 4) 
также уже есть в 'style.css'.
*/

/* Departure Cities */
.departure-cities { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 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) {
    .combined-filter-bar {
        /* Remove sticky positioning on mobile */
        position: relative;
        top: auto;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .all-tours-section {
        padding: 40px 0;
    }
}