/* Soves page stylesheet: flights-listing.css */

/* Hero, breadcrumb, results-layout grid, and hotel-card base styling all now
   come from hotels-listing.css (soves-flights-listing depends on
   soves-hotels-listing, and templates/flights/listing.php reuses the exact
   .soves-hotels-hero/.soves-hotels-layout/.soves-hotel-card class names) —
   this file only holds the genuinely flight-specific bits: the results
   toolbar copy tweaks below, and the flight-card overrides further down. */

.soves-flights-page .soves-results-toolbar {
    padding: 0;
    border-bottom: 0;
    margin-bottom: 16px;
}

.soves-flights-page .soves-results-count {
    margin: 0;
    color: var(--soves-text, #172033);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.soves-signin-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    border-radius: 9px;
    background: var(--soves-blue, #0ea5e9);
    color: #ffffff;
    padding: 12px 14px 12px 18px;
    box-shadow: 0 10px 24px rgba(0, 168, 240, 0.16);
}

.soves-signin-promo span {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.soves-signin-promo a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--soves-brand-primary, #172033);
    padding: 7px 14px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
}

.soves-signin-promo a:hover,
.soves-signin-promo a:focus-visible {
    color: #0b4ebd;
}

@media (max-width: 900px) {
    .soves-signin-promo {
        align-items: stretch;
        flex-direction: column;
    }

    .soves-signin-promo a {
        width: 100%;
    }
}

/* Flight result cards on the /flights/ results grid reuse .soves-hotel-card
   (see templates/flights/partials, and the note in listing.php on why) —
   this fills in the flight-only bits the hotel card doesn't have: the two
   stacked badges, and the times/duration rows borrowed from
   .soves-flight-leg* (assets/css/widgets/flight-cards.css), tightened to
   fit a ~380px grid card instead of the popup's full-width horizontal one. */
.soves-hotel-card--flight__badges {
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.soves-hotel-card--flight .soves-flight-result-card__legs {
    gap: 12px;
    margin: 2px 0 12px;
}

.soves-hotel-card--flight .soves-flight-leg + .soves-flight-leg {
    padding-top: 12px;
}

.soves-hotel-card--flight .soves-flight-leg__airline {
    margin-bottom: 8px;
    font-size: 12px;
}

.soves-hotel-card--flight .soves-flight-leg__airline img {
    width: 20px;
    height: 20px;
}

.soves-hotel-card--flight .soves-flight-leg__route {
    gap: 10px;
}

.soves-hotel-card--flight .soves-flight-leg__point strong {
    font-size: 16px;
}

.soves-hotel-card--flight .soves-flight-leg__middle {
    min-width: 0;
    flex: 1 1 auto;
}

.soves-hotel-card--flight .soves-flight-leg__date {
    margin-top: 6px;
    font-size: 11px;
}

/* Airline chips row (.soves-hotel-types__grid reused from type-chips.php) —
   airline logos are rectangular marks on their own transparent/white
   background, not square photos, so the default circular photo-crop
   (object-fit: cover) would clip them. */
.soves-flight-airlines .soves-hotel-type-card__icon {
    background: #ffffff;
    border: 1px solid var(--soves-border, #e1e7ef);
}

.soves-flight-airlines .soves-hotel-type-card__icon img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}
