.qivox-sedes-wrap {
    text-align: center;
}

.qivox-geo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.qivox-geo-btn {
    background: #FFBD00;
    color: #1D1D1D;
    border: none;
    padding: 13px 30px;
    font-family: "Graphik Regular", Sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .5px;
    transition: filter .15s ease;
}

/* Hover: texto del mismo color (#1D1D1D) + oscurecimiento uniforme del boton. */
.qivox-geo-btn:hover {
    background: #FFBD00;
    color: #1D1D1D !important;
    filter: brightness(.92);
}

.qivox-geo-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.qivox-reset-btn {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
    padding: 12px 22px;
    font-family: "Graphik Regular", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* Cruz minimalista antes del texto. */
.qivox-reset-btn::before {
    content: "\00D7";
    margin-right: 9px;
    font-weight: 400;
    font-size: 1.15em;
    line-height: 1;
    vertical-align: -1px;
}

/* Hover: fondo #191919, las letras quedan del mismo color (#ccc). */
.qivox-reset-btn:hover {
    background: #191919 !important;
    border-color: #191919 !important;
    color: #ccc !important;
}

.qivox-reset-btn[hidden] {
    display: none;
}

.qivox-geo-status {
    color: #aaa;
    font-family: "Graphik Regular", Sans-serif;
    font-size: 13px;
    margin: 10px 0 0;
    min-height: 18px;
}

/* Mapa Leaflet */
.qivox-mapa {
    width: 100%;
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.qivox-mapa-error {
    color: #aaa;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

/* Markers tipo "punto con halo" (divIcon) */
.qivox-marker-wrap {
    background: none !important;
    border: 0 !important;
}

.qivox-marker {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    box-sizing: border-box;
}

.qivox-marker--activa {
    background: #FFBD00;
    box-shadow: 0 0 0 4px rgba(255, 189, 0, .25), 0 1px 5px rgba(0, 0, 0, .55);
}

.qivox-marker--proximamente {
    background: #8a8a8a;
    border-color: #333;
    opacity: .9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.qivox-marker--cercana {
    background: #FF8C00;
    border-color: #fff;
    box-shadow: 0 0 0 6px rgba(255, 140, 0, .30), 0 2px 7px rgba(0, 0, 0, .55);
    animation: qivox-pulse 1.6s ease-out infinite;
}

.qivox-marker--usuario {
    background: #2E8BFF;
    border-color: #fff;
    box-shadow: 0 0 0 5px rgba(46, 139, 255, .28), 0 2px 6px rgba(0, 0, 0, .5);
}

@keyframes qivox-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 140, 0, .55), 0 2px 7px rgba(0, 0, 0, .55); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 140, 0, 0), 0 2px 7px rgba(0, 0, 0, .55); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0), 0 2px 7px rgba(0, 0, 0, .55); }
}

/* Pin de imagen (marca QIVOX) */
.qivox-pin {
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
}

/* Próximamente: pin en escala de grises y atenuado. */
.qivox-pin--proximamente {
    filter: grayscale(1) opacity(.6) drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}

/* Más cercana: pin con resplandor (en el mapa, además, pulsa). */
.qivox-pin--cercana {
    filter: drop-shadow(0 0 7px rgba(246, 166, 35, .95)) drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
    z-index: 1000 !important;
}

.leaflet-marker-icon.qivox-pin--cercana {
    animation: qivox-pin-pulse 1.6s ease-in-out infinite;
}

@keyframes qivox-pin-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(246, 166, 35, .55)) drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
    50%      { filter: drop-shadow(0 0 12px rgba(246, 166, 35, 1)) drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
}

/* Referencias del mapa (leyenda) */
.qivox-legend {
    background: rgba(20, 20, 20, .85);
    color: #eee;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.qivox-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qivox-legend-row + .qivox-legend-row {
    margin-top: 5px;
}

/* Dentro de la leyenda los puntos/pines van chicos, sin halo ni animacion. */
.qivox-legend .qivox-marker {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    box-shadow: none !important;
    animation: none !important;
}

.qivox-legend-pin {
    width: 15px;
    height: 19px;
    object-fit: contain;
    flex: 0 0 auto;
    animation: none !important;
}

.qivox-mapa .leaflet-popup-content {
    font-size: 13px;
    line-height: 1.45;
}

.qivox-pop-zona {
    color: #555;
    font-size: 12px;
    margin: 2px 0 6px;
}

.qivox-pop-estado {
    color: #b8860b;
    font-weight: 700;
    margin-bottom: 4px;
}

.qivox-pop-links {
    margin-top: 8px;
}

.qivox-pop-links a {
    color: #c39000;
    font-weight: 700;
    text-decoration: none;
}

/* Badge de distancia sobre cada card.
   Fondo oscuro + texto claro: contrasta sobre cualquier color de card
   (incluidas las cards de fondo amarillo). */
.qivox-dist-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #1D1D1D;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: "Graphik Regular", Sans-serif;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .55);
}

.qivox-dist-badge.proximamente {
    background: #1D1D1D;
    color: #bbb;
}

/* Etiqueta "Sede más cercana": tab por fuera de la card, justo arriba. */
.qivox-cercana-label {
    position: absolute !important;
    bottom: 100% !important;
    left: 12px !important;
    margin-bottom: 7px;
    background: rgba(0, 0, 0, .7);
    color: #FFBD00;
    padding: 5px 14px;
    border-radius: 8px;
    font-family: "Graphik Regular", Sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
}

.e-loop-item,
.elementor-loop-item {
    position: relative !important;
}

/* Que la etiqueta de "Sede más cercana" no quede recortada por la card. */
.qivox-mas-cercana {
    overflow: visible !important;
}
