.mx-neighborhoods-wrapper{
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    position:relative;
    height:100%;
    width:100%;
}
.mx-neighborhood-header{
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    margin:0 1em;
}
.mx-neighborhood-header-top {
    display:flex;
    flex: 1 0 auto;
    flex-direction:row;
}

.mx-neighborhood-header-bottom {
    display:flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    justify-items: center;
}
.mx-neighborhood-page-title{
    flex: 1 0 auto;
    justify-self: flex-start;
}
.mx-neighborhood-selector{
    flex: 0 0 auto;
    justify-self: flex-end;
}
.mx-neighborhood-body{
    margin: 1em 1em;
    text-align: justify;
}

.mx-neighborhood-title {
    margin: 2em 1em;
    z-index: 99;
}

.mx-neighborhoods-wrapper .image-caption h3 a {
    font-size:.8em;
}
.mx-neighborhood-title h1 {
    font-size: 3em;
    text-align: center;
    line-height: normal;
}

.mx-neighborhoods-area-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-items: flex-start;
    align-items: flex-start;
    padding-left: 0px;
    justify-content: center;
}

.mx-neighborhoods-area-list li {

    display: flex;
    flex: 0 0 calc(25% - 2em);
    width:0;
    padding: 0 0;
    margin: 1em 1em;
    border: 1px solid black;
    
    flex-wrap: wrap;
    justify-items: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    min-height: 200px;;
}
/*
.mx-neighborhoods-area-list li:last-of-type {
    flex: 0 0 calc(25% - 2em);
}
*/



.mx-neighborhoods-area-list li a {
    padding: 0 1em;
    line-height: normal;
    font-weight: bold;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    align-content: center;
    justify-content: center
}


@media (max-width: 991px) {
    .mx-neighborhoods-area-list li {
        flex: 1 0 calc(33% - 2em);
    }
}


@media (max-width: 768px) {
    .mx-neighborhoods-area-list li a {
        padding: 0em 1em;
        font-size: 1.25em;
    }
    .mx-neighborhoods-area-list li {
        flex: 1 0 calc(50% - 2em);
    }
}

@media (max-width: 667px){
    .mx-neighborhoods-area-list li  {
        flex: 1 0 calc(100% - 2em) !important;
    }
    .mx-neighborhoods-area-list li a {
        padding: 0em 1em;
        font-size: 1em;
    }
}

.mx-neighborhood-photos{

}

.mx-neighborhood-listings{

}

.mx-neighborhood-buildings{

}

.mx-neighborhood-wrapper h2.underlined-header,
.neighborhood-highlights h2.underlined-header {
    margin: 2em auto 2em;
}

.mx-neighborhood-listings .neighborhood-listings,
.mx-neighborhood-buildings .neighborhood-buildings {
    margin: 2em auto;
}

.mx-featured-buildings-list {
    position: relative;
    display:flex;
    flex: 1 0 auto;
    flex-wrap: wrap;
    flex-direction: row;
}

.mx-featured-buildings-list-item {
    position: relative;
    display:flex;
    flex: 0 0 50%;
}
.mx-building-item {
    border-bottom: 1px solid black;
    display: flex;
    flex-direction: row;
    flex: 1 0 calc(100% - 4em);
    margin: .5em 2em;
    padding: .5em .5em;
}

.building-address {
    flex: 0 0 auto;
}

.mx-neigbhorhood-stats{

}

.mx-neigbhorhood-map{
    background-color: black;
    width:100%;
    max-height: 420px;
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.mx-neigbhorhood-map .mx-map {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.mx-property-img {
    height: 187px !important;
}

div.building-name {
    font-size:16px;
}

div.building-address {
    font-size:18px;    
}

div.building-area {
    font-size:14px;
}

@media (max-width: 767px){
    .mx-neighborhood-header-top {
        flex-direction:column;
        align-items: center
    }
    .mx-neighborhood-header-bottom {
        margin: 2em auto;
    }
    .mx-neighborhood-title {
        margin: 2em 1em;
    }
    
}
@media (max-width: 667px) {
    .mx-featured-buildings-list-item {
        flex: 1 0 100%;
    }
}

@media (max-width:480px){
    .table-responsive-sm td {
        font-size: 11px;
        font-size: 14px;
        padding: 4px !important;
    }
    .btn-large {
        font-size:13px;
    }
    .panel-body {
        padding: 0px;
    }


}