.mapviewer {
    background-color: #e6e4e0;
    box-shadow: 0 0 0 1px #c99, 0 0 3rem rgba(0,0,0, .2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mapviewer__header {
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #c99;
    display: flex;
    flex-shrink: 0;
    padding: .5rem 2rem;
}

.mapviewer__title {
    display: inline;
    font-size: 1.5em;
    margin: 0;
}

.mapviewer__title .logo {
    vertical-align: -.4375em;
}

.mapviewer__newsletter {
    margin-left: auto;
}

.mapviewer__tools {
    background-color: #f5eeee;
    border-bottom: 1px solid #c99;
    box-shadow: 0 2px 2px rgba(0,0,0, .1);
    z-index: 3;
}

.mapviewer__filters {
    display: flex;
    flex-shrink: 0;
    user-select: none;
    width: 100%;
}

.filter {
    counter-reset: filterId -1;
    position: relative;
}

.filter__title {
    border-right: 1px solid #c99;
    cursor: pointer;
    margin: 0;
    padding: 1rem 2rem;
    position: relative;
}

.filter__title .svg-inline--fa {
    font-size: 16px;
}

.filter__titlecaption {
    margin-left: .25em;
}

.filter__title .badge {
    background-color: #c99;
    margin-left: .25em;
    vertical-align: top;
}

.filter__title--mobile {
    display: none;
    margin: 1.5rem;
}

.filter.is-expanded .filter__title {
    background-color: #fefafa;
    z-index: 4;
}

.filter.is-expanded .filter__groups {
    display: block;
}

@keyframes menu-open {
    from { transform: scale(.8); }
}

.filter__groups {
    animation: menu-open 150ms cubic-bezier(0.075, 0.820, 0.165, 1.000);
    background-color: rgb(254, 250, 250);
    border: 1px solid #c99;
    border-radius: 0 3px 3px 3px;
    box-shadow: 1px 2px 3px rgba(0,0,0, .1);
    display: none;
    left: -1px;
    max-height: 430px;
    min-width: 360px;
    max-width: 360px;
    overflow-y: scroll;
    position: absolute;
    margin-top: -1px;
    transform-origin: 0 0;
    z-index: 3;
    -webkit-overflow-scrolling: touch;
}

.mobile-view--map .filter__groups {
    background-color: rgba(254, 250, 250, .9); /* fallback */
    background: linear-gradient(
        to bottom,
        rgba(254, 250, 250, 1) 2rem,
        rgba(254, 250, 250, .9)
    );
}

.filter__group {
    margin: 1rem 0;
}

.filter__group:last-child {
    margin-bottom: 0;
}

.filter__group-title {
    margin: 0;
    padding: .25rem 1.5rem;
}

.filter__items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.filter__item {
    counter-increment: filterId;
    padding: .25rem 1.5rem;
}

.filter__item:hover,
.filter__item:focus,
.filter__item.is-selected {
    background-color: #f9dddd;
}

.filter__item .filter__checkbox {
    flex-shrink: 0;
    margin-right: .125em;
    vertical-align: .125em;
}

.filter__label {
    align-items: baseline;
    display: flex;
    font-weight: normal;
    margin: 0
}

.filter__caption {
	line-height: 1.3333;
	margin-left: .25em;
	user-select: none;
}

.filter__textbox {
	display: inline-block;
	margin-left: .25em;
	width: 80px;
}

/* [data-title="phase"] .filter__caption::before {
    content: counter(filterId);
    font-weight: bold;
    margin-right: .375em;
} */

.mapviewer__body {
    display: flex;
    flex: 1 0 0;
    min-height: 0;
}

.mapviewer__list,
.mapviewer__details {
    background-color: white;
    box-shadow: 0 0 1em rgba(0,0,0, .2);
    position: relative;
    z-index: 1;
}

.mapviewer__list {
    border-right: 1px solid #c99;
    display: flex;
    flex-direction: column;
    width: 320px;
}

