/* Target zoom control container */

.gm-style .gm-bundled-control{
    bottom: 124px !important;
    right: 77px!important;
}

/*
.gm-style .gm-bundled-control .gm-control-active {
  width: 48px !important;
  height: 48px !important;
}

/* Target + / - icons */
/*
.gm-style .gm-bundled-control .gm-control-active img,
.gm-style .gm-bundled-control .gm-control-active span {
  transform: scale(1.4) !important;
}

/* Optional: increase font-size if using newer SVG-based controls */
/*
.gm-style button {
  width: 48px !important;
  height: 48px !important;
  font-size: 20px !important;
}
*/
/* map */
div#mds-geo-sidebar {
    width: 35%;
    height: 83.6vh;
    overflow-y: auto;
    box-shadow: 0px 0px 20px #0000005c;
    z-index: 1;
}

div#mds-geo-map {
    width: 75%;
    display: block;
    height: 83.6vh;
}

div#mds-geo-location-container {
    display: flex;
}


.mds-geo-map-legend ul {
    list-style: none!important;
    display: flex;
    gap: 10px;
}

.mds-geo-map-legend ul svg{width:30px;height: 21px;}


li.mds-geo-legend-item {
    display: flex;
    font-size: 17px;
    align-content: center;
    align-items: center;
    margin-bottom: 0px !important;
    font-weight: 600;
}

li.mds-geo-legend-item {margin-left: 20px!important;}

li.mds-geo-legend-item::before {display:none!important;}

.mds-geo-map-legend {
    position: absolute;
    bottom: 3px;
    width: 70%;
    right: 0;
}

.mds-geo-legend-icon {height: 23px;}

.mds-geo-map-legend {
    background: #fff;
    padding-left: 12px;
    padding-top: 9px;
    box-shadow: 0px 36px #ffffff;
}

@media only screen and (max-width: 767px) {

div#mds-geo-location-container {display: flex;flex-direction: column-reverse;}
div#mds-geo-map {width: 100%;height: 30vh;}
div#mds-geo-sidebar {width: 100%;height: 50vh;}
div#mds-geo-filters {width: 100%!important;}
.mds-geo-filters-body {height: 100vh!important;}

.mds-geo-map-legend {
    width: 100%;
    padding-left: 10px!important;
    padding-right:10px!important;
    padding-top: 5px!important;
    margin-top: -5px!important;
    box-shadow:0px 0px 10px #00000047;
}

.wpb-content-wrapper ul>li {
    padding-left: 0px;
    font-size: 11px!important;
    line-height: 18px!important;
    margin-top:0px;
    margin-bottom:2px!important;
}

.mds-geo-legend-icon {
    height: 17px;
    width: 25px!important;
}

.mds-geo-legend-icon svg {
    height: 10px;
    width: 22px!important;
}

.mds-geo-map-legend ul {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 10px; /* adjust spacing between items */
}

}

/* END - map */


/* loading bar */

.mds-loadingIndicatorStatus--slow.mds-loadingIndicatorStatus--working {
    animation: 3.5s cubic-bezier(0.75, 0, 0.5, 1) 0s infinite normal none running sb-loadingIndicator-slide;
    margin-top: 0px;
    z-index: 3;
    height:0px;
}

.mds-loadingIndicatorStatus--slow {
    transform: translateX(-100%);
    width: 50%;
    overflow: visible;
}


.mds-loadingIndicator-stripe {
    box-shadow: 0px 0px 8px #0000002b;;
    height: 4px;
    background: #50748a;
    border-radius: 10px;
    transition: background 0.25s, box-shadow 0.25s;
}

.relative {
    position: relative !important;
}

@keyframes sb-loadingIndicator-slide {
    0% {
        transform: translateX(-100%);
        width: 100%;
        opacity: 1;
    }
    70% {
        width: 70%;
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        width: 100%;
        opacity: 0;
    }
}

