/* ============================================
   Botón Super Map Search
   Mismo estilo que centros-asistenciales, farmacias, etc.
   ============================================ */

/* Botón con el MISMO estilo que los otros botones */
.leaflet-control-super-map-search.leaflet-bar {
    background-color: #fff !important;
    border: 2px solid rgba(0,0,0,0.2) !important;
    width: 33px !important;
    height: 33px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.12s ease !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    border-radius: 4px !important;
    margin: 0 !important;
    margin-left: 3px !important;  /* Mismo margen que botones del contenedor principal */
    margin-right: 0 !important;  /* Sin margen derecho */
    box-sizing: border-box !important;
}

.leaflet-control-super-map-search.leaflet-bar:hover {
    background-color: #f2f8fc !important;
    border-color: rgba(0,0,0,0.3) !important;
}

.leaflet-control-super-map-search.leaflet-bar:active {
    transform: scale(0.98) !important;
}

/* Estado activo - color lila como el plugin original */
.leaflet-control-super-map-search.leaflet-bar.activa {
    background-color: #DD90E2 !important;
    border-color: #b366cc !important;
}

/* ============================================
   Tooltip Táctil
   ============================================ */

.leaflet-control-super-map-search-tooltip-touch {
    position: fixed;
    background: rgba(0,0,0,0.88);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 100000;
    pointer-events: none;
    transform-origin: right center;
}

.leaflet-control-super-map-search-tooltip-touch.visible {
    opacity: 1;
}

@media (max-width: 360px) {
    .leaflet-control-super-map-search-tooltip-touch {
        font-size: 0.72rem;
        padding: 5px 7px;
    }
}

/* ============================================
   Input de Búsqueda
   ============================================ */

.leaflet-control-super-map-search-input-container {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, sans-serif;
}

@media (max-width: 480px) {
    .leaflet-control-super-map-search-input-container {
        width: calc(100vw - 120px) !important;
        max-width: calc(100vw - 120px) !important;
    }
}

@media (max-width: 360px) {
    .leaflet-control-super-map-search-input-container {
        width: calc(100vw - 100px) !important;
        max-width: calc(100vw - 100px) !important;
    }
}

@media (max-width: 280px) {
    .leaflet-control-super-map-search-input-container {
        width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;
    }
}

.leaflet-control-super-map-search-input {
    padding: 10px 30px 10px 12px;
    border: none;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font: 12px system-ui;
    border-radius: 6px;
}

.leaflet-control-super-map-search-clear {
    position: absolute;
    right: 8px;
    top: 10px;
    background: none;
    border: none;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.1s;
}

.leaflet-control-super-map-search-clear:hover {
    background: #eee;
}

.leaflet-control-super-map-search-clear:active {
    background: red;
    color: white;
}

.leaflet-control-super-map-search-results {
    max-height: 320px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.leaflet-control-super-map-search-result {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font: 13px system-ui;
}

.leaflet-control-super-map-search-result:hover {
    background: #f0f8ff;
}

.leaflet-control-super-map-search-result strong {
    color: #0066cc;
}

.leaflet-control-super-map-search-result .post-type {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.leaflet-control-super-map-search-no-results {
    padding: 16px;
    color: #888;
    font-style: italic;
    text-align: center;
}
