/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/** tamaño de los iconos de whatsapp y facebook */


.after_white::after {
    background-color: #fff !important;
}

i.directorist-icon-mask.escuda-footer::after {
    height: 30px;
    width: 30px;
    background-color: #ffffff;
}

.site-header {
    z-index: 10000;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #d32b1f;
    ;
    color: #fff;
}

.select2-results__option {
    color: #1c1515;
}

/* que los anchor con el cursor tengan apariencia clicleable*/
/* porque llama a los modales en javascrip con onclick*/
[data-listinimg]:hover {
    cursor: pointer;
}

.marker-cluster-small div {
    background-color: rgba(211, 43, 31, 1) !important;
}

.marker-cluster-small {
    background-color: rgba(211, 43, 31, 0.9) !important;
}

/* gekimarketing-child\style.css*/
/* ajustando el largo de los selects*/
select#input_2_19 {
    height: 40px;
}

/*ocultando la etiqueta direccion*/
label#input_2_11_1_label {
    display: none;
}


/*selector del qr en el mapa*/
#map.leaflet-container .leaflet-popup-content-wrapper .leaflet-popup-content .atbdp-map.atbdp-body img {
    padding: 20px;
    padding-bottom: 0px;

}

/*boton de cerrar el qr en el mapa*/
#map.leaflet-container .leaflet-popup-close-button {
    background: #d32b1f;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: -12px;
}

.main-header-bar.ast-sticky-active {
    background-color: #000000d3 !important;
    backdrop-filter: blur(10px) !important;
}


i[style*="--directorist-icon: url(https://stage.escudamotorcycles.com/wp-content/uploads/2025/08/icono-escuda-pointer-30x30-1.svg)"]::after {
    background-color: #d32b1f;
}

.directorist-listing-single {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 5px 20px;
}

/* para centrar el footer en responsive*/
@media (max-width: 544px) {
    section#block-23 div {
        justify-content: center;
    }

    section#block-16 {
        text-align: center;
    }
}

/*color de fondo al icono que muestra el escroll*/
.escuda_scroll_icon .elementor-icon {
    background: #ffffff;
    border-radius: 20px;
    padding: 7px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 5px 20px;
}

/*hacer el contenedor de resultados scrolleable*/
.escuda_contenedor_resultados {
    overflow-y: auto;
    height: 441px;
}

#ast-scroll-top {
    background-color: #d32b1f;
}


/* que las direcciones no se desborden en los consecionarios*/
.directorist-listing-single__content {
    width: 100%;
}

/*quitar doble flecha*/
select,
.select2-container .select2-selection--single {
    /*
    background-image: url(data:image/svg+xml,%3Csvg class='ast-arrow-svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='26px' height='16.043px' fill='%23334155' viewBox='57 35.171 26 16.043' enable-background='new 57 35.171 26 16.043' xml:space='preserve' %3E%3Cpath d='M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z'%3E%3C/path%3E%3C/svg%3E);
    */
    background-image: unset;
}

/*ponerle colo a los campos del formulario*/
.gform_required_legend {
    color: #1e232a;
}

/*border oscuro en seleccionar estado y detectar ubicacion*/
.directorist-search-form-top.directorist-flex.directorist-align-center.directorist-search-form-inline {
    border: solid 2px black;
    background-color: white;
}

@media (max-width: 544px) {


    /*border oscuro en seleccionar estado y detectar ubicacion*/
    .directorist-search-form-top.directorist-flex.directorist-align-center.directorist-search-form-inline {
        border: none;
    }

    /*para resaltar el select de estados*/
    .directorist-search-contents .directorist-search-form-top .directorist-search-field:not(:last-child) {
        border-bottom: 1px solid #000000;
    }

    span.ast-icon.icon-arrow {
        color: #045cb4;
    }

    /* poner las flechas en el menu movil*/
    .directorist-search-form-wrap.directorist-with-search-border .directorist-search-form-top {
        padding: 25px;
    }

    /*en movil que los botones usen el 100% del ancho*/
    a.directorist-btn.directorist-btn-lg.directorist-btn-dark.directorist-btn-search,
    .directorist-search-form-action,
    .directorist-search-form-action__submit,
    .directorist-search-form-action__submit .directorist-btn-search {
        width: 100%;
    }

}

/* que el lightboox se vea el boton de cerrar */
.dialog-widget.dialog-lightbox-widget.dialog-type-buttons.dialog-type-lightbox.elementor-lightbox {
    z-index: 10000;
}

/*retonar en formularios unicos */
a.directorist-return-back {
    color: #2d2a26;
}

/*para que la paginas de aterrizaje de los consecionarios tengan un margen*/
.directorist-single-contents-area.directorist-w-100 {
    margin-top: 40px;
}


/*para que el icono de escuda se vea rojo*/

