/*
 * Homepage visual polish.
 * Every rule is scoped so search behaviour and shared application pages remain unchanged.
 */
.homepage-v2 {
    --home-radius: 18px;
    --home-border: #d8e3f0;
    --home-shadow: 0 18px 44px rgba(20, 48, 89, .11);
    background: linear-gradient(180deg, #f4f8fd 0, #f8fbff 42%, #fff 100%);
}

/* One consistent content grid; backgrounds continue to span the viewport. */
.site-header .container,
.site-footer .container,
.homepage-v2 .travel-hero > .container,
.homepage-v2 .booking-stage > .container {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* Compact hero and clean overlap */
.homepage-v2 .travel-hero {
    min-height: 386px;
}

.homepage-v2 .travel-hero::after {
    height: 64px;
}

.homepage-v2 .hero-content {
    padding-top: 1.7rem;
}

.homepage-v2 .hero-copy {
    width: min(470px, 100%);
}

.homepage-v2 .hero-kicker {
    margin-bottom: .5rem;
    font-size: .64rem;
}

.homepage-v2 .hero-copy h1 {
    margin-bottom: .65rem;
    font-size: clamp(3rem, 4.2vw, 3.8rem);
    line-height: .98;
}

.homepage-v2 .hero-copy > p {
    max-width: 375px;
    font-size: .91rem;
    line-height: 1.5;
}

.homepage-v2 .booking-stage {
    margin-top: -132px;
    padding-bottom: 2.8rem;
}

.homepage-v2 .booking-benefits {
    min-height: 24px;
    margin: 0 0 .72rem .15rem;
    gap: 1.75rem;
    font-size: .69rem;
}

.homepage-v2 .booking-benefits i {
    width: 21px;
    height: 21px;
    font-size: .63rem;
}

/* Premium compact search card */
.homepage-v2 .booking-tabs {
    width: min(600px, 100%);
    height: 52px;
    border-color: var(--home-border);
    border-radius: var(--home-radius) var(--home-radius) 0 0;
    background: rgba(250, 252, 255, .97);
    box-shadow: 0 -8px 22px rgba(24, 52, 94, .055);
}

.homepage-v2 .booking-tab {
    gap: .5rem;
    font-size: .73rem;
}

.homepage-v2 .booking-tab i {
    font-size: 1.05rem;
}

.homepage-v2 .booking-tab.active {
    background: linear-gradient(180deg, rgba(21, 94, 239, .07), rgba(21, 94, 239, .015));
}

.homepage-v2 .booking-tab.active::after {
    right: 22%;
    left: 22%;
    height: 3px;
}

.homepage-v2 .booking-body {
    padding: .85rem 1.05rem 1rem;
    border-color: var(--home-border);
    border-radius: 0 var(--home-radius) var(--home-radius) var(--home-radius);
    background: rgba(255, 255, 255, .985);
    box-shadow: var(--home-shadow);
}

.homepage-v2 .trip-switcher {
    height: 26px;
    margin-bottom: .6rem;
    gap: 1.35rem;
}

.homepage-v2 .trip-option {
    font-size: .67rem;
}

.homepage-v2 .flight-search {
    grid-template-columns: 2.18fr .82fr .82fr 1.08fr auto;
    gap: .65rem;
    align-items: stretch;
}

.homepage-v2 .route-fields {
    gap: .65rem;
}

.homepage-v2 .booking-field {
    height: 58px;
    padding: .46rem .72rem;
    border-color: #d7e2ef;
    border-radius: 12px;
    background: #fbfdff;
    box-shadow: 0 3px 9px rgba(25, 52, 91, .035);
}

.homepage-v2 .booking-field > span {
    margin-bottom: .18rem;
    font-size: .58rem;
}

.homepage-v2 .booking-field input,
.homepage-v2 .booking-field select,
.homepage-v2 .booking-control strong {
    font-size: .71rem;
    font-weight: 600;
}

.homepage-v2 .swap-button {
    width: 32px;
    height: 32px;
}

.homepage-v2 .search-button {
    min-width: 142px;
    min-height: 58px;
    border-radius: 12px;
    box-shadow: 0 9px 20px rgba(21, 94, 239, .22);
    font-size: .71rem;
}

/* Services */
.homepage-v2 .services-section {
    margin-top: 1.7rem;
}

.homepage-v2 .services-heading {
    align-items: center;
    gap: 1.5rem;
}

.homepage-v2 .services-heading span,
.homepage-v2 .section-title-row span {
    margin-bottom: .25rem;
    font-size: .59rem;
}

.homepage-v2 .services-heading h2,
.homepage-v2 .section-title-row h2 {
    font-size: 1.62rem;
    line-height: 1.15;
}

.homepage-v2 .services-heading p {
    max-width: 420px;
    font-size: .69rem;
    line-height: 1.5;
}

.homepage-v2 .service-grid {
    margin-top: .9rem;
    gap: 1.2rem;
    align-items: stretch;
}

.homepage-v2 .service-card {
    display: flex;
    height: 176px;
    flex-direction: column;
    border-color: var(--home-border);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(24, 52, 94, .075);
}

.homepage-v2 .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(24, 52, 94, .13);
}

.homepage-v2 .service-media {
    height: 88px;
    flex: 0 0 88px;
}

.homepage-v2 .service-icon {
    top: 66px;
    left: 1rem;
    width: 40px;
    height: 40px;
}

.homepage-v2 .service-icon i {
    font-size: .92rem;
}

.homepage-v2 .service-copy {
    min-height: 0;
    padding: 1.45rem 1rem .75rem;
    flex: 1;
}

.homepage-v2 .service-copy h2 {
    margin-bottom: .15rem;
    font-size: .94rem;
}

.homepage-v2 .service-copy p {
    max-width: 195px;
    font-size: .65rem;
    line-height: 1.38;
}

.homepage-v2 .service-copy a,
.homepage-v2 .service-copy button {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

/* Benefits */
.homepage-v2 .assurance-strip {
    min-height: 68px;
    margin-top: 1.15rem;
    padding: .68rem .8rem;
    border-color: var(--home-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(24, 52, 94, .055);
}

.homepage-v2 .assurance-item {
    min-height: 42px;
    padding: 0 1.05rem;
    gap: .68rem;
}

.homepage-v2 .assurance-item > i {
    flex: 0 0 auto;
    font-size: 1.3rem;
}

.homepage-v2 .assurance-item strong {
    font-size: .67rem;
}

.homepage-v2 .assurance-item span {
    margin-top: .1rem;
    font-size: .55rem;
}

/* Destinations */
.homepage-v2 .destinations-section {
    padding-top: 1.7rem;
}

.homepage-v2 .section-title-row {
    min-height: 42px;
    margin-bottom: .8rem;
    align-items: center;
    gap: 1rem;
}

.homepage-v2 .section-title-row button {
    padding: .48rem .9rem;
    border-radius: 10px;
    background: white;
    font-size: .62rem;
    transition: color .2s, background .2s, box-shadow .2s;
}

.homepage-v2 .section-title-row button:hover {
    color: white;
    background: var(--brand-blue);
    box-shadow: 0 7px 16px rgba(21, 94, 239, .18);
}

.homepage-v2 .destination-grid {
    gap: 1rem;
}

.homepage-v2 .destination-card {
    height: 132px;
    border: 1px solid rgba(220, 229, 241, .8);
    border-radius: 15px;
    box-shadow: 0 9px 22px rgba(24, 52, 94, .1);
}

.homepage-v2 .destination-card::after {
    inset: 26% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(5, 18, 42, .88));
}

.homepage-v2 .destination-copy {
    right: .85rem;
    bottom: .72rem;
    left: .85rem;
}

.homepage-v2 .destination-copy strong {
    font-size: .78rem;
}

.homepage-v2 .destination-copy span {
    margin-top: .08rem;
    font-size: .57rem;
}

.homepage-v2 .sample-fare-note {
    margin-top: .6rem;
}

@media (max-width: 1199.98px) {
    .homepage-v2 .travel-hero {
        min-height: 365px;
    }

    .homepage-v2 .booking-stage {
        margin-top: -118px;
    }

    .homepage-v2 .travel-hero > .container,
    .homepage-v2 .booking-stage > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .homepage-v2 .flight-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-v2 .route-fields {
        grid-column: 1 / -1;
    }

    .homepage-v2 .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-v2 .destination-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .homepage-v2 .destination-card {
        height: 150px;
    }
}

@media (max-width: 991.98px) {
    .homepage-v2 .travel-hero {
        min-height: 370px;
    }

    .homepage-v2 .hero-content {
        padding-top: 2rem;
    }

    .homepage-v2 .hero-copy h1 {
        font-size: 2.8rem;
    }

    .homepage-v2 .booking-stage {
        margin-top: -108px;
    }

    .homepage-v2 .assurance-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .homepage-v2 .assurance-item:nth-child(-n+2) {
        padding-bottom: .7rem;
        border-bottom: 1px solid #e4eaf2;
    }

    .homepage-v2 .assurance-item:nth-child(n+3) {
        padding-top: .7rem;
    }

    .homepage-v2 .assurance-item:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 767.98px) {
    .homepage-v2 .travel-hero {
        min-height: 350px;
    }

    .homepage-v2 .hero-content {
        padding-top: 1.65rem;
    }

    .homepage-v2 .hero-copy h1 {
        margin-bottom: .55rem;
        font-size: 2.35rem;
        line-height: 1;
    }

    .homepage-v2 .hero-copy > p {
        max-width: 310px;
        font-size: .84rem;
    }

    .homepage-v2 .booking-stage {
        margin-top: -78px;
        padding-bottom: 2.2rem;
    }

    .site-header .container,
    .site-footer .container,
    .homepage-v2 .travel-hero > .container,
    .homepage-v2 .booking-stage > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .homepage-v2 .booking-benefits {
        margin-bottom: .58rem;
        gap: .55rem 1.15rem;
        flex-wrap: wrap;
        overflow: visible;
        font-size: .65rem;
    }

    .homepage-v2 .booking-tabs {
        height: 50px;
        border-radius: 16px 16px 0 0;
    }

    .homepage-v2 .booking-body {
        padding: .75rem;
        border-radius: 0 0 16px 16px;
    }

    .homepage-v2 .trip-switcher {
        height: auto;
        margin-bottom: .65rem;
        gap: .5rem 1rem;
        flex-wrap: wrap;
        overflow: visible;
    }

    .homepage-v2 .flight-search,
    .homepage-v2 .route-fields {
        grid-template-columns: 1fr;
    }

    .homepage-v2 .booking-field {
        height: 56px;
    }

    .homepage-v2 .search-button {
        width: 100%;
        min-height: 52px;
    }

    .homepage-v2 .services-section {
        margin-top: 1.45rem;
    }

    .homepage-v2 .services-heading {
        align-items: flex-start;
    }

    .homepage-v2 .services-heading h2,
    .homepage-v2 .section-title-row h2 {
        font-size: 1.45rem;
    }

    .homepage-v2 .service-grid {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .homepage-v2 .service-card {
        height: 184px;
    }

    .homepage-v2 .service-media {
        height: 100px;
        flex-basis: 100px;
    }

    .homepage-v2 .service-icon {
        top: 78px;
    }

    .homepage-v2 .service-copy {
        padding-top: 1.4rem;
    }

    .homepage-v2 .assurance-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .4rem;
    }

    .homepage-v2 .assurance-item,
    .homepage-v2 .assurance-item:nth-child(2) {
        min-height: 62px;
        padding: .65rem;
        border-right: 0;
        border-bottom: 0;
    }

    .homepage-v2 .assurance-item:nth-child(odd) {
        border-right: 1px solid #e4eaf2;
    }

    .homepage-v2 .assurance-item:nth-child(-n+2) {
        border-bottom: 1px solid #e4eaf2;
    }

    .homepage-v2 .assurance-item:nth-child(n+3) {
        padding-top: .65rem;
    }

    .homepage-v2 .assurance-item span {
        overflow: visible;
        white-space: normal;
    }

    .homepage-v2 .destinations-section {
        padding-top: 1.45rem;
    }

    .homepage-v2 .destination-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    .homepage-v2 .destination-card {
        height: 126px;
    }
}

@media (max-width: 479.98px) {
    .homepage-v2 .travel-hero {
        min-height: 330px;
    }

    .homepage-v2 .hero-content {
        padding-top: 1.35rem;
    }

    .homepage-v2 .hero-kicker {
        font-size: .57rem;
        letter-spacing: .13em;
    }

    .homepage-v2 .hero-copy h1 {
        font-size: 2.15rem;
    }

    .homepage-v2 .hero-copy > p {
        max-width: 275px;
        font-size: .8rem;
    }

    .homepage-v2 .booking-stage {
        margin-top: -66px;
        padding-bottom: 1.8rem;
    }

    .homepage-v2 .travel-hero > .container,
    .homepage-v2 .booking-stage > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .homepage-v2 .booking-benefits {
        gap: .45rem .9rem;
        font-size: .61rem;
    }

    .homepage-v2 .booking-benefits i {
        width: 19px;
        height: 19px;
        font-size: .58rem;
    }

    .homepage-v2 .booking-tabs {
        height: 48px;
    }

    .homepage-v2 .booking-tab {
        gap: .25rem;
    }

    .homepage-v2 .booking-field {
        height: 54px;
        padding: .42rem .65rem;
    }

    .homepage-v2 .services-heading p {
        font-size: .64rem;
    }

    .homepage-v2 .service-card {
        height: 176px;
    }

    .homepage-v2 .service-media {
        height: 94px;
        flex-basis: 94px;
    }

    .homepage-v2 .service-icon {
        top: 72px;
        width: 38px;
        height: 38px;
    }

    .homepage-v2 .service-copy {
        padding: 1.35rem .9rem .65rem;
    }

    .homepage-v2 .assurance-item {
        min-height: 66px;
        padding: .55rem;
        gap: .48rem;
    }

    .homepage-v2 .assurance-item > i {
        font-size: 1.08rem;
    }

    .homepage-v2 .assurance-item strong {
        font-size: .61rem;
    }

    .homepage-v2 .assurance-item span {
        font-size: .5rem;
        line-height: 1.35;
    }

    .homepage-v2 .section-title-row {
        min-height: 38px;
        margin-bottom: .65rem;
    }

    .homepage-v2 .section-title-row h2 {
        font-size: 1.3rem;
    }

    .homepage-v2 .section-title-row button {
        padding: .4rem .68rem;
        font-size: .57rem;
    }

    .homepage-v2 .destination-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .homepage-v2 .destination-card {
        height: 120px;
        border-radius: 13px;
    }

    .homepage-v2 .destination-copy {
        right: .65rem;
        bottom: .58rem;
        left: .65rem;
    }
}
