body {
    margin: 0;
}

body,
.container {
    position: relative;
    font-family: "Cabin", sans-serif;
    border: 1px solid #dee2e6;
}

input[type="checkbox"] {
    vertical-align: middle;
}

select:focus,
select,
input:focus,
input {
    box-shadow: none !important;
    font-size: 14px !important; 
}

.max-height-80 {
    max-height: 99vh;
    height: 100%;
    overflow: hidden;
}

/*.map-title {*/
/*    height: 8vh;*/
/*}*/

#locationPanel {
    border-right: 1px solid #d9d9d9;
}

#locationPanel #loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#locationPanel #loading-overlay img {
    width: 50px;
    height: 50px;
}

#locationPanel #locations-header {
    border-bottom: 1px solid #d8dde3;
    text-align: center;
    padding: 1px;
}

#search {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

#radius {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

#locationPanel #autocomplete-results {
    position: absolute;
    width: calc(100% - 30px);
    background-color: #fff;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 15px;
}

#locationPanel #autocomplete-results div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

#locationPanel #autocomplete-results div:hover {
    background-color: #f2f2f2;
}

#locationPanel #autocomplete-results div.active {
    background-color: #007bff;
    color: #fff;
}

#locationPanel #autocomplete-results div.no-results {
    padding: 8px 12px;
    color: #999;
}

#locationPanel .scrollable-list {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

#locationPanel #locations{
    display: flex;
    flex-direction: column;
}

#locationPanel #locations .location-list-item.inside-radius{
   order: 0;
   position: relative;
}
#locationPanel #locations .location-list-item.inside-radius:hover{
    background-color: #ffffff !important;
}
.heading-label {
    padding: 8px 15px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
}
#locationPanel #locations .location-list-item.outside-radius{
    order: 1;
}

#locationPanel #locations .location-list-item {
    padding: 10px;
    display: flex;
    cursor: pointer;
    align-items: center;
    border-bottom: 1px solid #ccc; 
}

#locationPanel #locations .location-list-item:hover {
    background-color: #eee;
}

#locationPanel #locations .location-list-item.no-locations-found:hover {
    background-color: transparent;
}

#locationPanel #locations .location-list-item .marker-icon {
    margin-right: 10px;
}

#locationPanel #locations .location-list-item .location-name {
    font-weight: bold;
    font-size: 14px;
    color: #000;
    margin-bottom: 5px;
}

#locationPanel #locations .location-list-item .location-lat-lng,
#locationPanel #locations .location-list-item label,
#locationPanel #locations .location-list-item .location-website,
#locationPanel #locations .location-list-item .location-phone,
#locationPanel #locations .location-list-item .location-address {
    color: #000;
    font-size: 12px;
    margin-bottom: 0px;
    
}

#locationPanel #locations .location-list-item .location-address {
    margin-top: 5px;
    margin-bottom: 5px;
}

#locationPanel #locations .location-list-item label {
/*    margin-top: 8px;*/
    font-weight: 700;
}

#locationPanel #locations .location-list-item .location-lat-lng {
    font-size: 12px;
}

#locationPanel #locations .location-list-item div.marker-icon img {
    display: inline-block;
    width: 18px;
    height: auto;
}


#locationPanel .scrollable-list {
    overflow-y: auto;
}

#locationPanel .scrollable-list,
#mapContainer {
    height: calc(100vh - 75px);
}

#formContainer .form-section {
    height: calc(100vh - 110px);
}


#mapContainer #map-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

#mapContainer #map {
    width: 100%;
    height: 100%;
    transition: width 0.3s ease;
}

#mapContainer .iframe {
    border: none;
    height: 100%;
    width: 100%;
}

#mapContainer #toggle-button1 {
    position: absolute;
    top: 55px;
    left: 0;
    background: #fff;
    padding: 10px 10px 10px 10px;
    cursor: pointer;
    border-radius: 0px 5px 5px 0px;
    width: 40px;
    height: 40px;
    border: none;
    transition: left 0.3s ease;
}

#mapContainer #toggle-form-button {
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    padding: 10px 10px 10px 10px;
    cursor: pointer;
    border-radius: 5px 0px 0px 5px;
    width: 40px;
    height: 40px;
    border: none;
    transition: left 0.3s ease;
}

.custom-infowindow {
    font-family: 'Arial', sans-serif;
    max-width: 250px;
    padding: 8px;
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    font-size: 13px;
    line-height: 1.4em;
}

.custom-infowindow h5 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    padding-right: 15px;
}

.custom-infowindow .underline {
    width: 40px;
    height: 2px;
    background: #000;
    margin: 5px 0 10px;
}

.custom-infowindow .address {
    margin-bottom: 8px;
    color: #555;
}

.custom-infowindow a {
    color: #000;
    text-decoration: none;
}