.leaflet-marker-icon.myDivIcon .directorist-icon-mask:after {
    width: 25px;
    height: 25px;
    background-color: #e1251b;
}

/*poner close boton en rojo*/
.directorist-single-map.leaflet-container .leaflet-popup-close-button {
    background: #d32b1f;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: -15px;
}

.directorist-single-map.leaflet-container .leaflet-popup-close-button:hover {
    color: white
}

.leaflet-popup-content .map-info-wrapper .map-info-img {
    padding: 10px;
    padding-bottom: 0;
}

@media (max-width: 544px) {
    .elementor-element.elementor-element-c90dece.e-con-full.e-flex.e-con {
        display: none;
    }
}

/* ocultar boton de busqueda*/
.directorist-btn.directorist-btn-lg.directorist-btn-dark.directorist-btn-search:not(#bnt_ubicacion) {
    display: none;
}

/*ocultar buscar por estados*/
.directorist-search-field.directorist-form-group.directorist-search-query {
    display: none;
}

/*poner el texto de las redes sociales en negro en las paginas unicas*/
li.directorist-social-links__item a {
    color: black;
}

.elementor-icon-list-item a {
    text-decoration: none;
}

.directorist-search-form-action {
    display: none;
}



/* --- Final Search Bar Polish --- */


/* 2. Style the 'Detectar mi ubicación' button to match the target design */
#bnt_ubicacion {
    background-color: #333 !important;
    /* Dark grey background */
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
}

/* --- Search Bar Polish: Padding & Borders --- */

/* Add more padding to the main container for more "air" */
.directorist-search-form-top {
    padding: 20px !important;
}

/* Target the select2 dropdown container to remove the border */
.directorist-search-field-location .select2-container--default .select2-selection--single {
    border: none !important;
    background-color: transparent !important;
}

/* Adjust the height of the select2 input to ensure vertical alignment */
.directorist-search-field-location .select2-selection--single {
    height: 40px !important;
    line-height: 40px !important;
}

.directorist-search-field-location .select2-selection__rendered {
    line-height: 40px !important;
}

.directorist-search-field-location .select2-selection__arrow {
    height: 40px !important;
}

/* --- End of Search Bar Polish --- */

/* --- QR Code Styling --- */
div[id^="qrcode-"] img {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    margin-bottom: 10px;
    /* Center the image */
}

/* === FIX FOR CUSTOM MAP ICON === */
/* Override the default plugin mask icon with the custom SVG */
.atbd_map_shape .directorist-icon-mask:after {
    -webkit-mask: url('https://stage.escudamotorcycles.com/wp-content/uploads/2025/08/icono-escuda-pointer-30x30-1.svg') center center / contain no-repeat !important;
    mask: url('https://stage.escudamotorcycles.com/wp-content/uploads/2025/08/icono-escuda-pointer-30x30-1.svg') center center / contain no-repeat !important;
    background-color: #D32B1F !important;
    /* This will be the color of your SVG */
}

/* --- Search Bar Redesign (Pill Style) --- */

/* 1. Main Container: Unify, round corners, add shadow */
.directorist-search-form-top {
    border: 1px solid #e0e0e0 !important;
    /* Softer border */
    background-color: white !important;
    border-radius: 50px !important;
    /* Fully rounded "pill" shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    padding: 5px 5px 5px 20px !important;
    /* Asymmetrical padding */
    display: flex !important;
    align-items: center !important;
    overflow: hidden;
    /* Ensures button corners don't stick out */
}

/* 2. Location Field: Expand and remove internal borders */
.directorist-search-field-location {
    flex-grow: 1;
    /* Take up available space */
    padding-right: 15px;
    /* Space between text and button */
}

.directorist-search-field-location .select2-container--default .select2-selection--single {
    border: none !important;
    background-color: transparent !important;
    height: 45px !important;
    line-height: 45px !important;
}

.directorist-search-field-location .select2-selection__rendered,
.directorist-search-field-location .select2-selection__placeholder {
    line-height: 45px !important;
}

.directorist-search-field-location .select2-selection__arrow {
    height: 45px !important;
}


/* 3. "Detectar mi ubicación" Button: Integrate into the container */
#bnt_ubicacion {
    background-color: #333 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    /* Match container's rounding */
    margin: 0 !important;
    /* Remove external margin */
    padding: 10px 20px !important;
    /* Adjust padding */
    white-space: nowrap;
    /* Prevent text wrapping */
    flex-shrink: 0;
    /* Prevent button from shrinking */
}

/* --- End of Search Bar Redesign --- */

/* --- Hide Category Search Field (Robust Method) --- */
.directorist-search-form-top .directorist-search-field.input-has-noLabel {
    display: none !important;
}

/* Ocultar la imagen en el popup del mapa */
.map-listing-card-single__img {
    display: none !important;
}

.map-listing-card-single__content__title {
    font-weight: 700;
    margin-top: 10px !important;
}