/* Sharifineya public site layout styles */

/* --- block 1 --- */
/* Add this to a <style> block in index.blade.php */
#flight-airports-col, #flight-dates-col {
    transition: flex 0.4s ease-in-out, max-width 0.4s ease-in-out;
}

    /*
================================================================
= PROFESSIONAL FLIGHT MODAL STYLES
================================================================
*/

/* --- Main Modal Backdrop and Dialog --- */
.flight-modal-pro .modal-dialog {
    max-width: 950px; /* Adjust width as needed */
    transition: transform 0.4s ease-out;
}

.flight-modal-pro.fade .modal-dialog {
    transform: translate(0, -50px);
}

.flight-modal-pro.show .modal-dialog {
    transform: translate(0, 0);
}

.flight-modal-pro .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #f8f9fa; /* A light grey background for the whole modal */
}

/* Add this to your main stylesheet in index.blade.php */

/* FIX: Prevents date inputs from wrapping during animation */
/* #flight-dates-col .row {
    flex-wrap: nowrap;
} */

/* FIX: Prevents date inputs from wrapping during animation on desktop */
@media (min-width: 768px) {
    #flight-dates-col .row {
        flex-wrap: nowrap;
    }
}
/* Media query for mobile devices (screens smaller than 768px) */
@media (max-width: 767.98px) {
    /* ... existing styles ... */
}

/* --- Custom Modal Header --- */
.modal-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, #434343, #000000);
    color: #ffffff;
}

.modal-header-pro .modal-title {
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header-pro .modal-title small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 300;
}

.modal-header-pro .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    transition: transform 0.2s ease;
}
.modal-header-pro .btn-close:hover {
    transform: scale(1.2);
}


/* --- Custom Modal Body --- */
.modal-body-pro {
    padding: 0;
}

.flight-details-container {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
}

