/* Add at the beginning of the file */
* {
    font-family: 'Roboto', sans-serif;
}

body{
    background-color: #f5f9ff !important;
}

/* Flight Search Form */
.flight-booking-search-form {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
main {
    margin-block-start: 0;
}
.btn-search-mobile{
    display: none !important;
}
.btn-search-web{
    display: flex !important;
}
.search-fields {
    display: flex;
    gap: 5px;
    margin: 15px 0;
}

.field {
    flex: 1;
}


.field label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
    text-align: left;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

/* Search spinner styling */
.search-spinner {
    position: absolute;
    left: 0;
    bottom: -25px;
    width: 1rem;
    height: 1rem;
    z-index: 1000;
}

.field {
    position: relative;
}

.field input[type="text"],
.field select {
    width: 100%;
    height: 30px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}
.passenger-input{
    width: 50%;
}
.field p{
    margin-top: 0;
    
}
.field input{
    padding-left: 4px;
    border: 1px solid #dadada;
    box-shadow: 0 2px 15px 0 rgb(0 0 0 / 10%);
}
.submit-row {
    display: inline-flex;
    align-items: flex-end;
}

.search-button {
    height: 38px;
    padding: 0 20px !important;
    font-size: 14px !important;
    white-space: nowrap;
}
.filter-toggle-btn{
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-fields {
        flex-direction: column;
        gap: 15px;
    }

    .field {
        width: 100%;
        align-self: end;
    }

    .field label {
        font-size: 14px;
    }

    .field input[type="text"],
    .field select {
        height: 42px;
        font-size: 14px;
    }

    .submit-row {
        width: 100%;
        margin-top: 15px;
        display: flex;
    }


    .search-button {
        width: 100%;
        height: 42px;
    }
    .passenger-input{
        width: 33%;
    }
    .filters-sidebar {
        display: none;
    }

    .filter-toggle-btn {
        display: block;
        background: #007bff;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-align: center;
        margin: 10px auto;
        width: fit-content;
    }

    .apply-filter-btn {
        display: block;
        background: #28a745;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-align: center;
        margin: 10px auto;
        width: fit-content;
    }
}

/* Modern Date Picker Styling */
.ui-datepicker {
    padding: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 300px;
}

.ui-datepicker .ui-datepicker-header {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 8px;
}

.ui-datepicker th {
    color: #555;
    font-size: 12px;
    padding: 7px;
}

.ui-datepicker td {
    padding: 3px;
}

.ui-datepicker td span,
.ui-datepicker td a {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    border: none;
}

.ui-datepicker td a.ui-state-active {
    background: #007bff;
    color: white;
}

.ui-datepicker td a.ui-state-highlight {
    background: #e9ecef;
}

/* Button Styles */
.search-button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Modern Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    pointer-events: none;
}

.plane-loader {
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: 50px;
    left: 50px;
    background: url('../images/plane-loading.svg') no-repeat center;
    background-size: contain;
    animation: flyPlane 15s infinite linear;
}

@keyframes flyPlane {
    from {
        transform: translate(0, 0) rotate(45deg);
    }
    to {
        transform: translate(calc(100vw - 160px), calc(-100vh + 160px)) rotate(45deg);
    }
}



/* Flight Results */
.flight-results-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2em;
    max-width: 1400px;
    margin: 2em auto;
}

.filters-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Price Range Slider */
.price-range-container {
    padding: 10px 0;
}

.form-range {
    width: 100%;
    margin: 10px 0;
}

#min-price, #max-price {
    font-size: 14px;
    color: #666;
}

/* Airline Filter */
.airline-search {
    margin-bottom: 15px;
}

.airline-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.airline-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.airline-actions button {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.airline-actions button:hover {
    background: #e9ecef;
}

#airline-list {
    max-height: 300px;
    overflow-y: auto;
}

.airline-item {
    margin-bottom: 10px;
}

.airline-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.airline-info {
    flex-grow: 1;
}

.airline-name {
    font-size: 14px;
    color: #333;
}

