/* =========================================
   BUSCADOR MOBILE
   ========================================= */

@media (max-width: 768px) {

    .search-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 99999;
        overflow-y: auto;
        padding-bottom: 80px;
    }

    /* Cabecera del buscador */
    .search-header {
        display: flex;
        align-items: center;
        gap: 12px;

        padding: 14px 16px;

        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid #eeeeee;

        position: sticky;
        top: 0;
        z-index: 100000;
    }

    /* Campo de búsqueda */
    .search-header .form-control {
        height: 46px;
        border: 1px solid #d8d8d8;
        border-radius: 0;

        font-size: 16px;
        padding: 0 14px;

        box-shadow: none;
    }

    .search-header .form-control:focus {
        border-color: #222;
        box-shadow: none;
    }

    /* Cerrar */
    .search-header .btn-link {
        color: #222 !important;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500 !important;

        padding: 8px 2px;
        white-space: nowrap;
    }

    /* Zona de resultados */
    #search-results-overlay {
        padding: 20px 16px !important;
    }
}
/* =========================================
   RESULTADOS DE BÚSQUEDA MOBILE
   ========================================= */

@media (max-width: 768px) {

    #search-results-overlay .card {
        border: 0;
        border-radius: 0;
        box-shadow: none !important;
        background: transparent;
    }

    #search-results-overlay .card-img-top {
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 0;
    }

    #search-results-overlay .card-body {
        padding: 10px 2px 18px;
        text-align: left !important;
    }

    #search-results-overlay .card-body h6 {
        margin-bottom: 4px;
        font-size: 0.95rem;
        font-weight: 600;
    }

    #search-results-overlay .card-body p {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    #search-results-overlay .row {
        --bs-gutter-x: 14px;
        --bs-gutter-y: 20px;
    }
}
