/**
 * BookingFlightsFares - Hero Section & Search Engine Stylesheet
 * Desktop & Mobile Hero layouts matching Reference 1 & Reference 2
 */

/* Hero Banner Section (Ref 1 & 2) */
.bff-hero-section {
    position: relative;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 40%, #ffffff 100%);
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.75)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 480px;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-headline-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-headline-sub {
    font-size: 1.15rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Tab Navigation Pills (Ref 1 & 2) */
.hero-tabs-header {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: var(--radius-full);
    padding: 0.35rem;
    box-shadow: var(--shadow-md);
    margin-bottom: -1.25rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--color-border-light);
}

.hero-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-tab-item:hover {
    color: var(--color-primary);
}

.hero-tab-item.active {
    background-color: #e0f2fe;
    color: var(--color-primary);
    border: 1.5px solid #bae6fd;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
}

.hero-tab-icon {
    font-size: 1.05rem;
}

/* Master Search Card (Ref 1) */
.hero-search-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    padding: 2.25rem 1.75rem 1.75rem 1.75rem;
    border: 1px solid var(--color-border-light);
    margin-bottom: 2rem;
}

.search-tab-pane {
    display: none;
}

.search-tab-pane.active {
    display: block;
}

/* Trip Type Radio Bar */
.trip-type-radio-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.trip-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.trip-radio-label input[type="radio"] {
    accent-color: var(--color-primary);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* Desktop Search Input Grid (Ref 1) */
.flight-inputs-grid-desktop {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 1fr 1fr 1.35fr 140px;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.hotel-inputs-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 140px;
    gap: 0.5rem;
    align-items: center;
}

.car-inputs-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 140px;
    gap: 0.5rem;
    align-items: center;
}

/* Search Box Field Base */
.search-box-field {
    background-color: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 60px;
    transition: all var(--transition-fast);
    position: relative;
    text-align: left;
}

