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

.tb-results__header {
    border-bottom: 1px solid config('colors.grey-light');
    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: config('colors.grey');
    }
}

/* 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 {
        @apply list-reset;

        @screen lg {
            @apply flex-1 overflow-y-scroll;
        }
    }
}

.tb-results-list__item {
    border-bottom: 1px solid config('colors.grey-light');
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

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

.tb-results-list__load-spinner {
    stroke: config('colors.secondary');
    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;
}
