/* ABC Store Locator styles */

#abc-store-locator-container {
    --gutter-padding: clamp(calc(50vw - 1280px / 2), 3.5rem, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    margin-top: -40.5rem;
    padding-right: var(--gutter-padding) !important;
    padding-left: var(--gutter-padding) !important;
    /* max-width: calc(var(--content-width) + var(--page-gutter, 20px) * 2);
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter); */
}

#abc-store-locator-search {
    width: 100%;
    background: var(--secondary-color3);
    -webkit-box-shadow: 0 4px 74px rgba(15, 44, 78, .41);
    box-shadow: 0 4px 74px rgba(15, 44, 78, .41);
    border-radius: 20px;
    margin-bottom: 9rem;
    position: relative;

    /* padding: 4.3rem 3.3rem 2.3rem 2.8rem; */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    &::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: -4px;
        left: 0;
        width: 100%;
        height: 100px;
        pointer-events: none;
        border-radius: inherit;
        background-color: var(--primary-color3);
    }
}

.location-section {
    flex: 0 0 auto;
    position: relative;
    
    &::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        pointer-events: none;
        opacity: .4;
        background-color: var(--primary-color3);
    }
}

.location-btn {
    padding: 40px 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}



.location-btn svg {
    width: 19px;
    color: var(--primary-color2);
    margin-top: -4px;
    margin-right: 14px;
    -webkit-transition: all var(--base-transition) ease-in-out;
    transition: all var(--base-transition) ease-in-out;
}

.location-btn span {
    font-size: 1.6rem;
    color: var(--primary-color1);
    font-weight: 800;
    line-height: 1.06;
}

.search-section {
    flex: 1;
}

.search-input-wrapper {
    padding: 28px 20px;
    display: flex;
    align-items: center;
    gap: 0;
}

#abc-sl-search-input {
    margin: 5px 10px;
    padding: 10px 2.6rem;
    font-size: 1.6rem;
    color: var(--primary-color1);
    border-radius: 60px;
    background-color: #F4F6FF;
    -webkit-box-shadow: inset 0 3px 3px rgba(103, 157, 221, .1), inset 0 7.5px 15px rgba(103, 157, 221, .1);
    box-shadow: inset 0 3px 3px rgba(103, 157, 221, .1), inset 0 7.5px 15px rgba(103, 157, 221, .1);
    flex: 1;
    border: 1px solid;
    font-weight: 300;
}


.search-btn {
    display: flex;
    margin-left: 2.3rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: linear-gradient(55deg, var(--primary-color1), var(--primary-color1) 20%, var(--primary-color3) 51%, var(--primary-color1) 80%, var(--primary-color3)) var(--x, 0) / 200%;
    --outline-color: rgba(103, 157, 221, 0.1);
    --outline-size: 0.7rem;
    -webkit-box-shadow: 0 0 0 var(--outline-size) var(--outline-color);
    box-shadow: 0 0 0 var(--outline-size) var(--outline-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    --x: 100%;
}

.search-btn svg {
    max-height: 1.4rem;
    color: var(--secondary-color3);
}

#abc-sl-results-map-container {
    display: flex;
    width: 100%;
}

    #abc-store-locator-results ::-webkit-scrollbar-track {
        background-color: #e1ebf8;
        border-radius: 1rem;
        font-weight: 800
    }

    #abc-store-locator-results ::-webkit-scrollbar {
        width: 1rem;
        background-color: #e1ebf8;
        border-radius: 1rem
    }
    #abc-store-locator-results::-webkit-scrollbar-button {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }
    
    #abc-store-locator-results::-webkit-scrollbar-thumb {
        border-radius: 1rem;
        background-color: var(--primary-color3)
    }
    
    #abc-store-locator-results::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, var(--primary-color3), var(--primary-color1));
    }

    #abc-store-locator-results > * {
        direction: ltr;
    }

    #abc-store-locator-results {
        width: 40%;
        height: 500px;
        overflow-y: auto;
        color: var(--primary-color1);
        
        /* Position scrollbar on the left side */
        direction: rtl;
        padding-left: 1.4rem;
        height: 100%;
        max-height: 37vw;
        overflow-y: auto;
    
        /* Custom scrollbar styling */
        scrollbar-color: var(--primary-color3) #679ddd2b;
    }
#abc-store-locator-results, .gm-style-iw-d {
    color: var(--primary-color1);

    h3 {
        padding-left: calc(1.55rem + 1.4rem);
        position: relative;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        font-weight: 800;
        display: block;
        color: var(--primary-color1);


        .icon.icon-pin {
            position: absolute;
            top: 0;
            left: 0;
            width: 1.55rem;
            margin-right: 1.44rem;
            /* margin-bottom: -5px; */
            color: var(--primary-color3);
            -webkit-transition: all var(--base-transition) ease-in-out;
            transition: all var(--base-transition) ease-in-out;
        }
    }
    
    p {
        font-weight: 400;
        font-size: 1.8rem;
        line-height: 0.6;

    }

    strong {
        font-weight: 800;
    }

    a {
        font-size: 1.4rem;
        color: var(--primary-color1);
        text-transform: uppercase;
        font-weight: 600;

        svg {
            margin-left: .4rem;
            width: 1.8rem;
            margin-top: 24px;
            max-height: 1.2rem;
        }
    }
}

#abc-store-locator-map {
    width: calc(60% + var(--gutter-padding));
    height: 500px;
    margin-right: calc(var(--gutter-padding) * -1);
}

#abc-store-locator-results ul {
    list-style: none;
    padding: 0;
}

#abc-store-locator-results li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#abc-store-locator-results li:hover,
#abc-store-locator-results li.hover {
    background-color: #F4F6FF;
}

#abc-store-locator-results li:hover h3 .icon.icon-pin,
#abc-store-locator-results li.hover h3 .icon.icon-pin {
    color: var(--primary-color2);
}

#abc-store-locator-count {
    font-size: 2rem;
    margin-bottom: 5rem;

    p {
        strong {
            font-weight: 800;
            color: var(--primary-color1);
        }
    }
}

.gmnoprint.gm-style-mtc-bbw {
    display: none;
}

.ui-autocomplete {
    z-index: 9999 !important;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: none;
    margin-top: 10px;
    background: #fff;
    list-style: none;
    padding: 5px 0;
}

.ui-menu-item {
    padding: 5px;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.ui-menu-item

.ui-menu-item:hover {
    background-color: #f4f6ff;
}

.ui-menu-item .autocomplete-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="gray"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.gm-style .gm-style-iw-c, .gm-style-iw-d {
    padding: 0px 20px 20px 20px;
}


/* Responsive styles */
@media (max-width: 768px) {
    #abc-sl-results-map-container {
        flex-direction: column;
    }

    #abc-store-locator-results {
        width: 100%;
        margin-bottom: 20px;
    }

    #abc-store-locator-map {
        width: 100%;
    }
}

@media(min-width: 1280px) {
    #abc-store-locator-search {
        /* padding-right: clamp(calc(50vw - 1280px / 2), 3.5rem, 3.5rem) !important; */

        &::before {}
    }
}