/* --- Search Results --- */

.home #full-search {
    margin: auto;
}

.stickyMap {
    position: relative;
    height: 100%;
    width:100%;
}

.stickyMap > div {
    position: sticky;
    top: 130px;
}

#searchResults {
    padding-left: var(--theme--gutters);
    padding-right: var(--theme--gutters);
    /*max-width:none;*/
}

/* --- Listing Tiles --- */

#searchResults .listing-wrapper {
    padding-left: var(--theme--gutters);
    padding-right: var(--theme--gutters);
    margin-bottom: calc(var(--theme--gutters) * 2);
}

#searchResults .searchResultsNo > .row {
    margin-left:calc(var(--theme--gutters) * -1);
    margin-right:calc(var(--theme--gutters) * -1);
}

.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
}



/* --- 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: #dd3a29;;
    border: 1px solid #dd3a29;;
    cursor: pointer;
    padding: .25em 1.25rem;
    border-radius: 4px
}

.page-numbers.current {
    border: 1px solid #dd3a29;;
    padding: .25em 1.25rem;
    color: #dd3a29;;
    border-radius: 4px
}

.page-numbers li a:hover,.page-numbers li.active a {
    background-color: #c32717;
    border-color: #c32717;
}

.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%;
}

#map-display{
    height: 0;
    overflow:hidden;
    transition-duration:300ms;
    margin-top:0;
}
#map_canvas,
#map-display.open {
    height: 60vh;
}
#map-display.left,
#map-display.right,
#map-display.left > #map_canvas,
#map-display.right > #map_canvas{
    height: 85vh;
    height: calc(100vh - 140px);
}

#searchResults.has-map #map-display {
    border-radius: var(--theme--border-radius);
    overflow:hidden;
}

#searchResults.map-left #map-display {
    border-radius: 0 var(--theme--border-radius) var(--theme--border-radius) 0;
}

#searchResults.map-right #map-display {
    border-radius: var(--theme--border-radius) 0 0 var(--theme--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 #dd3a29;
    color:#dd3a29;
    font-weight:600;
    border-radius:4px;
    cursor:pointer;
    transition-duration:300ms;
}

.more-results:hover{
    color:#fff;
    background-color:#dd3a29;
}



@media screen and (min-width:576px){
    .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);
    }
    .listing-wrapper.col { 
        width: 100%;
    }
    #searchResults:not(.has-map) .search_col .listing-wrapper.col,
    .map_col.d-none + .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_col.d-none + .search_col .listing-wrapper.col {
        width:33.333%;
    }
}

@media screen and (min-width:1200px){
    .listing-wrapper.col { 
        width: 50%;
    }
}

@media screen and (min-width:1600px){
    .listing-wrapper.col {
        width: 50%;
    }
}

@media screen and (max-width:767px){
div#map-display {
    max-height:400px;
}
}

/*Search Summary */
.search-summary strong {
    text-transform: uppercase;
}
@media screen and (max-width:991px){
    #desktop-search-summary-bottom-holder-wrapper{
        display: none;
    }
}
#desktop-search-summary-bottom-holder-wrapper {
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
}
#desktop-search-summary-bottom-holder-wrapper .search-message-wrapper{
    border-radius:var(--theme--border-radius) var(--theme--border-radius) 0 0;
    border:1px solid #000;
    border-bottom: 0;
    margin: 0;
    background-color:#fff;
    max-width: 50vw;
    margin: auto;
    text-align: center;
    padding: var(--theme--gutters);
}

#desktop-search-summary-bottom-holder-wrapper .search-message-wrapper .search-summary-display {
    display: flex;
    justify-content: space-between; /* Pushes the two divs to opposite sides */
    lign-items: center; /* Vertically centers the divs */
}
#desktop-search-summary-bottom-holder-wrapper .search-message-wrapper .search-summary-display div{
    margin: 0 auto; 
}

/* HH Custom Container */

@media screen and (min-width:768px){
#searchResults {
    padding-left: unset;
    padding-right: unset;
}

.hh-custom-container.search-result-hh-custom-container.hh-custom-container-ml-0 {
    padding-left: 0;
     .row{
        margin-left:auto;
    }
    .map_col{
       padding-left: 0;  
    }
}
.hh-custom-container.search-result-hh-custom-container.hh-custom-container-mr-0{
    padding-right: 0; 
    .row{
        margin-right:auto;
    }
    
    .map_col{
       padding-right: 0;  
    }
    
}

}