.merchant-page .map-section{
    position: relative;
    padding: 10px 16px;
}
.merchant-page .map-section .title-text{
    font-family: 'avenirnextreguler';
    font-style: normal;
    margin: 0px 16px 0px 0px;
    font-size: 52px;
    line-height: 60px;
    /* identical to box height, or 115% */

    display: flex;
    align-items: center;
    letter-spacing: 2px;
    text-transform: uppercase;

    background: linear-gradient(90deg, #101820 0%, rgba(16, 24, 32, 0.4) 46.83%, #101820 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    text-shadow: 0px 4px 24px rgba(0, 0, 0, 0.32);
}
/* .merchant-page .wrapper-filter-merchant{
    position: absolute;
    top: -110px;
    right: 0;
    left: 0;
    z-index: 2;
    height: auto;
    margin: auto;
} */
.merchant-page .wrapper-merchant {
    width: 85%;
    margin: auto;
    margin-top: 50px;
}
/*START SECTION FILTER */
.merchant-page .section-filter{
    position: relative;
}
.merchant-page .desktop{
    /* display: none; */
}
.merchant-page .container-filter.desktop{
    background:75% -30px / 110% 200px no-repeat url('/assets/images/product/filter-bg.png') ;
}
.merchant-page .container-filter.mobile{
    background: #FFF 70% -30px / 135% 160px no-repeat url('/assets/images/product/filter-bg-m.png') ;
}
.merchant-page .container-filter{
    display: flex;
    column-gap: 24px;
    justify-content: space-between;
    color: white;
    margin: auto;
    align-items: center;
    width: 95%;
    height: 135px;
    padding: 0 5%;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.24);
}
.merchant-page .wrapper-custom-select {
    width: 20%;
}
/* custom select start */
.merchant-page .custom-select {
    position: relative;
    font-family: Arial;
    /* width:150px; */
}


select:disabled {
    opacity: 0.5;
}


.merchant-page .select-selected {
    background-color: #fff;
}

/*style the arrow inside the select element:*/
.merchant-page .select-selected:after {
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-25%);
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #6C6C6C transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.merchant-page .select-selected.select-arrow-active:after {
    border-color: transparent transparent #6C6C6C transparent;
    top: 50%;
    transform: translateY(-50%)rotate(90deg);
    right: 5px;
}

/*style the items (options), including the selected item:*/
.merchant-page .select-items div,.merchant-page .select-selected {
    width: 100%;
    color: #6C6C6C;
    padding: 8px;
    border: 1px solid #fff;
    /* border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent; */
    border-color: #E9E9E9;
    cursor: pointer;
    user-select: none;
    font-family: 'avenirnextreguler';
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0em;
    text-align: left;
    border-radius: 8px;

}

.merchant-page .select-items div,.select-selected.merchant-page .select-arrow-active {
    color: #6C6C6C;
    padding: 8px;
    /* border: 1px solid #101820; */
    /* border: none; */
    border-color: #E9E9E9;
    background-color: #fff;
    cursor: pointer;
    user-select: none;
}
.merchant-page .select-selected:hover {
    color: #6C6C6C;
    padding: 8px;
    /* border: 1px solid #101820; */
    /* border: none; */
    border-color: #E9E9E9;
    background-color: #fff;
    cursor: pointer;
    user-select: none;
}
.merchant-page .select-selected:hover.select-selected:after {
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-25%);
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #6C6C6C transparent transparent transparent;
}
.merchant-page .select-selected.select-arrow-active:hover.select-arrow-active:after {
    border-color: transparent transparent #6C6C6C transparent;
    top: 50%;
    transform: translateY(-50%)rotate(90deg);
    right: 5px;
}


/*style items (options):*/
.merchant-page .select-items {
    position: absolute;
    background-color: #fff;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

/*hide the items when the select box is closed:*/
.merchant-page .select-hide {
    display: none;
}

.select-items div:hover, .merchant-page .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}
/* custom select end*/

.merchant-page .btn-set-filter{
    /* color: #FFF;
    text-align: right;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background: #161616; */

    width: 20%; 
    background-color: #161616;
    padding: 4px 0;
    font-family: 'gothambold';
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: center;
    cursor: pointer;
}

