/* Quick Links in footer: same hover as main menu */
footer .list-none a {
    position: relative;
    color: #fff;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.55rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.18s;
}
footer .list-none a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease, opacity 0.18s ease;
    opacity: 0.95;
}
footer .list-none a:hover,
footer .list-none a:focus {
    color: #fff;
    background: transparent;
    text-decoration: none !important;
    box-shadow: 0 2px 0 0 var(--brand-primary);
}
footer .list-none a:hover::after,
footer .list-none a:focus::after {
    transform: scaleX(1);
    opacity: 1;
}
:root {
    --brand-primary: #1e4073;
    --brand-skywhite: #f5f7fa;
    --brand-gradient: #4c7df0;
    --brand-silver: #c0c5d1;
    --brand-night: #1e1e2f;
}

/* Simple styles to make the menu bold, spaced and uppercase */
header,
nav {
    background: var(--brand-skywhite);
}

/* Desktop menu */
nav ul li a {
    font-weight: 650; /* bold for visibility */
    text-transform: uppercase; /* capitalize main menus */
    letter-spacing: 0.02em; /* slightly reduced tracking */
    padding: 0.35rem 0.55rem; /* smaller, cleaner */
    font-size: 0.875rem; /* smaller size for elegance */
    color: var(--brand-night);
    text-decoration: none;
}

/* underline menus on hover (strong header selector to override other CSS) */
/* animated thin underline for header nav links (modern look) */
header nav ul li a {
    position: relative; /* needed for pseudo-element */
    color: var(--brand-night);
}
header nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 100%;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease, opacity 0.18s ease;
    opacity: 0.95;
}
header nav ul li a:hover::after,
header nav ul li a:focus::after {
    transform: scaleX(1);
    opacity: 1;
}
/* Hover: subtle color shift, underline handled separately */
header nav ul li a:hover,
header nav ul li a:focus {
    color: var(--brand-primary);
    background: transparent;
    text-decoration: none !important;
}
/* underline is handled by the ::after pseudo-element - keep it visible on hover/focus */

/* Remove underline on nav links specifically in header/nav to avoid global overrides */
header nav a,
header .auth-links a,
#mobile-menu a {
    text-decoration: none !important;
}

/* Dropdown visible state */
.dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.99);
    transition: opacity 0.22s ease,
        transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 24px rgba(30, 30, 47, 0.06);
    border-radius: 10px;
    padding: 6px 0;
}
.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Caret for dropdown triggers - stronger header-specific selectors */
/* Caret for dropdown triggers - keep generic rule but we will show the visual caret only for .has-caret */
header nav a.dropdown-toggle,
header .navbar a.dropdown-toggle {
    position: relative;
}
/* Small arrow for the specific About Us link using ::before so it doesn't conflict with the underline ::after */
/* Visual caret element inserted after the About Us text */
header nav a.has-caret .caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 6px;
    vertical-align: middle;
}
/* Flip caret when open/hover */
header nav a.has-caret:hover .caret svg,
header nav a.has-caret.open .caret svg {
    transform: rotate(180deg);
    fill: var(--brand-primary);
}

/* Svg inside caret: default look */
header nav a.has-caret .caret svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--brand-night);
    transition: transform 0.18s ease, fill 0.18s ease;
    transform-origin: center;
}

/* Show dropdown when hovering the trigger */
header nav a.dropdown-toggle:hover + .dropdown,
header nav a.dropdown-toggle:focus + .dropdown,
.dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#mobile-menu ul li a {
    display: block;
    padding: 0.45rem 0.85rem; /* tighter */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-night);
}

/* Add 5% side gutters to the main container to give the site 5% spacing left and right */
.container {
    padding-left: 5% !important;
    padding-right: 5% !important;
    box-sizing: border-box;
}

/* Site width utility: center and constrain to 70% on desktop, with comfortable mobile fallback */
.site-width {
    width: 94%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .site-width {
        width: 70%;
    }
}

/* Improve spacing/alignment for Book Flight row (Infant + Trip Type) */
@media (min-width: 768px) {
    /* increase the grid gap on larger screens so columns breathe */
    #book-flight form {
        gap: 2rem;
    }

    /* target tailwind-like responsive classes (escaped) */
    /* align to start so label baselines line up precisely */
    #book-flight .md\:col-span-2 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #book-flight .md\:col-span-1 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* make the Trip Type heading match the label baseline and size */
    #book-flight .md\:col-span-1 h3 {
        margin: 0 0 0.4rem 0; /* same bottom spacing as labels */
        font-size: 0.95rem;
        font-weight: 600;
        color: rgba(30, 30, 47, 0.85);
        line-height: 1.2;
    }

    /* tighten label spacing for a refined look */
    #book-flight label {
        margin-bottom: 0.4rem;
    }

    /* inline radio controls spacing */
    #book-flight .form-check {
        display: inline-flex;
        align-items: center;
        margin-right: 1rem;
    }
    #book-flight .form-check .form-check-input {
        margin: 0;
    }
    #book-flight .form-check .form-check-label {
        margin-left: 0.5rem;
    }
}

/* Book Your Flight form polish (scoped to #book-flight to avoid touching logic) */
#book-flight section {
    background: #ffffff; /* ensure white */
    border-radius: 12px;
    border: 1px solid rgba(30, 30, 47, 0.06);
    box-shadow: 0 8px 28px rgba(16, 24, 188, 0.06);
    padding: 1.75rem; /* slightly larger padding for breathing room */
}

