:root {
    --color-primary: #282160; /* Brand Navy */
    --color-secondary: #1d184a; /* Darker Tone */
    --color-accent: #23acdf; /* Brand Sky Blue */
    --color-light: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-800: #1e293b;
    --color-dark: #282160; /* Match with Logo Navy */

    --font-primary: "Roboto", sans-serif;
    --font-serif: "Montserrat", sans-serif; /* Using Montserrat for headings instead of a serif font */

    --shadow-sm:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-md:
        0 10px 15px -3px rgba(15, 23, 42, 0.1),
        0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg:
        0 20px 25px -5px rgba(15, 23, 42, 0.1),
        0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 25px rgba(35, 172, 223, 0.2);

    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-pill: 9999px;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-800);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body:not([data-airplane-cursor="0"]) {
    cursor: none; /* Hide default cursor */
}

body:not([data-airplane-cursor="0"]) a,
body:not([data-airplane-cursor="0"]) button,
body:not([data-airplane-cursor="0"]) [role="button"],
body:not([data-airplane-cursor="0"]) input,
body:not([data-airplane-cursor="0"]) select,
body:not([data-airplane-cursor="0"]) textarea {
    cursor: none !important; /* Force hide on interactive elements */
}

/* Hide custom cursor on mobile/tablet and restore default */
@media (max-width: 1024px) {
    .cursor-airplane,
    .cursor-trail,
    .trail-particle {
        display: none !important;
    }
    body, a, button, [role="button"], input, select, textarea {
        cursor: auto !important;
    }
}

/* Custom Airplane Cursor */
.cursor-airplane {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    color: white; /* White fill */
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: translate(-50%, -50%) rotate(45deg);
    transition:
        transform 0.1s ease-out,
        color 0.3s ease;
    /* Simulating black border with multiple text-shadows for better visibility */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: rgba(35, 172, 223, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.trail-particle {
    position: fixed;
    background: rgba(40, 33, 96, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transition:
        transform 1s ease-out,
        opacity 1s ease-out;
}

.cursor-airplane.clicking {
    transform: translate(-50%, -50%) scale(0.8) rotate(45deg);
    color: #eee; /* Light gray on click */
}

.cursor-airplane.hovering {
    color: var(--color-accent); /* Color stroke on hover */
    font-size: 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    color: var(--color-primary);
    font-weight: 700;
}

h1.hero-title,
h2.section-title {
    font-family: var(--font-serif);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.text-center {
    text-align: center;
}
.text-primary {
    color: var(--color-primary);
}
.text-secondary {
    color: var(--color-secondary);
}
.text-accent {
    color: var(--color-accent);
}
.bg-light {
    background-color: var(--color-gray-50);
}
.bg-primary {
    background-color: var(--color-primary);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-secondary) 100%
    );
    color: var(--color-light);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-light);
}
.btn-accent:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-full {
    width: 100%;
}

/* Header */
.site-header {
    position: relative; /* Change from absolute to relative to sit above hero */
    background-color: var(--color-light);
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    color: var(--color-primary);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.site-header.is-sticky {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-gray-100);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    color: var(--color-primary);
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}
.nav-link:hover {
    color: var(--color-accent);
}
.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    color: var(--color-primary);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-light);
    background: var(--color-primary);
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}
.hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-accent);
    display: block;
}
.hero-title {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--color-light);
}
.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Main Search Box */
.search-widget {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    margin-top: -100px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-gray-800);
}
.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 1rem;
}
.search-tab {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
}
.search-tab.active {
    color: var(--color-primary);
}
.search-tab.active::after {
    content: "";
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

/* Grid Settings */
.section-padding {
    padding: 6rem 0;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Cards */
.card-pkg {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-pkg:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.card-pkg .img-wrap {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.card-pkg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.card-pkg:hover img {
    transform: scale(1.05);
}
.card-meta {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(40, 33, 96, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
}
.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}
.card-desc {
    color: var(--color-gray-500);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-gray-100);
    padding-top: 1rem;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-gray-800);
}
.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--color-gray-50);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(35, 172, 223, 0.1);
    background-color: var(--color-light);
}

