.gt-flightlist {
    margin-top: 15px;
    margin-bottom: 15px;
    position: relative;
    border-radius: 8px;
    padding: 8px;
}

@media screen and (max-width: 768px) {
    .gt-flightlist {
        padding: 4px;
    }
}

/* Style for the container of roundtrip flights */
#obbo .gt-flightlist.selected-flight,
#inbo .gt-flightlist.selected-flight {
    background-color: #f0f7ff;
    /* border: 1px solid #4fa3e3; */
    box-shadow: 0 2px 8px rgba(79, 163, 227, 0.1);
    /* margin: 15px 0; */
}

/* Remove margin between consecutive selected flights in same direction */
#obbo .selected-flight + .selected-flight,
#inbo .selected-flight + .selected-flight {
    margin-top: 0;
}

/* Add margin between outbound and inbound sections */
#inbo {
    margin-top: 20px;
    background-color: honeydew;
}


#obbo{
    margin-top: 20px;
    background-color: honeydew;
}

.gt-single {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 1px 1px 8px rgba(0,0,0,0.08);
    padding: 10px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .gt-single {
        padding: 8px;
        flex-direction: column;
    }
}

.selected-flight .gt-single {
    border: 2px solid #4fa3e3;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(79, 163, 227, 0.1);
}

.gt-flight-d {
    flex-grow: 2;
    text-align: center;
    align-items: center;
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 15px;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .gt-flight-d {
        flex-direction: column;
        padding: 0 8px;
        gap: 10px;
    }

    .gt-flight-dd, .gt-flight-aa {
        width: 100%;
    }

    .gt-flight-duration-div {
        width: 100%;
        margin: 10px 0;
    }

    .airline_container {
        width: 100%;
        align-items: center;
        margin: 10px 0;
    }

    .gt-flight-prise {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
}

@media screen and (max-width: 480px) {
    .gt-flight-city-d {
        font-size: 12px;
    }

    .gt-flight-date-d {
        font-size: 11px;
    }

    .gt-flight-duration {
        font-size: 11px;
    }

    .gt-flight-name {
        font-size: 12px;
    }

    .gt-flight-code {
        font-size: 11px;
    }

    .gt-flight-prise {
        font-size: 16px;
    }
}

.gt-flight-dd, .gt-flight-aa {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gt-flight-duration-div {
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.gt-flight-duration-div hr {
    margin: 0;
    width: 100px;
    border: none;
    height: 1px;
    background-color: #4fa3e3;
    opacity: 0.3;
}

.gt-flight-duration {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.gt-flight-city-d {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: block;
}

.gt-flight-date-d {
    color: #666;
    font-size: 12px;
}

.airline_container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.gt-airline-image {
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
}

.gt-airline-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gt-flight-name {
    font-weight: 600;
    color: #4fa3e3;
    font-size: 13px;
}

.gt-flight-code {
    font-weight: 500;
    color: #666;
    font-size: 12px;
}

.gt-flight-prise {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: right;
    min-width: 90px;
}

/* Section headers for roundtrip */
.ib h3 {
    color: #333;
    font-size: 16px;
    margin: 15px 0 10px;
    padding-left: 5px;
}

.blue-icon {
    color: #4fa3e3;
}

.gt-flight-action{
    font-weight: bold;
    text-align:right;
}

.farerule-info, .bagage-info {
    display: none;
    position: absolute;
    z-index: 9999;
    right: 0;
    width: 400px;
    max-width: 400px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 1px 1px 20px rgba(0,0,0,0.2);
    text-align: left;
    font-weight: normal;
}

@media screen and (max-width: 768px) {
    .farerule-info, .bagage-info {
        width: 90%;
        max-width: 90%;
        right: 5%;
        left: 5%;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .farerule-info, .bagage-info {
        width: 95%;
        max-width: 95%;
        right: 2.5%;
        left: 2.5%;
        padding: 10px;
        font-size: 12px;
    }
}

/* Individual flight selection styles */
.selected-flight {
    background: none;
    box-shadow: none;
    margin: 10px 11px;
}

.selected-flight + .selected-flight {
    margin-top: -1px;
}

.selected-flight + .selected-flight .gt-single {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.selected-flight:not(:last-child) .gt-single {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Specific styles for roundtrip sections */
#obbo .selected-flight:last-child .gt-single {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#obbo .selected-flight:first-child .gt-single {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#inbo .selected-flight:last-child .gt-single {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#inbo .selected-flight:first-child .gt-single {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Original styles restored */