/**
 * Wonder Travel NDC - Frontend Styles
 *
 * @package WonderTravel\NDC
 * @since 1.0.0
 */

/* Flight Search Form */
.wtnd-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wtnd-search-form h3 {
    margin-top: 0;
    color: #1a2b48;
}

.wtnd-search-form .form-control {
    height: 45px;
    font-size: 14px;
}

.wtnd-search-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.wtnd-search-form .btn-primary {
    background-color: #5191FA;
    border-color: #5191FA;
    padding: 12px 30px;
    font-size: 16px;
}

/* Flight Results */
.wtnd-flight-card {
    background: #fff;
    border: 1px solid #eaeef3;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.wtnd-flight-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wtnd-journey {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wtnd-airline img {
    max-width: 50px;
    margin-right: 15px;
}

.wtnd-flight-times {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.wtnd-price-block {
    text-align: right;
}

.wtnd-total-price {
    font-size: 24px;
    font-weight: bold;
    color: #5191FA;
    margin-bottom: 10px;
}

/* Airport Lookup Widget */
.wtnd-airport-lookup {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
}

.wtnd-airport-lookup-title {
    color: #1a2b48;
    margin-top: 0;
    margin-bottom: 12px;
}

.wtnd-airport-lookup-input-wrap {
    position: relative;
}

.wtnd-airport-lookup-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 12px;
    font-size: 14px;
    border: 1px solid #cdd4df;
    border-radius: 4px;
    outline: none;
    background: #f8f9fa;
}

.wtnd-airport-lookup-input:focus {
    border-color: #5191FA;
    background: #fff;
}

.wtnd-airport-lookup-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.wtnd-airport-lookup-result {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    background: #f0f5ff;
    border-left: 3px solid #5191FA;
    border-radius: 0 4px 4px 0;
}

.wtnd-airport-lookup-code {
    color: #5191FA;
    font-size: 18px;
    margin-left: 4px;
}

/* Print Ticket Buttons */
.wtnd-print-btn,
.wtnd-pdf-btn {
    cursor: pointer;
}

/* Booking Ticket (hidden on screen, shown on print via JS) */
.wtnd-booking-ticket {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .wtnd-flight-card {
        padding: 15px;
    }

    .wtnd-flight-times {
        font-size: 16px;
    }

    .wtnd-total-price {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    /* Hide entire page content */
    body > *                    { display: none !important; }
    /* Show only the open ticket */
    .wtnd-booking-ticket        { display: block !important; }
    /* Remove outer wrappers so ticket fills page */
    .wtnd-booking-ticket *      { display: revert; }
    /* Avoid page breaks inside ticket elements */
    .ticket, .ticket *          { break-inside: avoid; }
}
