:root {
    --primary-color: #ff7f00;
    --primary-dark: #e76f00;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f4f7fc;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-info span {
    font-size: 0.8rem;
    color: #666;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: var(--light-gray);
}

main {
    padding: 30px 0;
}

section {
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Make date inputs match text inputs */
input[type="date"] {
    color: var(--text-color);
    opacity: 0.7;
    font-family: inherit;
    -webkit-text-fill-color: var(--text-color); /* For WebKit browsers */
}

/* Ensure placeholder and actual value have consistent opacity */
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-color);
    opacity: 0.7;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.hidden {
    display: none !important;
}

/* Flight cards */
.flight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.flight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flight-info {
    flex: 1;
}

.airline-logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cabin-badge {
    margin-left: 15px;
    padding: 3px 8px;
    font-size: 0.8rem;
    background-color: #f0f7ff;
    color: var(--primary-color);
    border: 1px solid #d0e3ff;
    border-radius: 4px;
}

.flight-details {
    display: flex;
    align-items: center;
    gap: 30px;
}

.flight-info-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

.baggage-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.baggage-info i {
    color: var(--primary-color);
}

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

.flight-time .time {
    font-size: 1.3rem;
    font-weight: 600;
}

.flight-time .airport {
    font-size: 0.8rem;
    color: #777;
}

.flight-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.duration-line {
    height: 2px;
    width: 80px;
    background-color: #ddd;
    position: relative;
}

.duration-line::before,
.duration-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
    top: -2px;
}

.duration-line::before {
    left: 0;
}

.duration-line::after {
    right: 0;
}

