/*
Theme Name: Волга-Инфо-Тур
Author: Magnus
Version: 2.0
Description: SEO-оптимизированная тема для автобусных туров
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.tours-section { padding: 60px 0; }

.section-title {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 4px solid #f59e0b;
}

.cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    width: 100%;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.card-multiday {
    background: #fffbeb;
    border: 2px solid #f59e0b;
}

.card-multiday .card-title {
    color: #d97706;
}

.card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.3;
    min-height: 44px;
}

.card-dates {
    font-size: 13px;
    color: #f59e0b;
    margin: 0 0 10px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-date-badge {
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.card-price {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: auto 0 15px 0;
}

.card-price span {
    color: #0ea5e9;
    font-size: 17px;
}

/* === ИСПРАВЛЕНИЕ 2: Кнопка с закругленными углами === */
.view-tour-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px 16px;
    padding: 12px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
}

.view-tour-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.info-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 14px;
    color: #f59e0b;
    gap: 10px;
}

.info-row i {
    width: 20px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.dates-inline {
    color: #f59e0b;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .card-multiday {
        border: 2px solid #f59e0b;
    }
    
    .card-img {
        height: 200px !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        filter: brightness(1.05) contrast(1.02) !important;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .view-tour-btn {
        font-size: 13px;
        padding: 10px;
    }
}