.merchant-page .search-bar {
    width: 30%;
    align-items: center;
    position: relative;
    display: flex;
   
}
.merchant-page .search-bar svg {
    position: absolute;
    top: 29%;
    right: 30px;
}
.merchant-page .searchTerm {
    width: 100%;
    border: 1px solid #7D858C;
    /* border-right: none; */
    padding: 8px 30px 8px 8px;
    margin-right:15px;
    border-radius: 8px;
    border: 1px solid #E9E9E9;
    background: var(--meliuz-typography-white, #FFF);
    font-family: 'avenirnextreguler';
    font-size: 16;
    font-style: italic;
    line-height: 25px;
    letter-spacing: 0em;
    text-align: left;
    
}
.merchant-page .searchTerm::placeholder {
    color: var(--meliuz-typography-dark-grey, #6C6C6C);
font-feature-settings: 'clig' off, 'liga' off;
/* ① Meliuz - Montserrat/Body/Size 20/Regular */
font-family: avenirnextreguler;
font-size: 16;
font-style: normal;
font-weight: 400;
line-height: 28px; /* 140% */
}

.merchant-page .searchTerm:focus{
    color: #000000;
}
/*END SECTION FILTER */
.merchant-page #controls {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-y: auto;
    order: 0;
}
.merchant-page .filter-group {
    margin-bottom: 15px;
}
.merchant-page .filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.merchant-page .filter-group select,
.merchant-page .filter-group input[type="text"] {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    box-sizing: border-box;
}
.merchant-page #dealer-list-container {
    overflow-y: auto;
}
.merchant-page section.map{
    position: relative;
    height: 700px;
}
.merchant-page section.map .map-wrapper{
    display: flex;
    position: relative;
    top: 0px;
    right: 0;
    left: 0;
    height: calc(100% + 40px);
}
.merchant-page #dealer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.merchant-page #dealer-list .empty-wrapper{
    padding-top:50px;
    padding-bottom: 20px;
    padding-left: 32px;
    padding-right: 32px;
    display: flex;
    align-items: center;
    flex-direction: column;
    row-gap: 32px;
}
.merchant-page #dealer-list .empty-wrapper .empty-icon{
    width: 116px;
    height: 103px;
}

.merchant-page #dealer-list .empty-wrapper p.text{
    font-family: "avenirnextmedium";
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: start;
    color: #A2A2A2;
}

.merchant-page #dealer-list .empty-wrapper p.text span.bold{
    font-family: "avenirnextbold";
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: start;
    color: #A2A2A2;
}
.merchant-page #dealer-list li {
    padding: 24px 42px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.merchant-page #dealer-list li.active{
    background-color: #F6E9E9;
}
.merchant-page #dealer-list li .province-wrapper{
    background-color: #FFDBDB;
    padding: 4px 8px;
    width: fit-content;
}
.merchant-page #dealer-list li .province-wrapper p.title-text{
    font-family: 'avenirnextsemibold';
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #BC2F2C;
}
.merchant-page .title-text{
    font-family: 'avenirnextsemibold';
font-weight: 600;
font-size: 20px;
line-height: 30px;
letter-spacing: 0px;
vertical-align: middle;
color: #101820;


}
.merchant-page #dealer-list li.active .content-text{
    color: #852E2C;
}
.merchant-page #dealer-list li .content-text{
    font-family: 'avenirnextmedium';
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0%;
    color: #101820;
    text-decoration: none;
}
.merchant-page .button-download-catalogue{
    padding: 8px 24px;
    border-radius: 4px;
    border: 1px solid #384967;
    font-family: 'avenirnextreguler';
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
    background-color: #F5E937;
    color: #384967
}
.merchant-page .button-marketplace{
    padding: 8px 24px;
    border-radius: 4px;
    border: 1px solid #384967;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
    background-color: #FFF;
    color: #384967
}
#dealer-list .merchant-page li:hover {
    background-color: #e9ecef;
}
#dealer-list .merchant-page li.active {
    background-color: #007bff;
    color: white;
}
.merchant-page #map-container {
    flex-grow: 1;
    height: 60vh; /* Adjust if controls take more or less space */
    order: 1;
}
.merchant-page #map {
    height: 100%;
    width: 100%;
}

