/* Custom Styles for Umara Travel */

/* Logo Styles */
.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.hero-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    filter: brightness(1.1);
}

.footer-logo {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
}

/* Additional custom styles can be added here */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.9));
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: white;
}

.search-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flight-card {
    transition: transform 0.3s ease;
}

.flight-card:hover {
    transform: translateY(-5px);
}

.price-highlight {
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-section p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        margin-bottom: 30px;
        text-align: center;
    }
    
    /* Hero Stats - Stack vertically on mobile */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin: 30px 0;
        padding: 0 20px;
    }
    
    .stat-item {
        padding: 15px 10px;
        margin: 0 auto;
        max-width: 200px;
        width: 100%;
    }
    
    .stat-item h3 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-item small {
        font-size: 0.75rem;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .search-form-container {
        margin-top: 30px;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .search-form-container .card {
        margin-top: 20px;
        border-radius: 20px;
    }
    
    .search-form-container .card-body {
        padding: 25px 20px;
    }
    
    .search-form-container .card-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Booking page mobile improvements */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .passenger-section {
        padding: 15px;
        margin-bottom: 1rem;
    }
    
    .passenger-section .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .passenger-section .col-md-2,
    .passenger-section .col-md-3,
    .passenger-section .col-md-4 {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 15px;
    }
    
    /* Make form controls more touch-friendly */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
        border-radius: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Date input improvements for mobile */
    input[type="date"] {
        min-height: 50px;
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        background-color: #fff;
        position: relative;
    }
    
    input[type="date"]:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        outline: none;
    }
    
    /* Better button styling for mobile */
    .btn {
        min-height: 48px;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .btn-lg {
        min-height: 56px;
        font-size: 18px;
        padding: 16px 24px;
        border-radius: 10px;
        width: 100%;
    }
    
    /* Flight summary mobile adjustments */
    .flight-summary .row .col-4 {
        margin-bottom: 10px;
    }
    
    .flight-summary .col-md-2 img {
        width: 40px;
        height: 30px;
    }
    
    /* Price summary sticky behavior on mobile */
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
    
    /* Form labels */
    .form-label {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Age warning styling */
    .age-warning {
        font-size: 12px;
        margin-top: 5px;
    }
    
    /* Fix for passenger selection columns */
    .row.mb-4 .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Improve spacing for mobile */
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix swap button alignment */
    #swap_airports {
        padding: 10px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 70vh;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        padding: 0 10px;
        margin-bottom: 1rem;
    }
    
    .hero-section p.lead {
        font-size: 0.95rem;
        padding: 0 15px;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
    
    /* Hero Stats - Better mobile layout */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
        max-width: 120px;
        padding: 12px 8px;
        margin: 0;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-item small {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .search-form-container {
        padding: 15px 10px;
        margin: 20px 5px;
    }
    
    .search-form-container .card {
        margin-top: 15px;
        border-radius: 15px;
    }
    
    .search-form-container .card-body {
        padding: 20px 15px;
    }
    
    .search-form-container .card-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .passenger-section .col-md-2,
    .passenger-section .col-md-3,
    .passenger-section .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Stack flight summary items vertically */
    .flight-summary .row .col-4,
    .flight-summary .row .col-md-8 .row .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 15px;
    }
    
    .flight-summary .col-md-2 {
        margin-bottom: 15px;
    }
    
    /* Better date picker for very small screens */
    input[type="date"] {
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 4h14M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4M1 4V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v1M5 2v2m6-2v2'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
}

/* Date input enhancements for better UX */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper::after {
    content: "📅";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
}

/* Custom date input styling */
input[type="date"].passenger-dob {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

input[type="date"].passenger-dob:hover {
    background-color: #fff;
    border-color: #007bff;
}

input[type="date"].passenger-dob:focus {
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Age validation styling */
input[type="date"].passenger-dob[style*="border-color: rgb(220, 53, 69)"] {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

input[type="date"].passenger-dob[style*="border-color: rgb(40, 167, 69)"] {
    border-color: #28a745 !important;
    background-color: #f0fff4;
}

/* Additional mobile improvements for very small screens */
@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        padding: 0 5px;
    }
    
    .hero-section p.lead {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .hero-stats {
        gap: 0.25rem;
        margin: 15px 0;
        padding: 0 5px;
    }
    
    .stat-item {
        min-width: 80px;
        max-width: 100px;
        padding: 10px 6px;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .stat-item small {
        font-size: 0.65rem;
    }
    
    .search-form-container {
        padding: 10px 8px;
    }
    
    .search-form-container .card-body {
        padding: 15px 10px;
    }
    
    .search-form-container .card-title {
        font-size: 1.1rem;
    }
}