/* AirTicket.nl - Created by Ralph Hervas
 * File: /home/airticke/public_html/css/flights.css
 * File name: flights.css
 * Modified: 2025-12-05 19:45
 * Changes: Created complete flight card styling
 * Version: 1.0
 * Purpose: Styling for FlightAPI.io flight results display
 */

/* Flight results container */
#flightInfo {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Date navigation buttons */
.dateNavButton {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    background: #0076bb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.dateNavButton:hover {
    background: #005a8f;
}

/* Date header */
.dateHeader_v2 {
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    color: #0076bb;
    font-weight: bold;
}

/* Individual flight card */
.flightBox_v2 {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin: 15px 0;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.flightBox_v2:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #0076bb;
}

/* Outbound and Return flight sections */
.outboundBox_v2,
.returnBox_v2 {
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: relative;
    padding-right: 200px; /* Space for price box */
}

.returnBox_v2 {
    border-top: 1px dashed #ccc;
    margin-top: 10px;
    padding-top: 10px;
}

/* Airline logo */
.airlineLogo_v2 {
    width: 70px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 5px;
    display: block;
}

/* Airline name next to logo */
.airlineName_v2 {
    width: 100px;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    line-height: 1.2;
}

/* Airline logo (if images work) */
.airlineLogo_v2 {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 5px;
}

/* Departure box */
.departureBox_v2 {
    flex: 1;
    text-align: left;
    padding: 0 10px;
}

.time_v2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: inline-block;
    margin-right: 5px;
}

.airportName_v2 {
    color: #666;
    font-size: 13px;
    display: block;
    margin-top: 3px;
}

/* Duration box - middle section with line */
.durationBox_v2 {
    flex: 1.5;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.flightLine_v2 {
    border: none;
    border-top: 2px solid #0076bb;
    margin: 8px 0;
    position: relative;
}

.circleStopContainer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.circleStop {
    width: 12px;
    height: 12px;
    background: #0076bb;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0076bb;
}

.duration_v2 {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

.stops_v2 {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 2px;
}

/* Arrival box */
.arrivalBox_v2 {
    flex: 1;
    text-align: right;
    padding: 0 10px;
}

/* Price box */
.priceBox_v2 {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    background: #f8f8f8;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #0076bb;
    min-width: 140px;
}

.price_v2 {
    font-size: 28px;
    font-weight: bold;
    color: #0076bb;
    display: block;
    line-height: 1;
}

.priceLabel_v2 {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 5px;
}

.bookButton_v2 {
    display: block;
    background: #0e8d00;
    color: white;
    padding: 10px 25px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}

.bookButton_v2:hover {
    background: #0a6d00;
}

/* Flight details toggle */
.flightDetails_v2 {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    display: none;
}

.showDetails_v2 {
    color: #0076bb;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    margin-top: 10px;
    display: inline-block;
}

.showDetails_v2:hover {
    color: #005a8f;
}

/* No results message */
.noResults_v2 {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Loading state */
.loading_v2 {
    text-align: center;
    padding: 60px 20px;
}

.loading_v2 h3 {
    color: #0076bb;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .outboundBox_v2,
    .returnBox_v2 {
        flex-direction: column;
        text-align: center;
    }
    
    .airlineCode_v2,
    .airlineLogo_v2 {
        margin: 0 auto 15px;
    }
    
    .departureBox_v2,
    .arrivalBox_v2,
    .durationBox_v2 {
        text-align: center;
        padding: 10px 0;
    }
    
    .priceBox_v2 {
        position: static;
        transform: none;
        margin: 20px auto 0;
        display: inline-block;
    }
    
    .time_v2 {
        font-size: 24px;
    }
}

/* Price difference indicator */
.priceDiff_v2 {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.priceDiff_v2.lowest {
    color: #0e8d00;
    font-weight: bold;
}

/* Flight number and class */
.flightNumber_v2 {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.flightClass_v2 {
    display: inline-block;
    background: #e8f4f8;
    color: #0076bb;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 10px;
}
