/* Store Locator Base Styles */
.store-locator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.store-locator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
}

.store-locator-title {
    /*font-size: 2rem;*/
    font-weight: 700;
    color: #3A3A3A;
    margin: 0;
    line-height: 1.2;
}

.store-locator-desc {
    font-size: 1rem;
    color: #666;
    margin: 8px 0 0 0 !important;
    line-height: 1.5;
}

.store-locator-cat-image {
    height: 90px;
    width: auto;
    flex-shrink: 0;
}

/* Search Bar */
.store-location-search-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.location-search-field-group {
    display: flex;
    align-items: end;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.location-search-field-wrapper {
    position: relative;
    min-width: 150px;
    flex: 1;
}

.location-search-label {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.location-search-input, input#store-zip {
    width: 100%;
    outline: none !important;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #3A3A3A;
    border-bottom: 2px solid rgba(0, 0, 0, .125);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.location-search-input:focus, input#store-zip:focus {
    outline: none;
    background: #f8f9fa;
    border-bottom-color: #005BAB;
    box-shadow: 0 2px 4px rgba(0, 91, 171, 0.1);
}

.location-search-input::placeholder {
    color: #999;
}

#store-submit {
    /*background-color: #005BAB;*/
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

/*#store-submit:hover {*/
/*    background-color: #004a94;*/
/*}*/

#store-submit:focus {
    outline: 2px solid #005BAB;
    outline-offset: 2px;
}

/* Map and Location Lists Wrapper */
.store-map-wrapper {
    display: flex;
    height: 602px;
    width: 100%;
    overflow: hidden;
}

.store-location-lists-wrapper {
    width: 320px;
    min-width: 280px;
    max-width: 100%;
    overflow-y: auto;
    padding: 0 8px 8px 0;
    border-right: 1px solid rgba(0, 0, 0, .125);
}

.store-google-map-wrapper {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Location Items */
.store-location-item {
    border: 1px solid rgba(0, 0, 0, .125);
    margin-bottom: 12px;
    padding: 16px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.store-location-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /*transform: translateY(-2px);*/
}

.store-location-item.store-location-selected {
    border-color: #005BAB;
    box-shadow: 0 4px 12px rgba(0, 91, 171, 0.2);
}

.store-location-item.store-location-selected::after {
    content: "";
    background-color: #005BAB;
    display: block;
    position: absolute;
    width: 4px;
    top: -1px;
    left: -1px;
    bottom: -1px;
    border-radius: 4px 0 0 4px;
}

.single-location-title {
    font-size: 1.125rem !important;
    font-weight: 700;
    color: #3A3A3A;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.single-location-address {
    font-size: 0.875rem !important;
    font-weight: 400;
    color: #666;
    font-style: italic;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

.single-location-phone,
.single-location-email,
.single-location-website {
    display: block;
    font-size: 16px !important;
    font-weight: 400;
    color: #005BAB;
    text-decoration: none;
    /*margin: 4px 0;*/
    position: relative;
    transition: color 0.3s ease;
    margin-bottom: 0 !important;
}

.single-location-phone:hover,
.single-location-email:hover,
.single-location-website:hover {
    color: #004a94;
}

.single-location-phone,
.single-location-phone:focus,
.single-location-phone:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.single-location-phone span {
    color: #0b0b0b !important;
    font-weight: 500;
}

.marker-location-info a {
    padding: 4px 0;
    /*display: flex;*/
    /*flex-direction: column;*/
    /*!* gap: 1px; *!*/
    /*padding: 14px 0;*/
}

.google-map-container button.gm-ui-hover-effect {
    top: -9px !important;
    right: -8px !important;
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {

    /*.store-locator-title {*/
    /*    font-size: 1.75rem;*/
    /*}*/
    .store-locator-cat-image {
        height: 70px;
    }

    .store-location-lists-wrapper {
        width: 280px;
        min-width: 260px;
    }

    .location-search-field-group {
        gap: 16px;
    }

    .location-search-field-wrapper {
        min-width: 140px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .store-locator-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 24px;
        gap: unset;
    }

    /*.store-locator-title {*/
    /*    font-size: 1.5rem;*/
    /*    margin-bottom: 8px;*/
    /*}*/
    .store-locator-desc {
        margin-top: 0;
        /*font-size: 0.875rem;*/
    }

    .store-locator-cat-image {
        height: 60px;
        margin-top: 12px;
    }

    .store-location-search-bar {
        flex-direction: column;
        gap: 16px;
        /*margin-bottom: 32px;*/
    }

    .location-search-field-group {
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }

    .location-search-field-wrapper {
        min-width: auto;
        width: 100%;
    }

    #store-submit {
        width: 100%;
        padding: 12px;
        font-size: 1.1rem;
    }

    .store-map-wrapper {
        flex-direction: column-reverse;
        height: auto;
        gap: 0;
    }

    .store-location-lists-wrapper {
        width: 100%;
        min-width: auto;
        max-width: none;
        margin-top: 32px;
        padding: 0 0 8px 0;
        border-right: none;
        /*height: 600px;*/
        overflow-y: auto;
        max-height: 750px;
        height: auto;
        /*border-top: 1px solid rgba(0, 0, 0, .125);*/
    }

    .store-google-map-wrapper {
        height: 400px;
        min-height: 400px;
    }

    .store-location-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .single-location-title {
        font-size: 18px !important;
    }

    .single-location-address,
    .single-location-phone,
    .single-location-email,
    .single-location-website {
        font-size: 16px !important;
    }

    .location-search-button-wrapper {
        width: 100%;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 575px) {

    .store-locator-cat-image {
        height: 50px;
    }

    .location-search-input {
        padding: 6px 8px;
        font-size: 0.875rem;
    }

    #store-submit {
        padding: 10px;
        font-size: 1rem;
    }

    /*.store-google-map-wrapper {*/
    /*    height: 250px;*/
    /*    min-height: 250px;*/
    /*}*/
    .store-location-item {
        padding: 10px;
    }

    .single-location-title {
        font-size: 18px !important;
        margin-bottom: 8px;
    }

    .single-location-address,
    .single-location-phone,
    .single-location-email,
    .single-location-website {
        font-size: 16px !important;
    }
    /*.store-location-lists-wrapper {*/
    /*    height: 960px;*/
    /*}*/
}



/* Scrollbar Styling for Location List */
.store-location-lists-wrapper::-webkit-scrollbar {
    width: 6px;
}

.store-location-lists-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.store-location-lists-wrapper::-webkit-scrollbar-thumb {
    background: #005BAB;
    border-radius: 3px;
}

.store-location-lists-wrapper::-webkit-scrollbar-thumb:hover {
    background: #005BAB;
}

/* Focus Management for Accessibility */
.store-location-item:focus {
    outline: 2px solid #005BAB;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .store-locator {
        padding: 0;
    }

    /*.store-google-map-wrapper {*/
    /*    display: none;*/
    /*}*/
    .store-map-wrapper {
        height: auto;
        flex-direction: column;
    }

    .store-location-lists-wrapper {
        width: 100%;
        max-height: none;
        overflow: visible;
    }

    .store-location-item {
        break-inside: avoid;
        margin-bottom: 16px;
    }
}

/* market_style*/
/* Simple Google Maps Info Window */
.gm-style-iw-d {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    max-height: 469px !important;
}

.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Main Container */
.marker-info-window-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    max-height: 468px !important;
}

