/* TNB hero search — aligned row (front.tnb-home #tnbSearchForm) */
#checkRooms .tnb-hero-search-shell {
    width: 100%;
}

@media (min-width: 992px) {
    #checkRooms .tnb-hero-search-shell {
        flex: 0 0 90%;
        max-width: 90%;
        width: 90%;
    }
}

#tnbSearchForm {
    --tnb-search-label-h: 1.375rem;
    --tnb-search-input-h: 3rem;
    --tnb-search-gap: 0.5rem;
}

#tnbSearchForm .tnb-search-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 100%;
}

#tnbSearchForm .tnb-search-field__label {
    flex: 0 0 auto;
    min-height: var(--tnb-search-label-h);
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color, rgba(33, 37, 41, 0.65));
    display: flex;
    align-items: flex-end;
    line-height: 1.2;
}

#tnbSearchForm .tnb-search-field__label i {
    margin-right: 0.35rem;
    font-size: 0.85rem;
    opacity: 0.95;
}

#tnbSearchForm .tnb-search-field__control {
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto;
}

#tnbSearchForm .tnb-search-field__control--split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--tnb-search-gap);
}

#tnbSearchForm .tnb-search-guest .control-icon,
#tnbSearchForm .tnb-search-field__control > .control-icon {
    height: 100%;
    min-height: var(--tnb-search-input-h);
}

#tnbSearchForm .tnb-search-submit {
    width: 38%;
    max-width: 11rem;
    min-width: 8.75rem;
    display: flex;
    align-items: stretch;
}

#tnbSearchForm .tnb-search-submit .btn {
    min-height: var(--tnb-search-input-h);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.25;
}

@media (max-width: 991.98px) {
    #tnbSearchForm .tnb-search-field__control--split {
        flex-direction: column;
    }
    #tnbSearchForm .tnb-search-submit {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

/* Location dropdown */
#tnbSearchForm .tnb-search-location-wrap .search-item {
    position: relative;
    height: 100%;
}

#tnbSearchForm .tnb-search-location-wrap .selected-value {
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: var(--tnb-search-input-h);
    height: 100%;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.12));
    border-radius: 0.375rem;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    font-size: 0.9375rem;
    line-height: 1.35;
    position: relative;
}

#tnbSearchForm .tnb-search-location-wrap .selected-value::after {
    content: "";
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.2rem;
    border-right: 2px solid var(--bs-secondary-color, rgba(33, 37, 41, 0.55));
    border-bottom: 2px solid var(--bs-secondary-color, rgba(33, 37, 41, 0.55));
    transform: rotate(45deg);
    pointer-events: none;
}

#tnbSearchForm .tnb-search-location-wrap #locationSearch.is-open .selected-value::after {
    margin-top: 0.05rem;
    transform: rotate(-135deg);
}

#tnbSearchForm .tnb-search-location-wrap .location-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    max-height: 16rem;
    overflow-y: auto;
    z-index: 1055;
    background: #fff;
    color: #212529;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#tnbSearchForm .tnb-search-location-wrap #locationSearch.is-open .location-dropdown {
    display: block;
}

#tnbSearchForm .tnb-search-location-wrap .location-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#tnbSearchForm .tnb-search-location-wrap .location-item:last-child {
    border-bottom: 0;
}

#tnbSearchForm .tnb-search-location-wrap .location-item:hover,
#tnbSearchForm .tnb-search-location-wrap .location-item:focus {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.08);
    outline: none;
}

#tnbSearchForm .tnb-search-location-wrap .location-item i {
    color: var(--bs-primary, #0d6efd);
    flex-shrink: 0;
}

/* Date + guest inputs: match location control height */
#tnbSearchForm .tnb-search-field__control .form-control.check-date {
    min-height: var(--tnb-search-input-h);
    height: var(--tnb-search-input-h);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    line-height: 1.35;
}

#tnbSearchForm .tnb-search-field__control .form-select {
    min-height: var(--tnb-search-input-h);
    height: var(--tnb-search-input-h);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* TNB dynamic hero — admin homepage hero slides (#tnbHeroCarousel) */
#heroImage #tnbHeroCarousel {
    position: relative;
    width: 100%;
}

#heroImage #tnbHeroCarousel .carousel-inner,
#heroImage #tnbHeroCarousel .carousel-item {
    min-height: 70vh;
}

#heroImage #tnbHeroCarousel .tnb-hero-slide-frame {
    position: relative;
    min-height: 70vh;
    width: 100%;
}

#heroImage #tnbHeroCarousel .tnb-hero-slide-frame picture {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
}

#heroImage #tnbHeroCarousel .tnb-hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#heroImage #tnbHeroCarousel .tnb-hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

#heroImage #tnbHeroCarousel .tnb-hero-caption {
    z-index: 2;
    pointer-events: none;
}

#heroImage #tnbHeroCarousel .tnb-hero-caption a {
    pointer-events: auto;
}

#heroImage #tnbHeroCarousel .carousel-indicators,
#heroImage #tnbHeroCarousel .carousel-control-prev,
#heroImage #tnbHeroCarousel .carousel-control-next {
    z-index: 3;
}
