/* Home hero placement for booking search. Does not change shared search fields/behavior.
   Compact glass visuals live in sys-booking-search.css. */

.home-hero {
    position: relative;
    overflow: visible;
}

.home-hero__bg {
    z-index: 0;
}

.home-hero__copy {
    z-index: 10;
}

.home-hero__aside {
    z-index: 20;
}

.home-hero__search {
    position: relative;
    z-index: 35;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    pointer-events: auto;
}

.home-hero__search .sys-booking-search-widget {
    position: relative;
    z-index: 35;
    pointer-events: auto;
}

/* Compact mode: search sits in the lower hero in normal flow. */
@media (max-width: 1023px) {
    .home-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto !important;
        min-height: 100svh;
    }

    .home-hero__bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .home-hero__copy {
        width: 100% !important;
        height: auto !important;
        min-height: 0;
        flex: 0 0 auto;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
    }

    .home-hero__copy-inner {
        padding-top: 5.5rem;
        padding-bottom: 1rem;
        margin-top: 0;
    }

    .home-hero__search {
        margin-top: auto;
        padding-top: 0.5rem;
        padding-bottom: 1rem;
        flex: 0 0 auto;
    }

    .home-hero__aside {
        top: 6.5rem;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .home-hero__copy-inner {
        padding-top: 5.75rem;
        max-width: 36rem;
    }

    .home-hero__search {
        padding-bottom: 1.25rem;
    }

    .home-hero__search .sys-booking-search-widget {
        max-width: 42rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop: hero viewport row + in-flow search row (same composition as former sibling). */
@media (min-width: 1024px) {
    .home-hero {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 100vh auto;
        height: auto !important;
        min-height: 0;
        overflow: visible;
    }

    .home-hero__bg {
        grid-row: 1;
        grid-column: 1;
        position: relative;
        height: 100vh;
        overflow: hidden;
        pointer-events: none;
    }

    .home-hero__copy {
        grid-row: 1;
        grid-column: 1;
        height: 100%;
        align-self: stretch;
    }

    .home-hero__aside {
        grid-row: 1;
        grid-column: 1;
        top: 50vh;
        transform: translateY(-50%);
        justify-self: end;
        align-self: start;
    }

    .home-hero__search {
        grid-row: 2;
        grid-column: 1;
        z-index: 35;
    }
}

body.mobile-nav-open .home-hero__search {
    z-index: 35;
}