.flight-count {
    font-size: 12px;
    color: #666;
}

/* Stops Filter */
.stops-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stops-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sort-options span {
    color: #666;
    font-size: 14px;
}

.sort-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-option:hover {
    background: #f8f9fa;
}

.sort-option.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Mobile Responsiveness */
.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .filter-toggle-btn {
        display: block;
        width: fit-content;
    }

    .filters-sidebar {
        display: none;
        margin-bottom: 20px;
    }

    .sort-options {
        flex-wrap: wrap;
    }

    .sort-option {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
}

/* Search Summary */
.search-summary {
    margin-bottom: 20px;
}

.search-summary h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.route-summary {
    font-size: 16px;
    color: #666;
}

.route-summary .date {
    margin-left: 10px;
    color: #007bff;
}

.results-count {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.flight-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

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

.flight-card .flight-header {
    background: #f8f9fa;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.flight-card .flight-header .airline-logo img {
    width: 40px;
    height: 40px;
}

.flight-card .flight-header .airline-name {
    font-size: 1.1em;
    font-weight: 600;
}

.flight-card .flight-header .flight-price {
    font-size: 1.5em;
    font-weight: 700;
    color: #28a745;
}

.flight-card .segment {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.flight-card .segment:last-child {
    border-bottom: none;
}

.flight-card .segment .time-info {
    text-align: center;
}

.flight-card .segment .time-info .time {
    font-size: 1.2em;
    font-weight: 600;
}

.flight-card .segment .time-info .location {
    font-size: 0.9em;
    color: #666;
}

.flight-card .segment .duration {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    position: relative;
}

.flight-card .segment .duration::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #ddd;
    margin-bottom: 5px;
}

.flight-card .flight-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flight-card .flight-footer .baggage-info {
    font-size: 0.9em;
    color: #666;
}

.flight-card .flight-footer .select-button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flight-card .flight-footer .select-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.flight-card .flight-details {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

.flight-card .flight-details .detail-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.flight-card .flight-details .detail-link:hover {
    text-decoration: underline;
}

.segment {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 1.5em;
    gap: 2em;
    align-items: center;
}

.time-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.departure, .arrival {
    font-size: 1.2em;
    font-weight: 600;
}

.duration {
    color: #666;
    font-size: 0.9em;
    position: relative;
}

.duration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

.filter-section {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #acacac;
}

.filter-section h4 {
    margin-bottom: 1em;
    color: #333;
    font-size: 1.1em;
}

/* Price Range Slider */
.price-filter input[type="range"] {
    width: 100%;
    margin: 1em 0;
}

/* Airline Filter Checkboxes */
.airline-filter label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
    cursor: pointer;
}

.airline-filter img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Sort Options */
.sort-options {
    display: flex;
    gap: 1em;
    margin: 10px 85px 40px;
    margin-bottom: 1.5em;
    padding: 1em;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sort-option {
    padding: 0.5em 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.sort-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
}

/* Booking Confirmation Styles */
.booking-confirmation-container {
    max-width: 1000px;
    margin: 2em auto;
    padding: 2em;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2em;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 1em;
}

.segment-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1em;
    align-items: center;
    margin: 0 0 1.3rem 0;
}

.timeline-line {
    position: relative;
    height: 2px;
    background: #ddd;
}

.timeline-line .duration {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
    font-size: 0.9em;
    color: #666;
}

.confirmation-actions {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-top: 2em;
}

.print-button, .home-button {
    padding: 0.8em 1.5em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.print-button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.home-button {
    background: #6c757d;
    color: white;
}

@media print {
    .confirmation-actions {
        display: none;
    }
}

/* Breadcrumb Navigation */
.booking-breadcrumb {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 1em auto 0;
    padding: 0 1em;
    background: #f5f9ff;
}

.breadcrumb-step {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
}

.breadcrumb-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: calc(100% - 50px);
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    z-index: 1;
}

.step-label {
    font-size: 0.9em;
    color: #666;
    z-index: 1;
}

.breadcrumb-step.completed .step-number {
    background: #28a745;
    color: white;
}

.breadcrumb-step.active .step-number {
    background: #007bff;
    color: white;
}

.breadcrumb-step.completed .step-label,
.breadcrumb-step.active .step-label {
    color: #333;
    font-weight: 500;
}

/* Enhanced Airline Filter */
.airline-filter {
    padding-bottom: 1em;
}

.airline-search {
    margin-bottom: 1em;
}

.airline-search input {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1em;
    padding-right: 10px;
}

.airline-item {
    display: flex;
    align-items: center;
    padding: 0.5em 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.airline-logo {
    width: 80px;
    margin-right: 10px;
}

.airline-info {
    flex: 1;
}

.airline-name {
    font-size: 0.9em;
    margin-bottom: 0.2em;
}

.flight-count {
    font-size: 0.8em;
    color: #666;
}

.filter-actions {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.filter-actions button {
    flex: 1;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.9em;
}

.filter-actions button:hover {
    background: #e9ecef;
}

/* Modern Button Styles */
.select-flight-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.select-flight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
    background: linear-gradient(45deg, #0056b3, #004494);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .flight-results-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2em;
    }
}


/* Enhanced Filter Styles */
.price-filter .range-slider {
    position: relative;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    margin: 2em 0;
}

.range-slider .handle {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    margin-left: -10px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.airline-filter .airline-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.airline-filter .airline-item:hover {
    background: #f8f9fa;
}

/* Enhanced Breadcrumb */
.booking-breadcrumb {
    background: #f5f9ff;
    padding: 0.3em 2em;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1em;
}

/* Fare Rules Popup */
.fare-rules-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}

/* Matrix View for Multi-Day Prices */
.price-matrix {
    overflow-x: auto;
    margin: 2em 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1em;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
    padding: 1em;
    text-align: center;
    border: 1px solid #eee;
}

.matrix-table .best-price {
    background: #e3f2fd;
    color: #007bff;
    font-weight: bold;
}

/* Calendar View */
.calendar-view {
    background: white;
    border-radius: 12px;
    padding: 1.5em;
    margin: 2em 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.month-navigation {
    display: flex;
    align-items: center;
    gap: 1em;
}

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

.calendar-day {
    padding: 0.8em;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.calendar-day.best-price {
    background: #e3f2fd;
    border-color: #2196f3;
}

.calendar-day .price {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.3em;
}

/* Loading Animation Enhancement */
.plane-animation {
    position: relative;
    animation: planeMove 3s infinite ease-in-out;
}

@keyframes planeMove {
    0% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(20px, -10px) rotate(5deg); }
    75% { transform: translate(-20px, 10px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0); }
}

/* Modern Form Enhancements */
.trip-type {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 4px;
    height: 32px;
    margin-bottom: 1em;
    gap: 4px;
    border: 1px solid #e0e0e0;
    position: relative;
    width: auto;
    align-items: center;
}

.trip-type label {
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    z-index: 2;
    min-width: 80px;
    text-align: center;
}

.trip-type .active-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    color: #dadada;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #00c853, #69f0ae);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 1;
}

.trip-type input[type="radio"]:checked + label {
    color: white;
}

.trip-type .active-bg label{
    color: #eee;
}

.trip-type input[type="radio"] {
    display: none;
}

.trip-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}
#multicity-container p{
    max-height: 35px;
 }