.custom-infowindow a:hover {
    text-decoration: underline;
}

.custom-infowindow .directions-btn {
    display: inline-block;
    margin-top: 8px;
    background: #000;
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.custom-infowindow .directions-btn:hover {
    background: #333;
}

#formContainer {
    border-left: 1px solid #d8dde3;
    overflow: hidden;
}


#formContainer .location-list-wrapper .location-list {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin-top: 0px;
    /*transition: .3s ease all;*/
}

/*#formContainer .location-list-wrapper:not(.open):hover .location-list,*/
#formContainer .location-list-wrapper.open .location-list {
    opacity: 1;
    margin-top: 10px;
    visibility: visible;
    height: auto;
    transition: .3s ease all;
}

#formContainer .location-list-wrapper {
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    font-size: 14px;
    box-shadow: 0px 2px 20px 1px rgba(0, 0, 0, 0.2);
}

#formContainer .location-list-wrapper .location-list-item:not(:last-child) {
    border-bottom: 1px solid;
    border-color: transparent;
}

#formContainer .location-list-wrapper .location-list-item {
    padding: 5px 0;
    padding-left: 20px;
    padding-right: 20px;

}

#formContainer .location-list-wrapper .arrow-icon{
   padding: 10px 15px 10px 20px; 
} 

#formContainer .location-list-wrapper .selected-location-title {
    padding: 10px 20px;
}

#formContainer .location-list-wrapper.open .arrow-icon,
#formContainer .location-list-wrapper.open .selected-location-title {
    padding-bottom: 0;
}

#formContainer .location-list-wrapper .arrow-icon {
    transform: scale(1);
    transform-origin: center;
    transform-box: fill-box;
    transition: .3s ease-in-out;
}

#formContainer .location-list-wrapper.open .arrow-icon{
    transform: scale(-1);
    transition: .3s ease-in-out;
}

#formContainer .form-section {
    /*height: 98vh;*/
    overflow-y: auto;
}

#formContainer .form-section .formContainer-header {
    border-bottom: 1px solid #d8dde3;
}

#formContainer .form-section iframe {
    width: 100%;
    /*height: 1440px !important;*/
    border: none;
}

#showMyLocation {
    position: absolute;
    top: 100px;
    left: 0;
    background: #fff;
    background-image: url("my-location-50.png");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center center;
    border: none;
    border-radius: 0px 5px 5px 0px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
}

@media (max-width: 767px) {

    #toggle-form-button,
    #toggle-button1 {
        display: none;
    }

    #formContainer {
        order: 2;
        margin-top: 30px;
    }

    #mapContainer {
        order: 0;
    }

    #locationPanel {
        order: 1;
    }

    #map-container, 
    #locationPanel .scrollable-list {
        max-height: 300px;
        overflow-y: auto;
    }

    #mapContainer {
        height: 300px;
    }
    
    #formContainer{
        height: 100%;
    }

    #formContainer .form-section {
        height: calc(100% - 40px);
    }
     
    #mapContainer #map,
    .max-height-80 {
        max-height: 100%;
    }
    
    .backToForm{
        border-bottom: 1px solid #d8dde3;
    }
 
    #locationPanel{
        border-right: 0;
    }
    #formContainer{
        border-left: 0;
    }


}

#autocompleteResults {
    display: none;
    border: 1px solid #ccc;
    background: #fff;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

#autocompleteResults.active {
    display: block;
}

.result-item {
    padding: 5px 8px;
}

.result-item.hovered {
    background-color: #e0e0e0;
}

.result-item.highlighted {
    background: #e0e0e0;
}

.result-item strong {
    color: #222;
    font-weight: 600;
}

.result-item span {
    color: #666;
}


@keyframes drop {
    0% {
        transform: translateY(-200px) scaleY(0.9);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    50% {
        transform: translateY(0px) scaleY(1);
        opacity: 1;
    }

    65% {
        transform: translateY(-17px) scaleY(0.9);
        opacity: 1;
    }

    75% {
        transform: translateY(-22px) scaleY(0.9);
        opacity: 1;
    }

    100% {
        transform: translateY(0px) scaleY(1);
        opacity: 1;
    }
}

.drop {
    animation: drop 0.3s linear forwards var(--delay-time);
}


@keyframes smooth-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.3);
    }
}
.gm-style-cc,
.gmnoprint a,
.gmnoprint span {
    display: none !important;
}

.gmnoprint div {
    background: none !important;
}
.gm-style-iw-chr {
    position: absolute;
    right: 0;
}

button.gm-ui-hover-effect {
    width: 30px !important;
    height: 30px !important;
}

button.gm-ui-hover-effect span {
    margin: 3px !important;
}

.gm-style-iw-d{
    padding-top: 10px;
}