/* =========================================================
   ESTILOS DE LOS MENÚS DESPLEGABLES (SEARCH-MENU)
   ========================================================= */

/* Estilo base para el contenedor de la lista */
.search-menu {
    background: white;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 5px;
    list-style: none;
    padding-left: 0;
    margin: 0;
    /* Z-index alto para tapar el slider pero NO afectar al header */
    z-index: 99999 !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

    /* Items dentro del menú (Localidades) */
    .search-menu li a {
        color: #333;
        padding: 8px 12px;
        display: block;
        text-decoration: none;
        transition: background-color 0.15s ease;
        font-size: 14px;
    }

        .search-menu li a:hover,
        .search-menu li.active a {
            background-color: #f0f0f0;
            color: #000;
        }

    /* --- Variación para Checkboxes (Categorías) --- */
    .search-menu.checkbox-menu {
        max-height: 300px !important;
        padding: 10px 0 !important;
    }

        .search-menu.checkbox-menu li {
            padding: 0 15px;
            display: block;
        }

        .search-menu.checkbox-menu label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-weight: normal;
            margin: 5px 0;
            color: #333;
            width: 100%;
        }

        .search-menu.checkbox-menu input[type="checkbox"] {
            margin-right: 10px;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .search-menu.checkbox-menu label:hover {
            background-color: #f9f9f9;
        }

/* Estilo del texto que hace de botón para categorías */
.category-toggle {
    cursor: pointer !important;
    background-color: #fff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
