/* =========================================
   CROWNLINE HEADER
   BLUE / WHITE / GOLD THEME
========================================= */

.site-header {
    position: relative;
    z-index: 1050;
}


/* =========================================
   TOP BAR
========================================= */

.top-bar {
    background: #0A2540;
    border-bottom: 1px solid rgba(255, 193, 7, 0.25);
    color: #ffffff;
    font-size: 13px;
}

    .top-bar .container {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.top-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

    .top-left a,
    .top-right span {
        color: rgba(255, 255, 255, 0.82);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .top-left a:hover {
            color: #FFC107;
        }

    .top-left i,
    .top-right i {
        color: #FFC107;
        margin-right: 7px;
    }


/* =========================================
   NAVBAR
========================================= */

.crownline-navbar {
    background: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(10, 37, 64, 0.10);
    box-shadow: 0 5px 20px rgba(10, 37, 64, 0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

    .navbar-brand img {
        height: 62px;
        width: auto;
        object-fit: contain;
    }


/* =========================================
   NAV LINKS
========================================= */

.crownline-navbar .navbar-nav {
    align-items: center;
    gap: 4px;
}

.crownline-navbar .nav-link {
    position: relative;
    color: #0A2540 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    padding: 10px 12px !important;
    transition: color 0.2s ease;
}

    .crownline-navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 4px;
        height: 2px;
        background: #FFC107;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .crownline-navbar .nav-link:hover {
        color: #0A2540 !important;
    }

        .crownline-navbar .nav-link:hover::after {
            transform: scaleX(1);
        }


/* =========================================
   AIRPORT DROPDOWN
========================================= */

.airport-dropdown {
    position: relative;
}

.airport-link {
    display: flex !important;
    align-items: center;
    gap: 7px;
}

.airport-arrow {
    font-size: 9px;
    color: #FFC107;
    transition: transform 0.25s ease;
}

.airport-dropdown .dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 260px;
    padding: 8px;
    margin: 0;
    background: #0A2540;
    border: 1px solid rgba(255, 193, 7, 0.40);
    border-radius: 6px;
    box-shadow: 0 20px 45px rgba(10, 37, 64, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.airport-dropdown:hover .dropdown-menu,
.airport-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 992px) {
    /* Keep the dropdown hovered while the pointer crosses its visual gap. */
    .airport-dropdown .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 13px;
    }
}

.airport-dropdown:hover .airport-arrow {
    transform: rotate(180deg);
}


/* =========================================
   DROPDOWN ITEMS
========================================= */

.airport-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 500;
    border-left: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

    .airport-dropdown .dropdown-item i {
        width: 15px;
        color: #FFC107;
        font-size: 12px;
    }

    .airport-dropdown .dropdown-item:hover {
        background: rgba(255, 193, 7, 0.12);
        color: #ffffff;
        border-left-color: #FFC107;
        padding-left: 19px;
    }


/* =========================================
   MANAGE BOOKING BUTTON
========================================= */

.manage-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: 18px;
    padding: 12px 20px;
    background: #0A2540;
    border: 1px solid #0A2540;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

    .manage-booking-btn i {
        color: #FFC107;
    }

    .manage-booking-btn:hover {
        background: #FFC107;
        border-color: #FFC107;
        color: #0A2540;
    }

        .manage-booking-btn:hover i {
            color: #0A2540;
        }


/* =========================================
   MOBILE
========================================= */

@media (max-width: 991px) {

    .top-bar {
        display: none;
    }

    .crownline-navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar-toggler {
        border: 1px solid rgba(10, 37, 64, 0.45);
        border-radius: 5px;
        padding: 8px 10px;
    }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.20);
        }

    .navbar-toggler-icon {
        filter: none;
    }

    .crownline-navbar .navbar-collapse {
        margin-top: 18px;
        padding-top: 15px;
        border-top: 1px solid rgba(10, 37, 64, 0.10);
    }

    .crownline-navbar .navbar-nav {
        align-items: stretch;
        gap: 2px;
    }

    .crownline-navbar .nav-link {
        padding: 13px 5px !important;
        color: #0A2540 !important;
    }

        .crownline-navbar .nav-link::after {
            display: none;
        }


    /* =========================================
       MOBILE DROPDOWN
    ========================================= */

    .airport-dropdown .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        min-width: 100%;
        margin: 5px 0;
        box-shadow: none;
    }

    .airport-dropdown:hover .dropdown-menu,
    .airport-dropdown:focus-within .dropdown-menu {
        display: block;
    }


    /* =========================================
       MOBILE MANAGE BOOKING
    ========================================= */

    .manage-booking-btn {
        margin: 15px 0 0;
        justify-content: center;
    }
}


@media (max-width: 576px) {

    .navbar-brand img {
        height: 42px;
    }

    .crownline-navbar .nav-link {
        font-size: 12px;
    }

    .manage-booking-btn {
        width: 100%;
    }
}
/* Give the artwork room while keeping the image's outer padding out of the header. */
.crownline-navbar .navbar-brand { position: relative; width: 160px; height: 88px; overflow: hidden; flex-shrink: 0; padding: 0; }
.crownline-navbar .navbar-brand img { position: absolute; width: 240px; height: auto; max-width: none; left: -42px; top: -24px; }
@media (max-width: 991px) {
    .crownline-navbar .navbar-brand { width: 138px; height: 78px; }
    .crownline-navbar .navbar-brand img { width: 210px; height: auto; left: -36px; top: -20px; }
}
