/* --- Search Results --- */

.home #full-search {
    margin: auto;
}

.stickyMap {
    position: relative;
    height: 100%;
    width:100%;
}

.stickyMap > div {
    position: sticky;
    top: 130px;
}

#searchResults {
    margin-top:60px;
    box-sizing:border-box;
}

.alignfull > #searchResults,
.alignfull > .wp-block-group__inner-container > #searchResults {
        padding:15px;
}

@media screen and (min-width:992px){
    .searchMessage {
        max-width: var(--responsive--alignwide-width);
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* --- Listing Tiles --- */

#searchResults .listing-wrapper {
    padding-left:15px;
    padding-right:15px;
    margin-bottom:30px;
}

.productListing .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0,0,0);
    background: linear-gradient(45deg,rgba(0,0,0,.4) 0%,rgba(0,0,0,.1) 50%,rgba(0,0,0,0) 100%);
    z-index: 1
}

.accomm-photos {
    position: relative
}

.search-list .listingSuburb {
    line-height: 1.5em;
    margin-bottom: 10px;
    color: var(--e-global-color-accent);
}

.resultsCount {
    font-weight: 600;
}

/* --- Pagination --- */

.page-numbers {
    order: 2;
    margin-top: 20px;
    margin: 20px auto 25px;
    text-align: center;
    width: 100%
}

.page-numbers li {
    display: inline;
    font-size: .75em;
    font-weight: 600;
    line-height:1em;
}

.page-numbers li a {
    background-color: var(--e-global-color-accent);
    border: 1px solid var(--e-global-color-accent);
    cursor: pointer;
    padding: .25em 1.25rem;
    border-radius: 4px
}

.page-numbers.current {
    border: 1px solid var(--e-global-color-accent);
    padding: .25em 1.25rem;
    color: var(--e-global-color-accent);
    border-radius: 4px
}

.page-numbers li a:hover,.page-numbers li.active a {
    box-shadow: inset 0 0 200px rgba(255, 255, 255, 0.15);
}

.page-numbers li a,.page-numbers li a:hover,.page-numbers li.active a,.page-numbers li.disabled {
    color: #fff;
    text-decoration: none
}

/* --- Media Queries --- */

.listing-wrapper.col {
    flex: 0 0 auto; 
    width: 100%;
}

@media screen and (min-width:576px){
    .listing-wrapper.col {
        width: 100%;
    }
}

@media screen and (min-width:768px){
    .listing-wrapper.col { 
        width: 100%;
    }
    #searchResults:not(.has-map) .search_col .listing-wrapper.col,
    .map_top_col + .search_col .listing-wrapper.col {
        width:50%;
    }
    #full-search {
        width:80vw;
        width:calc(100vw - 200px);
        max-width:900px;
    }
}

@media screen and (min-width:992px){
    #searchResults:not(.has-map) .search_col .listing-wrapper.col, .map_top_col + .search_col .listing-wrapper.col {
        width:33.333%;
    }
}

@media screen and (min-width:1200px){
    .listing-wrapper.col { 
        width: 50%;
    }
}


@media screen and (min-width: 768px){
    body.inset #searchResults.has-map.map-left  {
        margin-left:
        calc(var(--theme--inset-amount) * -0.85);
    }
    
    body.inset #searchResults.has-map.map-right {
        margin-right:calc(var(--theme--inset-amount) * -0.85);
    }
}

#searchResults.has-map #map-display {
    border-radius: var(--card--border-radius);
    overflow:hidden;
}

#searchResults.map-left #map-display {
    border-radius: 0 var(--card--border-radius) var(--card--border-radius) 0;
}

#searchResults.map-right #map-display {
    border-radius: var(--card--border-radius) 0 0 var(--card--border-radius);
}

.sticky-map>#map-display>.mapsearch-toggle {
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 3px 3px rgba(0,0,0,.12)
}

.sticky-map>#map-display>.mapsearch-toggle>label {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: .75em
}

.sticky-map>#map-display>.mapsearch-toggle>label>input {
    margin-right: 10px
}

.custom-label {
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid #ccc;
    box-shadow: 0 3px 3px rgba(0,0,0,.16)
}

.more-results {
    display:block;
    text-align:center;
    padding:0.5em 1em;
    line-height:1em;
    margin-top:30px;
    border:2px solid var(--e-global-color-accent);
    color:var(--e-global-color-accent);
    font-weight:600;
    border-radius:4px;
    cursor:pointer;
    transition-duration:300ms;
}

.more-results:hover{
    color:#fff;
    background-color:var(--e-global-color-accent);
}

@media screen and (min-width:768px){
    .map_col {
        max-width: 600px;
    }
    .map-right .map_col {
        padding-left:0;
    }
    
    .map-left .map_col {
        padding-right:0;
    }
}

@media screen and (min-width:1800px){
    #searchResults.has-map .listing-wrapper.col { 
        width: 33.333%;
    }
}

.searchToggle {
    padding: 10px;
    background-color: var(--e-global-color-accent);
    cursor:pointer;
}
.searchToggle a {
    color: #fff;
    display: block;
    text-align: center;
}

@media screen and (max-width:767px){
    .search_col,
    .map_col,
    #searchResults {
        overflow:hidden;
    }
}