select.form-control {
    display: block;
    width: 100%;
    height: 3.5rem; /* Explicit height to match inputs */
    line-height: 1.5;
    padding: 0 3.5rem 0 1.25rem;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23282160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
}

/* Fix for browsers that might show a white box or offset menu */
select.form-control::-ms-expand {
    display: none;
}

/* Flight Deals Section */
.deal-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.deal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.deal-img {
    width: 140px;
    background-size: cover;
    background-position: center;
}
.deal-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.deal-cities {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}
.deal-price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Sections specific logic */
.section-title.large {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: var(--color-gray-500);
}

/* Mobile Sidebar */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-secondary);
    cursor: pointer;
    background: transparent;
    border: none;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-light);
    z-index: 1000;
    padding: 2rem;
    transition: var(--transition-smooth);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.is-active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-smooth);
}

.sidebar-overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-link {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
}
.sidebar-link:hover {
    color: var(--color-accent);
}

#sidebarClose {
    color: var(--color-primary) !important;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 1rem;
}

.modal-overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.is-active .modal-container {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gray-500);
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (max-width: 600px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .search-widget {
        margin-top: -50px;
        padding: 1.5rem;
    }
    .header-container .btn-primary {
        display: none;
    }
    .mobile-sidebar {
        width: 100%;
    }
}
/* Footer Section */
.site-footer {
    background-color: white;
    color: var(--color-gray-800);
    padding: 5rem 0 2rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--color-gray-100);
}

.footer-logo {
    max-width: 190px;
    object-fit: contain;
    width: 100%;
    margin-bottom: 1.5rem;
}

.footer-brand-title {
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--color-gray-500);
    margin-bottom: 1.5rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.25rem;
}

.footer-social-link {
    color: var(--color-primary);
}

.footer-social-link:hover {
    color: var(--color-accent);
}

.footer-column-title {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--color-gray-800);
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    color: var(--color-gray-800);
}

.footer-contact-item i {
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-100);
    padding-top: 2rem;
    margin-top: 3rem;
    color: var(--color-gray-500);
    font-size: 0.9rem;
    text-align: center;
}

/* --- Refinements for Removing Inline Styles --- */
.header-logo-img {
    height: 60px;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-brand-link {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-logo-img {
    height: 45px;
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary) !important;
}

.sidebar-cta-wrap {
    margin-top: 2rem;
}

.modal-title {
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--color-gray-500);
    margin-bottom: 2rem;
}

.modal-form-grid {
    gap: 1rem;
}

/* ==========================================
   Airport Search Dropdown & Auto-complete UI
   ========================================== */
.airport-search-container {
    position: relative;
}
.airport-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.airport-input-wrapper .airport-input {
    width: 100%;
    padding-right: 2.5rem !important; /* Space for the clear button */
}
.airport-clear-btn {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-gray-500);
    display: none; /* Hidden by default, shown when input has value */
    user-select: none;
    transition: var(--transition-smooth);
    z-index: 5;
    padding: 0.2rem;
}
.airport-clear-btn:hover {
    color: var(--color-accent);
}
/* Autocomplete Dropdown List */
.airport-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0.5rem;
    display: none;
}
/* Individual Dropdown Item */
.airport-dropdown-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-gray-100);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-align: left;
}
.airport-dropdown-item:last-child {
    border-bottom: none;
}
.airport-dropdown-item:hover,
.airport-dropdown-item.active {
    background-color: var(--color-gray-50);
}
.airport-dropdown-item .airport-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}
.airport-dropdown-item .airport-details {
    color: var(--color-gray-500);
    font-size: 0.825rem;
    margin-top: 0.2rem;
}
/* Dropdown states (loading, empty, no-results) */
.airport-dropdown-status {
    padding: 1.25rem;
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.9rem;
}
.airport-dropdown-status i {
    margin-right: 0.5rem;
    color: var(--color-accent);
}