.fixed.mds-loadingIndicator {
    margin-top: 0px;
    margin-bottom: 0px;
    z-index: 20 !important;
    position: relative;
}

/* END - loading bar */

/* sidebar */


/* ✅ Toggle Wrapper */
div#mds-geo-filter-countries .mds-toggle-wrapper {
    display: flex;
    border: 2px solid #50748a; /* Green border */
    border-radius: 30px; /* Round edges */
    overflow: hidden;
    position: relative;
    width: 80%;
    justify-content: center;
    margin: auto;
}

/* ✅ Toggle Buttons */
div#mds-geo-filter-countries .mds-toggle-button {
    padding: 5px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #50748a; /* Green text */
    background: transparent;
    border: none;
    position: relative;
    z-index: 1; /* Ensure text is above the highlight */
    transition: color 0.3s ease-in-out;
    text-align: center;
    width: 100%;
}

/* ✅ Active State */
div#mds-geo-filter-countries .mds-toggle-button.active {
    color: #fff; /* White text when active */
}

/* ✅ Background Transition Effect */
div#mds-geo-filter-countries .mds-toggle-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Covers one button */
    height: 100%;
    background: #50748a; /* Green highlight */
    border-radius: 30px; /* Rounded edges */
    transition: transform 0.3s ease-in-out;
    z-index: 1; /* Behind the text */
}

.mds-toggle-wrapper.multiple-selected::before {
    display: none; /* ✅ Hide when both countries are selected */
}

/* ✅ Move Highlight to the Right for Second Button */
div#mds-geo-filter-countries .mds-toggle-wrapper[data-active="north-america"]::before,div#mds-geo-filter-countries .mds-toggle-wrapper[data-active="amerique-du-nord"]::before {
    transform: translateX(0%);
}

/* ✅ Move Highlight to the Right for Second Button */
div#mds-geo-filter-countries .mds-toggle-wrapper[data-active="asia-pacific"]::before,div#mds-geo-filter-countries .mds-toggle-wrapper[data-active="asie-pacifique"]::before {
    transform: translateX(100%);
}


div#mds-geo-filter-countries {
    margin-top: 15px;
}

.mds-geo-top-hedader {
    display: flex;
    gap: 16px;
    align-content: center;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    justify-content: space-between;
}

button#mds-geo-open-filters {
    margin-bottom: 0px;
    padding: 10.6px 12px;
    font-size: 14px;
    margin-right: 0px;
}


input#mds-geo-search {
    margin-bottom: 0px;
}

input#mds-geo-search {
    min-width: 100%;
    border-radius: 8px;
    border: solid 2px #50748a;
    padding: 8px 9px !important;
}

button#mds-geo-open-filters {
    background: #50748a;
    border-radius: 10px;
    width: 21%;
    color: #fff !important;
    font-size: 15px;
}

.mds-geo-no-locations-found {
    margin-left: 15px;
    margin-top: 30px;
}

.mds-geo-no-locations-found h4 {
    color: #50748a;
}

button#mds-geo-find-nearest {
    padding: 6px 20px;
    font-weight: 500;
    border: solid 2px #50748a;
    background: transparent;
    box-shadow: unset;
    color: #50748a;
}

button#mds-geo-find-nearest:hover {
    background: #50748a;
    color: #fff;
}

div#mds-geo-filters {
    position: absolute;
    background: #fff;
    height: -webkit-fill-available;
    width: 32%;
    z-index: 10;
    padding: 15px 0px;
    overflow-y: scroll;
}

.mds-geo-filters-header {
    display: block;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    margin-bottom: 11px;
    flex-direction: row;
    padding: 0px 15px;
    margin-top: 29px;
}

.mds-geo-filters-header h2 {
    margin-bottom: 0px;
    font-size: 30px;
    line-height: 35px;
}