.duration-text {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

.stops-text {
    font-size: 0.8rem;
    color: #777;
    margin-top: 3px;
}

.layover-info {
    font-size: 0.75rem;
    color: #777;
    margin-top: 3px;
    text-align: center;
}

.price-select {
    text-align: right;
    min-width: 150px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.per-person {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    width: 250px;
    padding: 14px 30px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1.1rem;
}

.btn-search:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.book-btn {
    padding: 10px 20px;
}

/* Hero section */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    position: relative;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.search-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.trip-type-toggle {
    display: flex;
    margin-bottom: 20px;
}

.trip-btn {
    padding: 10px 20px;
    background-color: var(--light-gray);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.trip-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.trip-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.trip-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* New search form layout */
.search-form-container {
    display: flex;
    flex-direction: column;
}

.search-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.search-field {
    margin-bottom: 20px;
    position: relative;
}

.input-with-icon {
    position: relative;
}

/* Z-index management */
.search-field {
    z-index: 500;
}

.search-field:hover,
.search-field:focus-within {
    z-index: 1000;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.input-with-icon input {
    padding-left: 40px;
}

.search-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    position: relative;
    z-index: 100;
}

.hero-content {
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.traveler-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.counter {
    display: flex;
    align-items: center;
}

.counter button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background-color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter span {
    margin: 0 10px;
    min-width: 30px;
    text-align: center;
}

.cabin-class {
    margin-bottom: 20px;
}

.cabin-class span {
    display: block;
    margin-bottom: 10px;
}

/* Destination cards */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.destination-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.destination-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 150px;
}

.destination-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-name {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Cart styles */
.cart-item {
    position: relative;
    padding-bottom: 50px;
}

.remove-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    display: flex;
    align-items: center;
    animation: slide-in 0.3s ease;
}

.toast i {
    margin-right: 10px;
}

.toast.success i {
    color: var(--success-color);
}

.toast.warning i {
    color: var(--warning-color);
}

.toast.error i {
    color: var(--danger-color);
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .search-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-button-wrapper {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .search-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .search-button-wrapper {
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .btn-search {
        width: 100%;
        max-width: 300px;
    }
    
    .flight-card {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .flight-details {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .price-select {
        width: 100%;
        text-align: center;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 10px;
        margin-top: 10px;
    }
    
    .flight-price {
        min-width: auto;
        width: 100%;
        padding-left: 0;
        border-left: none;
        padding-top: 10px;
    }
    
    .btn-select {
        width: 90%;
        max-width: 200px;
        margin: 10px auto;
        display: block;
    }
    
    .flight-leg {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .flight-duration-stops {
        width: 100%;
        padding: 10px 0;
    }
    
    .flight-arrival {
        align-self: flex-end;
        margin-top: -50px;
    }
    
    /* Additional mobile fixes */
    .flight-info-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .flight-time {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    /* Ensure content is not cut off */
    .flights-list {
        padding: 0 10px;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Make flight itinerary cards responsive */
    .flight-itinerary-card {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .flight-option {
        flex-direction: column;
    }
    
    /* Improve touch target size for checkboxes on mobile */
    .checkbox-list label {
        padding: 10px 5px;
    }
    
    .checkbox-list input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
}

/* Airport dropdown */
.airport-dropdown-fix {
    position: absolute;
    z-index: 9999;
    background-color: white;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-item-fix {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.dropdown-item-fix:hover {
    background-color: var(--light-gray);
}

.dropdown-item-fix:last-child {
    border-bottom: none;
}

/* Search Loading Overlay */
.search-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.search-loading-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.loading-icon {
    margin-bottom: 20px;
    font-size: 40px;
    color: #3498db;
    animation: plane-animation 2s infinite linear;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #f3f3f3;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #3498db;
    animation: progress-glow 1.5s infinite ease-in-out;
    transition: width 0.3s ease-in-out;
}

#selection-progress-bar {
    background-color: #27ae60;
}

#flight-selection-overlay .loading-icon {
    animation: flight-selected-animation 1.5s infinite ease-in-out;
    color: #27ae60;
}

/* Animations */
@keyframes plane-animation {
    0% {
        transform: translateY(0) rotate(0);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0);
    }
    75% {
        transform: translateY(5px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes flight-selected-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes progress-glow {
    0% {
        filter: brightness(100%);
    }
    50% {
        filter: brightness(120%);
    }
    100% {
        filter: brightness(100%);
    }
}

/* Flight Results Page */
.flight-results-page {
    margin: 30px 0;
}

.flight-results-page.hidden {
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.travel-banner {
    display: flex;
    align-items: center;
    background-color: #fff8e1;
    padding: 8px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--warning-color);
    margin: 0 15px;
    font-size: 0.9rem;
    color: #6b5900;
}

.travel-banner i {
    color: var(--warning-color);
    margin-right: 8px;
    font-size: 1rem;
}

.trip-summary h2 {
    margin-bottom: 5px;
    font-size: 1.6rem;
}

.trip-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #555;
}

.filter-toggle {
    display: none;
}

.results-content {
    display: flex;
    gap: 20px;
}

.filters-sidebar {
    width: 300px;
    flex-shrink: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.filter-section {
    margin-bottom: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.filter-section h3 {
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section h3::after {
    content: "\f078"; /* Font Awesome chevron down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
}

.filter-section.collapsed h3::after {
    transform: rotate(180deg);
}

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

.slider {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
    margin: 20px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-list label span {
    color: #666;
}

.checkbox-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.checkbox-list input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-list input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.filter-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.reset-filter {
    background-color: #f0f2f5;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.reset-filter:hover {
    background-color: #e4e6e9;
}

.flights-list {
    flex-grow: 1;
}

/* Responsive Design for Flight Results */
@media (max-width: 992px) {
    .results-content {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        margin-bottom: 20px;
        display: none;
    }
    
    .filter-toggle {
        display: block;
    }
    
    .filters-sidebar.active {
        display: block;
    }
    
    .results-header {
        flex-wrap: wrap;
    }
    
    .travel-banner {
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
    }
}

@media (max-width: 768px) {
    .flight-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .flight-details {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .price-select {
        width: 100%;
        text-align: center;
    }
}

.price-range-display {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    margin: 10px 0;
    color: #333;
}

.results-count {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

.checkbox-list label div {
    display: flex;
    align-items: center;
}

/* Flight Categories Tabs */
.flight-categories {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
    padding: 15px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.sort-dropdown label {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-right: 15px;
    white-space: nowrap;
}

.sort-dropdown select {
    width: auto;
    max-width: 150px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-dropdown select:hover,
.sort-dropdown select:focus {
    border-color: #1a73e8;
    outline: none;
}

/* Flight Options */
.flight-options {
    width: 100%;
}

.limited-tickets {
    color: #e25141;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.limited-tickets i {
    margin-right: 5px;
}

.flight-itinerary-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.flight-option {
    display: flex;
    padding: 15px;
}

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

.flight-leg {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.return-leg {
    border-bottom: none;
    padding-bottom: 0;
}

.flight-times {
    min-width: 120px;
}

.flight-times .time {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.flight-times .airport {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

.flight-times .airline {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

.flight-duration-stops {
    flex: 1;
    padding: 0 20px;
}

.duration-line {
    position: relative;
    height: 2px;
    background: #e0e0e0;
    margin: 10px 0;
}

.duration-line .line {
    height: 2px;
    background: #e0e0e0;
    width: 100%;
}

.duration-line .dot-start,
.duration-line .dot-middle,
.duration-line .dot-end {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #1a73e8;
    border-radius: 50%;
    top: -2px;
}

.duration-line .dot-start {
    left: 0;
}

.duration-line .dot-middle {
    left: 50%;
    transform: translateX(-50%);
}

.duration-line .dot-end {
    right: 0;
}

.duration-text {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

.layover {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 3px;
}

.flight-arrival {
    min-width: 60px;
    text-align: right;
}

.flight-arrival .time {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.flight-arrival .time sup {
    font-size: 10px;
    color: #1a73e8;
    font-weight: normal;
}

.flight-duration {
    min-width: 80px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

.flight-duration i {
    margin-right: 3px;
    color: #888;
}

.flight-price {
    min-width: 200px;
    padding-left: 20px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-amount {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.price-amount sup {
    font-size: 12px;
    font-weight: normal;
}

.price-person {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.price-total {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.price-financing {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #2c88d9;
    margin-bottom: 15px;
}

.price-financing img {
    height: 24px;
    margin-right: 5px;
}

.btn-set-alert,
.btn-select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-set-alert {
    background-color: #f1f3f4;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

.btn-set-alert:hover {
    background-color: #e8eaed;
}

.btn-select {
    background-color: #e25141;
    color: white;
    border: none;
}

.btn-select:hover {
    background-color: #d34836;
}

/* New Search Button Styles */
.new-search-container {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

#new-search-btn {
    background-color: #3a5eca;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

#new-search-btn:hover {
    background-color: #2a4bb9;
}

#new-search-btn i {
    font-size: 14px;
}

/* Make sure the header layout accommodates the new button */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .new-search-container {
        margin-bottom: 10px;
        width: 100%;
    }
    
    #new-search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Flight Details Toggle */
.flight-details-toggle {
    width: 100%;
    border-top: 1px dashed #e0e0e0;
    padding-top: 10px;
    text-align: center;
}

.btn-toggle-details {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.btn-toggle-details:hover {
    color: #0d47a1;
}

.btn-toggle-details i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-toggle-details.active i {
    transform: rotate(180deg);
}

/* Detailed Flight Info */
.flight-detailed-info {
    border-top: 1px solid var(--border-color);
    padding: 20px;
    background-color: var(--card-bg-secondary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.flight-detailed-info.expanded {
    max-height: 2000px; /* Allow enough room for content */
}

.flight-detailed-info.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
}

.leg-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.leg-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color-dark);
}

.leg-date {
    margin-left: 15px;
    font-size: 14px;
    color: var(--text-color-secondary);
}

.leg-cabin-class {
    margin-left: auto;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.flight-segments {
    padding: 0 10px;
}

.flight-segments h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: var(--text-color-dark);
}

.flight-segment {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.segment-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
}

.segment-airline {
    display: flex;
    align-items: center;
    flex: 1;
}

.segment-airline-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 10px;
}

.segment-class {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 15px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.segment-details {
    display: flex;
    align-items: center;
    padding: 15px;
}

.segment-departure, .segment-arrival {
    min-width: 120px;
}

.segment-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color-dark);
}

.segment-date, .segment-airport, .segment-terminal {
    font-size: 13px;
    color: var(--text-color-secondary);
    margin-top: 3px;
}

.segment-duration {
    flex: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.segment-duration-line {
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
    margin-bottom: 5px;
}

.segment-duration-line::before, .segment-duration-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    top: -2px;
}

.segment-duration-line::before {
    left: 0;
}

.segment-duration-line::after {
    right: 0;
}

.segment-duration-text {
    font-size: 13px;
    color: var(--text-color-secondary);
    text-align: center;
}

.segment-layover {
    padding: 10px 15px;
    background-color: rgba(var(--primary-color-rgb), 0.08);
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--primary-color);
}

.segment-layover i {
    margin-right: 8px;
}

.layover-airport {
    margin-left: 5px;
    font-weight: 500;
}

.detailed-legs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detailed-leg {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.detailed-leg.return {
    border-left-color: var(--secondary-color, #34a853);
}

/* Responsive adjustments for detailed flight info */
@media (max-width: 768px) {
    .segment-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .segment-departure, .segment-arrival {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .segment-duration {
        width: 100%;
        padding: 10px 0;
    }
    
    .segment-time, .segment-date, .segment-airport, .segment-terminal {
        margin-top: 0;
        margin-right: 10px;
    }
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.pagination-btn {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.page-indicator {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive Design for Pagination */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
} 