/* Modern Flight Page Styles - Redesigned to match reference image */

.modern-flight-hero {
    background: #f5f7fa;
    padding: 60px 0 80px 0;
    min-height: 80vh;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* Travel Type Tabs */
.travel-tabs {
    margin-bottom: 3rem;
    display: flex;
    justify-content: left;
    
}

.tab-buttons {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn.active {
    background: #007bff;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.tab-btn:hover:not(.active) {
    color: #495057;
    background: #f8f9fa;
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Search Form */
.modern-search-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e9ecef;
    max-width: 1200px;
    margin: 0 auto;
}

.search-inputs-row {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.search-field {
    flex: 1;
    position: relative;
    border-right: 1px solid #e9ecef;
}

.search-field:last-of-type {
    border-right: none;
}

.search-field .form-floating {
    height: 100%;
}

.search-field .form-control,
.search-field .form-select {
    border: none;
    border-radius: 0;
    padding: 1.5rem 1rem 0.5rem 1rem;
    height: 70px;
    font-size: 1rem;
    background: #ffffff;
    color: #2c3e50;
    font-weight: 500;
}

.search-field .form-control:focus,
.search-field .form-select:focus {
    box-shadow: none;
    border-color: transparent;
    background: #f8f9fa;
    outline: none;
}

.search-field label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    pointer-events: none;
}

.search-field .form-control:focus + label,
.search-field .form-select:focus + label,
.search-field .form-control:not(:placeholder-shown) + label,
.search-field .form-select:not([value=""]) + label {
    color: #007bff;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.swap-btn {
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0 16px;
    border-right: 1px solid #e9ecef;
    transition: all 0.2s ease;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-search {
    background: #007bff;
    border: none;
    color: white;
    padding: 0 32px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.btn-search:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-search:active {
    transform: translateY(0);
}

/* Form Enhancements */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Animation for smooth transitions */
.modern-flight-form {
    transition: all 0.3s ease;
}

/* Travel Images Grid */
.travel-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 180px;
    gap: 15px;
    height: 430px;
    padding-left: 2rem;
}

.travel-images-grid .image-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.travel-images-grid .image-item.large {
    grid-row: span 2;
    grid-column: 1;
}

.travel-images-grid .image-item:not(.large) {
    grid-column: 2;
}

.travel-images-grid .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.travel-images-grid .image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.travel-images-grid .image-item:hover img {
    transform: scale(1.05);
}

/* Custom styling for better UX */
.hero-content {
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .modern-search-form {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .search-field .form-control,
    .search-field .form-select {
        height: 65px;
        padding: 1.25rem 0.75rem 0.5rem 0.75rem;
    }
}

/* Coming Soon Popup Styles */
.coming-soon-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.coming-soon-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.coming-soon-popup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.coming-soon-popup-overlay.show .coming-soon-popup {
    transform: scale(1) translateY(0);
}

.coming-soon-content {
    padding: 40px 30px;
    text-align: center;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.coming-soon-icon i {
    font-size: 32px;
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.coming-soon-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.coming-soon-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-close-popup {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-close-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-close-popup:active {
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .modern-flight-hero {
        padding: 40px 0 60px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 4px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modern-search-form {
        padding: 1.25rem;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .search-inputs-row {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .search-field {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .search-field:last-of-type {
        border-bottom: none;
    }
    
    .search-field .form-control,
    .search-field .form-select {
        height: 60px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1.25rem 1rem 0.5rem 1rem;
    }
    
    .swap-btn {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 12px;
        min-height: 50px;
    }
    
    .btn-search {
        border-radius: 0 0 8px 8px;
        padding: 15px 32px;
        min-height: 60px;
        width: 100%;
    }
    
    .travel-images-grid {
        display: none;
    }
}

@media (max-width: 480px) {
    .coming-soon-popup {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .coming-soon-content {
        padding: 30px 20px;
    }
    
    .coming-soon-content h3 {
        font-size: 20px;
    }
    
    .coming-soon-content p {
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .travel-tabs {
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .tab-btn i {
        font-size: 1rem;
    }
    
    .modern-search-form {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .search-field .form-control,
    .search-field .form-select {
        height: 56px;
        padding: 1rem 0.75rem 0.5rem 0.75rem;
    }
    
    .search-field label {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .btn-search {
        height: 56px;
        font-size: 1.1rem;
        padding: 12px 24px;
    }
    
    .swap-btn {
        min-height: 45px;
        padding: 10px;
    }
}

@media (max-width: 575.98px) {
    .modern-flight-hero {
        padding: 30px 0 50px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .travel-tabs {
        margin-bottom: 1.5rem;
    }
    
    .tab-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .modern-search-form {
        padding: 0.75rem;
        margin: 0 5px;
    }
    
    .search-field .form-control,
    .search-field .form-select {
        height: 52px;
        padding: 0.875rem 0.5rem 0.375rem 0.5rem;
        font-size: 16px;
    }
    
    .search-field label {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .btn-search {
        height: 52px;
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .swap-btn {
        min-height: 40px;
        padding: 8px;
    }
}

/* Additional improvements for better UX */
.search-field .form-control::placeholder,
.search-field .form-select option:first-child {
    color: #adb5bd;
}

.search-inputs-row:focus-within {
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0,123,255,0.15);
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

.search-field .form-control,
.search-field .form-select,
.swap-btn,
.btn-search {
    transition: all 0.3s ease;
}

/* Mobile Filter Toggle Styles */
.mobile-filter-toggle {
    display: none;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-filter-toggle:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.mobile-filter-toggle i {
    transition: transform 0.3s ease;
}

.mobile-filter-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-filter-collapse {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Mobile responsive styles for filter */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
    }
    
    .filter-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .mobile-filter-collapse:not(.show) {
        display: none;
    }
    
    .mobile-filter-collapse.show {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .filter-section {
        margin-bottom: 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .filter-section:last-child {
        border-bottom: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}