/* assets/style.css */

:root {
    --primary-color: #0056b3;
    --secondary-color: #00a8cc;
    --accent-color: #ffc107;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --white: #ffffff;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #004494;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Search Widget */
.search-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.search-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-tab:hover {
    color: var(--primary-color);
    background: rgba(0, 86, 179, 0.05);
}

.search-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 86, 179, 0.05);
}

/* Search Forms */
.search-form {
    display: none;
}

.search-form.active {
    display: block;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Autocomplete Dropdown */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

.autocomplete-item strong {
    color: var(--primary-color);
    display: block;
}

.autocomplete-item small {
    color: #666;
    font-size: 0.85rem;
}

/* Passenger Selector */
.passenger-wrapper {
    position: relative;
}

.passenger-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
    min-width: 280px;
}

.passenger-dropdown.show {
    display: block;
}

.passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.passenger-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0.8rem;
}

.passenger-info strong {
    display: block;
    color: var(--text-color);
}

.passenger-info small {
    color: #666;
    font-size: 0.85rem;
}

.passenger-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.passenger-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.passenger-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.passenger-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.passenger-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.passenger-done-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.passenger-done-btn:hover {
    background: #004494;
}

/* Submit Group */
.submit-group {
    min-width: 150px;
}

.btn-search {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    margin: 0 1rem;
    text-decoration: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

.autocomplete-item strong {
    color: var(--primary-color);
    display: block;
}

.autocomplete-item small {
    color: #666;
    font-size: 0.85rem;
}

/* Passenger Selector */
.passenger-wrapper {
    position: relative;
}

.passenger-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
    min-width: 280px;
}

.passenger-dropdown.show {
    display: block;
}

.passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.passenger-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0.8rem;
}

.passenger-info strong {
    display: block;
    color: var(--text-color);
}

.passenger-info small {
    color: #666;
    font-size: 0.85rem;
}

.passenger-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.passenger-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.passenger-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.passenger-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.passenger-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.passenger-done-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.passenger-done-btn:hover {
    background: #004494;
}

/* Submit Group */
.submit-group {
    min-width: 150px;
}

.btn-search {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    margin: 0 1rem;
    text-decoration: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

.autocomplete-item strong {
    color: var(--primary-color);
    display: block;
}

.autocomplete-item small {
    color: #666;
    font-size: 0.85rem;
}

/* Passenger Selector */
.passenger-wrapper {
    position: relative;
}

.passenger-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
    min-width: 280px;
}

.passenger-dropdown.show {
    display: block;
}

.passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.passenger-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0.8rem;
}

.passenger-info strong {
    display: block;
    color: var(--text-color);
}

.passenger-info small {
    color: #666;
    font-size: 0.85rem;
}

.passenger-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.passenger-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.passenger-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.passenger-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.passenger-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.passenger-done-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.passenger-done-btn:hover {
    background: #004494;
}

/* Submit Group */
.submit-group {
    min-width: 150px;
}

