/* Адаптивность */
@media screen and (max-width: 1200px) {
    .main-container {
        max-width: 100%;
        padding: 1rem;
    }

    .search-container {
        border-radius: 12px;
    }
}

@media screen and (max-width: 992px) {
    .search-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-field {
        min-width: 180px;
    }

    .form-control {
        height: 44px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        padding: 0.75rem;
    }

    .search-container {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .search-form {
        padding: 1rem;
    }

    .search-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .search-field {
        width: 100%;
    }

    .dates-field,
    .nights-field {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .form-control {
        height: 48px;
        font-size: 1rem;
    }

    .search-field-label {
        font-size: 0.8rem;
    }

    .search-button {
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .search-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .search-tab {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }

    /* Мобильное отображение туров */
    .tours-container {
        margin: 1rem -0.5rem -0.5rem -0.5rem;
        padding: 0.5rem !important;
    }
    
    .tours-container .table {
        font-size: 0.8rem;
    }
    
    .tours-container .table td,
    .tours-container .table th {
        padding: 0.5rem;
    }
    
    .tours-container .table td:first-child {
        white-space: nowrap;
    }

    .tours-container .table td .fw-bold {
        font-size: 0.85rem;
    }

    .tours-container .table td small {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 576px) {
    .main-container {
        padding: 0;
    }

    .hero-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        padding: 0 1rem;
        margin-bottom: 1.25rem;
    }

    .search-container {
        padding: 0.75rem 0.5rem;
        border-radius: 0;
        background: transparent;
    }

    .search-form {
        padding: 1rem;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .form-control {
        font-size: 16px; /* Предотвращает масштабирование на iOS */
    }

    .search-field-label {
        font-size: 0.75rem;
    }

    .search-button {
        height: 44px;
    }

    /* Улучшение читаемости на мобильных */
    .hotel-card .card-body {
        padding: 0.75rem;
    }

    .hotel-card .card-title {
        font-size: 1.1rem;
    }

    .hotel-card .card-text {
        font-size: 0.9rem;
    }

    .price-amount {
        font-size: 1.25rem;
    }

    /* Мобильные туры */
    .tour-info {
        padding: 16px;
    }

    .tour-date {
        font-size: 16px;
    }

    .price-amount {
        font-size: 18px;
    }

    .tour-params {
        font-size: 15px;
    }

    .tour-room-type,
    .tour-operator-name {
        font-size: 14px;
    }
}

/* Поддержка высоких экранов */
@media screen and (min-height: 800px) {
    .main-container {
        min-height: 100vh;
    }
}