.merchant-page .info-window-content{
    padding: 8px;
    width: 260px;
}
.merchant-page .info-window-content .title-text {
    font-family: 'avenirnextmedium';
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFF;
}
.merchant-page .info-window-content .content-text {
    font-family: 'avenirnextmedium';
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFF;
    margin-top: 2px;
}
.merchant-page .info-window-content .button-direction {
    background-color: #FFF;
    border-radius: 0px;
    padding: 2px 32px;
    font-family: 'avenirnextsemibold';
    font-size: 12px;
    line-height: 32px;
    letter-spacing: 0%;
    text-align: center;
    color: #BC2F2C;
    width: 100%;
}
.merchant-page .info-window-content img.loc-icon{
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(190%) contrast(103%);
}
.merchant-page .info-window-content h3 {
    margin-top: 0;
}
.merchant-page .no-results {
    padding: 10px;
    text-align: center;
    color: #777;
}
.merchant-page .mobile{
    display: none;
}

.merchant-page .gm-style-iw-chr{
    display: none!important;
}
  /* Info Window (Dialog) Styling */
  
.merchant-page .gm-style .gm-style-iw-c { /* Target the main container of the info window */
        top: 100px !important;
    left: 164px !important;
    border-radius: 2.07px;
    border-color: transparent;
    background-color: #BC2F2C;
    color: #ffffff;
    white-space: unset;
    padding-left: 0px;
}

.merchant-page .gm-style .gm-style-iw-tc {
    -webkit-filter: drop-shadow(0 4px 2px rgba(178, 178, 178, .4));
    filter: drop-shadow(0 4px 2px rgba(178, 178, 178, .4));
    height: 12px;
    left: 20px;
    position: absolute;
    top: 20px;
    /* transform: rotate(45deg); */
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-20%) rotate(90deg);
    width: 25px;
}

.merchant-page .gm-style .gm-style-iw-tc::after {
    background: #BC2F2C;
    -webkit-clip-path: polygon(0 0, 50% 100%, 100% 0);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    content: "";
    height: 12px;
    left: 0;
    position: absolute;
    top: -1px;
    width: 25px;
}
.merchant-page #dealer-list li.active img.red-icon{

    filter: invert(18%) sepia(22%) saturate(5453%) hue-rotate(520deg) brightness(99%) contrast(83%);
}
.merchant-page #dealer-list li img.red-icon{
    filter: invert(18%) sepia(22%) saturate(5453%) hue-rotate(520deg) brightness(20%) contrast(83%);
}
img.white-icon{
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(190%) contrast(103%);
}
.merchant-page .gm-style .gm-style-iw-d { /* Target the content div */
    overflow: hidden !important; /* Prevent scrollbars if content is slightly larger */
    background-color: #BC2F2C !important; /* Ensure content area also has the background */
}
/* Hide the default InfoWindow close button */

.merchant-page .gm-style .gm-style-iw-t .gm-ui-hover-effect {
    display: none !important;
}

.merchant-page .locate-button {
    font-family: 'avenirnextsemibold';
    font-size: 14px;
    line-height: 32px;
    letter-spacing: 0%;
    text-align: right;
    display: flex;
    gap: 10px ;
    z-index: 10;
    background: #BC2F2C;
    border: none;
    border-radius: 0px;
    padding:  4px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #FFF;
    width: 100%;
    justify-content: center;
}
.merchant-page .locate-button p{
    margin-bottom: 0px;
    white-space: nowrap;
}
.merchant-page .locate-button:hover {
    background: #A82421;
}

