.tb-map-list-splitscreen {
    position: relative;
}

.tb-map-list-splitscreen--is-active {
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 0 theme('padding.4') theme('padding.4');
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: theme('colors.white');
    overflow-y: scroll;
    z-index: theme('zIndex.full');
}

.tb-map-list-splitscreen__header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid theme('colors.gray.400');
    margin-bottom: $spacing-5;
    padding: $spacing-base 0;
}

.tb-map-list-splitscreen__map {
    display: none;
    z-index: 0;
    height: 50vh;
    width: 100%;

    @screen lg {
        margin-top: 0;
        height: 100%;
        flex: 1;
        order: 9999; // last
    }
}

.tb-map-list-splitscreen--is-active .tb-map-list-splitscreen__map {
    display: block;
}

.tb-map-list-splitscreen__list {
    width: 100%;
}

.tb-map-list-splitscreen--is-active .tb-map-list-splitscreen__list {
    @screen lg {
        flex: 1;
        height: 100%;
        margin-right: theme('margin.4');
    }
}

.tb-map-list-splitscreen__body {
    overflow-y: scroll;

    @screen lg {
        display: flex;
        flex: 1;
        overflow: hidden;
        padding-bottom: 6rem;
    }
}

.tb-map-list-splitscreen--is-active .tb-map-list-splitscreen__list {
    padding-top: 0;
}

.tb-map-list-splitscreen__toggle-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.tb-map-list-splitscreen--is-active .tb-map-list-splitscreen__toggle-wrapper {
    padding-right: theme('padding.4');
    padding-top: theme('padding.4');
}

.tb-splitscreen-trigger {
    @apply border border-gray-500 text-gray-800 rounded-sm no-underline inline-block py-2 px-3;
}

.tb-splitscreen-trigger--is-active {
    @apply bg-secondary-500 text-white border-secondary-500;
}

.tb-splitscreen-trigger__label {
    display: none;
}

.tb-splitscreen-trigger__label--show {
    display: block;
}

.tb-splitscreen-trigger--is-active .tb-splitscreen-trigger__label--show {
    display: none;
}

.tb-splitscreen-trigger--is-active .tb-splitscreen-trigger__label--hide {
    display: block;
}