.btn-search {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    margin: 0 1rem;
    text-decoration: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-widget {
        width: 95%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .search-tabs {
        flex-direction: column;
    }

    .search-tab {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-links {
        display: none;
    }

    .navbar-brand .logo {
        height: 60px;
    }
}

/* Flight Loading Animation */
.flight-loading {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.airplane-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
}

.airplane-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    animation: flyAround 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes flyAround {
    0% {
        top: 50%;
        left: 0%;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    25% {
        top: 0%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    50% {
        top: 50%;
        left: 100%;
        transform: translate(-50%, -50%) rotate(180deg);
    }

    75% {
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(270deg);
    }

    100% {
        top: 50%;
        left: 0%;
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loading-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text p {
    color: #666;
    font-size: 1.1rem;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Hide loading when results appear */
.flight-results:not(:empty)~.flight-loading {
    display: none;
}

/* ========== ENHANCED SEARCH RESULTS STYLES ========== */

/* Search Summary Header */
.search-results-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.search-summary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004494 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-summary .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-info h1 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.search-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Results Layout */
.results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.filter-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
}

.btn-link:hover {
    color: #004494;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.price-range-display,
.duration-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.range-slider {
    width: 100%;
    margin: 0.5rem 0;
    accent-color: var(--primary-color);
}

.airline-filters {
    max-height: 200px;
    overflow-y: auto;
}

.airline-filters::-webkit-scrollbar {
    width: 6px;
}

.airline-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.airline-filters::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Results Area */
.results-area {
    min-height: 400px;
}

/* Enhanced Flight Cards */
.flight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.flight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.flight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f5f5f5;
}

.flight-price {
    flex: 1;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount .currency {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.price-amount .amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

.btn-select-flight {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Flight Itinerary */
.flight-itinerary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.flight-itinerary.outbound {
    border-left: 4px solid #1976d2;
}

.flight-itinerary.return {
    border-left: 4px solid #f57c00;
}

.itinerary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.itinerary-label i {
    color: var(--primary-color);
}

.itinerary-label strong {
    color: #333;
}

.itinerary-label span {
    color: #666;
    margin-left: auto;
}

/* Flight Summary */
.flight-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.flight-time {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 400px;
}

.time-block {
    text-align: center;
}

.time-block .time {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.time-block .airport {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    margin-top: 0.25rem;
}

.flight-path {
    flex: 1;
    text-align: center;
}

.duration {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.path-line {
    position: relative;
    height: 2px;
    background: linear-gradient(to right, #ddd 0%, #ddd 45%, transparent 45%, transparent 55%, #ddd 55%, #ddd 100%);
    margin: 0.5rem 0;
}

.stops-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.direct-badge {
    background: #4caf50;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stops-badge {
    background: #ff9800;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.airline-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.airline-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Expandable Details */
.btn-expand-details {
    width: 100%;
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-expand-details:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.btn-expand-details i {
    transition: transform 0.3s;
}

.flight-itinerary.expanded .btn-expand-details i {
    transform: rotate(180deg);
}

.hide-details {
    display: none;
}

.flight-itinerary.expanded .show-details {
    display: none;
}

.flight-itinerary.expanded .hide-details {
    display: inline;
}

.flight-details-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.flight-itinerary.expanded .flight-details-expanded {
    max-height: 1000px;
    margin-top: 1rem;
    transition: max-height 0.4s ease-in;
}

.segment-detail {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.segment-airline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.segment-airline img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.segment-airline strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
}

.segment-airline small {
    color: #666;
    font-size: 0.85rem;
}

.segment-route {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.segment-point {
    text-align: center;
}

.segment-point strong {
    display: block;
    font-size: 1.2rem;
    color: #333;
}

.segment-point span {
    color: #666;
    font-size: 0.9rem;
}

.segment-duration {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.segment-duration i {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.layover-notice {
    text-align: center;
    padding: 0.6rem;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
}

.no-results i {
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #666;
    margin: 1rem 0;
}

.no-results p {
    color: #999;
    margin-bottom: 1.5rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.error-message i {
    font-size: 3rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.1rem;
    color: #666;
    margin: 1rem 0 2rem 0;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .results-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        top: 0;
    }

    .flight-time {
        min-width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .flight-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-select-flight {
        width: 100%;
        justify-content: center;
    }

    .search-info h1 {
        font-size: 1.4rem;
    }

    .search-details {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .flight-summary {
        padding: 0.8rem;
    }

    .time-block .time {
        font-size: 1.4rem;
    }

    .price-amount .amount {
        font-size: 1.8rem;
    }

    .segment-route {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================================
   Compact Search Form (Row Layout)
   ========================================= */
.compact-search-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.compact-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.compact-form-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.compact-form-row .form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: block;
}

.compact-form-row .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    height: 42px;
    font-size: 0.9rem;
}

.compact-form-row .btn-primary {
    height: 42px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

/* Passenger Dropdown in Compact Form */
.compact-search-form .passenger-dropdown {
    top: 100%;
    right: 0;
    left: auto;
    width: 300px;
    margin-top: 0.5rem;
    z-index: 1000;
}

/* Mobile Responsive for Compact Form */
@media (max-width: 992px) {
    .compact-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .compact-form-row .btn-primary {
        width: 100%;
    }
}

/* =========================================
   Loading Animation (Plane Circling World)
   ========================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.world-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.world-icon {
    font-size: 60px;
    color: var(--primary-light);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.plane-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: orbit 2s linear infinite;
}

.plane-icon {
    position: absolute;
    top: -15px;
    /* Adjust radius */
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    font-size: 24px;
    color: var(--primary-color);
}

@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.loading-text p {
    color: #666;
}


/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}