#book-flight form {
    gap: 1.25rem; /* slightly larger grid gap */
}

#book-flight label {
    color: rgba(30, 30, 47, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
}

#book-flight input[type="text"],
#book-flight input[type="date"],
#book-flight select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--brand-silver);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(16, 24, 188, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
        transform 0.12s ease;
    font-size: 0.95rem;
    color: var(--brand-night);
}

#book-flight select:focus,
#book-flight input[type="text"]:focus,
#book-flight input[type="date"]:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(16, 24, 188, 0.06);
}

/* Disabled field appearance (return date) */
#book-flight input[disabled] {
    opacity: 0.65;
    background: #fbfdff;
    cursor: not-allowed;
}

/* Slight vertical rhythm inside form columns */
#book-flight .flex.flex-col {
    /* matches existing markup */
    gap: 0.5rem;
}

/* Radio inputs — use modern accent color where supported */
#book-flight .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--brand-primary);
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Search CTA */
#book-flight button[type="submit"] {
    background: linear-gradient(
        90deg,
        var(--brand-primary),
        var(--brand-gradient)
    );
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(16, 24, 188, 0.12);
    transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.12s ease;
}

#book-flight button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(16, 24, 188, 0.14);
}

/* Ensure form looks good on very small screens */
@media (max-width: 640px) {
    #book-flight section {
        padding: 1rem;
    }
    #book-flight form {
        gap: 0.75rem;
    }
}

#mobile-menu ul li a:hover {
    background: var(--brand-skywhite);
    color: var(--brand-primary);
}

/* Footer */
footer {
    background: var(--brand-primary);
    color: #ffffff;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Keep buttons using brand */
.btn-brand {
    background: var(--brand-primary);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
}

.btn-brand:hover {
    background: var(--brand-gradient);
}

/* auth links: smaller and more subtle */
.auth-links a {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    color: var(--brand-night);
}

/* individual auth-link helper for stronger specificity */
header .auth-link,
#mobile-menu .auth-link {
    font-size: 0.9rem;
    font-weight: 700; /* bolder, professional */
    color: var(--brand-night);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
header .auth-link:hover,
#mobile-menu .auth-link:hover {
    color: var(--brand-primary);
    text-decoration: none !important;
}

/* Dropdown link polish */
header nav .dropdown a,
header nav .dropdown li a {
    text-decoration: none !important;
    color: var(--brand-night);
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
}
header nav .dropdown a:hover {
    background: var(--brand-skywhite);
    color: var(--brand-primary);
}

/* Auth links as subtle outlined buttons */
.auth-links a,
header .auth-link {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(30, 30, 47, 0.06);
    color: var(--brand-night);
    background: transparent;
    font-weight: 600;
}
.auth-links a:hover,
header .auth-link:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

/* Tab button styling: hover lift and active palettes (only affects the header tabs) */
.tab-button {
    transition: transform 0.16s ease, background-color 0.16s ease,
        color 0.14s ease;
}

/* Subtle hover lift for better affordance (reduce motion safe) */
.tab-button:hover {
    transform: translateY(-3px);
}

/* Active state handled with a clean bottom-accent (looks professional on white backgrounds)
   Keep background of content panels white; tabs show the accent instead of heavy fills. */
.tab-button.active {
    background: transparent !important;
    color: var(--brand-primary) !important;
    border-bottom: 3px solid var(--brand-primary);
    padding-bottom: calc(0.5rem - 3px);
}

/* When the design requires a stronger filled visual for small screens, the helper classes
   (bg-brand-primary / bg-brand-skyWhite) can still be used; primary styling remains the bottom-accent.
 */

/* Uniform, professional tab button base styles */
.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    background: transparent;
    color: var(--brand-night);
    border: 0;
    box-shadow: none;
    font-weight: 600;
}

/* Hover for non-active buttons */
/* Hover for non-active buttons: subtle primary underline and lift */
.tab-button:not(.active):hover {
    color: var(--brand-primary);
    transform: translateY(-2px);
}

/* Active button — professional bottom accent */
.tab-button.active {
    color: var(--brand-primary) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(0) !important;
    border-bottom: 3px solid var(--brand-primary);
    padding-bottom: calc(0.5rem - 3px); /* compensate for bottom border */
}

/* Ensure focus visibility for keyboard users */
.tab-button:focus {
    outline: none;
}
.tab-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(16, 24, 188, 0.12);
}

/* Ensure tab nav area looks clean and professional */
nav ul {
    background: transparent;
    padding-bottom: 0.5rem;
}

/* Tab button custom styling (affects only the nav tab buttons) */
.tab-button {
    transition: transform 0.16s ease, background-color 0.16s ease,
        color 0.14s ease;
}
.tab-button:hover {
    transform: translateY(-2px);
}
/* Active tab button variations */
.tab-button.active[data-tab="book-flight"],
.tab-button[data-tab="book-flight"].active {
    background: var(--brand-primary) !important;
    color: #fff !important;
}
.tab-button.active[data-tab="manage-booking"],
.tab-button[data-tab="manage-booking"].active {
    background: var(--brand-skywhite) !important;
    color: var(--brand-night) !important;
}
.tab-button.active[data-tab="check-in"],
.tab-button[data-tab="check-in"].active {
    background: linear-gradient(
        90deg,
        var(--brand-gradient),
        var(--brand-primary)
    ) !important;
    color: #fff !important;
}