/* --- Left Column: Flight Segments --- */
.flight-segments-col {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journey-section {
    width: 100%;
}

.journey-header {
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flight-segment {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.airline-info img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.airline-info .airline-name {
    font-weight: 500;
    display: block;
}
.airline-info .flight-number {
    font-size: 0.8rem;
    color: #6c757d;
}

.time-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.time-iata {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.time-iata .time {
    font-size: 1.25rem;
    font-weight: bold;
}
.time-iata .iata {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.duration-line {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 0 1rem;
    position: relative;
    color: #6c757d;
}
.duration-line .line {
    flex-grow: 1;
    height: 1px;
    background-color: #dee2e6;
}
.duration-line .start, .duration-line .end {
    font-size: 8px;
    color: #adb5bd;
}
.duration-line .end {
    font-size: 14px;
}
.duration-line .duration-text {
    font-size: 0.8rem;
    background-color: #ffffff;
    padding: 0 0.5rem;
}

.city-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0 0.5rem;
}

.layover-info {
    text-align: center;
    font-size: 0.85rem;
    color: #e85d04;
    background-color: #fff3e0;
    border-radius: 2rem;
    padding: 0.25rem 1rem;
    margin: 0.5rem auto;
    width: fit-content;
}
.layover-info i {
    margin-right: 0.5rem;
}

/* --- Right Column: Fare Summary --- */
.fare-summary-col {
    width: 320px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-left: 1px solid #e9ecef;
}

.fare-title {
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.fare-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fare-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.fare-row span:last-child {
    font-weight: 500;
}

.fare-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
    margin-top: 1rem;
}
.fare-total .total-price {
    color: #0d6efd;
}

.fare-details-toggle {
    font-size: 0.85rem;
    color: #0d6efd;
    cursor: pointer;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
}
.fare-details-toggle i {
    transition: transform 0.3s ease;
}

.fare-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #e9ecef;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0 1rem;
}
.fare-details-content.show {
    max-height: 200px; /* Adjust as needed */
    padding: 1rem;
}
.fare-row-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #495057;
    padding: 0.25rem 0;
}

/* --- Custom Modal Footer --- */
.modal-footer-pro {
    padding: 1rem 1.5rem;
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .flight-details-container {
        flex-direction: column;
    }
    .fare-summary-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid #dee2e6;
    }
}

@media (max-width: 575.98px) {
    .flight-segment {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .airline-info, .time-info, .city-info {
        justify-content: center;
    }
    .time-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    .duration-line {
        width: 100%;
        margin: 0.5rem 0;
    }
    .city-info {
        flex-direction: column;
    }
    .modal-header-pro {
        padding: 0.75rem 1rem;
    }
    .flight-segments-col, .fare-summary-col {
        padding: 1rem;
    }
}

/* --- block 2 --- */
/* ================================================== */
/* ========= SITE FOOTER (dark, high-contrast) ====== */
/* ================================================== */

.site-footer.footer-new.footer-modern,
.footer-new.footer-modern {
    --sf-bg: #0b1220;
    --sf-bg-soft: #111a2e;
    --sf-text: rgba(255, 255, 255, 0.78);
    --sf-muted: rgba(255, 255, 255, 0.58);
    --sf-heading: #ffffff;
    --sf-line: rgba(255, 255, 255, 0.1);
    --sf-primary: #0066ff;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(0, 102, 255, 0.18), transparent 55%),
        linear-gradient(180deg, var(--sf-bg-soft) 0%, var(--sf-bg) 100%);
    color: var(--sf-text);
    padding: 0;
    font-size: 0.9375rem;
    border-top: 1px solid var(--sf-line);
}

.site-footer__inner {
    padding: 3.25rem 0 2.5rem;
}

.site-footer__grid {
    align-items: flex-start;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    text-decoration: none;
    line-height: 1;
}

.site-footer__logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.site-footer__tagline {
    margin: 0 0 1.35rem;
    max-width: 32ch;
    color: var(--sf-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.site-footer__social-link,
.site-footer .social-links a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover,
.site-footer .social-links a:hover {
    background: var(--sf-primary) !important;
    border-color: var(--sf-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.site-footer__heading,
.site-footer.footer-new h4,
.footer-new.footer-modern h4 {
    margin: 0 0 1rem;
    padding: 0;
    color: var(--sf-heading) !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    position: relative;
}

.site-footer__heading::after,
.site-footer.footer-new h4::after,
.footer-new.footer-modern h4::after {
    content: "";
    display: block;
    width: 1.75rem;
    height: 2px;
    margin-top: 0.65rem;
    border-radius: 2px;
    background: var(--sf-primary);
}

.site-footer__list,
.site-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__list li,
.site-footer .footer-links ul li {
    padding: 0;
    margin: 0 0 0.65rem;
    display: block;
}

.site-footer__list li:last-child,
.site-footer .footer-links ul li:last-child {
    margin-bottom: 0;
}

.site-footer__list a,
.site-footer .footer-links ul a,
.footer-new.footer-modern .footer-links ul a {
    color: var(--sf-text) !important;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__list a:hover,
.site-footer .footer-links ul a:hover,
.footer-new.footer-modern .footer-links ul a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.site-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    color: var(--sf-text);
    font-size: 0.9rem;
    line-height: 1.55;
}

.site-footer__contact-list li:last-child {
    margin-bottom: 0;
}

.site-footer__contact-list a {
    color: var(--sf-text);
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s ease;
}

.site-footer__contact-list a:hover {
    color: #fff;
}

.site-footer__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.15);
    color: #7eb6ff;
    font-size: 0.95rem;
    margin-top: 0.1rem;
}

.site-footer__bottom {
    border-top: 1px solid var(--sf-line);
    background: rgba(0, 0, 0, 0.22);
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    padding: 1rem 0;
}

.site-footer__copy,
.site-footer__credit,
.site-footer .copyright,
.site-footer .credits {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
    color: var(--sf-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.site-footer__copy strong,
.site-footer .copyright strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.site-footer__credit a,
.site-footer .credits a {
    color: #7eb6ff;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .site-footer__inner {
        padding: 2.5rem 0 1.75rem;
    }

    .site-footer__tagline {
        max-width: none;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .site-footer__copy,
    .site-footer__credit {
        text-align: center;
    }

    .site-footer__social {
        justify-content: flex-start;
    }
}
    /* ================================================== */
/* ========= CSS FOR NEW, MODERN HEADER ============= */
/* ================================================== */

/* Main Header Styling */
#content-wrapper{
    padding-top: 40px;
}
/* Find and replace your existing .header-custom CSS rule with this one */

.header-custom {
    padding: 8px 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
    
    /* Solid header — backdrop-filter causes scroll lag on many devices */
    background-color: rgba(255, 255, 255, 0.97); 
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Style for when the user scrolls down */
.header-custom.header-scrolled {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-custom .navbar-brand {
    display: inline-flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.header-custom .header-logo {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.4s ease-in-out;
}

.header-scrolled .header-logo {
    max-height: 42px;
}

/* Centered Navigation Links */
.header-custom .nav-link {
    color: #444;
    font-weight: 500;
    padding: 5px 15px;
    position: relative;
    text-decoration: none;
}
/* Change nav-link color on scrolled header */
.header-scrolled .nav-link {
    color: #444;
}
.header-custom.header-scrolled .nav-link {
    color: #333;
}
/* Underline animation for nav links */
.header-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #0d6efd;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.header-custom .nav-link:hover::after {
    transform: scaleX(1);
}

/* User Actions (Right Side) */
.btn-login {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.btn-login:hover {
    color: #0d6efd;
}

.btn-signup {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
}

/* Guest Currency Dropdown */
.currency-dropdown-guest {
    position: relative;
}
.currency-dropdown-guest .currency-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #6c757d;
}
.currency-dropdown-guest .form-select {
    padding-left: 30px;
    border-color: #ced4da;
    border-radius: 50px;
}

/* Logged-in User Dropdown */
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.user-dropdown-toggle .user-icon {
    font-size: 1.5rem;
    color: #0d6efd;
}

/* --- block 3 --- */
/* Mobile Fix for Swap Button — keep between From/To only */
@media (max-width: 767px) {
    .hp-search-route {
        position: relative !important;
    }

    .hp-search-route .swap-wrapper,
    .hp-search-route .hp-search-swap {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 20 !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
    }

    .hp-search-route .hp-swap-btn,
    .hp-search-route #two-arrows {
        width: 36px !important;
        height: 36px !important;
        background: #fff !important;
        border: 1px solid #dbe3ef !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14) !important;
        color: #0b5fff !important;
        filter: none !important;
        padding: 0 !important;
    }

    .hp-search-route #two-arrows i {
        transform: rotate(90deg);
        display: inline-block;
    }

    .hp-search-route #two-arrows:hover {
        background: #0b5fff !important;
        color: #fff !important;
        transform: none !important;
    }

    .swap-img {
        display: none !important;
    }
}
    /* Add this to your main stylesheet in index.blade.php */

/* Media query for mobile devices (screens smaller than 768px) */
@media (max-width: 767.98px) {
    .flight-search-form-lux .hp-search-route #two-arrows i {
        transform: rotate(90deg);
        display: inline-block;
    }

    .flight-search-form-lux .hp-search-route #two-arrows:hover {
        transform: none;
    }

    .flight-search-form-lux .hp-search-route #two-arrows:hover i {
        transform: rotate(270deg);
    }
}
    /* in index.blade.php */

.flight-search-form-lux #two-arrows {
    cursor: pointer;
    background: #e9ecef;
    border-radius: 50%;
    border: 2px solid white;
    transition: all 0.2s ease-in-out;

    /* --- FIX: Constrain the size of the icon --- */
    width: 32px;  /* Set a fixed width for the circular container */
    height: 32px; /* Set a fixed height for the circular container */
    padding: 6px; /* Adjust padding for the icon image inside */
    box-sizing: border-box; /* Ensures padding is included in the total width/height */
}

