/* -----------------------------------------------------------
   CONTENEDOR GENERAL
----------------------------------------------------------- */
.bp-search-wrapper {
    max-width: 900px;
    margin: 10px auto;
    text-align: center;
}

#bp-flow-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: opacity .25s ease, transform .25s ease;
}

/* -----------------------------------------------------------
   CHIPS HORIZONTALES
----------------------------------------------------------- */
.bp-chip-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 10px 20px !important;
    margin: 0 !important;
}

.bp-chip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
    white-space: nowrap;
    font-size: 16px;
    transition: background .2s, transform .1s, box-shadow .2s;
    user-select: none;
    position: relative;
}

.bp-chip:hover {
    background: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* -----------------------------------------------------------
   STEP SHOW / HIDE
----------------------------------------------------------- */
.bp-step-hide {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: opacity .3s ease, transform .3s ease, height .3s ease;
}

.bp-step-show {
    opacity: 1;
    transform: translateY(0);
    height: auto !important;
    padding: 10px 20px !important;
    margin: 0 auto !important;
}

/* -----------------------------------------------------------
   WRAPPER RESULTADOS
----------------------------------------------------------- */
#bp-results-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Toolbar tipo WooCommerce */
.bp-toolbar {
    display: none;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 20px 20px 0;
    font-size: 14px;
}

.bp-order-label {
    color: #555;
}

.bp-order-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fff;
}

/* -----------------------------------------------------------
   RESULTADOS GRID
----------------------------------------------------------- */
.bp-results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media(max-width: 1024px) { .bp-results-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 768px)  { .bp-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px)  { .bp-results-grid { grid-template-columns: 1fr; } }

.bp-result-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.bp-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* -----------------------------------------------------------
   PAGINACIÓN
----------------------------------------------------------- */
.bp-pagination-area {
    text-align: center;
    margin: 10px 0 60px;
}

.bp-page-btn {
    padding: 8px 14px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 14px;
    border: none;
}

.bp-page-btn:hover { background: #005f8a; }

.bp-page-dots {
    display: inline-block;
    margin: 0 6px;
    color: #666;
    font-size: 16px;
}

/* -----------------------------------------------------------
   MODAL
----------------------------------------------------------- */
#bp-img-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#bp-img-modal img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 6px;
}

/* Vertical */
#bp-img-modal img.bp-vertical {
    width: 100vw;
    height: auto;
}

/* Horizontal */
#bp-img-modal img.bp-horizontal {
    width: auto;
    height: 100vh;
}

#bp-img-modal.closeable {
    cursor: pointer;
}

/* -----------------------------------------------------------
   DROPDOWN MULTINIVEL ESCRITORIO
----------------------------------------------------------- */
.bp-dd {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 16px;
    min-width: 320px;
    max-width: 720px;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.bp-dd.bp-show {
    display: block;
    opacity: 1;
}

.bp-dd-inner {
    display: flex;
    gap: 20px;
}

/* CAT2 con columnas */
.bp-dd-cat2 {
    list-style: none;
    margin: 0;
    padding: 0;
    column-gap: 18px;
    column-width: 160px;
    column-count: 1;
}

@media (min-width: 900px)  { .bp-dd-cat2 { column-count: 2; } }
@media (min-width: 1100px) { .bp-dd-cat2 { column-count: 3; } }

.bp-dd-cat2-item {
    padding: 6px 10px;
    margin-bottom: 3px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s ease;
    break-inside: avoid;
}

.bp-dd-cat2-item:hover,
.bp-dd-cat2-item.bp-dd-cat2-active {
    background: #f0f4f8;
}

/* PANEL CAT3 */
.bp-dd-right {
    min-width: 180px;
    border-left: 1px solid #eee;
    padding-left: 12px;
    display: none;
}

.bp-dd-right.bp-show {
    display: block;
}

.bp-dd-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.bp-dd-cat3 {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.bp-dd-cat3-item {
    padding: 6px 10px;
    margin-bottom: 3px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s ease;
}

.bp-dd-cat3-item:hover {
    background: #e9f3ff;
}