body {
    font-family: 'Jost', sans-serif;
}

html, body {
    margin: 0;
}

/* Styles for Parent Page */

/* IDX Pages */
.page-pages.idx-page .content-wrap {
    padding: 4px 0;
    box-sizing: border-box;
}

.page-pages.idx-page .content-wrap .container {
    display: none;
}

#idx-frame {
    width: 100%;
    border: 0;
    box-sizing: border-box;
    display: block;
    height: 0px;
}

/*  IDX Details Modal */
.modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2300;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

body.show-modal .modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 1;
    z-index: 2300;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: block !important;
}

.modal {
    position: relative;
    top: 5%;
    left: 50%;
    width: 90%;
    margin-left: -45%;
    height: 90%;
    background: #fff;
}

/* Medium Modal */
body.show-modal.show-med-modal .modal {
    top: 200px;
    height: 50vh;
}

.modal-header {
    height: 37px;
    width: 100%;
    background: #1A1919;
    color: #fff;
    position: relative;
    z-index: 300;
    padding: 0 2rem;
    box-sizing: border-box;
    text-align: right;
    line-height: 37px;
}

.close-modal i {
    cursor: pointer;
    padding: 1rem;
    transition: opacity ease 0.3s;
}

.close-modal i:hover {
    opacity: 0.7;
}

.modal-content {
    height: calc(100% - 37px);
    width: 100%;
    left: 0;
}

.modal-content:after {
    content: "\f1ce";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    text-align: center;
    width: 100%;
    z-index: 4500;
    font-size: 4rem;
    position: fixed;
    color: #333;
    top: 50%;
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

body.modal-loaded .modal-content:after {
    display: none;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity ease 0.3s;
}

body.modal-loaded .modal-content iframe {
    opacity: 1;
}

.modal-content input {
    margin-bottom: .5rem;
    width: 49%;
}

.modal-content textarea {
    margin-bottom: .5rem;
    width: 98.9%;
}

.modal-content .button {
    margin-top: 2rem;
}

/* Styles For Iframe IDX Results */

/* MAP Styles */
.IDX-wrapper-standard #IDX-resultsMap {
    width: 40%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    box-sizing: border-box;
    display: block !important;
}

.IDX-wrapper-standard #IDX-resultsMap.show-map {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1300;
    box-sizing: border-box;
    display: block !important;
}

/* Property Results List */
#IDX-resultsContent {
    width: 100%;
    position: relative;
    top: 0;
    right: 0;
    margin-left: 40%;
    border-left: 4px solid #fff;
    box-sizing: border-box;
    background: #fff;
    z-index: 600;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#IDX-resultsHeader, #IDX-resultsMLSRights {
    display: none !important;
}

#IDX-resultsContainer {
    display: flex;
    box-sizing: border-box;
}

.IDX-resultsListings {
    /* position: absolute; */
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    top: 0;
    width: 100%;
    height: 100%;
}

.IDX-resultsListings h4, .IDX-resultsListings hr {
    display: none;
}

.IDX-resultsCellsContainer {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 4px;
    width: 100%;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 500px) {
    .IDX-resultsCellsContainer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 4px;
    }
}

.IDX-resultsCell {
    margin-right: 0;
    border: 0 !important;
    margin-bottom: 0px !important;
    cursor: pointer;
    position: relative;
    transition: opacity ease 0.3s;
}

.page-pages .IDX-resultsPhoto {
    float: none;
    width: 100%;
    display: block;
}

.page-pages .IDX-resultsPhotoLink {
    width: 100%;
    height: auto;
    position: relative;
    padding-top: 56.26%;
    /* 16:9 aspect ratio (9/16 * 100) */
    overflow: hidden;
    display: block;
}

.page-pages .IDX-resultsPhotoLink img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.IDX-resultsCell:hover {
    opacity: 0.7;
}

.linsting-info-wrap {
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

.listing-price {
    font-size: 1.8rem;
}

.listing-specs {
}

.listing-specs span {
    padding-right: .5rem;
}

.listing-address, .listing-courtesy {
}

.listing-address {
}

.listing-courtesy {
}

.listing-courtesy img {
    height: 15px;
    width: auto;
}

/* Results Pagination */
#IDX-resultsFooter {
    position: fixed;
    z-index: 3300;
    bottom: 10px;
    width: 200px;
    padding: 0;
    left: 50%;
    margin-left: -100px;
    background: #fff;
    display: none;
}

/* Map Toggle Button */
.idx-map-button {
    display: block;
    position: fixed;
    z-index: 2300;
    transform: rotate(90deg);
    right: -60px;
    padding: 1rem 2rem;
    width: 100px;
    top: 50%;
    margin-top: -90px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.94);
    text-align: center;
    color: #fff;
    cursor: pointer;
}

.idx-map-button:after {
    content: "Show Map";
}

.idx-map-button.show-map:after {
    content: "Show Listings";
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 800px) {
    .idx-map-button {
        display: none;
    }
}

/* Property Detials Modal */
#idx-details-header #idx-new-search {
    display: none;
}

/* Search Styles */
.IDX-category-search {
    width: 100%;
}

#IDX-searchPageWrapper {
}

#IDX-searchPageWrapper .IDX-row-content {
    display: block;
}

#IDX-searchPageWrapper #IDX-action-buttons {
    width: 100% !important;
}

#IDX-searchPageWrapper #IDX-action-buttons button {
    display: inline-block;
    padding: 0rem 2rem;
    color: #555;
    text-align: center;
    margin: 0 1rem;
    width: calc(50% - 2rem);
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: .1vw;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    background: #1A1919;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    border: 0;
    line-height: 38px;
    transition: all ease 0.3s;
}

#IDX-searchPageWrapper #IDX-navbar {
    display: none;
}

#IDX-searchPageWrapper .IDX-control-group {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 0;
}

#IDX-searchPageWrapper .IDX-controls, #IDX-searchPageWrapper .IDX-input, #IDX-searchPageWrapper .IDX-select {
    min-height: auto;
    margin-bottom: .5rem;
}

.IDX-nav-items-container .IDX-active {
    background-color: #222;
    color: var(--idx-button-text-color);
}
