﻿.sticky-menu {
    display: none;
}

.map-filters {
    height: calc(100vh - 151px);
}

div.awesomplete {
    position: relative;
    width: 100%;
}

    div.awesomplete > ul {
        width: 96%;
        position: absolute;
        left: 0;
        z-index: 10000;
        list-style: none;
        padding: 0;
        border-radius: .3em;
        margin: .2em 0 0;
        background: rgba(255,255,255,.9);
        background: linear-gradient(to bottom right,#fff,rgba(255,255,255,.8));
        border: 1px solid rgba(0,0,0,.3);
        box-shadow: .05em .2em .6em rgba(0,0,0,.2);
        text-shadow: none
    }

        div.awesomplete > ul > li {
            font-size: 16px;
            font-size: 1rem;
            font-weight: 400;
            position: relative;
            padding: .2em .5em;
            cursor: pointer;
            color: #7b7b7b
        }

            div.awesomplete > ul > li:hover,
            div.awesomplete > ul > li[aria-selected=true] {
                color: #ff9500;
            }

                div.awesomplete > ul > li:hover .description,
                div.awesomplete > ul > li[aria-selected=true] .description {
                    color: #7b7b7b
                }

.awesomplete .description {
    padding: 5px 0
}

div.awesomplete > ul:empty,
div.awesomplete > ul[hidden] {
    display: none
}

@supports (transform:scale(0)) {
    div.awesomplete > ul {
        transition: .3s cubic-bezier(.4,.2,.5,1.4);
        -webkit-transform-origin: 1.43em -.43em;
        transform-origin: 1.43em -.43em
    }

        div.awesomplete > ul:empty,
        div.awesomplete > ul[hidden] {
            opacity: 0;
            -webkit-transform: scale(0);
            transform: scale(0);
            display: block;
            transition-timing-function: ease
        }
}

div.awesomplete > ul:before {
    content: "";
    position: absolute;
    top: -.43em;
    left: 1em;
    padding: .4em;
    background: #fff;
    border: inherit;
    border-right: 0;
    border-bottom: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg)
}

#breadcrumb-container {
    background-color: white;
}

#map {
    width: 100%;
    height: 100%;
}

#pnlMapViewContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.show-list-view #pnlMapViewContainer {
    flex-direction: row;
}

.show-list-view #hlShowList .arrow-icon {
    display: block;
}

.show-list-view #hlShowList svg {
    margin: 0;
}

.map-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 270px));
    grid-gap: 40px 30px;
    justify-content: center;
}

.results_header {
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    grid-gap: 20px 0px;
    justify-items: right;
}

.properties-map {
    justify-content: center;
    -webkit-justify-content: center;
}

.agent_icon img {
    max-height: 40px;
}

.map-search-results .price span {
    font-size: 16px;
    font-size: 1rem;
    color: #70707050;
}

.map-panel {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    min-height: calc(100vh - 192px);
}

.side-window {
    position: absolute;
    bottom: 20px;
    width: 100%;
    height: 100%;
    background-color: white;
    max-width: 378px;
    max-height: 150px;
    display: none;
    z-index: 5;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

    .side-window .close-info-window {
        left: 0;
        margin-left: 10px;
        margin-top: 10px;
        z-index: 15;
    }

.goog-property-details {
    align-items: center;
    justify-content: space-between;
    -webkit-justify-content: space-between;
}

#sideWindowContent .agent_icon img {
    max-height: 45px;
}

#sideWindowContent .goog-main-image {
    max-width: 174px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

#sideWindowImageContainer .goog-main-image {
    max-width: 174px;
    object-fit: cover;
}

/* 60 + 138 + 106 */
.map-panel {
    min-height: calc(100vh - 304px);
}

.results-container hr {
    width: 39px;
    margin: 0 auto;
    margin-bottom: 20px;
    border: 2px solid #70707025;
    border-radius: 100px;
    position: absolute;
    right: 0;
    left: 0;
    top: 10px;
}

.show-list-view .side-window {
    bottom: calc(41vh - 86px);
}

.show-list-view .results-container {
    height: 41vh;
    overflow-y: scroll;
    position: absolute;
    bottom: -106px;
    background: white;
}

/* Show custom scroll bar */
.results-container::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #F5F5F5;
}

.results-container::-webkit-scrollbar {
    width: 10px;
    background-color: #F5F5F5;
}

