/* ============================================
   ПАЛИТРА ТУР - Стили каталога туров
   ============================================ */

/* Контейнер страницы */
.tours-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Заголовок */
.tours-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #1a2c3e;
    margin-bottom: 15px;
}

.tours-subtitle {
    text-align: center;
    color: #6b7f8f;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Преимущества */
.tours-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-radius: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a2c3e;
    font-size: 14px;
}

.feature-item .icon {
    font-size: 22px;
}

/* Фильтры */
.tours-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #1a2c3e;
    font-size: 14px;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    min-width: 180px;
}

.filter-select:focus {
    border-color: #00afac;
    outline: none;
}

.btn-filter {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-hot {
    background: #fff5f0;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-hot:hover {
    background: #ff6b35;
    color: white;
}

.btn-hot.active {
    background: #ff6b35;
    color: white;
}

/* Счетчик */
.tours-count {
    margin-bottom: 20px;
    color: #6b7f8f;
    font-size: 14px;
}

.tours-count strong {
    color: #1a2c3e;
}

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

/* Карточка тура */
.tour-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f5;
}

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

.tour-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f0f5f9;
}

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

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

.tour-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, #f0f5f9, #e2e8f0);
}

/* Бейджи */
.badge {
    position: absolute;
    z-index: 2;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.badge-discount {
    top: 15px;
    left: 15px;
    background: #ff4757;
}

.badge-hot {
    top: 15px;
    right: 15px;
    background: #ff6b35;
    animation: pulse 2s infinite;
}

.badge-country {
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
}

.badge-country span {
    background: rgba(0,175,172,0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,107,53,0); }
}

/* Информация карточки */
.tour-card-info {
    padding: 20px;
}

.tour-card-country {
    margin-bottom: 10px;
}

.tour-card-country span {
    background: #e0f7f6;
    color: #00afac;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
}

.tour-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tour-card-title a {
    color: #1a2c3e;
    text-decoration: none;
    transition: color 0.2s;
}

.tour-card-title a:hover {
    color: #00afac;
}

.tour-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tour-card-duration,
.tour-card-route {
    font-size: 13px;
    color: #6b7f8f;
}

.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eef2f5;
}

.tour-card-price-old {
    font-size: 13px;
    color: #b0b8c1;
    text-decoration: line-through;
    display: block;
}

.tour-card-price {
    font-size: 22px;
    font-weight: 800;
    color: #ff6b35;
}

.btn-details {
    display: inline-block;
    background: linear-gradient(135deg, #00afac, #008b8b);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-details:hover {
    background: linear-gradient(135deg, #008b8b, #006666);
    transform: translateX(3px);
    color: white;
}

/* Пагинация */
.tours-pagination {
    text-align: center;
    margin: 40px 0 60px;
}

.tours-pagination .page-numbers {
    display: inline-flex;
    gap: 5px;
}

.tours-pagination a,
.tours-pagination span {
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.tours-pagination a {
    background: #f0f5f9;
    color: #1a2c3e;
}

.tours-pagination a:hover {
    background: #00afac;
    color: white;
}

.tours-pagination .current {
    background: #00afac;
    color: white;
}

/* Нет туров */
.tours-empty {
    text-align: center;
    padding: 60px 20px;
}

.tours-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.tours-empty h3 {
    font-size: 22px;
    color: #1a2c3e;
    margin-bottom: 10px;
}

.tours-empty p {
    color: #6b7f8f;
    margin-bottom: 25px;
}

.btn-all-tours {
    display: inline-block;
    background: #00afac;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-all-tours:hover {
    background: #008b8b;
    color: white;
}

/* Блок стран */
.countries-section {
    margin: 60px 0;
}

.countries-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a2c3e;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.countries-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00afac, #ff6b35);
    border-radius: 3px;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.country-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid #eef2f5;
    display: block;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,175,172,0.15);
}

.country-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #00afac;
}

.country-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
}

.country-card-name {
    font-weight: 700;
    font-size: 16px;
    color: #1a2c3e;
    margin-bottom: 8px;
}

.country-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #ff6b35;
    margin-bottom: 5px;
}

.country-card-count {
    font-size: 12px;
    color: #8a9aa8;
}

/* Контактный блок */
.contact-block {
    background: linear-gradient(135deg, #1a2c3e, #0f1e2a);
    border-radius: 24px;
    padding: 45px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 60px 0;
}

.contact-block-text h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
}

.contact-block-text p {
    color: #b8d0dc;
    font-size: 14px;
}

.contact-block-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-phone {
    background: rgba(255,255,255,0.1);
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-phone:hover {
    background: #00afac;
    color: white;
}

.btn-callback {
    background: linear-gradient(135deg, #f5a623, #e09515);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-callback:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245,166,35,0.3);
}

/* Адаптив */
@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tours-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tours-heading {
        font-size: 28px;
    }
    
    .contact-block {
        flex-direction: column;
        text-align: center;
    }
}