/* The hover effect can also be simplified */
.flight-search-form-lux .swap-icon-wrapper:hover #two-arrows {
    transform: rotate(180deg);
    background-color: #0d6efd;
}
    .flight-search-form-lux {
        background: #ffffff;
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: 0 15px 40px rgba(0, 40, 100, 0.12);
        border: 1px solid #e9ecef;
    }

    /* FIX 1: Using Flexbox for robust alignment */
    .flight-search-form-lux .form-group-lux {
        display: flex;
        align-items: center;
        background-color: #f8f9fa;
        border-radius: 0.75rem;
        padding: 0.75rem 1.25rem;
        border: 1px solid #dee2e6;
        transition: all 0.3s ease;
        height: 100%;
    }
    
    .flight-search-form-lux .form-group-lux:focus-within {
        background-color: #ffffff;
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    }

    .flight-search-form-lux .form-group-lux i {
        color: #6c757d;
        font-size: 1.2rem;
        margin-right: 0.75rem; /* Space between icon and text */
        flex-shrink: 0; /* Prevent icon from shrinking */
        transition: color 0.3s ease;
    }
    
    .flight-search-form-lux .form-group-lux:focus-within i {
        color: #0d6efd;
    }

    /* New wrapper for label and input */
    .flight-search-form-lux .input-wrapper {
        flex-grow: 1;
        min-width: 0; /* Important for flexbox truncation */
    }

    .flight-search-form-lux .form-label-lux {
        font-size: 0.6rem;
        font-weight: 500;
        color: #495057;
        margin-bottom: 0;
        line-height: 1; /* Tighter line height */
    }
    
    .flight-search-form-lux .form-control-lux {
        background: transparent;
        border: none;
        box-shadow: none !important;
        font-size: 0.8rem;
        padding: 0; /* Removed padding, now handled by flex gap */
        width: 100%;
        height: auto;
    }
    
    /* FIX 2: Remove the default browser outline on the input itself */
    .flight-search-form-lux .form-control-lux:focus {
        outline: none;
    }

    .flight-search-form-lux .form-control-lux::placeholder {
        color: #6c757d;
    }
    
    .flight-search-form-lux #two-arrows {
    cursor: pointer;
    background: #e9ecef;
    border-radius: 50%;
    border: 2px solid white;
    transition: all 0.2s ease-in-out;
    width: 32px;
    height: 32px;
    padding: 6px;
    box-sizing: border-box;
    display: block; /* Ensures proper alignment */
}

