/* Airports Listing Page Styles */

.airports-listing-page {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 60vh;
}

/* Header */
.airports-listing-header {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.airports-listing-header h1 {
    font-size: 1.75rem;
}

@media (min-width: 992px) {
    .airports-listing-header h1 {
        font-size: 2rem;
    }
}

.stat-number {
    line-height: 1;
}

/* Sort Controls */
.airports-controls {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Filter Row - equal width buttons on one row */
.filter-row {
    display: flex;
    gap: 0.75rem;
}

.filter-row > a,
.filter-row > .filter-dropdown {
    flex: 1 1 0;
    min-width: 0;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0D3654;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    background: #0D3654;
    border-color: #0D3654;
    color: #fff;
    text-decoration: none;
}

.filter-btn.active {
    background: #FF5231;
    border-color: #FF5231;
    color: #fff;
}

.filter-btn.active:hover {
    background: #e04527;
    border-color: #e04527;
    color: #fff;
}

/* Country Dropdown */
.dropdown-menu-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu-scroll .dropdown-item.active {
    background-color: #FF5231;
}

.dropdown-menu-scroll .dropdown-item:hover:not(.active) {
    background-color: #f8f9fa;
}

@media (max-width: 575px) {
    .filter-row {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }
}

/* Airport Cards */
.airport-list-card {
    display: block;
}

.airport-list-card .card {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* IATA Badge - scoped to airports listing page only */
.airports-listing-page .iata-badge {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f4 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    border: 1px solid #d8dde1;
}

.airports-listing-page .badge-iata {
    font-size: 1rem;
    font-weight: 700;
    color: #0D3654;
    letter-spacing: 0.5px;
}

/* Airport Info */
.airport-info {
    overflow: hidden;
}

.airport-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.airport-location {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wait Time Badge */
.wait-time-badge {
    min-width: 70px;
}

.wait-badge {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.wait-value {
    font-size: 1.25rem;
    line-height: 1;
}

.wait-unit {
    font-size: 0.7rem;
    display: block;
    margin-top: 2px;
    opacity: 0.8;
}

.wait-na {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Wait time severity colors - matching airport-dashboard.css */
.wait-badge.wait-low {
    background: #d1fae5;
    color: #065f46;
}

.wait-badge.wait-medium {
    background: #fef3c7;
    color: #92400e;
}

.wait-badge.wait-high {
    background: #fed7aa;
    color: #9a3412;
}

.wait-badge.wait-very-high {
    background: #fecaca;
    color: #991b1b;
}

.wait-badge.wait-unknown {
    background: #f3f4f6;
    color: #6b7280;
}


/* Pagination */
.airports-pagination {
    margin-bottom: 3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.airports-pagination .pagination {
    gap: 0.25rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.airports-pagination .page-link {
    border-radius: 0.375rem;
    padding: 0.5rem 0.875rem;
    color: #0D3654;
    border-color: #e9ecef;
    white-space: nowrap;
}

.airports-pagination .page-item.active .page-link {
    background-color: #FF5231;
    border-color: #FF5231;
    color: #fff;
}

.airports-pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #0D3654;
}

.airports-pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 82, 49, 0.25);
    border-color: #FF5231;
}

.airports-pagination .page-item.active .page-link:hover {
    background-color: #e04527;
    border-color: #e04527;
    color: #fff;
}

/* Mobile pagination - prevent overflow */
@media (max-width: 575px) {
    .airports-pagination .pagination {
        justify-content: flex-start;
    }
    
    .airports-pagination .page-link {
        padding: 0.375rem 0.625rem;
        font-size: 0.875rem;
    }
}

/* Responsive adjustments */
@media (max-width: 575px) {
    .airports-controls {
        padding: 0.75rem;
    }
    
    .airports-listing-page .iata-badge {
        width: 48px;
        height: 48px;
    }
    
    .airports-listing-page .badge-iata {
        font-size: 0.875rem;
    }
    
    .airport-name {
        font-size: 0.9rem !important;
    }
    
    .wait-time-badge {
        min-width: 60px;
    }
    
    .wait-value {
        font-size: 1.1rem;
    }
}

/* Text colors - using site variables */
.text-blue {
    color: #0D3654 !important;
}

.text-gray {
    color: #6c757d !important;
}

.text-primary {
    color: #FF5231 !important;
}

/* Font sizes */
.fs-px-16 {
    font-size: 16px;
}

.fs-px-24 {
    font-size: 24px;
}

/* Min width utility */
.min-width-0 {
    min-width: 0;
}