.mapviewer__footer {
    align-items: center;
    background-color: #f5eeee;
    display: flex;
    flex: 0 0 auto;
    left: auto;
    margin: 0;
    overflow: hidden;
    padding: .5rem 2rem;
    position: relative; /* appear above map markers */
}

.mapviewer__count {
    margin-right: auto;
}

.mapviewer__switcher .btn {
    font-size: 14px;
    line-height: 1;
}

.mapviewer__switcher .svg-inline--fa {
    font-size: 16px;
    vertical-align: -3px;
}

.mapviewer__projects {
    flex: 1 1 0;
    list-style: none;
    margin: 0;
    overflow-y: scroll;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.mapviewer__project {
    background-color: white;
    border-bottom: 1px solid #c99;
    color: #900;
    cursor: pointer;
    display: flex;
    padding: 1rem 1rem 1rem 2rem;
    transition: transform .2s ease-out;
    transform-origin: top;
}

.mapviewer__project:last-child {
    border-bottom: 0;
}

.mapviewer__project.is-selected {
    background-color: #c33;
    border-color: #c33;
    box-shadow: 0 0 0 1px #c33;
    color: white;
}

.project-list-transition-enter,
.project-list-transition-leave-to {
    transform: translateX(-100%);
}

.project-list-transition-leave-active {
    position: absolute;
}

.mapviewer__explainer {
    background-color: #f9f5f5;
    border-bottom: 1px solid #c99;
    color: #c99;
    font-size: .8125em;
    margin-bottom: 0;
    padding: 1rem 1.5rem;
    text-align: center;
}

.mapviewer__empty-text {
    color: #999;
    padding: 3rem 1rem;
    text-align: center;
}

.list__media {
    background-image: url('/images/property-default.png');
    background-position: center;
    background-size: cover;
    flex-shrink: 0;
    height: 6rem;
    margin-right: 1.5rem;
    margin-top: .25rem;
    width: 6rem;
}

.list__image {
    border-radius: 3px;
    display: block;
    height: 100%;
    line-height: 1;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.list__info {
    flex: 1 1 auto;
    line-height: 1.3333;
}

.list__title {
    color: inherit;
    font-size: inherit;
    margin: .25em 0 .125em;
}

.list__meta {
    align-items: baseline;
    display: flex;
    font-size: smaller;
}

.list__phase {
    flex: 1 1 auto;
    margin-right: 1em;
}

.list__price {
    color: #777;
    flex-shrink: 0;
}

.is-selected .list__price {
    color: #f99;
}

.mapviewer__map {
    flex: 1;
    position: relative;
}

.mapviewer__marker.is-selected {
    z-index: 1;
}

.mapviewer__marker .map-marker {
    height: 12px;
}

.mapboxgl-popup-close-button {
    background-color: rgba(255, 255, 255, .6);
}

.popup__content {
    border-radius: 3px;
    margin: -10px -10px -15px;
    overflow: hidden;
    width: 240px;
}

.popup__image {
    height: 180px;
    object-fit: cover;
    object-position: center;
    width: 240px;
}

.popup__info {
    font-family: 'Nunito Sans';
    font-size: 14px;
    line-height: 1.3333;
    padding: 10px;
    width: 240px;
}

.popup__title {
    font: inherit;
    font-weight: bold;
    margin: 0 1em .125em 0;
}

.popup__meta {
    align-items: baseline;
    color: #900;
    display: flex;
    font-size: smaller;
}

.popup__phase {
    flex: 1 1 auto;
    margin-right: 10px;
}

.popup__price {
    color: #777;
    flex-shrink: 0;
}

.popup__link {
    border: 0;
    font-size: smaller;
    padding: 0;
}

.mapviewer__details {
    border-left: 1px solid #c99;
    order: 99;
    overflow-y: scroll;
    padding: 3rem;
    -webkit-overflow-scrolling: touch;
}

.details-slide-enter-active,
.details-slide-leave-active {
    transition: 250ms ease-out;
}

.details-slide-enter,
.details-slide-leave-to {
    opacity: 0;
    transform: translateX(100%);
}

.details-content-enter-active {
    transition: 150ms ease-out;
}

.details-content-leave-active {
    transition: 150ms ease-in;
}

.details-content-enter,
.details-content-leave-to {
    opacity: 0;
    transform: translateY(1em);
}

.mapviewer__details.is-hidden {
    display: none;
}

.mapviewer__details:focus {
    outline: 0;
}

.details__header {
    margin-bottom: 1.5rem;
}

.details__title {
    flex: 1;
    margin: 0 1em .125em 0;
}

.details__price {
    font-size: 1.375em;
}

.details__close-btn {
    background: none;
    border: 0;
    line-height: 1;
    margin-right: -12px;
    padding: 4px 12px;
}

.details__body {
    width: 400px;
}

.mapviewer__details .mapviewer__empty-text {
    height: 0;
    overflow: hidden;
    padding: 0;
    width: 400px;
}

.gallery {
    margin-bottom: 1.5rem;
}

.gallery__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 50px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery__link {
    opacity: .4;
    background-image: url(/images/property-default.png);
    background-size: contain;
    min-width: 50px;
    display: inline-block;
    min-height: 50px;
}

.is-selected .gallery__link {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.gallery__thumbnail {
    object-fit: cover;
}

.is-selected .gallery__thumbnail {
    box-shadow: 0 0 0 2px #c00;
}

.details__photo {
    height: auto;
    max-width: 100%;
    background-image: url(/images/property-default.png);
    background-size: contain;
    min-width: 400px;
    display: inline-block;
    min-height: 225px;
}

.details__timeline {
    background-image: linear-gradient(to bottom, transparent 44%, #ddd 44%, #ddd 48%, transparent 48%);
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0 3px;
}

.details__phase {
    border-radius: 50%;
    box-sizing: content-box;
    padding: 8px 10px;
    width: 24px;
}

.details__phase.is-current {
    background-color: white;
    box-shadow: 0 0 0 3px #900;
}

.details__group {
    break-inside: avoid;
}

.details__heading {
    font-size: 1em;
    margin: 0;
    padding: 1.5em 0 .25em;
}

.u-bullets {
    list-style: square;
    margin: 0;
    padding: 0 0 0 1.125em;
}

@keyframes spin { from { transform: rotate(-360deg); } }

.is-loading::before {
    animation: spin .3s infinite linear;
    border: 5px solid #eee;
    border-top-color: #ccc;
    border-radius: 20px;
    content: '';
    display: block;
    height: 40px;
    left: 50%;
    margin-left: -20px;
    position: absolute;
    top: 120px;
    width: 40px;
}

@media (max-width: 600px) {
    .filter__titlecaption {
        display: none;
    }

    .filter__title--mobile {
        display: block;
    }
}

@media (max-width: 1023px) {
    .mapviewer__list,
    .mapviewer__details {
        border-width: 0;
        width: 100%;
    }

    .mapviewer__project {
        padding: 1rem;
    }

    .mapviewer__footer {
        padding: .5rem 1rem;
    }

    .mapviewer__details {
        padding: 2rem;
    }

    .details__body {
        width: 100%;
    }

    .mapviewer__list.is-hidden,
    .mapviewer__map.is-hidden {
        display: none;
    }

    .filter {
        flex: 1 0 0;
        text-align: center;
    }

    .filter:last-child .filter__title {
        border-right: 0;
    }

    .filter__groups {
        border-radius: 0;
        border-width: 1px 0 0;
        bottom: 41px;
        left: 48px;
        max-height: none;
        max-width: none;
        min-width: 220px;
        position: fixed;
        right: 0;
        text-align: left;
        top: 91px;
    }
	.mapviewer__title span {
		display: none;
	}
}

@media (max-width: 767px) {
    .filter__groups {
        top: 40px;
    }
}