/* CSS Variables - Design System */
:root {
    /* Colors (HSL values) */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --primary: hsl(210, 100%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 40%, 96.1%);
    --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --accent: hsl(210, 40%, 96.1%);
    --accent-foreground: hsl(222.2, 47.4%, 11.2%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);

    /* Flight booking theme colors */
    --flight-primary: #0078d7;
    --flight-primary-foreground: hsl(0, 0%, 100%);
    --flight-secondary: hsl(188, 100%, 55%);
    --flight-secondary-foreground: hsl(0, 0%, 100%);
    --flight-accent: hsl(25, 95%, 53%);
    --flight-accent-foreground: hsl(0, 0%, 100%);
    --flight-navy: hsl(210, 50%, 25%);
    --flight-navy-foreground: hsl(0, 0%, 100%);

    /* Spacing */
    --radius: 0.5rem;
    --container-padding: 1.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Navigation Styles */
.navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--flight-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.plane-icon {
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

.login-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    background: white;
    color: var(--flight-navy);
}

.mobile-menu-btn {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('src/assets/city-skyline.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem var(--container-padding);
    text-align: center;
}

.hero-branding {
    margin-bottom: 4rem;
}

.egyptair-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.egyptair-icon {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    padding: 1rem;
    margin-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.egyptair-text {
    color: white;
    font-size: 2.25rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.title-highlight {
    color: white;
    font-weight: bold;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
        line-height: 1.75rem !important;
    font-weight: 400;
    text-transform: capitalize;
    text-shadow: 2px 0px 11px rgba(0, 0, 0, .6);
}

/* Booking Form Container */
.booking-form-container {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
    z-index: 30;
 width: -webkit-fill-available;
}

.booking-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0;
}

.booking-form {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Trip Type Selector */
.trip-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.trip-type-buttons {
    background: hsl(210, 40%, 96.1%);
    padding: 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trip-type-btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 8.75rem;
    border: none;
    background: transparent;
    color: hsl(215.4, 16.3%, 46.9%);
    cursor: pointer;
}

.trip-type-btn.active {
    background: var(--flight-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.trip-type-btn:not(.active):hover {
    color: hsl(222.2, 47.4%, 11.2%);
    background: rgba(255, 255, 255, 0.5);
}

.trip-type-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Form Grid */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.options-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

/* Form Field Styles */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(215.4, 16.3%, 46.9%);
    margin-bottom: 0.5rem;
}

.label-icon {
    margin-right: 0.5rem;
    color: var(--flight-primary);
}

/* Location Select Styles */
.location-select, .date-select {
    width: 100%;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    border: 2px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.location-select:hover, .date-select:hover {
    border-color: var(--flight-primary);
}

.location-icon, .date-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    margin-right: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.from-icon {
    background: var(--flight-accent);
}

.to-icon, .date-icon {
    background: var(--flight-primary);
}

.location-icon svg, .date-icon svg {
    color: white;
}

.rotated {
    transform: rotate(90deg);
}

.location-text, .date-text {
    flex: 1;
    color: hsl(215.4, 16.3%, 46.9%);
}

.chevron-icon {
    margin-left: auto;
    margin-right: 1rem;
    opacity: 0.5;
}

/* Location Dropdown */
.location-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.location-dropdown.active {
    display: block;
}

.dropdown-search {
    padding: 1rem;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%);
}

.search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.location-list {
    max-height: 200px;
    overflow-y: auto;
}

.location-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.location-item:hover {
    background: hsl(210, 40%, 96.1%);
    transform: translateX(4px);
}

.location-item-name {
    font-weight: 500;
    color: var(--foreground);
}

.location-item-country {
    font-size: 0.875rem;
    color: hsl(215.4, 16.3%, 46.9%);
}

/* Passengers Dropdown */
.passengers-select {
    width: 100%;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    border: 2px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.passengers-select:hover {
    border-color: var(--flight-primary);
}

.passengers-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--flight-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    margin-right: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.passengers-icon svg {
    color: white;
}

.passengers-text {
    flex: 1;
    color: hsl(215.4, 16.3%, 46.9%);
}

.passengers-dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: none;
    padding: 1rem;
}

.passengers-dropdown-content.active {
    display: block;
}

.passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%);
}

.passenger-row:last-child {
    border-bottom: none;
}

.passenger-info {
    display: flex;
    flex-direction: column;
}

.passenger-type {
    font-weight: 500;
    color: var(--foreground);
}

.passenger-desc {
    font-size: 0.75rem;
    color: hsl(215.4, 16.3%, 46.9%);
}

.passenger-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.passenger-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.passenger-btn:hover {
    border-color: var(--flight-primary);
    color: var(--flight-primary);
}

.passenger-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.passenger-count {
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

.class-selector {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(214.3, 31.8%, 91.4%);
}

.class-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(215.4, 16.3%, 46.9%);
}

.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Search Button */
.search-button {
    width: 100%;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--flight-primary), var(--flight-secondary));
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-button:active {
    transform: translateY(0);
}

.search-icon {
    color: white;
}

/* Calendar Modal */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.calendar-modal.active {
    display: flex;
}

.calendar-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
}

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

.calendar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.calendar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(215.4, 16.3%, 46.9%);
    padding: 0.25rem;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    color: var(--flight-primary);
}