.results-container::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    background-color: rgb(62 69 91 / 25%);
}


/* Results */

.mobile-map-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    grid-gap: 40px 35px;
}

.results-container .page-options {
    padding: 20px;
    justify-content: center;
    -webkit-justify-content: center;
}

.mobile-map-search-container .list-item .photo {
    border-radius: 25px;
    overflow: hidden;
}

.list-item .photo .mySlides {
    aspect-ratio: 1 / 1;
}

.list-item .premiumIcon {
    position: absolute;
    z-index: 10;
    top: 30px;
    left: -9px;
    width: 54px;
    height: 59px;
    background-image: url(/property/img/svg/mob-premium-icon.svg);
    background-repeat: no-repeat;
}

.mySlides.left,
.mySlides.right {
    display: none;
}

@media(min-width:576px) {
    .show-list-view .results-container {
        height: 45vh;
        bottom: -106px;
    }

    .show-list-view .side-window {
        bottom: calc(45vh - 86px);
    }
}

.xs-map-pb-10 {
    padding-bottom: 10px;
}

@media(min-width:768px) {

    .map-filters {
        height: 100%;
        max-height: 690px
    }

    .list-item.premium::before {
        border: 1px solid #F28B01;
        display: block;
        height: calc(100% + 40px);
        border-radius: 25px;
        content: " ";
        position: absolute;
        width: calc(100% + 40px);
        top: -20px;
        left: -20px;
    }

    /* 82 + 54 + 106 */
    .map-panel {
        min-height: calc(100vh - 242px);
    }

    .show-list-view .results-container {
        bottom: -106px;
    }

    .side-window {
        max-width: 415px;
        max-height: 176px;
    }

    #sideWindowContent .goog-main-image {
        max-width: 191px;
    }

    #sideWindowImageContainer .goog-main-image {
        max-width: 191px;
    }
}

@media(min-width:920px) {
    /* 117 + 54 + 106 */
    .map-panel {
        min-height: calc(100vh - 277px);
    }

    .show-list-view .results-container {
        bottom: -106px;
    }
}

@media(min-width:1024px) {
}

@media(min-width:1200px) {

    #map {
        max-height: 880px;
    }

    .show-list-view .properties-map {
        width: 50%;
        display: flex;
    }

    .show-list-view .map-search-container {
        height: 950px;
        width: 50%;
    }

    .properties-map {
        height: 880px;
    }

    /* Results */
    .list-item.premium::before {
        display: none;
    }

    .side-window {
        top: 100px;
        right: 100px;
        width: 100%;
        height: 100%;
        max-width: 300px;
        max-height: 550px;
        border-bottom-right-radius: 25px;
        border-bottom-left-radius: 25px;
        border-top-right-radius: 0;
    }

        .side-window .close-info-window {
            left: auto;
            /* right: 0 */
            margin-left: 15px;
            margin-top: 15px;
            z-index: 15;
        }

    .show-list-view .side-window {
        bottom: 20px;
    }

    #sideWindowContent .goog-main-image {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 280px;
    }

    #sideWindowImageContainer .goog-main-image {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 280px;
    }

    .sideWindowContent {
        flex-direction: column;
    }

    #sideWindowContent .agent_icon img {
        max-height: 65px;
    }

    .mobile-map-search-results {
        grid-gap: 40px 30px;
    }

    .map-search-results {
        /*grid-template-columns: 1fr 1fr;*/
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-item .photo .mySlides {
        max-height: 256px;
    }

    .list-item .premiumIcon {
        top: 20px;
        left: 0;
        width: 122px;
        height: 35px;
        background-image: url(/property/img/svg/desktop-premium-icon.svg);
    }

    .premium .photo_gallery {
        display: grid;
        grid-template-areas:
            "a a"
            "b c";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2,minmax(40px,auto));
        grid-gap: 5px;
        aspect-ratio: 1 / 1;
        max-height: 256px;
    }

        .premium .photo_gallery .mySlides.top {
            grid-area: a;
            height: 100%;
        }

        .premium .photo_gallery .mySlides.left {
            grid-area: b;
            height: 100%;
            display: block;
        }

        .premium .photo_gallery .mySlides.right {
            grid-area: c;
            height: 100%;
            display: block;
        }

    /* Gallery navigation arrows - circular semi-transparent background */
    .photo_gallery .prev,
    .photo_gallery .next {
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.55);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    .photo_gallery .prev { left: 10px; }
    .photo_gallery .next { right: 10px; }

    .photo_gallery .prev svg,
    .photo_gallery .next svg {
        fill: #ffffff;
        stroke: #ffffff;
    }

    .photo_gallery .prev:hover,
    .photo_gallery .next:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .big-separator {
        background-color: #e38b02;
        align-content: center;
        padding: 10px;
        position: absolute;
        left: 30%;
        z-index: 1;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        font-size: smaller;
        color: white;
    }
}