.flight-search-form-lux #two-arrows:hover {
    background-color: #0d6efd;
    transform: rotate(180deg);
}
    .flight-search-form-lux .btn-search-lux {
        width: 90%;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.8rem;
        border-radius: 0.75rem;
        height: 100%;
    }
    
    /* Passenger Dropdown specific styles */
    .flight-search-form-lux .dropdown-toggle .input-wrapper {
        text-align: left;
    }
    .flight-search-form-lux .dropdown-toggle .dropdown-text {
        font-size: 0.8rem;
        color: #212529;
    }
/* Adjusted passenger dropdown for a more compact size */
/* FINAL FIX: Passenger dropdown with compact internal spacing */
.flight-search-form-lux .dropdown-menu {
    width: 240px;
    padding: 0.5rem 0.75rem;
    z-index: 1080 !important;
    position: absolute;
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: none;
    overflow: visible;
}

/* Label for Adults, Children, Infants */
.flight-search-form-lux .dropdown-menu .form-label {
    font-size: 0.80rem; /* Smaller font */
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

/* List items spacing */
.flight-search-form-lux .dropdown-menu > li {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Target only items with px-3 for even tighter spacing */
.flight-search-form-lux .dropdown-menu > li.px-3 {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

/* Small +/- buttons */
.flight-search-form-lux .dropdown-menu .input-group-sm > .btn {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
}

/* Divider spacing */
.flight-search-form-lux .dropdown-menu .dropdown-divider {
    margin-top: 0.25rem;
    margin-bottom: 0.4rem;
}

/* Class dropdown style */
.flight-search-form-lux .dropdown-menu .form-select {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: 0.8rem;
    height: auto;
}

/* Fix z-index stacking with autocomplete/airport suggestions */
.autocomplete-wrapper {
    position: relative;
    z-index: 10;
}

/* --- block 4 --- */
#departure-date-container,
#arrival-date-container {
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

/* This class will shrink a column to nothing smoothly */
.form-col-hidden {
    flex: 0 0 0% !important; /* Animate width to 0 */
    opacity: 0;
    padding: 0 !important;
    border: none;
}
        /*
 * Foolproof Responsive Border for Flight Actions Column
 */

/* Mobile-first: Default is a horizontal line on top */
.flight-actions-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Desktop: On screens 992px and wider */
@media (min-width: 992px) {
    .flight-actions-wrapper {
        /* Remove the mobile styles */
        margin-top: 0;
        padding-top: 0;
        border-top: none;

        /* Add the desktop styles */
        padding-left: 1rem !important;
        border-left: 1px solid #e9ecef;
    }
}

.badge.bg-light-green {
    background-color: #d1e7dd; /* Bootstrap's success-subtle color */
    color: #0f5132; /* Bootstrap's success-emphasis color */
}
   /*
 * REQUIRED CSS for the flight result layout
 */
.flight-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    gap: 1rem;
}

/* Column for Airline Info */
.flight-col-airline {
    width: 15%;
    text-align: left;
}
.flight-col-airline img {
    max-width: 80px;
    margin-bottom: 5px;
}
.flight-col-airline .airline-name {
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Columns for Departure and Arrival */
.flight-col-time {
    width: 18%;
    text-align: center;
}
.flight-col-time .time {
    font-size: 1.4rem;
    font-weight: 500;
}
.flight-col-time .airport {
    font-size: 1rem;
    font-weight: bold;
    color: #343a40;
}

/* Column for the Journey Summary in the middle */
.flight-col-journey {
    width: 22%;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}
.journey-summary-line {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-top: 4px;
}
.journey-summary-line::before,
.journey-summary-line::after {
    content: '';
    flex-grow: 1;
    border-bottom: 1px solid #ced4da;
    margin: 0 0.5rem;
}
.journey-summary-line .stops-link {
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed #0d6efd;
}

/* Column for Price and Booking */
.flight-col-price {
    width: 22%;
    text-align: right;
}
.flight-col-price .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 0.5rem;
}

/* Popover Customization */
.popover-header {
    font-weight: bold;
}
.popover-body {
    font-size: 0.9rem;
}

/*
 * CSS for the New Two-Column Flight Layout
 */

/* The main flex container for the two columns */
.flight-card-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
}

/* Left column for all flight segment details */
.flight-details-col {
    width: 70%;
    flex-grow: 1; /* Takes up available space */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Adds a little space between outbound and return rows */
}

/* Right column for price and all action buttons */
.flight-actions-col {
    width: 30%;
    flex-shrink: 0; /* Prevents this column from shrinking */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-left: 1px solid #e9ecef;
}

.flight-actions-col .price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 1rem;
}

