/* ========================================================= */
/* 🌎 1. GLOBAL RESET & BASE STYLES */
/* ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa; /* Light Gray Background */
    color: #333; /* Dark Text */
    scroll-behavior: smooth;
}

/* Base link styles */
a {
    text-decoration: none;
    transition: color 0.3s;
}

/* Base button/link styles for common actions */
.btn {
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #007cb6; /* Coral Red for Hover */
}


/* ========================================================= */
/* 🧭 2. HEADER & NAVIGATION */
/* ========================================================= */

header {
    background: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
    box-sizing: border-box;
    border-radius: 25px;
}
.nav-container img {
    height: 80px;
    width: auto; /* keeps the image proportional */
}



/* Logo */

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007BFF; /* Primary Blue */
    flex: 0 0 auto;
    white-space: nowrap;
}


/* Centered nav links that can shrink without pushing login out */
.nav-links {
    list-style: none;
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-width: 0;       /* prevents overflow from long items */
    overflow: hidden;
}

/* Individual nav items */
.nav-links li {
    margin: 0;
    white-space: nowrap;
}

/* Link styling: icon + text aligned */
.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

/* Hover / active */
.nav-links a:hover,
.nav-links a.active-nav {
    background: #007BFF;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,123,255,0.12);
}

/* Ensure inline SVG icons inherit color */
.nav-links a svg,
.nav-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    fill: currentColor !important;
}

/* Login button stays visible and never overflows */
.login-btn {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 88px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,123,255,0.12);
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,123,255,0.14); }

/* Responsive: collapse links on narrow screens but keep login visible */
@media (max-width: 820px) {
    .nav-links { display: none; } /* keep header compact on small screens */
    .nav-container { justify-content: space-between; }
    .login-btn { margin-left: 8px; }
}

/* ========================================================= */
/* 🌟 3. HERO SECTION */
/* ========================================================= */
.hero {
    /* Updated to a generic placeholder for cleaner code */
    background-image: url('https://images.unsplash.com/photo-1490604001847-b712b0c2f967?auto=format&fit=crop&w=1253&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #ff6f61; /* Coral Red */
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
}

.cta-button:hover {
    background: #e85c50;
}


/* ========================================================= */
/* ✈️ 4. FLIGHT SEARCH WIDGET */
/* ========================================================= */

.flight-search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin-top: -100px; /* Pull the widget up onto the hero image */
    position: relative;
    z-index: 500;
}

.flight-search-widget {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(100deg, #38aefc, #1a88ff); /* Blue Gradient */
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Trip Type Tabs --- */
.trip-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.trip-tabs button {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.trip-tabs button.active {
    background-color: #ffffff;
    color: #1a88ff;
}

/* --- Search Row & Inputs Container --- */
.search-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.search-form-inputs {
    flex-grow: 1;
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* --- Form Fields --- */
.form-field {
    flex: 1;
    padding: 16px 20px;
    border-right: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 150px;
    cursor: pointer;
}

.form-field:last-child {
    border-right: none;
}

.form-field label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-field .main-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.form-field .sub-text {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific Field Adjustments */
.return-field .main-text {
    font-size: 15px;
    font-weight: 500;
    color: #aaa;
    padding-top: 4px;
}

/* --- Icons and Swap --- */
.swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background-color: #ffffff;
    color: #1a88ff;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.swap-icon:hover {
    background-color: #f0f7ff;
}

.swap-icon svg,
.field-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.traveller-field .field-icon {
    color: #333;
}

/* --- Search Button --- */
.search-button {
    background: linear-gradient(to right, #f98b2c, #f46f22); /* Orange Gradient */
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 0 40px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(246, 120, 36, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    height: auto;
    align-self: center;
}

.search-button:hover {
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(246, 120, 36, 0.4);
}

/* --- Special Fares Bar --- */
.special-fares {
    background-color: #40b2f8;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #ffffff;
}

.special-fares-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.fare-options {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Custom Radio Buttons */
.fare-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.fare-options input[type="radio"] {
    display: none;
}

.fare-options label span {
    position: relative;
    padding-left: 28px;
}

/* Radio Button Ring */
.fare-options label span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transition: border-color 0.2s ease;
}

/* Radio Button Fill */
.fare-options label span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.fare-options input[type="radio"]:checked + span::after {
    transform: translateY(-50%) scale(1);
}


/* ========================================================= */
/* 🎁 5. OFFERS & DESTINATIONS SECTIONS */
/* ========================================================= */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* --- Offers Section --- */
.offers-section {
    background: #f9f9f9;
    padding: 50px 20px;
}

.offers-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.offer-card {
    background: #fff;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.offer-card:hover,
.destination-card:hover {
    transform: translateY(-8px);
}

.offer-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.offer-info {
    padding: 15px 20px;
    text-align: center;
}

.offer-info h3 {
    margin-bottom: 10px;
}

/* --- Destinations Grid --- */
.destinations-grid {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.destinations-grid h2 {
    margin-bottom: 30px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.destination-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: 0.3s;
}

.destination-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.destination-card h3 {
    padding: 15px 0;
}

.destination-card h3 a {
    color: #333;
    font-size: 1.1rem;
    display: block;
}
.destination-card h3 a:hover {
    color: #007BFF;
}


/* ========================================================= */
/* 📝 6. BOOKING FORM */
/* ========================================================= */
.booking-form-section {
    background: #ffffff;
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-form-section h2 {
    text-align: center;
    color: #007BFF;
    margin-bottom: 10px;
}

.booking-form-section p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.submit-button {
    background: #28a745; /* Green */
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.submit-button:hover {
    background: #218838;
}


/* ========================================================= */
/* 🦶 7. FOOTER */
/* ========================================================= */
footer {
    text-align: center;
    padding: 30px;
    background: #343a40; /* Dark Gray */
    color: white;
}

footer a {
    color: #40b2f8;
}


/* ========================================================= */
/* 📱 8. RESPONSIVE STYLES (MEDIA QUERIES) */
/* ========================================================= */

/* Tablet & Smaller Desktop Adjustments */
@media (max-width: 1024px) {
    .form-field {
        min-width: 120px;
        padding: 12px 15px;
    }
    .form-field .main-text {
        font-size: 20px;
    }
    .search-button {
        padding: 0 30px;
        font-size: 16px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Navbar collapse */
    .nav-container {
        flex-direction: column;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        margin: 10px 0;
    }
    .nav-links li {
        margin: 5px 0;
    }
    .login-btn {
        margin-top: 10px;
    }

    /* Flight Widget collapse */
    .search-row {
        flex-direction: column;
        gap: 0; /* Remove gap when stacking */
    }
    .search-form-inputs {
        flex-direction: column;
    }
    .form-field {
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid #eef2f6;
        padding: 15px 20px; /* Restore vertical padding */
    }
    .form-field:last-child {
        border-bottom: none;
    }
    .swap-icon {
        display: none;
    }
    .search-button {
        width: 100%;
        height: 50px;
        margin-top: 12px;
    }

    /* Other sections */
    .hero h1 {
        font-size: 2rem;
    }
    .offers-container, .grid-container {
        display: block;
    }
    .offer-card, .destination-card {
        width: 100%;
        margin-bottom: 20px;
    }
    .offers-section, .destinations-grid, .booking-form-section {
        padding: 30px 20px; /* Reduced padding for mobile screens */
    }
}

/* Dropdown menu for header */
.dropdown-content {
  display: none;
  position: relative;
  top: 38px;
  left: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 1000;
  padding: 6px 0;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-size: 15px;
}

.dropdown-content a:hover {
  background-color: #eee;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}