.tb-results-container {
    position: relative;
    height: 100%;
}

.tb-results__header {
    border-bottom: 1px solid theme('colors.gray.400');
    margin-bottom: $spacing-5;
    padding: $spacing-base 0;

    .tb-results--filter-hidden & {
        display: none;
    }
}

.tb-results-list {
    list-style: none;
    padding: 0;
    transition: opacity 400ms ease;

    .tb-teaser__characteristics {
        color: theme('colors.gray.600');
    }
}

/* When a results-list is shown inside a split screen overlay */

.tb-results-list--split-screen {
    display: flex;
    flex-direction: column;
    height: 100%;

    .tb-results-list__list {
        @screen lg {
            @apply flex-1 overflow-y-scroll;
        }
    }
}

.tb-results-list__item {
    border-bottom: 1px solid theme('colors.gray.400');
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

@include mappy-bp(lg) {
    .tb-results-list {
        .tb-teaser-description {
            display: block;
        }
    }
}

.tb-results-list__load-spinner {
    stroke: theme('colors.secondary.500');
    position: absolute;
    top: 100px; // fallback if vh is not supported
    // stylelint-disable-next-line declaration-block-no-duplicate-properties
    top: 20vh;
    right: 0;
    left: 0;
    margin: auto;
    display: none;
}

.tb-results-container[data-toubiz-results-loading=true] .tb-results-list {
    opacity: 0;
}

.tb-results-container[data-toubiz-results-loading=true] .tb-results-list__load-spinner {
    display: block;
}
