/* ---------- Store locator (find_a_store.php) ---------- */
.store-locator {
    margin-top: 25px;
}

.store-locator-row {
    margin-bottom: 40px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.store-locator-row:after {
    content: "";
    display: table;
    clear: both;
}

.store-locator-sidebar {
    position: relative;
    z-index: 5;
    padding: 30px 25px;
    height: 650px;
    overflow-y: auto;
    background-color: #ffffff;
}

.store-locator-title {
    font-family: 'source_sans_proregular';
    font-size: 26px;
    color: #186cb4;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.store-locator-sidebar label {
    font-family: 'source_sans_proregular';
    font-size: 14px;
    color: #555555;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.store-locator-sidebar .form-control {
    font-family: Arial;
    border-radius: 3px;
}

.store-locator-search-box {
    position: relative;
}

.store-locator-search-box .form-control {
    padding-right: 45px;
}

.store-locator-search-btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 44px;
    border: 0 none;
    background-color: #186cb4;
    color: #ffffff;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

.store-locator-search-btn:hover,
.store-locator-search-btn:focus {
    background-color: #145C9C;
}

.store-locator-use-location {
    display: inline-block;
    margin-top: 8px;
    font-family: Arial;
    font-size: 13px;
    color: #186cb4;
    text-decoration: none;
}

.store-locator-use-location:hover,
.store-locator-use-location:focus {
    color: #145C9C;
    text-decoration: underline;
}

.store-locator-results {
    margin-top: 25px;
}

.store-locator-empty {
    font-family: 'source_sans_proregular';
    color: #777777;
    font-size: 15px;
}

.store-locator-map-col {
    position: relative;
    z-index: 1;
    padding: 0;
}

.store-locator-map {
    width: 100%;
    height: 650px;
}

.ui-autocomplete,
.ui-autocomplete.ui-front,
.ui-autocomplete.ui-front.ui-menu,
.ui-autocomplete.ui-front.ui-menu.ui-widget,
.ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content,
.ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content.ui-corner-all {
    position: absolute !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

.ui-autocomplete *,
.ui-autocomplete li,
.ui-autocomplete li *,
.ui-autocomplete .ui-menu-item,
.ui-autocomplete .ui-menu-item-wrapper,
.ui-autocomplete .ui-menu-item div,
.ui-autocomplete .ui-menu-item a {
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

.ui-autocomplete .ui-menu-item:hover,
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item.ui-state-active,
.ui-autocomplete .ui-menu-item .ui-state-focus {
    background-color: #f5f9fc !important;
}

.store-locator-infowindow h4 {
    font-family: 'source_sans_proregular';
    font-size: 15px;
    color: #f4700c;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

.store-locator-infowindow p {
    font-family: Arial;
    font-size: 13px;
    color: #333333;
    margin-bottom: 4px;
}

@media (max-width: 991px) {
    .store-locator-sidebar {
        height: auto;
        /*max-height: 400vh;*/
    }

    .store-locator-map {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .container-letsdoit-content-sm-6 {
        width: 100%;
    }

    .container-letsdoit-content-sm-6.marginleft {
        margin-right: 0px;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .container-letsdoit-item-bg-1,
    .container-letsdoit-item-bg-2,
    .container-letsdoit-item-bg-3,
    .container-letsdoit-item-bg-4,
    .container-letsdoit-item-bg-5,
    .container-letsdoit-item-bg-6,
    .container-letsdoit-item-bg-7,
    .container-letsdoit-item-bg-8,
    .container-letsdoit-item-bg-9,
    .container-letsdoit-item-bg-10,
    .container-letsdoit-item-bg-11,
    .container-letsdoit-item-bg-12,
    .container-letsdoit-item-bg-13,
    .container-promotion-item-bg-1 {
        background-size: cover;
    }

    .container-letsdoit-item-bg-1:hover,
    .container-letsdoit-item-bg-2:hover,
    .container-letsdoit-item-bg-3:hover,
    .container-letsdoit-item-bg-4:hover,
    .container-letsdoit-item-bg-5:hover,
    .container-letsdoit-item-bg-6:hover,
    .container-letsdoit-item-bg-7:hover,
    .container-letsdoit-item-bg-8:hover,
    .container-letsdoit-item-bg-9:hover,
    .container-letsdoit-item-bg-10:hover,
    .container-letsdoit-item-bg-11:hover,
    .container-letsdoit-item-bg-12:hover,
    .container-letsdoit-item-bg-13:hover,
    .container-promotion-item:hover .container-promotion-item-bg-1 {
        background-size: cover;
    }

    .container-letsdoit-item-banner {
        background-size: contain !important;
        background: url(/v2/images/category-banner-demo-mobile.jpg) no-repeat center;
    }

    .container-letsdoit-item-banner:hover {
        background-size: contain !important;
    }

    .container-wheretobuy-search .btn-search {
        width: 100%;
        display: block;
        margin-top: 30px;
    }

    .container-wheretobuy-reply {
        margin: 0px;
    }

    .container-letsdoit-content h2 {
        margin-top: 40px;
    }

    .container-aboutus-certified {
        display: none;
    }

    .container-aboutus-txt {
        margin-bottom: 30px;
    }
}

@media (max-width: 565px) {
    .recaptcha-form-right {
        position: relative;
        float: none;
    }

    #formulario .btn.btn-default.btn-left {
        position: relative;
        float: none;
    }

    .recaptcha-form-right {
        position: relative;
        float: none;
        margin-left: 0px;
        margin-top: 20px;
    }

    .container-aboutus-txt .btn-primary {
        display: block;
        margin-top: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    a.container-letsdoit-item .container-letsdoit-item-txt h2 {
        font-size: 20px;
    }

    a.container-letsdoit-item .container-letsdoit-item-txt h3 {
        font-size: 24px;
    }


}

/* Botón scroll to top - Mejorado para Bootstrap 3.3.7 */
.btn-scroll-top {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    background-color: #186cb4;
    border-color: #186cb4;
    color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-scroll-top:hover,
.btn-scroll-top:focus {
    background-color: #145C9C;
    border-color: #145C9C;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top i {
    font-size: 18px;
}

/* Versión solo icono en móviles */
@media (max-width: 768px) {
    .btn-scroll-top {
        bottom: 20px;
        right: 20px;
        padding: 10px 14px;
        font-size: 0;
        /* Oculta el texto */
        ;
    }

    .btn-scroll-top i {
        font-size: 20px;
    }

    .btn-scroll-top .btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .btn-scroll-top {
        bottom: 50px;
        right: 15px;
        padding: 8px 12px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-scroll-top i {
        font-size: 18px;
        margin: 0;
    }
}

/* Estilos base */
.store-locator-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 4px solid #337ab7;
    transition: all 0.2s ease;
}

.store-locator-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Header con icono y dirección */
.store-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.store-icon {
    color: #d9534f;
    font-size: 18px;
    margin-right: 0px;
    margin-top: 3px;
    flex-shrink: 0;
}

.store-address {
    flex: 1;
}

/* Para la Opción 1 (texto plano) */
.street {
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
    font-size: 14px;
}

/* Para la Opción 2 (líneas separadas) */
.street-line {
    margin: 0 0 2px 0;
    color: #444;
    font-size: 14px;
}

/* Para la Opción 3 (HTML directo) */
.store-address {
    margin-left: 9px;
}

.store-address p {
    margin: 0 0 3px 0;
    color: #444;
    font-size: 14px;
}

.store-address p:first-child {
    font-weight: 600;
    color: #333;
}

/* Ubicación (ciudad, estado) */
.location {
    color: #777;
    font-size: 13px;
    margin: 4px 0 0 0;
}

/* Teléfono */
.store-phone {
    color: #555;
    font-size: 13px;
    padding-left: 3px;
    margin-top: 5px;
}

.store-phone .glyphicon-phone-alt {
    color: #5cb85c;
    margin-right: 8px;
}

.store-phone a {
    color: #337ab7;
    text-decoration: none;
}

.store-phone a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .store-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-icon {
        margin-bottom: 5px;
        margin-top: 0;
    }

    .store-phone {
        padding-left: 0;
    }
}

/* ---------- Fix InfoWindow: botón cerrar (X) y layout ---------- */
.gm-style-iw.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    max-width: 320px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}

/* Botón de cerrar (X) - reposicionarlo y estilizarlo */
.gm-style-iw-chr {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    z-index: 10 !important;
}

.gm-style-iw-chr button.gm-ui-hover-effect {
    width: 26px !important;
    height: 26px !important;
    top: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    opacity: 0.85 !important;
}

.gm-style-iw-chr button.gm-ui-hover-effect:hover {
    opacity: 1 !important;
    background-color: #ffffff !important;
}

.gm-style-iw-chr button.gm-ui-hover-effect>span {
    width: 14px !important;
    height: 14px !important;
    margin: 6px !important;
}

/* Contenido del InfoWindow */
.store-locator-infowindow {
    padding: 16px 20px 16px 16px;
    font-family: Arial, sans-serif;
}

.store-locator-infowindow .store-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-right: 24px;
    /* deja espacio para la X */
}

.store-locator-infowindow .store-icon {
    color: #186cb4;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.store-locator-infowindow .store-address {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.store-locator-infowindow .store-address .store-name {
    font-family: 'source_sans_proregular', Arial, sans-serif;
    font-weight: bold;
    color: #186cb4;
    font-size: 15px;
    margin: 0 0 4px 0;
    text-transform: none;
}

.store-locator-infowindow .store-address .location {
    color: #666;
    font-size: 12px;
    margin: 2px 0 0 0;
}

.store-locator-infowindow .store-phone {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
    padding-left: 24px;
}

.store-locator-infowindow .store-phone .glyphicon {
    color: #5cb85c;
    margin-right: 6px;
}

.store-locator-infowindow .store-phone a {
    color: #337ab7;
    text-decoration: none;
}

.store-locator-infowindow .store-phone a:hover {
    text-decoration: underline;
}

/* Quitar la flecha (tail) del InfoWindow si quieres un look más limpio */
.gm-style-iw-tc::after {
    background: none !important;
    box-shadow: none !important;
}

/* Autocomplete: que se vea como las tarjetas */
.ui-autocomplete.ui-widget-content {
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    padding: 6px !important;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-autocomplete .ui-menu-item {
    border-radius: 4px;
    padding: 0 !important;
    margin-bottom: 4px;
    border-bottom: 1px black dotted;
}

.ui-autocomplete .ui-menu-item .store-locator-card-content {
    padding: 10px 12px;
}

.ui-autocomplete .ui-menu-item .store-locator-card-content.compact .store-name {
    font-family: 'source_sans_proregular', Arial, sans-serif;
    font-weight: bold;
    color: #186cb4;
    font-size: 13px;
    margin-bottom: 2px;
}

.ui-autocomplete .ui-menu-item .store-locator-card-content.compact .store-details {
    color: #666;
    font-size: 11px;
    line-height: 1.3;
}

.glyphicon-map-marker {
    color: red !important;
}

/* Teléfono con float */
.store-phone {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
    clear: both;
    overflow: hidden; /* limpia el float */
}

.store-phone-icon {
    float: left;
    width: 20px;
    color: #5cb85c;
    font-size: 13px;
    line-height: 1.4;
}

.store-phone-text {
    float: left;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
    width: calc(100% - 20px);
}

.store-phone-text a {
    color: #337ab7;
    text-decoration: none;
}

.store-phone-text a:hover {
    text-decoration: underline;
}

.store-phone-clear {
    clear: both;
}

/* Variante para InfoWindow (por si quieres padding distinto) */
.store-locator-infowindow .store-phone {
    padding-left: 0;
    margin-top: 8px;
}

.store-locator-infowindow .store-phone-icon {
    color: #5cb85c;
    margin-right: 6px;
}

.ui-menu .ui-menu-item a{
    line-height: 1.0;
}


.gm-style-iw-d .store-phone-text{
    width: calc(100% - 30px);
}