button#mds-geo-close-filters {
    background: transparent;
    padding: 0px;
    box-shadow: unset!important;
    margin-bottom: 0px;
    margin-top: 5px;
    right: 0;
    display: block;
    position: absolute;
}


button#mds-geo-close-filters svg {
    fill: red!important;
    width: 28px!important;
    height: 28px!important;
}

.mds-geo-filters-body h3 {
    background: #ebebeb;
    font-size: 22px;
    padding-left: 15px;
    color: #979797;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0px;
    margin-top: 0px;
}


.mds-toggle-wrapper.hide-before::before {display:none;}

button#mds-geo-apply-filters {
    position: sticky;
    bottom: 17px;
    width: fit-content;
    box-shadow: 0px 2px 10px #0000007a;
    z-index: 4;
    margin-left: auto;
    font-size: 16px;
    padding: 8px 15px !important;
    right: 20px;
    background: green;
    color: #fff;
    font-weight: 600;
}

.child-header-top {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

button#mds-geo-clear-filters {
    background: transparent;
    box-shadow: unset!important;
    color: #000;
    font-size: 16px;
    padding: 10px 0px!important;
}

/* checkboxes */

.mds-geo-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    border-radius: 0px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.mds-geo-filter-item:hover {
    background: #f7f7f7;
}

.mds-geo-filter-label {
    font-size: 16px;
    color: #333;
}

.mds-geo-filter-checkbox {
    display: none!important; /* Hide checkbox */
}

.mds-geo-checkmark {
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.mds-geo-checkmark.visible {
    opacity: 1;
    transform: scale(1);
}

/* END - checkboxes */


/* sidebar locations */

#mds-geo-location-list {
    margin-top: 15px;
    margin-left: 0px;
    padding-left: 2px;
    padding-right: 2px;
}

.single-location-sidebar:hover {
    background: #50748a21;
}

.single-location-sidebar.selected {
    background: #50748a21;
    border:solid 2px #274253;
}

.single-location-sidebar{
    border:solid 0px #274253;
}

.single-location-sidebar.highlighted {
    background: #50748a21;
    border:solid 1px #274253;
}

.single-location-sidebar:hover button.open-details-btn {
    background: #50748a!important;
    color: #fff!important;
}

.single-location-sidebar {cursor: pointer;}

.single-location-sidebar {
    margin-bottom: 2px!important;
    display:block!important;
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top:15px;
    padding-bottom:15px;
}

.single-location-sidebar .location-title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 17px;
}

.single-location-sidebar .location-address {
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    margin-top: 10px;
}

.single-location-sidebar .po-box-address {
    font-size: 14px;
    font-weight: 500;
    margin-top:2px;
    line-height: 19px;
}

.single-location-sidebar .location-hours {
    font-size: 15px;
    font-weight: 500;
}

.location-hours.closed::before {
    content: '';
    width:24px;
    height:24px;
    background-image:url('/wp-content/plugins/mds-geo-locations/assets/img/geo-mds-closed.svg');
    display:block;
    background-size:contain;
    background-repeat:no-repeat;
    
}

.location-hours.closed {
    display: flex;
    gap: 4px;
    align-items: center;
}

button.open-details-btn {
    display: block;
    margin-left: auto;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 11px;
    bottom: 0;
    background: #e1e1e1!important;
    box-shadow: unset;
    color: #6e6e6e!important;
}

button.open-details-btn:hover {
    background: #50748a!important;
    color: #fff!important;
}


.footer-single-location-item {
    display: flex;
    margin-top: 6px;
    justify-content: space-between;
}

/* END - sidebar locations */

@media only screen and (max-width: 767px) {

input#mds-geo-search {
    max-width: 60%!important;
    min-width: 60%!important;
}

div#mds-geo-filter-countries .mds-toggle-wrapper {width: 92%;}

button#mds-geo-open-filters {width: 35%;}


}

/* end - sidebar */


/* single location details */

span.closed-hours-icon,span.closed-hours-soon-icon {
    gap: 4px;
    align-items: center;
    font-size: 17px;
    margin-bottom: 8px;
}