.add-city-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background: transparent;
    border: 1px dashed #007bff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #007bff !important;
    color: #fff !important;
}

.add-city-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Passenger Preferences Styles */
.passenger-preferences {
    margin-top: 2em;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    .flight-card {
        padding: 1em;
    }

    .segment {
        grid-template-columns: 1fr;
        gap: 1em;
        text-align: center;
    }

    .duration::before {
        display: none;
    }

    .price-matrix {
        font-size: 0.9em;
    }

    .passenger-forms {
        padding: 1em;
    }

    .breadcrumb-step .step-label {
        display: none;
    }
}

/* Enhanced Animations */
.segment:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.preference-item select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    outline: none;
}

/* Flight Search Form */
.flight-search-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.location-search {
    width: 100%;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
}

.submit-row {
    text-align: flex-end;
}

.btn-search-mobile{
    display: flex;
}

.search-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
    font-size: 16px;
}

.search-button:hover {
    background-color: #005177;
}

/* Loading indicator */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/main-bg.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* min-height: 100vh; */
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5em, 5vw, 3.5em);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* WordPress Admin Bar Adjustments */
.admin-bar .hero-section {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .hero-section {
        min-height: calc(100vh - 46px);
    }
}

/* Reset and fix flight booking form styles */
.flight-booking-search-form {
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    padding: 15px 25px 32px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 1200px;
    margin: 0 auto;
}