@media(min-width:1500px) {
    .map-search-results {
        /*grid-template-columns: 1fr 1fr 1fr;*/
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media(max-width:1199px) {
    #sideWindowContentPartial {
        display: flex;
    }

    /* Ensure gallery arrows are visible and centered on mobile */
    .photo_gallery .prev,
    .photo_gallery .next {
        width: 36px;
        height: 36px;
        background-color: rgba(0, 0, 0, 0.55);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: auto;
    }
    .photo_gallery .prev { left: 8px; }
    .photo_gallery .next { right: 8px; }
    .photo_gallery .prev svg,
    .photo_gallery .next svg { fill: #ffffff; stroke: #ffffff; }
    .photo_gallery .prev:hover,
    .photo_gallery .next:hover { background-color: rgba(0,0,0,0.7); }

    .big-separator {
        background-color: #e38b02;
        align-content: center;
        padding: 5px;
        position: absolute;
        left: 182px;
        z-index: 17;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        font-size: 10px;
        color: white;
    }

    /* Smaller corner badge and centered heart on small screens */
    .mobile-save-item {
        width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-save-item svg { width: 18px !important; height: 18px !important; transform: translate(14px, -14px); }
    .mobile-save-item::before {
        width: 46px;
        height: 46px;
        top: -20px; 
        right: -20px; 
        border-radius: 0 0 0 46px;
    }
}

section.pagination ul {
    margin: 0;
    padding: 0;
    text-align: center;
}

    section.pagination ul li a {
        font-size: 14px;
        font-size: .875rem;
        padding: 6px;
        color: #dcdcdc;
        font-size: 16px;
        font-size: 1rem;
        font-weight: bold;
        opacity: 0.50;
        color: #3E455B;
    }

    section.pagination ul li:first-child a,
    section.pagination ul li:last-child a {
        text-transform: uppercase;
        color: #565656;
        font-size: 13px;
        font-size: .8125rem;
        font-weight: 500;
    }

    section.pagination ul li.active a {
        color: #ff9500;
        opacity: 1;
    }

    section.pagination ul li a:hover {
        color: #ff9500
    }

    section.pagination ul li {
        display: inline-block;
        padding: 6px 0;
        margin: 0 2px;
    }

#alertModal,
#sortByModal,
#searchMapModal,
#showAsModal,
#filterByModal,
.modal-container,
.map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 199;
    overflow: auto;
}

#sideWindowContent {
    flex-direction: column;
    display: block;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 12px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.5);
    border-radius: 6px;
    border: 20px solid transparent;
    box-shadow: 0 0 0 10px transparent;
}

.custom-scrollbar {
    scrollbar-color: rgba(0,0,0,0.5) transparent;
    scrollbar-width: thin;
    overflow-y: auto;
}

.custom-rounded-corner {
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 0;
}

.scroll-container {
    overflow: hidden;
    border-radius: 10px;
}