span.closed-hours-icon::before, span.closed-hours-soon-icon::before {
    content: '';
    width:24px;
    height:24px;
    background-image:url('/wp-content/plugins/mds-geo-locations/assets/img/geo-mds-closed.svg');
    display:block;
    background-size:contain;
    background-repeat:no-repeat;
}

#mds-geo-single-location-details {
    position: absolute;
    background: #fff;
    height: -webkit-fill-available;
    width: 32%;
    z-index: 2;
    padding: 15px 0px;
    overflow-y: scroll;
    padding-left: 0px;
    padding-bottom: 30px;
}

button#mds-geo-close-single-location {
    background: transparent;
    padding: 0px;
    box-shadow: unset!important;
    margin-bottom: 0px;
    margin-top: 5px;
    right: 0;
    display: block;
    position: absolute;
}


button#mds-geo-close-single-location svg {
    fill: red!important;
    width: 28px!important;
    height: 28px!important;
}

h3.single-title-location {
    font-size: 34px;
    margin-bottom: 5px;
    font-weight: 500;
}

div#mds-single-location-header {
    margin-top: 23px;
    margin-bottom: 4px;
    padding-left: 30px;
}

div#mds-single-location-details {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 21px;
    padding-left: 30px;
}

span.single-location-detail-address {
    font-size: 18px;
}

.phone-item button {
    font-size: 18px;
}

li.single-location-phones-number {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    list-style: none;
}

li.single-location-phones-number button {
    width: fit-content;
    background: transparent;
    box-shadow: unset;
    color: #0b436a;
    padding: 0px;
    margin-bottom: 6px;
    text-decoration:underline;
}

#mds-geo-single-location-details .phone-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust spacing */
    margin-bottom: 5px;
}

#mds-geo-single-location-details .phone-label {
    font-weight: bold;
    color: #50748a;
    min-width: 54px; /* Adjust width as needed */
    text-transform:capitalize;
}

#mds-geo-single-location-details .phone-button:hover {
    color: #f57400;
}

#mds-geo-single-location-details button.phone-button {
    text-decoration: underline!important;
}

.mds-single-location-static-buttons {
    width: 100%;
    display: flex;
    min-width: 100%!important;
}


button#get-direction-single-location,button#learn-more-single-location  {
    color: #0b436a;
    width: fit-content;
    padding: 3px 12px;
    background: transparent;
    box-shadow: unset;
    display: flex;
    align-items: center;
    align-content: center;
    gap: 8px;
    border-radius: 20px;
    border: solid 2px;
    font-size: 18px;
    margin-bottom:0px;
    margin-right:15px;
}

button#get-direction-single-location:hover,button#learn-more-single-location:hover {
    color: #fff;
    background: #0b436a;
}

#mds-single-location-opening-hours h3,#mds-single-location-additonal-info-list h3 {
    background: #ebebeb;
    font-size: 22px;
    padding-left: 30px;
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0px!important;
    margin-top: 0px;
    margin-bottom:10px;
}

#all-opening-hours {
    padding-left: 0px!important;
    list-style: none!important;
    margin-left: 30px;
    margin-top: 13px;
}

ul#all-opening-hours li {
    list-style: none!important;
    padding-left:0px;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    margin-left:0px!important;
}

ul#all-opening-hours li::before {
    display: none!important;
}

ul#all-opening-hours li:first-child {
    font-weight: 600;
}

span.when-store-open {
    margin-left: 30px;
    margin-top: 20px;
    display: block;
    font-size: 17px;
}

div#mds-single-location-additonal-info-list {
    margin-top: 28px;
}

div#mds-single-location-amenities {
    padding-left: 30px;
}


div#mds-single-location-markets-list,div#mds-single-location-products-list,div#mds-single-location-services-list {
    list-style: none;
    padding-left: 0px;
    padding-top:10px;
    padding-bottom:10px;
}