/* Header */

.marker-info-window-header .single-location-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 20px 20px 0 20px;
}

/* Content */
.marker-info-window-content {
    padding: 20px;
}

/* Location */
.location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.location .icon {
    /*margin-top: 2px;*/
    flex-shrink: 0;
}


.location p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.location-zip-error {
    color: #a94442;
    position: absolute;
    left: 0;
    margin-bottom: 0 !important;
    font-size: 12px;
    bottom: -24px;
}

.location-country-error {
    color: #a94442;
    position: absolute;
    left: 0;
    margin-bottom: 0 !important;
    font-size: 12px;
    bottom: -26px;
    line-height: 100%;
}

/* Contact Info */
.marker-location-info {
    margin-bottom: 16px;
}

.marker-location-info a {
    display: block;
    color: #005BAB;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}

.marker-info-window-content p.single-location-phone {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.marker-info-window-content p.single-location-phone a {
    padding: 0 !important;
}

.marker-location-info a:hover {
    text-decoration: underline;
}

.single-location-phone span {
    color: #333 !important;
    font-weight: 500;
}

/* CTA Button */
.marker-info-window-cta {
    width: 100% !important;
    background: #005BAB;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s linear;
}

/*.marker-info-window-cta:hover {*/
/*    background: #004a94;*/
/*}*/

.gm-style-iw-chr {
    position: absolute;
    top: 0;
    right: 0;
}

.gm-style-iw.gm-style-iw-c {
    max-width: 280px !important;
    max-height: 482px !important;
}


/* Mobile responsive */
@media screen and (max-width: 575px) {

    .marker-info-window-container {
        max-width: 250px;
    }

    .marker-info-window-header .single-location-title {
        font-size: 14px;
        padding: 12px 12px 0 12px;
    }

    .marker-info-window-content {
        padding: 12px;
    }

    .location p,
    .marker-location-info a {
        font-size: 14px;
    }

    /*p.marker-location-address {*/
    /*    font-size: 14px !important;*/
    /*}*/

    .marker-info-window-cta {
        padding: 8px 12px;
        font-size: 12px;
    }

    /*Gravity Form Rsponsive */
    .g-form-wrapper {
        max-width: 360px !important;
        padding: 20px;
    }

    .g-form-wrapper .gravity-form-popup textarea {
        height: 100px !important;
    }

    .g-form-wrapper .gform_wrapper.gravity-theme .ginput_complex {
        gap: 16px;
    }

    .gm-style-iw.gm-style-iw-c {
        max-width: 250px !important;
    }

    .location-country-error {
        bottom: -26px;
    }

    .rep-location-marker-image .uabb-imgicon-wrap .uabb-image-content img {
        max-width: 40px !important;
    }
    .rep-location-desc {

    }
}


/*Gravity Form popup*/

.gravity-form-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.g-form-wrapper {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.g-form-header .close-icon {
    position: absolute;
    top: 10px;
    right: 16px;
    cursor: pointer;
}

.gravity-form-popup .charleft.ginput_counter.gfield_description {
    margin-bottom: 0 !important;
}

.gravity-form-popup textarea {
    width: 100% !important;
    max-width: 100%;
    height: 140px !important;
}

.gravity-form-popup label {
    font-weight: 600 !important;
    line-height: 1.3 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.gravity-form-popup input, .gravity-form-popup textarea {
    /*   border: 1px solid #bbbbbb !important;*/
    /*}*/
}

.gform_wrapper.gravity-theme .gform_footer, .gform_wrapper.gravity-theme .gform_page_footer {
    padding-bottom: 0px !important;
}

/*Miles And Kilometers*/
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #005bab;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.location-search-distance-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}