.merchant-page .locate-button.loading {
    opacity: 0.7;
}
@media only screen and (max-width: 1199px) {
    .merchant-page .total-dealer-wrapper{
        background-color: #FFF;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 18px;
    }
    
    .merchant-page .total-dealer-wrapper .total-dealer-text{
        font-family: Montserrat;
        font-weight: 700;
        font-size: 16px;
        leading-trim: NONE;
        line-height: 24px;
        letter-spacing: 0%;
        vertical-align: middle;
        color: #fff;
        margin-bottom: 0px;
    }
    .merchant-page .total-dealer-wrapper #total-dealer-count {
  /* Font and Color */
  font-family: Montserrat;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  background-color: #F5E937;
        
  /* --- Core Logic for a Dynamic Circle --- */
  
  /* Use inline-flex to avoid block-level stretching */
  display: inline-flex; 
  
  /* Make width/height calculation include padding */
  box-sizing: border-box; 
  
  /* Let width grow with the text */
  width: 32px; 
  height: 32px; 
  
  /* Force the height to equal the width */
  aspect-ratio: 1 / 1; 
  
  /* Prevent text from wrapping to a new line */
  white-space: nowrap; 
  
  /* Make the square a perfect circle */
  border-radius: 50%; 
  
  /* Add space inside the circle */
  padding: 0px 0px;

  /* Unset potential conflicting properties */
  max-width: none;
  min-width: 0;

  /* Center the content perfectly */
  align-items: center;
  justify-content: center;
}
    .merchant-page #controls {
        border-top: none !important;
        order: 1 !important;
        height: 100%;
        min-height: 100%;
        max-height: 660px;
    }
.merchant-page .map-section
    {
        display: block;
    }
.merchant-page .title-text{
    font-size: 14px !important;
    line-height: 20px !important;
}
.merchant-page .content-text{
    font-size: 14px !important;
    line-height: 16px !important;

}
.merchant-page section.map{
    height: auto !important;
}
.merchant-page section.map .map-wrapper{
    height: auto !important;
}
    .merchant-page #map-container{
        order: 0 !important;
    }
    .merchant-page section.map .map-wrapper{
        flex-direction: column !important;
        top: -0px !important
    }
    /* .merchant-page .wrapper-filter-merchant{
        top: -30px !important;
    } */
    .merchant-page .map-section .title-text{
        font-size: 24px !important;
        line-height: 36px !important;
    }
    .merchant-page .desktop{
        display: none;
    }
    
    .merchant-page .mobile{
        display: block;
    }
    .merchant-page .container-filter{
        height: auto !important;
        padding: 20px !important;
    }
    .merchant-page .icon-filter-black-m {
        display: flex;
        align-items: center;
        color: #161616;
        font-family: Montserrat;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        height: auto;
        border: solid 1px #E9E9E9;
        width: 50%;
        padding: 5px 15px 5px 5px;
        border-radius: 10px;
    }
    .merchant-page .icon-filter-black-m img{
        height: 40px;
        margin-right: 20px;
    }
    