div#mds-single-location-markets h3,div#mds-single-location-products h3,div#mds-single-services-products h3 {
    margin-bottom:0px!important;
}

div#mds-single-location-markets-list li, div#mds-single-location-products-list li, div#mds-single-location-services-list li{
    margin-bottom:0px;
    padding-top:7px;
    padding-bottom:7px;
    padding-left:30px;
    display:block;
    text-transform:uppercase;
    cursor:pointer;
}

div#mds-single-location-markets-list li:hover,div#mds-single-location-products-list li:hover,div#mds-single-location-services-list li:hover{
    background:#ededed;
}

/*
#mds-geo-single-location-details {
    box-shadow: 0px 0px 0px 10000px #00000054;
}
*/

@media only screen and (max-width: 767px) {
    
div#mds-geo-single-location-details {width: 100%;}
ul#all-opening-hours li {max-width: 93%!important;}
.mds-geo-map-legend {background-color: white;z-index: 9;}

}

.header-location-sidebar-details {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: -11px;
}

.header-location-sidebar-details svg {
    width: 30px;
}

/* END - single location details */

.wpb-content-wrapper .mds-geo-map-legend ul > li {
    padding-left: 0px!important;
    margin-left: 0px!important;
}

.mds-geo-legend-item {
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.mds-geo-legend-item.active-legend {
    opacity: 1;
}

.active-legend:after {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    color: #eb0d0d;
    position: absolute;
    top: -8px;
    right: -9px;
    font-size:12px!important;
    font-weight: 700!important;
}

.mds-loading .mds-geo-legend-item {
    cursor: not-allowed;
    opacity: 0.5;
}
.mds-loading .mds-geo-legend-item.active-legend {
    cursor: unset;
    opacity: 0.5;
}

.highlighting img {
    filter: brightness(1.25);
    transition: filter 0.3s ease, transform 0.3s ease;
    transform: scale(1.15); /* optional: grow slightly */
}

gmp-advanced-marker img {
    cursor: pointer;
}

.gm-style-iw.gm-style-iw-c {display: none!important;}

.gm-style .gm-style-iw-tc::after {display: none!important;}


.mds-geo-search-wrapper {
    position: relative;
    width: 74%;
}

#mds-geo-clear-search {
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Hidden by default */
    color: red;
    font-size: 36px;
}

#mds-geo-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ccc;
    z-index: 100;
    display: none;
    box-shadow: 4px 5px 10px #00000033;
    padding-top: 7px;
    padding-bottom: 10px;
    padding-left: 9px;
    max-height: 232px;
    overflow: auto;
    padding-right: 9px;
}

#mds-geo-search-suggestions div {
    padding: 2px 7px;
    cursor: pointer;
    font-size: 15px;
    line-height: 27px;
    border-bottom: solid 1px #80808045;
    font-weight: 600;
}

#mds-geo-search-suggestions div:last-child {
    border-bottom: none!important;
}

#mds-geo-search-suggestions div:hover {
    background-color: #f0f0f0;
}

span.country-quick-search {
    font-weight: 400!important;
    font-size: 14px;
}

.location-address-for-collections {
    font-size: 14px!important;
    font-weight: 500!important;
    margin-top:-3px;
}

span.single-location-detail-address-for-collections {
    font-size: 18px;
    margin-top: -15px;
}

#mds-geo-single-location-details {border: solid 0px!important;}

button#mds-geo-close-single-location {
    border: solid 0px!important;
}

#mds-geo-location-container button {
    border: solid 0px!important;
}

button#get-direction-single-location,button#learn-more-single-location {
    color: #fff;
    background: #0b436a;
}

h3.sec-products-f {
    display: none!important;
}

div#mds-geo-filter-products {
    display: none!important;
}

@media (max-width: 1240px) {
li.mds-geo-legend-item {font-size: 11px!important;}
}