.flight-actions-col .btn {
    width: 100%;
    max-width: 200px; /* Prevents buttons from being too wide */
    margin-bottom: 0.75rem; /* Space between buttons */
}
        /*
 * CSS for the loading spinner
 */
/*
 * CSS for the loading spinner (inside the dropdown)
 */
.autocomplete-suggestions .spinner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Give it some space */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #0d6efd; /* Your primary color */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
        /*
  ================================================================
  Custom jQuery UI Datepicker Theme for Flight Booking
  ================================================================
*/

.col-md-3{
    padding: 10px;
}
/* --- The main calendar container --- */
.ui-datepicker {
    width: 310px; /* A fixed, clean width */
    padding: 1rem;
    display: none;
    background: #ffffff;
    border: 1px solid #dfe2e5;
    box-shadow: 0 10px 25px rgba(0, 40, 100, 0.12);
    border-radius: 0.5rem; /* Rounded corners */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Header section (Month, Year, Prev/Next buttons) --- */
.ui-datepicker-header {
    position: relative;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f1f2;
    margin-bottom: 0.5rem;
}

/* "Prev" and "Next" month buttons */
.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    background-color: #f8f9fa;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.ui-datepicker-prev { left: 0; }
.ui-datepicker-next { right: 0; }

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background-color: #e9ecef;
}

/* The arrow icons inside the buttons */
.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -8px;
    margin-left: -8px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}
.ui-datepicker-next .ui-icon {
    transform: rotate(180deg); /* Flip the arrow for the next button */
}

/* Month and Year dropdowns */
.ui-datepicker-title {
    margin: 0 2.5rem; /* Make space for prev/next buttons */
    line-height: 2rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}
