/* === Contenedor Principal === */
.pys-station-locator-wrapper {
    /* Define variables a nivel de widget para que Elementor las controle */
    --pys-left-panel-width: 380px;
    --pys-detail-panel-width: 420px;
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pys-station-results-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* === Filtros === */
.pys-filters-container { background-color: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px solid #e5e5e5; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.pys-filter-group, .pys-filter-group-buttons { display: flex; gap: 10px; align-items: center; }
.pys-filter-group { flex: 1 1 200px; position: relative; }
.pys-filter-group-buttons { flex-grow: 0; flex-shrink: 0; }
.pys-filter-group-search { flex: 1 1 250px; }
.pys-form-control, .pys-form-select { padding: 10px 15px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; width: 100%; height: 42px; background-color: #fff; box-sizing: border-box; margin: 0; }
.pys-form-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 35px; }
.pys-search-suggestions { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #fff;  border-top: none; border-radius: 0 0 4px 4px; z-index: 1000; max-height: 200px; overflow-y: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pys-search-suggestions ul { list-style: none; margin: 0; padding: 0; }
.pys-search-suggestions li { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #eee; transition: background-color 0.2s ease; font-size: 14px; }
.pys-search-suggestions li:last-child { border-bottom: none; }
.pys-search-suggestions li:hover, .pys-search-suggestions li.active { background-color: #f5f5f5; color: #2271b1; }

/* === Filtros Múltiples === */
.pys-multi-filter-button {
    width: 100%;
    height: 42px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}
.pys-multi-filter-button .dashicons {
    transition: transform 0.2s ease-in-out;
}
.pys-multi-filter-button.open .dashicons {
    transform: rotate(-180deg);
}
.pys-multi-filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 10px;
    z-index: 1001;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.pys-multi-filter-dropdown label {
    display: block;
    padding: 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}
.pys-multi-filter-dropdown label:hover {
    background-color: #f0f0f0;
}
.pys-multi-filter-dropdown label input {
    margin-right: 8px;
}

/* === Botones === */
.pys-button { height: 42px; box-sizing: border-box; margin: 0; padding: 10px 15px; font-size: 14px; border-radius: 4px; border: 1px solid #2271b1; background-color: #2271b1; color: #fff; cursor: pointer; text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.pys-button:hover { background-color: #1e639a; border-color: #1e639a; }
.pys-button.pys-button-secondary { background-color: #6c757d; border-color: #6c757d; }
.pys-button.pys-button-secondary:hover { background-color: #5a6268; }
.pys-button.pys-button-icon { width: 42px; padding: 0; flex-shrink: 0; }
.pys-button.pys-button-icon .dashicons { font-size: 22px; line-height: 1; }
#pys-use-my-location { width: 42px; flex-shrink: 0; padding: 0; }
.pys-button.pys-button-small { height: auto !important; padding: 5px 10px !important; font-size: 12px !important; }

/* === Estilos para Botones de Acción con Íconos === */
.pys-action-button {
    gap: 8px;
    position: relative;
    height: auto;
}
.pys-action-button .elementor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pys-action-button .elementor-icon i,
.pys-action-button .elementor-icon svg {
    height: 1em;
    width: 1em;
}
.pys-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.pys-copy-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* === Layout y Componentes === */
.pys-map-container { flex: 1 1 55%; min-width: 300px; min-height: 400px; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid #e5e5e5; }
#pys-stations-map { width: 100%; height: 100%; }
.pys-list-container { flex: 1 1 45%; min-width: 300px; max-height: 400px; overflow-y: auto; padding-right: 10px; }
.pys-loader-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); z-index: 10; display: none; align-items: center; justify-content: center; transition: opacity 0.3s; }
.pys-loader-spinner { border: 5px solid #f3f3f3; border-top: 5px solid #2271b1; border-radius: 50%; width: 50px; height: 50px; animation: pys-spin 1s linear infinite; }
@keyframes pys-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.pys-list-header { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 15px 10px; border-bottom: 1px solid #e0e0e0; margin-bottom: 15px; }
.pys-list-header-info { display: flex; align-items: baseline; gap: 8px; }
.pys-list-header-info h3 { margin: 0; font-size: 1.1rem; color: #333; }
.pys-list-header-info span { font-size: 0.9rem; color: #777; }
.pys-list-header .pys-button .dashicons { transition: transform 0.3s ease; }

/* === Estilos de la Tarjeta de Estación === */
.pys-station-card { 
    display: flex; 
    gap: 15px; 
    padding: 15px; 
    border: 1px solid #e5e5e5; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    background-color: #fff; 
    align-items: center; 
    justify-content: space-between;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pys-station-card:hover, .pys-station-card.pys-station-card--highlight { 
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    border-color: #2271b1;
    transform: translateY(-3px);
}
.pys-card-content { flex-grow: 1; }
.pys-card-content h3 { margin: 0 0 5px 0; font-size: 1.1rem; }
.pys-card-content p { margin: 0; font-size: 0.9rem; color: #555; }
.pys-card-content .pys-card-distance { margin-top: 8px; font-size: 0.85rem; }
.pys-card-actions { margin-left: auto; }

.pys-no-results, .pys-loading-text { padding: 20px; text-align: center; color: #777; }
.pys-loading-more { text-align: center; padding: 10px; display: none; }

/* === Estilos Base del Modal === */
.pys-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1050; display: none; align-items: center; justify-content: center; }
.pys-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.pys-modal-content { position: relative; background-color: #fff; border-radius: 8px; width: 90%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.pys-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #e5e5e5; background-color: #f7f7f7;}
.pys-modal-title { margin: 0; font-size: 1.8rem; flex-grow: 1 }
.pys-modal-close-button { background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 5px; color: #555; }
.pys-modal-body { padding: 20px; overflow-y: auto; display: flex; gap: 20px; flex-wrap: wrap; overflow-x: hidden; flex: 1; min-height: 0; }
.pys-modal-info p { margin: 0 0 12px 0; border-bottom: 1px solid #f0f0f0; padding-bottom: 12px; }
.pys-modal-info p:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pys-modal-info strong { color: #333; display: block; margin-bottom: 2px; font-size: 0.9em; }
.pys-modal-footer { padding: 15px; border-top: 1px solid #e5e5e5; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center;}
.pys-modal-gallery { flex-shrink: 0; }
.pys-modal-gallery img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.pys-modal-social-links-wrapper { margin-right: auto; }
.pys-modal-social-links { display: flex; gap: 8px; }
.pys-modal-social-links a { color: #fff; background-color: #ccc; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.pys-modal-social-links .facebook { background-color: #3b5998; }
.pys-modal-social-links .x_twitter { background-color: #000; }
.pys-modal-social-links .instagram { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.pys-modal-social-links .linkedin { background-color: #0077b5; }
.pys-modal-social-links .youtube { background-color: #cd201f; }
.pys-modal-social-links .tiktok { background-color: #000; }
body.pys-modal-open { overflow: hidden; }

/* === Estilos para Layouts del Modal (Controlados por Elementor) === */
.pys-modal-layout-img-top .pys-modal-body { flex-direction: column; flex-wrap: nowrap; }
.pys-modal-layout-img-left .pys-modal-body { flex-direction: row; }
.pys-modal-layout-img-right .pys-modal-body { flex-direction: row-reverse; }
.pys-modal-layout-img-center .pys-modal-body { flex-direction: column; align-items: center; text-align: center; }
.pys-modal-layout-img-top .pys-modal-info { width: 100%; }
.pys-modal-layout-img-left .pys-modal-info, .pys-modal-layout-img-right .pys-modal-info { flex-grow: 1; }
#pys-modal-description { width: 100%; flex-basis: 100%; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }

/* === Estilos del InfoWindow === */
.gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 8px !important; box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important; }
.gm-style .gm-style-iw-d { overflow: auto !important; }
.pys-infowindow { display: flex; gap: 12px; padding: 12px; max-width: 280px; }
.pys-infowindow-image img { width: 80px; height: auto; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.pys-infowindow-content { flex: 1; display: flex; flex-direction: column; }
.pys-infowindow-title { margin-bottom: 4px; font-weight: bold; font-size: 1.1em; }
.pys-infowindow-address { margin: 0 0 10px 0; color: #555; font-size: 0.9em; }
.pys-infowindow-details-button { margin-top: auto; }

/* === Estilos para Layouts del InfoWindow (Controlados por Elementor) === */
.pys-infowindow-img-top .pys-infowindow { flex-direction: column; }
.pys-infowindow-img-left .pys-infowindow { flex-direction: row; }
.pys-infowindow-img-center .pys-infowindow { flex-direction: column; align-items: center; text-align: center; }

/* === Layout de Pantalla Completa === */
.pys-layout--fullscreen {
    max-width: none;
    margin: 0;
    height: 85vh;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.pys-layout--fullscreen .pys-fullscreen-panel-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pys-layout--fullscreen .pys-fullscreen-left-panel {
    width: var(--pys-left-panel-width);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pys-layout--fullscreen .pys-fullscreen-right-panel {
    flex-grow: 1;
    position: relative;
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pys-layout--fullscreen .pys-filters-container {
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    flex-shrink: 0;
}

.pys-layout--fullscreen #pys-stations-list-container {
    flex-grow: 1;
    height: auto;
    max-height: none;
    overflow-y: auto;
    padding: 15px;
}

.pys-layout--fullscreen #pys-stations-map-container {
    height: 100%;
    width: 100%;
    min-height: initial;
    border: none;
    border-radius: 0;
}

/* === Panel de Detalles Deslizante === */
.pys-station-detail-panel {
    width: var(--pys-detail-panel-width); 
    height: 100%;
    position: absolute;
    top: 0;
    right: calc(-1 * var(--pys-detail-panel-width));
    background-color: #fff;
    z-index: 15;
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.pys-panel-header { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #e5e5e5; flex-shrink: 0; }
.pys-panel-title { margin: 0; font-size: 1.5rem; font-weight: 600; flex-grow: 1; }
.pys-panel-close-button { background: none; border: none; font-size: 2.5rem; line-height: 1; cursor: pointer; padding: 0 5px; color: #555; font-weight: 300; }
.pys-panel-body { padding: 20px; overflow-y: auto; flex-grow: 1; }
.pys-panel-gallery img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }
.pys-panel-info p { margin: 0 0 14px 0; font-size: 0.95rem; }
.pys-panel-info strong { display: block; margin-bottom: 4px; color: #333; font-size: 0.85em; text-transform: uppercase; }
.pys-panel-description-wrapper { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.pys-panel-footer { padding: 20px; border-top: 1px solid #e5e5e5; background-color: #f9f9f9; flex-shrink: 0; display: flex; flex-direction: column; gap: 15px; }
.pys-panel-footer .pys-main-buttons, .pys-modal-footer .pys-main-buttons { display: flex !important; gap: 12px !important; width: 100% !important; }
.pys-panel-footer .pys-main-buttons .pys-button, .pys-modal-footer .pys-main-buttons .pys-button { flex: 1; }
.pys-panel-social-links-wrapper { margin-right: auto; }
.pys-panel-social-links { display: flex; gap: 8px; }
.pys-panel-social-links a { color: #fff; background-color: #ccc; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }

.pys-layout--fullscreen.pys-detail-view-active .pys-station-detail-panel {
    right: 0;
}
.pys-layout--fullscreen.pys-detail-view-active .pys-fullscreen-right-panel {
    width: calc(100% - var(--pys-left-panel-width) - var(--pys-detail-panel-width));
}

/* === Responsive y Amenidades === */
.pys-mobile-view-toggle {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pys-mobile-view-toggle .pys-button .dashicons {
    margin-right: 5px;
}

.pys-amenity-filters {
    display: flex;
    gap: 10px;
    flex-grow: 0;
    flex-shrink: 0;
}
.pys-amenity-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    transition: all 0.2s ease;
    min-width: 60px;
    height: 48px;
    box-sizing: border-box;
}

.pys-amenity-filter .dashicons {
    font-size: 18px;
    height: 18px;
    width: 18px;
    margin-bottom: 2px;
}

.pys-amenity-filter:hover {
    background-color: #e9e9e9;
    border-color: #999;
}

.pys-amenity-filter.active {
    background-color: #e1f0fa;
    border-color: #2271b1;
    color: #2271b1;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pys-station-results-wrapper {
        flex-direction: column;
    }
    .pys-map-container, .pys-list-container {
        flex-basis: auto;
        height: 55vh;
        max-height: 55vh;
    }

    /* Layout de Pantalla Completa por defecto en móvil */
    .pys-layout--fullscreen {
        height: 90vh;
    }
    .pys-layout--fullscreen .pys-fullscreen-panel-wrapper {
        flex-direction: column;
    }

    .pys-layout--fullscreen .pys-fullscreen-left-panel,
    .pys-layout--fullscreen .pys-fullscreen-right-panel {
        width: 100% !important;
        height: 100%;
        border-right: none;
    }

    .pys-layout--fullscreen .pys-fullscreen-right-panel {
        display: none;
    }
    .pys-layout--fullscreen.pys-mobile-map-active .pys-fullscreen-left-panel {
        display: none;
    }
    .pys-layout--fullscreen.pys-mobile-map-active .pys-fullscreen-right-panel {
        display: block;
    }

    .pys-layout--fullscreen .pys-mobile-view-toggle {
        display: block;
    }

    /* Regla para desactivar el modo fullscreen en móvil */
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled {
        height: auto;
        border: none;
        overflow: visible;
    }
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled .pys-fullscreen-panel-wrapper {
        display: block;
        height: auto;
    }
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled .pys-fullscreen-left-panel,
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled .pys-fullscreen-right-panel {
        position: static;
        width: 100% !important;
        height: auto;
    }
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled .pys-filters-container {
        border-radius: 8px;
        border: 1px solid #e5e5e5;
        margin-bottom: 20px;
    }
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled .pys-fullscreen-right-panel {
        display: block;
        height: 55vh;
    }
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled #pys-stations-map-container {
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        height: 100%;
        margin-bottom: 20px;
    }
    .pys-layout--fullscreen.pys-fullscreen-mobile-disabled .pys-mobile-view-toggle {
        display: none;
    }
}
/* === INICIO: ESTILOS PARA FILTROS AVANZADOS Y LAYOUT DINÁMICO === */

/* Contenedor de filtros avanzados, oculto por defecto */
#pys-advanced-filters {
    display: none;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* El botón "Más Filtros" ahora necesita alinearse con los otros */
.pys-filters-container .pys-filter-group-buttons {
    flex-grow: 0;
    flex-shrink: 0;
}

#pys-toggle-more-filters .dashicons {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

#pys-toggle-more-filters.active .dashicons {
    transform: rotate(180deg);
}

/*
 * Magia para el layout Fullscreen:
 * Cuando los filtros avanzados están cerrados, el contenedor de filtros
 * ocupa menos espacio, permitiendo que la lista de estaciones crezca.
*/
.pys-layout--fullscreen .pys-fullscreen-left-panel {
    display: flex;
    flex-direction: column;
}

.pys-layout--fullscreen .pys-filters-container {
    /* No cambia */
    flex-shrink: 0; 
}

.pys-layout--fullscreen #pys-stations-list-container {
    /* Este es el cambio clave: la lista ahora es flexible y crecerá */
    flex-grow: 1;
    min-height: 0; /* Necesario para que flexbox funcione correctamente en algunos navegadores */
}

/* === FIN: ESTILOS PARA FILTROS AVANZADOS === */
/* === INICIO: AJUSTES DE ESPACIADO PARA FILTROS === */

/* Aumentamos el espacio general entre los grupos de filtros */
.pys-filters-container, 
#pys-advanced-filters {
    gap: 20px; /* Antes era 15px */
}

/* Añadimos un margen inferior a cada grupo para mejorar el espaciado vertical cuando se apilan */
.pys-filters-container .pys-filter-group {
    margin-bottom: 5px;
}

/* === FIN: AJUSTES DE ESPACIADO === */
/* === INICIO: ESTILOS PARA BOTÓN DE FILTRO COMO ÍCONO === */

/* El contenedor ahora alinea 3 elementos */
.pys-filter-group-location {
    display: flex;
    align-items: center;
}

/* Agrega un pequeño espacio entre los botones */
.pys-filter-group-location .pys-button-icon + .pys-button-icon {
    margin-left: 5px;
}

/* Lógica para intercambiar los íconos del botón de filtros */
/* 1. Ocultamos el ícono de "cerrar" (X) por defecto */
#pys-toggle-more-filters .dashicons-no-alt {
    display: none;
}

/* 2. Cuando el botón tiene la clase .active... */
#pys-toggle-more-filters.active .dashicons-filter {
    display: none; /* Ocultamos el ícono de filtro */
}

#pys-toggle-more-filters.active .dashicons-no-alt {
    display: inline-block; /* Mostramos el ícono de "cerrar" */
}

/* === FIN: ESTILOS PARA BOTÓN DE FILTRO === */

/* === Lógica para íconos del botón "Más Filtros" === */
#pys-toggle-more-filters .pys-more-filters-icon--open {
    display: none;
}
#pys-toggle-more-filters.active .pys-more-filters-icon--closed {
    display: none;
}
#pys-toggle-more-filters.active .pys-more-filters-icon--open {
    display: inline-block;
}
/* === INICIO: ESTILOS REFORZADOS PARA BOTONES DE ACCIÓN === */

/* Contenedor principal de los botones */
.pys-panel-footer .pys-main-buttons,
.pys-modal-footer .pys-main-buttons {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 15px !important; /* Añade un espacio superior */
}

/* Estilo general para CADA botón de acción */
.pys-station-locator-wrapper .pys-action-button {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 15px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    border: none !important;
    transition: transform 0.2s ease !important;
}

.pys-station-locator-wrapper .pys-action-button:hover {
    transform: translateY(-2px);
}

/* Estilo para los íconos dentro de los botones */
.pys-station-locator-wrapper .pys-action-button .elementor-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important; /* <- Tamaño de fuente base */
    line-height: 1 !important;
}
.pys-station-locator-wrapper .pys-action-button .elementor-icon svg {
    width: 1em;  /* Hereda el tamaño de la fuente (16px) */
    height: 1em;
}
/* Colores específicos */

.pys-action-button--directions {
    background-color: #28a745 !important; /* Verde */
    color: #ffffff !important;
}

.pys-action-button--share {
    background-color: #007bff !important; /* Azul */
    color: #ffffff !important;
}

.pys-action-button--billing {
    background-color: #6c757d !important; /* Gris */
    color: #ffffff !important;
}

/* === FIN: ESTILOS REFORZADOS PARA BOTONES DE ACCIÓN === */

/* === REESTRUCTURACIÓN TOTAL DEL MODAL (LIMPIEZA DE COLISIONES) === */

.pys-gm-content {
    max-width: 420px !important;
    width: 95% !important;
    background: #fff !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh !important;
    position: relative !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    overflow: hidden !important; /* Mantiene la imagen y contenido en su sitio */
}

/* Botón cerrar: Independiente de la imagen */
.pys-gm-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
    background: white !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
    color: #333 !important;
}

/* Contenedor de Imagen: Altura fija y limpia */
.pys-gm-cover {
    width: 100% !important;
    height: 210px !important;
    background: #eee !important;
    overflow: hidden !important;
}
.pys-gm-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Título: Fuera de la imagen, con su propio espacio */
.pys-gm-header {
    padding: 20px 20px 10px !important;
    background: #fff !important;
    text-align: center !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.pys-gm-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Botones de Acción: GRID para evitar desbordes */
.pys-gm-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Volvemos a los botones redondos y limpios */
.pys-gm-action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.pys-gm-icon-circle {
    width: 42px !important;
    height: 42px !important;
    background: #e8f0fe !important;
    border-radius: 50% !important; /* Círculo perfecto */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 6px !important;
    color: #1a73e8 !important;
}

.pys-gm-icon-circle .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.pys-gm-action-btn span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #1a73e8 !important;
    text-align: center !important;
}

/* Cuerpo del Modal: Solución al solapamiento de texto */
.pys-gm-body {
    padding: 20px !important;
    overflow-y: auto !important;
    flex-grow: 1 !important;
}

.pys-modal-info p {
    display: grid !important;
    grid-template-columns: 30px 1fr !important; /* Icono a la izquierda, texto a la derecha */
    gap: 10px !important;
    margin-bottom: 15px !important;
    align-items: start !important;
    line-height: 1.6 !important; /* Evita que el texto se monte */
}

/* Limpieza de duplicados o solapamientos */
.pys-modal-info span {
    display: block !important;
    font-size: 14px !important;
    color: #5f6368 !important;
    word-break: break-word !important;
}

.pys-modal-info .dashicons {
    color: #1a73e8 !important;
    font-size: 18px !important;
    margin-top: 2px !important;
}

/* Scrollbar estilizado */
.pys-gm-body::-webkit-scrollbar { width: 5px; }
.pys-gm-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }