:root {
    --primary-color: #000acc;
    --secondary-color: #48d8fa;
    --accent-color: #1a1aff;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    transition: var(--transition);
}

    .navbar.scrolled {
        background: rgba(0, 10, 204, 0.95);
        backdrop-filter: blur(10px);
    }

        .navbar.scrolled .logo {
            background-color: #fff;
        }

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    color: white !important;
    margin: 0 0.5rem;
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: var(--transition);
    }

    .nav-link:hover::after {
        width: 100%;
    }

.logo {
    max-width: 150px;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh + 2px);
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("/images/sections/hero-section.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: -76px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 75px;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: var(--transition);
}

    .search-container:hover {
        border-color: var(--secondary-color);
    }

.nav-tabs {
    border: none;
    margin-bottom: 1rem;
}

    .nav-tabs .nav-link {
        border: none;
        color: var(--dark-color) !important;
        padding: 1rem 2rem;
        border-radius: 10px;
        margin-left: 0.5rem;
        transition: var(--transition);
    }

        .nav-tabs .nav-link.active {
            background: var(--gradient-primary);
            color: white !important;
        }

.form-control {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

    .form-control:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(72, 216, 250, 0.2);
    }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 10, 204, 0.2);
    }

/* Destination Cards */
.destination-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 400px;
    cursor: pointer;
}

    .destination-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 10, 204, 0.7));
        opacity: 0;
        transition: var(--transition);
    }

    .destination-card:hover::before {
        opacity: 1;
    }

    .destination-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

    .destination-card:hover img {
        transform: scale(1.1);
    }

.destination-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

    .feature-card:hover {
        transform: translateY(-10px);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(10deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-tabs .nav-link {
        padding: 0.8rem 1rem;
    }

    .destination-card {
        height: 300px;
        margin-bottom: 1.5rem;
    }
}

/* ??? ????? ????? */
.travel-tips {
    position: relative;
    background: linear-gradient(rgba(0, 10, 204, 0.7), rgba(72, 216, 250, 0.7)), url("/images/sections/tip-section.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
    color: white;
    margin: 6rem 0;
}

    .travel-tips::before {
        content: '';
        position: absolute;
        top: -80px;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom right, transparent 49%, white 50%);
    }

    .travel-tips::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to top left, transparent 49%, white 50%);
    }

.tip-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

    .tip-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .tip-card h3 {
        color: white;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

.tip-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.tip-card:hover .tip-icon {
    background-color: var(--secondary-color);
    transform: rotate(360deg);
}

.tip-list li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

    .tip-list li i {
        color: var(--secondary-color);
        margin-left: 1rem;
        font-size: 1.2rem;
    }

/* ??? ???????? */
.blog-section {
    background-color: var(--light-color);
    position: relative;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

    .blog-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--gradient-primary);
        opacity: 0;
        transition: var(--transition);
    }

    .blog-card:hover::before {
        opacity: 0.1;
    }

    .blog-card:hover {
        transform: translateY(-10px);
    }

.blog-image {
    position: relative;
    height: 200px;
}

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.2;
}

    .blog-date span {
        display: block;
    }

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
}

    .btn-link:hover {
        color: var(--secondary-color);
    }

    .btn-link i {
        margin-right: 0.5rem;
        transition: var(--transition);
    }

    .btn-link:hover i {
        transform: translateX(-5px);
    }

/* ????? ?????? */
.footer {
    background: var(--dark-color);
    color: white;
}

.footer-top {
    background: linear-gradient(rgba(0, 10, 204, 0.85), rgba(72, 216, 250, 0.85)), url("/images/sections/tip-section.jpg") center/cover;
    padding: 5rem 0 3rem;
    position: relative;
    color: white;
}

.footer-widget {
    position: relative;
    margin-bottom: 2rem;
}

    .footer-widget h3 {
        color: white;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .footer-widget p,
    .footer-widget a {
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s ease;
    }

        .footer-widget a:hover {
            color: var(--secondary-color);
            text-decoration: none;
            transform: translateX(-5px);
            display: inline-block;
        }

    .footer-widget ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-widget ul li {
            margin-bottom: 1rem;
        }

    .footer-widget .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        margin-right: 10px;
        transition: all 0.3s ease;
    }

        .footer-widget .social-links a:hover {
            background: var(--secondary-color);
            color: white;
            transform: translateY(-5px);
        }

    .footer-widget .contact-info li {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-widget .contact-info i {
        margin-left: 1rem;
        color: var(--secondary-color);
    }

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-bottom-links li {
        display: inline-block;
        margin-right: 1.5rem;
    }

        .footer-bottom-links li:last-child {
            margin-right: 0;
        }

    .footer-bottom-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-bottom-links a:hover {
            color: var(--secondary-color);
        }

@media (max-width: 768px) {
    .footer-widget {
        margin-bottom: 2rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 1rem;
        text-align: center;
    }
}

/* Search Results Page Styles */
.section-hero {
    margin-top: -74px;
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
    background-image: url("/images/sections/hero-section.jpg");
}

    .section-hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    }

    .section-hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