.ui-datepicker-title select {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 2px;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* --- Days of the week (Su, Mo, Tu...) --- */
.ui-datepicker-calendar thead {
    color: #6c757d;
}
.ui-datepicker th {
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Individual Day Cells --- */
.ui-datepicker-calendar tbody td {
    padding: 0;
    border: 1px solid transparent;
}

.ui-datepicker-calendar .ui-state-default {
    display: block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    margin: 2px auto;
    text-align: center;
    border: none;
    background: transparent;
    color: #343a40;
    font-weight: 500;
    border-radius: 50%; /* Circular dates */
    transition: all 0.2s ease;
}

/* Hover state for a clickable date */
.ui-datepicker-calendar .ui-state-default:hover {
    background: #e7f1ff; /* Light blue background */
    color: #0d6efd;
}

/* The currently selected date */
.ui-datepicker-calendar .ui-state-active {
    background-color: #0d6efd; /* Solid blue */
    color: #ffffff;
}

/* Today's date */
.ui-datepicker-calendar .ui-datepicker-today .ui-state-default {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}
.ui-datepicker-calendar .ui-datepicker-today .ui-state-default:hover {
    background-color: #e9ecef;
}

/* Disabled/unselectable dates */
.ui-datepicker-unselectable .ui-state-default {
    color: #ced4da;
    cursor: default;
}
.ui-datepicker-unselectable .ui-state-default:hover {
    background: transparent;
}

/*
  ================================================================
  Final Polished Autocomplete Dropdown Styles
  ================================================================
*/

/* The main container for both suggestion lists */
#suggestions1,
#suggestions2 {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  display: none;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  max-height: 280px;
  overflow-y: auto;
  text-align: left;
  width: 100%;
  min-width: calc(100% + 1px);
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Individual suggestion items (<li>) */
#suggestions1 li,
#suggestions2 li {
  list-style: none;
  display: flex;
  align-items: center;
  /* UPDATED: Reduced padding for a more compact look */
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f2;
  border-left: 4px solid transparent;
  transition: all 0.2s ease-out;
  width: 100%;
  box-sizing: border-box;
}

#suggestions1 li:last-child,
#suggestions2 li:last-child {
  border-bottom: none;
}

/* The airplane icon */
#suggestions1 li .icon,
#suggestions2 li .icon {
  color: #adb5bd;
  margin-right: 12px;
  width: 16px;
  /* UPDATED: Sized the icon to match the new text size */
  font-size: 0.9rem;
  transition: color 0.2s ease-out;
  flex-shrink: 0;
  text-align: center;
}

/* Main text (City, Airport Name) */
#suggestions1 li .main-text,
#suggestions2 li .main-text {
  flex-grow: 1;
  font-weight: 500;
  color: #343a40;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  /* UPDATED: Reduced font size for better readability */
  font-size: 0.9rem;
}

/* 3-letter airport code */
#suggestions1 li .code-text,
#suggestions2 li .code-text {
  font-weight: bold;
  color: #495057;
  background-color: #f1f3f5;
  /* UPDATED: Adjusted padding and font size */
  padding: 3px 7px;
  font-size: 0.85rem;
  border-radius: 6px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  transition: all 0.2s ease-out;
  margin-left: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- Enhanced Hover and Selection Effect --- */
#suggestions1 li:hover,
#suggestions2 li:hover,
#suggestions1 li.selected,
#suggestions2 li.selected {
  background-color: #e7f1ff;
  border-left-color: #0d6efd;
  color: #212529;
}

#suggestions1 li:hover .icon,
#suggestions2 li:hover .icon {
  color: #0d6efd;
}

#suggestions1 li:hover .code-text,
#suggestions2 li:hover .code-text {
  background-color: #0d6efd;
  color: white;
}

/* --- "No Results" Message Styling --- */
#suggestions1 li.autocomplete-no-results,
#suggestions2 li.autocomplete-no-results {
  color: #6c757d;
  background-color: #f8f9fa;
  cursor: default;
  justify-content: center;
  font-size: 0.9rem; /* Keep this consistent */
}

#suggestions1 li.autocomplete-no-results:hover,
#suggestions2 li.autocomplete-no-results:hover {
  background-color: #f8f9fa;
  border-left-color: transparent;
}
/*
          .small-input {
              font-size: 0.65rem; // Smaller input text
          }
      
          .small-input::placeholder {
              font-size: 1rem; // Keep placeholder text larger 
          }
        */

/* --- block 5 --- */
#spinner-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.2s ease;
    }

    #spinner-container.fr-spinner-hidden {
        opacity: 0;
        pointer-events: none;
    }

    #spinner-image {
        height: 20%;
        animation: fr-spinner-fade 1s ease-in-out infinite;
    }

    @keyframes fr-spinner-fade {
        0%, 100% { opacity: 0.35; }
        50% { opacity: 1; }
    }