.search-box-field:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.search-box-field:focus-within {
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.field-icon {
    color: #64748b;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.field-content {
    flex: 1;
    min-width: 0;
}

.field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.field-input-native {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}

.field-input-native::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Date Box Display */
.date-box-inner {
    display: flex;
    flex-direction: column;
}

.date-month-day {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.date-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* Travelers & Cabin Field */
.field-display-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-chevron-icon {
    color: #64748b;
    font-size: 0.8rem;
    margin-left: auto;
}

/* Swap Airports Button (Ref 1 & 2) */
.btn-swap-airports {
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, background-color var(--transition-fast);
}

.btn-swap-airports:hover {
    background-color: #f1f5f9;
    border-color: var(--color-primary);
}

.btn-swap-airports.rotated {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Main Search Submit Button (Ref 1) */
.btn-hero-search-submit {
    height: 60px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-hero-search-submit:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.35);
}

/* ==================================================
   TRUST RATINGS BAR (Ref 1 & 2)
================================================== */
.bff-trust-ratings-strip {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    position: relative;
}

.btn-trust-nav {
    background: none;
    border: 1px solid var(--color-border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-trust-nav:hover {
    background-color: #f1f5f9;
    color: var(--color-navy);
}

.trust-ratings-track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2rem;
    padding: 0 1rem;
}

.trust-ratings-track::-webkit-scrollbar {
    display: none;
}

.trust-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.trust-brand-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.trustpilot-star-green {
    color: #00b67a;
    font-size: 1.1rem;
}

.trust-score-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}

.trust-star-box {
    background-color: #00b67a;
    color: #ffffff;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 2px;
}

.trust-reviews-count {
    font-size: 0.75rem;
    color: #64748b;
}

/* ==================================================
   3 VALUE METRIC CARDS (Ref 1)
================================================== */
.bff-value-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.value-metric-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.value-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.metric-card-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.metric-card-info p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.metric-card-info .metric-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.metric-badge-tag {
    background-color: #0066cc;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.metric-illustration {
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* Established Since Metric (Ref 1) */
.established-year-badge {
    text-align: center;
}

.established-year-badge .est-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.established-year-badge .est-year {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.established-support-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.25rem;
}

.support-dot-green {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
}

/* ==================================================
   DEALS OF THE WEEK CAROUSEL (Ref 3)
================================================== */
.bff-deals-section {
    padding: 3.5rem 0;
}

.deals-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
}

.deals-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.5rem 0.25rem;
}

.deals-carousel-track::-webkit-scrollbar {
    display: none;
}

.deal-card-item {
    flex: 0 0 280px;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.deal-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.deal-card-image-wrap {
    position: relative;
    height: 160px;
}

.deal-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-tag-pill {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(2px);
}

.deal-card-body {
    padding: 1.25rem;
}

.deal-route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.deal-route-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.deal-airline-class {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.deal-date-badge {
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.deal-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-light);
}

.deal-price-block {
    display: flex;
    flex-direction: column;
}

.deal-price-label {
    font-size: 0.72rem;
    color: #64748b;
}

.deal-price-val {
    font-size: 1.5rem;
    font-weight: 900;
    color: #16a34a;
    line-height: 1;
}

.deal-price-sub {
    font-size: 0.7rem;
    color: #94a3b8;
}

.btn-deal-book {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.btn-deal-book:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
}

.btn-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.btn-carousel-arrow:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
}

.btn-deals-prev { left: -15px; }
.btn-deals-next { right: -15px; }

/* Footnote Disclaimer (Ref 3) */
.deals-footnote-disclaimer {
    margin-top: 2rem;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.6;
}

.deals-footnote-disclaimer a {
    color: #334155;
    text-decoration: underline;
}

/* ==================================================
   MOBILE HERO LAYOUT (Ref 2)
================================================== */
@media (max-width: 992px) {
    .bff-hero-section {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
        background-position: center top;
        min-height: auto;
    }

    .hero-headline-title {
        font-size: 2.15rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: #0b3b75;
        margin-bottom: 0.35rem;
    }

    .hero-headline-sub {
        font-size: 0.95rem;
        color: #334155;
        margin-bottom: 1.25rem;
    }

    .hero-tabs-header {
        margin-bottom: -1rem;
        width: 96%;
        max-width: 420px;
        justify-content: space-around;
        padding: 0.25rem 0.5rem;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

    .hero-tab-item {
        padding: 0.55rem 0.85rem;
        font-size: 0.88rem;
        font-weight: 700;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        border-bottom: 2.5px solid transparent;
        border-radius: 0;
        color: #1e293b;
    }

    .hero-tab-item.active {
        color: #0066cc;
        border-bottom: 2.5px solid #0066cc;
        background: transparent;
        box-shadow: none;
    }

    .hero-tab-item.active .hero-tab-icon {
        color: #0066cc;
    }

    .hero-search-card {
        padding: 1.75rem 1rem 1.25rem 1rem;
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0, 50, 120, 0.12);
        position: relative;
    }

    .trip-type-radio-bar {
        margin-bottom: 1rem;
        display: flex;
        gap: 1.5rem;
    }

    .trip-radio-label {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    /* Mobile Vertical Form Layout (Ref 2) */
    .flight-inputs-grid-desktop,
    .hotel-inputs-grid,
    .car-inputs-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem;
        position: relative;
    }

    .search-box-field {
        height: 54px;
        border-radius: 10px;
        border: 1.5px solid #0066cc;
        padding: 0.35rem 0.85rem;
        background-color: #ffffff;
    }

    .search-box-field:focus-within {
        border-color: #004c99;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
    }

    .field-icon {
        font-size: 1.2rem;
        color: #0f172a;
        margin-right: 0.65rem;
    }

    .field-input-native {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    .field-input-native::placeholder {
        color: #64748b;
        font-weight: 500;
    }

    /* Circular Swap Button on Right Border (Ref 2) */
    .btn-swap-airports {
        position: absolute;
        right: 1.25rem;
        top: 50px;
        left: auto;
        width: 32px;
        height: 32px;
        background-color: #ffffff;
        border: 1.5px solid #0066cc;
        border-radius: 50%;
        color: #0066cc;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        z-index: 10;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        cursor: pointer;
        transform: none;
    }

    .mobile-date-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .date-month-day {
        font-size: 0.95rem;
        font-weight: 900;
        color: #0f172a;
        line-height: 1.1;
    }

    .date-year {
        font-size: 0.75rem;
        color: #64748b;
        font-weight: 600;
    }

    .travelers-summary-text {
        font-size: 0.95rem;
        font-weight: 800;
        color: #0f172a;
    }

    .btn-hero-search-submit {
        width: 100%;
        height: 52px;
        margin-top: 0.5rem;
        font-size: 1.2rem;
        font-weight: 800;
        background-color: #0066cc;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
    }

    .btn-hero-search-submit:hover {
        background-color: #0052a3;
    }

    .bff-value-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn-deals-prev, .btn-deals-next {
        display: none;
    }
}