#flight-search-form > p{
    margin: 0;
}

.additional-city {
    width: 50%;
    margin: 10px 0;
    position: relative;
    padding-right: 40px;
    padding-left: 0;
}

.city-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: -4px;
    display: block;
    text-align: left;
}

#multicity-container {
    margin-left: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .additional-city {
        width: 100%;
        margin: 10px 0;
    }
}

.remove-city {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none;
    color: #dc3545 !important;
    cursor: pointer;
    font-size: 20px;
    padding: 5px !important;
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.remove-city:hover {
    background: #ffebee;
}

@media (max-width: 768px) {
    .additional-city {
        width: 100%;
    }
}

/* Autocomplete Styling */
.ui-autocomplete {
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400;
    max-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd !important;
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 12px !important;
    border-bottom: 1px solid #f0f0f0;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 2px 0;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: #f8f9fa !important;
    border: none !important;
    color: #007bff !important;
    margin: 0 !important;
}

.flight-result-hero {
    /* background: url('../images/flight-result-bg.jpg') no-repeat center center; */
    /* background-size: cover; */
    padding: 0;
    /* min-height: 250px; */
    color: #fff;
    text-align: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.flight-result-hero h1 {
    font-size: 2.5em;
    /* margin-bottom: 20px; */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.flight-result-hero .search-details {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
    /* margin-top: 20px; */
}

.flight-result-hero .search-details div {
    padding: 5px 10px;
    border-radius: 5px;
    color: #eee;
}

.flight-result-hero .search-details div span {
    display: block;
    font-size: 0.8em;
    font-weight: 700;
}

.flight-result-hero .search-details div small {
    display: block;
    font-size: 0.7em;
    margin-top: 5px;
}


.flight-result-hero .modify-search a {
    color: #fff;
    text-decoration: none;
    font-size: 0.7em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.flight-result-hero .modify-search a:hover {
    text-decoration: underline;
}

.flight-details-hidden {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.toggle-details-btn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-details-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.direction-line {
    background-color: #c1c7cf;
    border-radius: .5rem;
    display: block;
    height: .125rem;
    line-height: 0;
    margin: .25rem auto;
    padding: 0;
    position: relative;
    text-align: center;
    width: 90%;
}

.LegInfo_planeEnd__YzA5Y {
    background-color: #fff;
    display: block;
    height: 1rem;
    margin-top: -.5rem;
    padding-left: .25rem;
    position: absolute;
    right: -.25rem;
    top: 50%;
    width: 1rem;
}

.divider {
    position: relative;
}

.vr {
    background-color: #c1c7cf;
    display: block;
    width: .09rem;
    line-height: 0;
    padding: 0;
    position: absolute;
    top: -16px;
    text-align: center;
    height: 100%;
    left: 2px;
}

.card {
    width: 100%;
    padding: 10px;
}

.card .airline-name {
    min-width: 150px;
}

.card h5 {
    margin: 0;
}

.card .text-muted {
    font-size: 12px;
}

.card .text-primary {
    font-size: 18px;
}

.card .price-card {
    align-items: center;
    gap: 8px;
}

.price-card .incld {
    color: #01b7f2;
}

.card .btn-dark {
    background-color: #005ea6;
    border-color: #005ea6;
    width: fit-content;
}

.card .text-light-blue {
    font-size: 10px;
    color: #01b7f2;
    margin-bottom: 5px;
}

#offers {
    border-radius: 1%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.search-summary{
    padding: 0 40px;
}

@media (max-width: 768px) {
    .card .airline-name {
        min-width: 100px;
    }
    .search-summary{
        padding: 0 40px;
    }

    #offers{
        padding: 0 20px;
    }
}

/* Flight Card Styles */
#offers {
    border-radius: 4px;
    overflow: hidden;
}

.card {
    margin-bottom: 30px;
    width: fit-content;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: row;
    box-shadow: 0 0 4px 0 rgb(0 0 0 / 10%);
}

.card .flight-time-stop{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.airline-name {
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.text-light-blue {
    color: #01b7f2;
    font-size: 12px;
    margin-bottom: 8px;
}

.direction-line {
    background-color: #c1c7cf;
    border-radius: 4px;
    height: 2px;
    margin: 8px auto;
    position: relative;
    width: 90%;
}

.LegInfo_planeEnd__YzA5Y {
    background-color: #fff;
    height: 12px;
    width: 12px;
    position: absolute;
    right: -14px;
    top: 3px;
}

.divider .vr {
    background-color: #c1c7cf;
    width: 1px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0 20px;
}

.price-card {
    min-width: 180px;
    padding: 0px 10px 0px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-evenly;
}

.price-card .incld {
    color: #01b7f2;
}

.price-card .btn-dark {
    background-color: #005ea6;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    color: white;
    margin-top: 8px;
}

/* Flight Details */
.flight-segment {
    display: flex;
    gap: 24px;
}

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

.flight-duration {
    text-align: center;
    color: #666;
    font-size: 14px;
    position: relative;
    flex: 1;
    margin-top: 4px;
}

.flight-stops {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
}

.flex-grow-1{
    padding-right: 20px;
}

.price-card small, span{
    font-size: 14px;
}
.airline-full-name{
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {
    #offers{
        padding: 1px 40px;
    }
    .card {
        flex-direction: column;
    }

    .airline-name {
        min-width: auto;
        margin-bottom: 16px;
    }

    #offers .price-card {
        gap: 40px !important;
        min-width: auto;
        align-items: flex-start;
        flex-direction: row;
        padding: 16px 0 0;
        margin-top: 0;
        border-top: 1px solid #eee;
    }
    
    .btn-search-mobile{
        display: flex !important;
    }
    .btn-search-web{
        display: none !important;
    }
    .search-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sort-options {
        flex-wrap: wrap;
        border-radius: 10px;
        margin: 10px 40px;
    }
    .flight-segment{
        padding: 6px 0;
    }
    .card .flight-time-stop{
        gap: 13px;
    }

    .sort-option {
        flex: 1 1 calc(50% - 1em);
    }
    .card{
        padding: 10px 15px;
        margin: 0 16px;
    }
    .flex-grow-1{
        padding-right: 0;
    }
    .step-label {
        font-size: 0.5em;
    }

    #offers .search-details span{
        display: none !important;
    };
    .flight-duration{
        margin-top: 2px !important;
    }
    .direction-line{
        margin: 0;
    }
    #offers .flight-time {
        font-size: 14px !important;
    }
    #offers .flight-card span{
        font-family: 12px !important;
    }
    #offers .price-card .btn-dark{
        padding: 8px 6px !important;
    }
    
}