.filters-sidebar {
    position: sticky;
    top: 85px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: none;
}

    .filters-sidebar .card-body {
        padding: 1.5rem;
    }

    .filters-sidebar .form-label {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .filters-sidebar .form-label .badge {
            background: #e2e8f0;
            color: #4a5568;
            font-weight: 500;
            padding: 0.25rem 0.75rem;
        }

.price-slider {
    padding: 0 10px;
}

    .price-slider .noUi-connect {
        background: #3182ce;
    }

    .price-slider .noUi-handle {
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

.price-range-inputs {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

    .price-range-inputs .form-control {
        text-align: center;
        font-size: 0.875rem;
    }

.airlines-list {
    max-height: 200px;
    overflow-y: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

    .airlines-list.expanded {
        max-height: none;
    }

    .airlines-list:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: linear-gradient(transparent, #fff);
    }

.show-more-airlines {
    color: #3182ce;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

    .show-more-airlines:hover {
        color: #2c5282;
    }

.sort-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sort-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #4a5568;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sort-btn:hover {
        background: #f7fafc;
    }

    .sort-btn.active {
        background: #3182ce;
        color: #fff;
        border-color: #3182ce;
    }

.flight-card {
    transition: all 0.3s ease;
}

    .flight-card .card {
        border: none;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .flight-card:hover .card {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.flight-segment {
    background-color: #f8fafc;
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

    .flight-segment:last-child {
        margin-bottom: 0;
    }

    .flight-segment .fa-plane {
        color: #3182ce;
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }

    .flight-segment h6 {
        color: #2d3748;
        margin-bottom: 0.75rem;
    }

    .flight-segment .departure,
    .flight-segment .arrival {
        padding: 1rem;
        border-radius: 0.5rem;
        background-color: white;
    }

.flight-number {
    text-align: center;
}

    .flight-number img.airline-logo-small {
        height: 20px;
        width: auto;
        object-fit: contain;
        margin-bottom: 0.5rem;
    }

    .flight-number .duration {
        margin-top: 0.5rem;
        font-size: 0.875rem;
        color: #4a5568;
        background: #edf2f7;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        display: inline-block;
    }

.flight-segment {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .flight-segment:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

.departure, .arrival {
    text-align: center;
}

.airport-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.airport-code {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.time {
    font-size: 1.125rem;
    color: #2563eb;
    font-weight: 500;
}

.flight-duration {
    position: relative;
    padding: 0 1rem;
}

.plane-line {
    position: relative;
    height: 2px;
    background: #e5e7eb;
    margin: 1.5rem 0;
}

    .plane-line i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        color: #2563eb;
        background: white;
        padding: 0.5rem;
        font-size: 1rem;
    }

.duration {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.flight-details-bottom {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
}

.flight-number {
    color: #4b5563;
    font-size: 0.875rem;
}

.route-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.departure, .arrival {
    text-align: center;
    flex: 1;
}

.airport-code {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.airport-name {
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.time {
    font-size: 1rem;
    color: #2d3748;
}

.flight-duration {
    flex: 1;
    position: relative;
    padding: 0 1rem;
}

    .flight-duration::before {
        content: "";
        position: absolute;
        top: 42px;
        left: 0;
        right: 0;
        border-top: 1px dashed #cbd5e0;
    }

    .flight-duration i {
        background: white;
        padding: 0.5rem;
        border-radius: 50%;
        color: #4a5568;
        position: relative;
    }

.duration {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

.flight-number {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

    .flight-number span {
        white-space: nowrap;
    }

img.airline-logo-small {
    height: 16px;
    width: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-hero {
        padding: 80px 0 60px;
    }

        .section-hero h1 {
            font-size: 2rem;
        }

    .filters-sidebar {
        margin-bottom: 2rem;
    }

    .flight-segment .row {
        text-align: center;
    }

    .flight-segment .col-md-2 {
        margin: 1rem 0;
    }

    .airline-logo {
        width: 100px;
        height: 35px;
    }
}

/* Flight Card Styles */
.flight-info {
    display: flex;
    align-items: center;
}

.airline-logo {
    width: 100px;
    height: 35px;
}

    .airline-logo img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

.flight-details {
    display: flex;
    flex-direction: column;
}

    .flight-details .card-title {
        font-size: 1.1rem;
        color: #2d3748;
        margin-bottom: 0.25rem;
    }

.price-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
}

    .price-badge span {
        font-size: 0.875rem;
        opacity: 0.9;
    }

/* Route Info */
.route-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

    .route-info .departure,
    .route-info .arrival {
        text-align: center;
    }

    .route-info .airport-code {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1f2937;
    }

    .route-info .airport-name {
        color: #4b5563;
        font-size: 0.875rem;
        margin: 0.25rem 0;
    }

    .route-info .time {
        color: #2563eb;
        font-weight: 500;
    }

    .route-info .flight-duration {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        padding: 0 2rem;
    }

        .route-info .flight-duration i {
            color: #2563eb;
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

    .route-info .duration {
        font-size: 0.875rem;
        color: #6b7280;
    }

/* Flight Segments */
.flight-segment {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.segment-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.segment-departure,
.segment-arrival {
    text-align: center;
}

    .segment-departure .time,
    .segment-arrival .time {
        font-weight: 500;
        color: #1f2937;
        margin-bottom: 0.25rem;
    }

/* Trip Type Buttons */
.btn-group .btn-outline-primary {
    border-color: #e2e8f0;
    color: #4a5568;
    background-color: #fff;
}

    .btn-group .btn-outline-primary:hover {
        background-color: #f7fafc;
        border-color: #cbd5e0;
        color: #2d3748;
    }

.btn-group .btn-check:checked + .btn-outline-primary {
    background-color: #3182ce;
    border-color: #3182ce;
    color: #fff;
}

.travelers {
    height: 54px;
}
/* Travelers Dropdown */
.travelers-btn {
    text-align: right;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    height: 100%;
}

    .travelers-btn:hover {
        background-color: #f7fafc;
    }

.travelers-dropdown {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.number-spinner {
    display: flex;
    align-items: center;
}

    .number-spinner .form-control {
        width: 90px;
        text-align: center;
        border: 1px solid #e2e8f0;
        border-radius: 0.25rem;
    }

    .number-spinner .btn {
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        border-radius: 50%;
    }

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

/* Date Inputs */
input[type="date"] {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: #4a5568;
}

    input[type="date"]:focus {
        border-color: #3182ce;
        box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
        outline: none;
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .travelers-dropdown {
        width: 100%;
    }
}

.booking-flight-details {
    position: sticky;
    top: 85px;
}