.backdrop-product{
    pointer-events:none;

    display: block;
    height: 100vh;
    width: 100vw;
    z-index: 0;
    opacity: 0;
    background-color: #000;
    position: fixed;
    top: 0px;
    left: 0px;
}
    .section-popup-filter.mobile{
        width: 100%;
    position: fixed;
    bottom: 0px;
    background: #FFF;
    border-radius: 16px 16px 0px 0px;
    z-index: 10000;
    height: 0px;
    transition: all 1s;

    }
    /* .wrapper-popup-filter{
    position: fixed;
    bottom: 0px;
    background: #FFF;
    border-radius: 16px 16px 0px 0px;
    z-index: 10000;
    height: 0px;
    transition: all 1s;
    } */
    .wrapper-section-swiper {
        width: 100%;
        padding: 20px;
        text-align: center;
    }
    
    .section-popup-filter.mobile .header-control-wrapper{
        padding: 20px 35.6%;
    }
    
    .section-popup-filter.mobile  .btn-close-modal{
        position: absolute;
        top: 24px;
        right: 24px;
        color: var(--meliuz-fire-red-100, #CD2330);
        font-feature-settings: 'clig' off, 'liga' off;
        background: none;
        /* ② Meliuz - Gotham/Body/Size 12/Book */
        font-family: 'gothamnormal';
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px; /* 133.333% */
    }
    .title-popup{
        color: #161616;
        font-family: Montserrat;
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        line-height: 28px;
        /* margin-bottom: 20px; */
    }
    .wrapper-content-popup{
        display: flex;
        position: relative;
        /* padding: 0 24px; */
        /* overflow-y: auto; */
        /* flex: 1 1 auto; */
        flex-direction: column;
        height: 100%;
    }
    .merchant-page .wrapper-custom-select{
        width: 100% !important;
    }
    .merchant-page .search-bar{
        width: 100% !important;
    }
    .wrapper-filter-items-m{

        display: flex;
        padding: 0px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px;
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0px;
    }
    .wrapper-filter-items-m span{
        /* margin: 10px 0; */
    }
    .container-filter-items-m{
        
    display: flex;
    align-items: center;
    align-content: center;
    gap: 8px;
    align-self: stretch;
    flex-wrap: wrap;
    }
    /* .container-filter-items-m:last-child{
        margin-bottom: 50px;
    } */
    .filter-items-m{
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid #E9E9E9;
    }
    input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
    }

    input:checked + .filter-items-m{
        background: var(--meliuz-titanium-yellow-100, #F5E937);
        color:var(--meliuz-fire-red-100, #CD2330);
    }
    label{
        position: relative;
    }
    

.section-popup-filter.mobile .footer-wrapper{
    margin-top: auto;
    padding: 12px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid #BDBDBD;
    background: var(--meliuz-typography-white, #FFF);
    box-shadow: 0px 6px 32px 0px rgba(0, 0, 0, 0.24);
}
.section-popup-filter.mobile .footer-wrapper .btn-submit p{
    margin-bottom:0px;
}
.section-popup-filter.mobile .footer-wrapper .btn-submit{
    display: flex;
    padding: 16px 0px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    background: var(--meliuz-typography-black, #161616);
    color: var(--meliuz-typography-white, #FFF);
    text-align: right;
    font-feature-settings: 'clig' off, 'liga' off;

    /* ① Meliuz - Montserrat/Body/Size 14/SemiBold */
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
    width: 100%;
}
.merchant-page .locate-button{
    width: 100% !important;
}
}
/* Responsive adjustments */
@media (min-width: 1200px) { /* For tablets and desktops */
    .merchant-page .map-section{
        padding: 40px 113px;
    }
    .merchant-page body {
        flex-direction: row; /* Side-by-side layout */
    }
    .merchant-page #controls {
    interpolate-size: allow-keywords;
        width: 0%; /* Increased width for filters */
    transition: width linear 0.25s;
        height: 100%;
        border-bottom: none;
        border-right: 1px solid #dee2e6;
        display: flex;
        flex-direction: column;
    }
    .merchant-page #controls.active {
        width: 40%; /* Increased width for filters */
    }
    .merchant-page #dealer-list-container {
        flex-grow: 1; /* Allow dealer list to take remaining space in controls */
        max-height: none; /* Remove max-height for desktop */
    }
    .merchant-page #map-container {
        height: 100%;
        flex-grow: 1;
    }
    .merchant-page .total-dealer-wrapper{
        display: flex;
        top: 35px;
        /* left: 13%; */
        gap: 24px;
        align-items: center;
        justify-content: center;
        padding: 16px 20px;
    }
    .merchant-page .total-dealer-wrapper .total-dealer-text{
        font-family: Montserrat;
        font-weight: 700;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 24px;
        letter-spacing: 0%;
        vertical-align: middle;
        color: #fff;
        margin-bottom: 0px;
    }
    .merchant-page .total-dealer-wrapper #total-dealer-count {
  /* Font and Color */
  font-family: Montserrat;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  background-color: #F5E937;
        
  /* --- Core Logic for a Dynamic Circle --- */
  
  /* Use inline-flex to avoid block-level stretching */
  display: inline-flex; 
  
  /* Make width/height calculation include padding */
  box-sizing: border-box; 
  
  /* Let width grow with the text */
  width: 32px; 
  height: 32px; 
  
  /* Force the height to equal the width */
  aspect-ratio: 1 / 1; 
  
  /* Prevent text from wrapping to a new line */
  white-space: nowrap; 
  
  /* Make the square a perfect circle */
  border-radius: 50%; 
  
  /* Add space inside the circle */
  padding: 0px 0px;

  /* Unset potential conflicting properties */
  max-width: none;
  min-width: 0;

  /* Center the content perfectly */
  align-items: center;
  justify-content: center;
}
}