/* Flight Details Page Styles */
.flight-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

.flight-details-hero {
    /* background: url('../images/flight-details-bg.jpg') no-repeat center center; */
    /* background-size: cover; */
    /* padding: 20px 0; */
    /* min-height: 120px; */
    color: #fff;
    position: relative;
    margin-bottom: 20px;
}

.flight-details-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.flight-details-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    /* margin: 0 auto; */
    padding: 0 20px;
}

.flight-details-hero h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.flight-details-hero .flight-route {
    font-size: 16px;
    color: #fff;
    opacity: 0.9;
}

.flight-summary {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.flight-summary-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.flight-summary-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.flight-info {
    padding: 20px;
}

.flight-segment-details {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 0;
}

.airline-info {
    width: 120px;
}

.airline-logo {
    width: 80px;
    height: auto;
    margin-bottom: 8px;
}

.airline-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.flight-number {
    font-size: 12px;
    color: #888;
}

.flight-route-info {
    flex: 1;
}

.route-details {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

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

.time {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.airport-code {
    font-size: 16px;
    color: #444;
    margin: 4px 0;
    font-weight: 500;
}

.airport-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.date {
    font-size: 13px;
    color: #666;
}

.flight-duration-info {
    text-align: center;
    position: relative;
    padding: 0 20px;
    min-width: 150px;
}

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

.duration-line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
}

.duration-line::after {
    content: '✈';
    position: absolute;
    right: -10px;
    top: -10px;
    color: #005ea6;
    font-size: 16px;
}

.duration-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.stops-info {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

.price-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.price-summary h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.price-breakdown {
    margin-top: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.price-item.total {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    border-bottom: none;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
}

.passenger-forms, .contact-details, .payment-details {
    background: #fff;
    color: #333 !important;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.passenger-form {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.passenger-form h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.passenger-form h4::before {
    content: '👤';
    margin-right: 8px;
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%;
    min-width: fit-content;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #005ea6;
    box-shadow: 0 0 0 2px rgba(0,94,166,0.1);
    outline: none;
}

.form-actions {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.button {
    background: #005ea6;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #004d8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .flight-segment-details {
        flex-direction: column;
        gap: 20px;
    }

    .airline-info {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .airline-logo {
        width: 50px;
        margin-bottom: 0;
    }

    .route-details {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .flight-duration-info {
        padding: 20px 0;
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .flight-details-hero {
        min-height: 100px;
        padding: 15px 0;
    }

    .flight-details-hero h1 {
        font-size: 20px;
    }

    .flight-details-hero .flight-route {
        font-size: 14px;
    }
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group select {
    width: 140px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.phone-input-group input {
    flex: 1;
}

/* Flight Details Card */
.flight-details-container .card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.flight-details-container .airline-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.flight-details-container .airline-name img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.flight-details-container .text-light-blue {
    color: #01b7f2;
    font-size: 14px;
    font-weight: 500;
}

.flight-details-container .airline-full-name {
    color: #6c757d;
    font-size: 12px;
}

.flight-details-container .flight-time-stop {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

.flight-details-container .flight-time {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.flight-details-container .text-muted {
    color: #6c757d;
    font-size: 14px;
}

.flight-details-container .direction-line {
    height: 2px;
    background: #ddd;
    position: relative;
    width: 150px;
    margin: 10px 0;
}

.flight-details-container .LegInfo_planeEnd__YzA5Y {
    position: absolute;
    color: #01b7f2;
}

.flight-details-container .flight-duration {
    text-align: center;
}

.flight-details-container .flight-stops {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.flight-details-toggle{
    display: flex;
    justify-content: flex-start;
}
.flight-details-toggle a{
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 768px) {
    .phone-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .phone-input-group select {
        width: 100%;
    }

    .flight-details-container .card {
        padding: 15px;
    }

    .flight-details-container .flight-time-stop {
        gap: 15px;
        align-items: flex-start;
    }

    .flight-details-container .direction-line {
        width: 100%;
    }

    .flight-details-container .airline-name {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }
    .trip-type .active-bg{
        left: 0;
    }
    .ui-autocomplete {
        overflow-y: auto;
        overflow-x: hidden !important;
        overflow-y: scroll;
        max-width: 280px !important;
        width: fit-content !important;
    }
    .divider{
        display: none;
    }
}

/* Two Column Layout */
.flight-details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.flight-details-main {
    flex: 1;
}

/* Sticky Price Summary */
.price-summary-sticky {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.price-summary-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-summary-card h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Date of Birth Inputs */
.dob-group {
    flex: 1;
}

.dob-inputs {
    display: flex;
    gap: 10px;
}

.dob-inputs select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.dob-inputs select[name*="day"] {
    width: 80px;
}

.dob-inputs select[name*="month"] {
    flex: 1;
    min-width: 90px;

}

.dob-inputs select[name*="year"] {
    width: 100px;
}
.cabin-class{
    color: #005ea6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .flight-details-grid {
        grid-template-columns: 1fr;
    }

    .price-summary-sticky {
        position: relative;
        top: 0;
        order: -1;
    }

    .dob-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .dob-inputs select {
        width: 100% !important;
    }
    
}

/* Responsiveness for mobile  */
@media (max-width: 576px){
    .flight-result-hero .search-details div{
        padding: 0;
    }
    .flight-result-hero{
        min-height: auto;
    }
    .search-details span{
        display: none !important;
    }
    .search-details .dates{
        display: none;
    }
    .search-details{
        margin-top: 55px;
    }
    .flight-details{
        margin-top: 1rem;
    }
    .trip-type .active-bg{
        left: 0;
    }
    .trip-type{
        gap: 1px;
        padding: 0;
    }
    .trip-type label{
        padding: 0;
    }
    .ui-autocomplete {
        font-size: 11px !important;
        font-weight: 400;
        max-height: 140px;
        overflow-y: auto;
        overflow-x: hidden !important;
        overflow-y: scroll;
        border-radius: 4px;
        max-width: 250px !important;
        width: fit-content !important;
    }
    .search-fields{
        display: grid;
        grid-template-columns: 1fr;
    }
    .btn-search-mobile{
        margin-bottom: 10px;
    }
    #offers{
        padding: 0 !important;
        padding: 0 5px;
    }
    .flight-segment{
        gap: 10px;
        flex-direction: column !important;
    }
    #offers .price-card{
        gap: 8px !important
    }
    .price-card small, span {
        font-size: 12px;
    }
    .card .text-primary {
        font-size: 14px;
    }
    .price-card .btn-dark {
        font-size: 12px;
    }
    .divider {
        display: none;
    }
}

/* Flight Details Section */
.flight-details-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.segment-details {
    background: white;
    border-radius: 8px;
    padding: 5px 20px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.segment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.segment-header p {
    margin: 0;
    font-size: 14px;
    color: #1a1a1a;
}

.segment-body {
    padding: 8px 0;
}

.segment-info {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-bottom: 12px;
    position: relative;
}

.segment-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    min-width: 80px;
}

.segment-duration {
    font-size: 13px;
    color: #6b6b6b;
    text-align: center;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #898294;
    background-color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-dot.start {
    top: 0;
}

.timeline-dot.end {
    bottom: 0;
}

.segment-endpoints {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-grow: 1;
    padding: 12px 0;
}

.segment-endpoint {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.segment-time {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 70px;
}

.segment-location {
    display: flex;
    align-items: center;
    gap: 10px;
}

.segment-location .airport {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
}

.segment-location .city {
    font-size: 13px;
    color: #6b6b6b;
}

.layover-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
}

.layover-details p {
    margin: 0;
    font-size: 13px;
    color: #e70866;
}

.total-journey {
    font-size: 14px;
    color: #4a4a4a;
    padding: 12px 0;
    margin: 0;
    border-top: 1px solid #eee;
}

.flight-details-toggle {
    text-align: center;
}

.flight-details-toggle a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.flight-details-toggle a:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

.wc-block-components-product-name {
    font-size: 14px !important
}

/* Special rules for buttons to prevent elementor overriding  */
button:hover,
button:focus,
button:active {
  background-color: #fda93c !important;
  color: rgb(242, 238, 238) !important;
}

/* Adjust field widths for web view */
@media (min-width: 769px) {
    .field {
        flex: auto;
    }
    
}