@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Светло-голубой фон для страницы */
body {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
}

/* Общие стили для всех элементов страницы цен */
.prices-container,
.prices-container * {
    font-family: 'Montserrat', sans-serif;
}

/* Стили для страницы цен */
.prices-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);

    font-family: 'Montserrat', sans-serif;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* RTL adjustments */
.prices-container.rtl {
    direction: rtl;
}
.prices-container.rtl .prices-header,
.prices-container.rtl .filter-title,
.prices-container.rtl .location-title,
.prices-container.rtl .currency-note,
.prices-container.rtl .contact-info { text-align: right; }
.prices-container.rtl .tours-table th,
.prices-container.rtl .tours-table td { text-align: right; }
.prices-container.rtl .filter-buttons { justify-content: flex-start; }

.prices-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 12px;
}

.prices-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.prices-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* Фильтры по локациям */
.location-filters {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3e7ff 100%);
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
}

.filter-btn.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #4facfe;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.location-section {
    margin-bottom: 50px;
}

.location-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.tours-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.tours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.tours-table thead {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3e7ff 100%);
}

.tours-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
    white-space: nowrap;
}

.tours-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.tours-table tbody tr:hover {
    background-color: #f8f9ff;
}

.tours-table td {
    padding: 15px 12px;
    vertical-align: top;
}

/* Колонка названия тура */
.tour-name {
    min-width: 250px;
}

.tour-title {
    margin-bottom: 5px;
}

.tour-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tour-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.tour-type {
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Колонка длительности */
.duration {
    min-width: 100px;
    text-align: center;
}

.duration-time {
    font-weight: 500;
    color: #333;
}

.start-time {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Колонки цен */
.price-adult,
.price-child {
    min-width: 100px;
    text-align: center;
}

.price-main {
    font-weight: 600;
    color: #2d5a5a;
}

.price-value {
    font-size: 1.1rem;
}

.price-currency {
    font-size: 0.9rem;
    margin-left: 2px;
    color: #666;
}

.no-child-price,
.no-extras {
    color: #999;
    font-style: italic;
}

/* Колонка дополнительных опций */
.extras {
    min-width: 200px;
}

.extra-option {
    margin-bottom: 8px;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.extra-label {
    display: block;
    color: #555;
    margin-bottom: 2px;
}

.extra-price {
    color: #e67e22;
    font-weight: 500;
}

/* Колонка действий */
.actions {
    min-width: 120px;
    text-align: center;
}

.btn-book {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* Локационные цвета */
.tour-row[data-location="phuket"] .tour-link {
    color: #2e7d32;
}

.tour-row[data-location="phuket"] .btn-book {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.tour-row[data-location="sharm"] .tour-link {
    color: #1976d2;
}

.tour-row[data-location="sharm"] .btn-book {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.tour-row[data-location="hurghada"] .tour-link {
    color: #ff9800;
}

.tour-row[data-location="hurghada"] .btn-book {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* Подвал страницы */
.prices-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.currency-note {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-link.whatsapp {
    background: #25d366;
    color: white;
}

.contact-link.viber {
    background: #665cac;
    color: white;
}

.contact-link.telegram {
    background: #0088cc;
    color: white;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.no-tours {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-tours h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .prices-container {
        padding: 10px;
    }
    
    .prices-header {
        padding: 20px 15px;
        margin-top: 200px; /* Отступ сверху для мобильных */
    }
    
    .prices-header h1 {
        font-size: 1.8rem;
    }
    
    .prices-subtitle {
        font-size: 1rem;
    }
    
    .location-title {
        font-size: 1.5rem;
    }
    
    /* Адаптивность фильтров */
    .location-filters {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .filter-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .filter-btn {
        padding: 10px 15px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .tours-table {
        font-size: 12px;
    }
    
    .tours-table th,
    .tours-table td {
        padding: 10px 8px;
    }
    
    .tour-name {
        min-width: 200px;
    }
    
    .tour-link {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    
    .extras {
        min-width: 150px;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .prices-header {
        margin-top: 80px; /* Отступ сверху для очень маленьких экранов */
    }
    
    .tours-table-container {
        margin: 0 -10px;
        border-radius: 0;
    }
    
    /* 📱 УМЕНЬШЕННЫЕ ШРИФТЫ ДЛЯ МОБИЛЬНЫХ */
    .prices-header h1 {
        font-size: 1.4rem !important; /* Еще меньше заголовок */
    }
    
    .prices-subtitle {
        font-size: 0.85rem !important; /* Меньше подзаголовок */
    }
    
    .location-title {
        font-size: 1.2rem !important; /* Меньше заголовки локаций */
    }
    
    .filter-title {
        font-size: 0.85rem !important; /* Меньше заголовки фильтров */
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 11px !important; /* Меньше кнопки фильтров */
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    /* ТАБЛИЦА ЦЕНЫ - ОЧЕНЬ МЕЛКИЙ ШРИФТ */
    .tours-table {
        font-size: 9px !important; /* Очень мелкий шрифт для таблицы */
    }
    
    .tours-table th,
    .tours-table td {
        padding: 6px 3px !important; /* Меньше отступы */
        line-height: 1.2 !important; /* Плотнее строки */
    }
    
    /* ЦЕНЫ - САМОЕ ГЛАВНОЕ */
    .price-adult,
    .price-child {
        font-size: 10px !important; /* Очень мелкие цены */
        font-weight: 600 !important; /* Но жирные для читаемости */
        min-width: 60px;
    }
    
    .tour-name {
        min-width: 130px;
        font-size: 13px !important; /* Увеличенные названия туров */
    }
    
    .tour-link {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    .duration {
        min-width: 55px;
        font-size: 8px !important; /* Самые мелкие длительности */
    }
    
    .extras {
        min-width: 100px;
        font-size: 8px !important; /* Мелкие дополнения */
    }
    
    .actions {
        min-width: 70px;
    }
    
    .btn-book {
        padding: 4px 8px !important;
        font-size: 0.7rem !important; /* Мелкие кнопки */
    }
    
    .extra-option {
        font-size: 0.65rem !important; /* Очень мелкие опции */
        padding: 3px 5px !important;
    }
    
    /* КОНТАКТЫ И ПРОЧЕЕ */
    .contact-info {
        font-size: 0.8rem !important;
    }
    
    .currency-note {
        font-size: 0.75rem !important;
    }
}
