:root {
    --primary-blue: #2E55C7;
    --secondary-blue: #6B8DE6;
    --accent-red: #FF6B6B;
    --light-gray: #f8f9fa;
    --box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6B8DE6 0%, #2E55C7 100%);
    min-height: 480px;
    position: relative;
    padding: 3rem 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/site/img/home_section_3.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* Search Container */
.search-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 3rem;
}

/* Custom Tabs */
.nav-tabs-custom {
    display: flex;
    gap: 2.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .tab-btn:hover {
        color: var(--primary-blue);
    }

    .tab-btn.active {
        color: var(--primary-blue);
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1rem;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary-blue);
            transition: transform 0.3s ease;
        }

/* Location Inputs */
.location-input {
    position: relative;
}

.location-wrapper {
    position: relative;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

    .location-dropdown.show {
        display: block;
    }

.location-option {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .location-option:hover {
        background-color: var(--light-gray);
    }

    .location-option i {
        color: #666;
        width: 20px;
        text-align: center;
    }

    .location-option .location-details {
        flex: 1;
    }

    .location-option .city-name {
        font-weight: 500;
        color: #333;
        margin-bottom: 0.25rem;
    }

    .location-option .country-name {
        font-size: 0.813rem;
        color: #666;
    }

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-item {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 0.875rem 1.25rem;
    flex: 1;
    transition: all 0.3s ease;
}

    .search-item:hover {
        background: #f0f2f5;
    }

    .search-item label {
        font-size: 0.813rem;
        color: #666;
        margin-bottom: 0.25rem;
        display: block;
    }

    .search-item select,
    .search-item input {
        border: none;
        background: transparent;
        width: 100%;
        padding: 0.25rem 0;
        font-weight: 500;
        color: #333;
        cursor: pointer;
    }

        .search-item select:focus,
        .search-item input:focus {
            outline: none;
            box-shadow: none;
        }

/* Switch Button */
.switch-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

    .switch-btn:hover {
        background: var(--light-gray);
        transform: scale(1.05);
    }

/* Return Trip Button */
.return-btn {
    background: var(--light-gray);
    border: none;
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .return-btn:hover {
        background: #f0f2f5;
        transform: translateY(-1px);
    }

/* Search Button */
.search-btn {
    background: var(--accent-red);
    color: white;
    border: none;
    height: 52px;
    padding: 0 2.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .search-btn:hover {
        background: #ff5252;
        transform: translateY(-1px);
    }

/* Flatpickr Customization */
.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: var(--box-shadow) !important;
    border: none !important;
    width: 676px !important;
    font-family: inherit !important;
    padding: 20px !important;
    background: #fff !important;
}

/* Month header styling */
.flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
}

    .flatpickr-current-month .cur-month {
        font-weight: 500 !important;
        font-size: 16px !important;
    }

    .flatpickr-current-month .cur-year {
        font-weight: 500 !important;
        font-size: 16px !important;
        margin-left: 4px !important;
    }

/* Calendar days container */
.dayContainer {
    width: 308px !important;
    min-width: 308px !important;
    max-width: 308px !important;
    padding: 0 !important;
}

/* Calendar days */
.flatpickr-day {
    border-radius: 8px !important;
    height: 40px !important;
    line-height: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    margin: 2px !important;
    font-size: 14px !important;
    color: #333 !important;
}

    .flatpickr-day.selected {
        background: var(--primary-blue) !important;
        border-color: var(--primary-blue) !important;
        color: white !important;
    }

    .flatpickr-day:hover {
        background: #f0f2f5 !important;
    }

/* Weekday headers */
.flatpickr-weekdays {
    margin: 8px 0 !important;
}

.flatpickr-weekday {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: normal !important;
}

/* Mobile styles */
@media (max-width: 767px) {
    .flatpickr-calendar {
        width: calc(100vw - 32px) !important;
        padding: 16px !important;
        left: 50% !important;
        transform: translateX(-42%) !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
    }

    .flatpickr-day {
        width: calc((100% - 14px) / 7) !important;
        max-width: none !important;
        height: 36px !important;
        line-height: 36px !important;
    }
    /* Hide second month on mobile */
    .flatpickr-calendar.multiMonth .flatpickr-month:nth-child(2),
    .flatpickr-calendar.multiMonth .flatpickr-rContainer:nth-child(2) {
        display: none !important;
    }
}

/* Desktop month layout */
@media (min-width: 768px) {
    .flatpickr-months {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        margin-bottom: 15px !important;
    }

    .flatpickr-month {
        width: 50% !important;
        padding: 0 10px !important;
    }

    .flatpickr-innerContainer {
        display: flex !important;
        gap: 20px !important;
    }

    .flatpickr-rContainer {
        width: 100% !important;
    }
}

}


@media (max-width:768px) {
    .flatpickr-rContainer {
        width: 50% !important;
    }
}

.coming-soon {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

    .coming-soon i {
        font-size: 3rem;
        color: var(--primary-blue);
        margin-bottom: 1.5rem;
    }

    .coming-soon h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-item {
        width: 100%;
    }

    .switch-btn {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .return-btn {
        width: 100%;
        text-align: center;
    }

    .search-btn {
        width: 100%;
    }
}