.calendar-nav-btn:hover {
    background: hsl(210, 40%, 96.1%);
}

.calendar-month {
    font-weight: 600;
    color: var(--foreground);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: hsl(210, 40%, 96.1%);
}

.calendar-day.selected {
    background: var(--flight-primary);
    color: white;
}

.calendar-day.range-start {
    background: var(--flight-primary);
    color: white;
    border-radius: 0.375rem 0 0 0.375rem;
}

.calendar-day.range-end {
    background: var(--flight-primary);
    color: white;
    border-radius: 0 0.375rem 0.375rem 0;
}

.calendar-day.in-range {
    background: rgba(33, 150, 243, 0.2);
    color: var(--flight-primary);
    border-radius: 0;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-weekday {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(215.4, 16.3%, 46.9%);
}

/* Disabled States */
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disabled:hover {
    border-color: hsl(214.3, 31.8%, 91.4%) !important;
    background: white !important;
}

/* Responsive Design */
/* Extra Large Screens */
@media (min-width: 1400px) {
    .container, .nav-container, .booking-form-wrapper {
        max-width: 1522px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .booking-form {
        padding: 3rem;
    }
}

/* Large Screens */
@media (max-width: 1200px) {
    .hero-container {
        padding: 4rem var(--container-padding);
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .options-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Medium Screens - Tablets */
@media (max-width: 1024px) {
    .nav-items {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .egyptair-text {
        font-size: 2rem;
    }

    .booking-form-container {
        bottom: 3rem;
        position: relative;
        margin-top: -5rem;
    }

    .hero-section {
        min-height: 80vh;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .options-row {
        grid-template-columns: 1fr;
    }

    .trip-type-buttons {
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .trip-type-btn {
        min-width: 7rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
     .title-highlight{
      font-size: 30px;
     }
    .hero-container {
        padding: 3rem var(--container-padding);
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .egyptair-text {
        font-size: 1.75rem;
    }

    .egyptair-icon {
        padding: 0.75rem;
    }

    .booking-form {
        padding: 1.5rem;
        border-radius: 1rem;
        margin: 0 1rem;
    }

    .booking-form-container {
        bottom: 2rem;
        position: relative;
        margin-top: -4rem;
    }

    .hero-section {
        min-height: 75vh;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .options-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trip-type-buttons {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .trip-type-btn {
        width: 100%;
        min-width: auto;
        padding: 1rem;
        font-size: 1rem;
    }

    .location-select, .date-select, .passengers-select {
        height: 4rem;
        padding: 0 5px;
    }

    .location-icon, .date-icon, .passengers-icon {
        width: 3rem;
        height: 3rem;
        margin-left: 5px;
        margin-right: 0.75rem;
    }

    .search-button {
        height: 4rem;
        font-size: 1.125rem;
        margin-top: 1rem;
    }

    .calendar-content {
        width: 95%;
        padding: 1.5rem;
    }

    .location-dropdown, .passengers-dropdown-content {
        left: 0;
        right: 0;
        margin: 0;
    }

    .field-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    .hero-title {
        font-size: 25px;
        margin-bottom: 1rem;
        font-weight: 400;
    }

    .hero-subtitle {
        font-size: 15px;
        width: 95%;
    }

    .egyptair-text {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-content {
        padding: 0.75rem 0;
    }

    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .booking-form {
        padding: 6px;
        margin: 0 0;
    }

    .hero-container {
        padding: 0.5rem  var(--container-padding) 4rem;
    }

    .hero-branding {
        margin-bottom: 3rem;
    }

    .egyptair-logo {
        margin-bottom: 1.5rem;
    }

    .trip-type-btn {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .trip-type-icon {
        font-size: 0.875rem;
    }

    .location-select, .date-select, .passengers-select {
        height: 3.5rem;
    }

    .location-icon, .date-icon, .passengers-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .search-button {
        height: 3.5rem;
        font-size: 1rem;
    }

    .calendar-content {
        width: 98%;
        padding: 1rem;
    }

    .calendar-grid {
        gap: 0.125rem;
    }

    .calendar-day {
        font-size: 1rem;
    }

    .passenger-controls {
        gap: 0.5rem;
    }

    .passenger-btn {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.875rem;
    }

    .field-label {
        font-size: 0.875rem;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .booking-form {
        padding: 0.75rem;
        margin: 0 0.25rem;
    }

    .trip-type-buttons {
        padding: 0.5rem;
    }

    .trip-type-btn {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }

    .hero-container {
        padding: 2rem var(--container-padding);
    }

    .hero-branding {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .booking-form-container {
        bottom: 1rem;
        margin-top: -3rem;
    }

    .booking-form {
        padding: 0;
    }
}