.scroll-content {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

.custom-scroll-adapted {
    overflow: hidden;
    border-radius: 10px;
}

.separator {
    height: 10px;
    background-color: #ccc;
}

.saved svg {
    fill: #F28B01;
}

.mobile-save-item {
    position: absolute;
    margin-top: 0;
    margin-right: 0;
    fill: #3E455B80;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}
.mobile-save-item svg { position: relative; z-index: 16; transform: translate(20px, -20px); }
.mobile-save-item svg,
.mobile-save-item use { display: block; }

.properties-list .mobile-save-item.saved {
    fill: #F28B01;
}

/* Corner white background behind the heart icon */
.mobile-save-item::before {
    content: "";
    position: absolute;
    top: -20px; 
    right: -20px; 
    width: 46px;
    height: 46px;
    background: #ffffff;
    border-radius: 0 0 0 46px; 
    z-index: 14; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@media(max-width: 767px) {
    .mobile-save-item::before {
        width: 46px;
        height: 46px;
        top: -20px;
        right: -20px;
        border-radius: 0 0 0 46px;
    }
}

/* Custom markers */
.custom-marker-exact-container {
    position: absolute;
    cursor: pointer;
}

    .custom-marker-exact-container:hover .custom-marker-exact {
        background-color: #00C2B2;
    }

    .custom-marker-exact-container:hover .custom-marker-exact-triangle {
        border-top: 10px solid #00C2B2;
    }

.custom-marker-exact {
    background-color: #F28B01;
    padding: 5px 10px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    font-family: sans-serif;
    font-weight: bolder;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.custom-marker-exact-triangle {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #F28B01;
    position: absolute;
    left: 50%;
    margin-left: -4px;
    top: 100%;
}

.custom-marker-approximate-container {
    position: absolute;
    cursor: pointer;
}

    .custom-marker-approximate-container:hover .custom-marker-approximate {
        background-color: #00C2B2;
    }

.custom-marker-approximate {
    background-color: #fac03f;
    padding: 5px 10px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    font-family: sans-serif;
    font-weight: bolder;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.custom-marker-exact-hover {
    background-color: #00C2B2;
    padding: 5px 10px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    font-family: sans-serif;
    font-weight: bolder;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.custom-marker-exact-triangle-hover {
    border-top: 6px solid #00C2B2;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    position: absolute;
    left: 50%;
    margin-left: -4px;
    top: 100%;
}

.custom-marker-approximate-hover {
    background-color: #00C2B2;
    padding: 5px 10px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    font-family: sans-serif;
    font-weight: bolder;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.scroll-message-container {
    position: absolute;
    top: 70%;
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1; 
    pointer-events: none; 
}

.scroll-guidance-container {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.scroll-guidance-text {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
}


.scroll-message-text {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
}

@media(max-width:1199px) {
    .scroll-message-container {
        position: absolute;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        pointer-events: none;
    }

    .scroll-guidance-container {
        position: absolute;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        pointer-events: none;
    }
    /* Prevent text bars from colliding with map controls on the right */
    .scroll-guidance-text,
    .scroll-message-text {
        max-width: calc(100% - 120px);
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
    }
}

@media(min-width:1200px) {
    /*.scroll-message-container {
        display: none !important;
    }*/
    .scroll-message-static {
        display: block !important;
        text-align: left;
    }
}

/* Make guidance occupy the same vertical position as the refresh button on desktop */
@media(min-width:1200px) {
    .scroll-message-container {
        top: 50%;
        transform: translateY(-50%);
    }
    .scroll-guidance-container {
        top: 50%;
        transform: translateY(-50%);
    }
}

@media screen and (max-width:767px) {
    .search-map-button-mobile-adjustment {
        margin: 20px 15% 0;
        text-align: center;
    }
}

.search-alert-title svg {
    margin-left: 6px !important;
}

@media(min-width:1200px) {
    #hlRefreshMap {
        top: 50%;
        transform: translateY(-50%);
    }
    /* Center overlays horizontally and position slightly below center */
    .scroll-guidance-container,
    .scroll-message-container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, 50%);
        width: auto;
        max-width: calc(100% - 140px);
    }
    .scroll-guidance-text,
    .scroll-message-text {
        white-space: normal;
    }
}

/* Desktop with short viewport: centre between viewport bottom and map top (map top ≈ 295px), min 65px from map top */
@media (min-width: 1200px) and (max-height: 900px) {
    #hlRefreshMap {
        top: calc(max(65px, (100vh - 295px) / 2));
        transform: translateY(-50%);
    }

    .scroll-guidance-container,
    .scroll-message-container {
        top: calc(max(65px, (100vh - 295px) / 2));
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: calc(100% - 140px);
    }
}

.scroll-message-static {
    color: #222;
    background: none;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
@media (max-width: 1199px) {
    .scroll-message-static {
        display: none !important;
    }
}
@media (min-width: 1200px) {
    .scroll-message-static {
        display: block !important;
        text-align: left;
    }
}

.gmp-internal-camera-control,
.gm-bundled-control [aria-label="Map camera controls"],
.gm-bundled-control [title="Map camera controls"] {
    display: none !important;
}
