/* ===================================================
   BUSQUEDA V2 — Modern Catalog Layout
   =================================================== */

/* ---------- EDITORIAL HEADER ---------- */
.busqueda-v2-header {
    padding: 32px 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.busqueda-v2-header-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 768px) {
    .busqueda-v2-header-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}
.busqueda-v2-header-text { max-width: 640px; }
.busqueda-v2-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 44px;
    font-weight: 900;
    color: #0086b3;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.busqueda-v2-title .accent { color: #f94291; }
.busqueda-v2-subtitle {
    font-size: 16px;
    color: #44474e;
    line-height: 1.7;
}
.busqueda-v2-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    white-space: nowrap;
}
.busqueda-v2-stat .material-symbols-outlined { color: #a540c5; font-size: 20px; }
.busqueda-v2-stat-text { font-size: 13px; font-weight: 600; color: #1a1c1e; }
.busqueda-v2-stat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #f94291;
    animation: pulse-dot 2s infinite;
    margin-left: 4px;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---------- MAIN LAYOUT ---------- */
.busqueda-v2-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 80px;
}
@media (min-width: 992px) {
    .busqueda-v2-layout {
        flex-direction: row;
    }
}

/* ---------- SIDEBAR ---------- */
.busqueda-v2-sidebar {
    width: 100%;
    flex-shrink: 0;
}
@media (min-width: 992px) {
    .busqueda-v2-sidebar { width: 280px; }
}
.busqueda-v2-sidebar-filters {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.busqueda-v2-sidebar-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.busqueda-v2-sidebar-title .material-symbols-outlined { color: #0086b3; }

/* Filter groups */
.bv2-filter-group { margin-bottom: 28px; }
.bv2-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #44474e;
    margin-bottom: 8px;
}
.bv2-filter-input {
    width: 100%;
    background: #f8f9fb;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1a1c1e;
    outline: none;
    transition: all 0.2s;
}
.bv2-filter-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,134,179,0.15);
}
.bv2-filter-input::placeholder { color: #9ca3af; }

/* Select2 override inside sidebar */
.busqueda-v2-sidebar-filters .select2-container--default .select2-selection--single {
    background: #f8f9fb !important;
    border: none !important;
    border-radius: 12px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
}
.busqueda-v2-sidebar-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1a1c1e !important;
    font-size: 14px !important;
    padding-left: 16px !important;
    line-height: normal !important;
}
.busqueda-v2-sidebar-filters .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}
.busqueda-v2-sidebar-filters .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}
.busqueda-v2-sidebar-filters .select2-container {
    width: 100% !important;
}

/* Category chips */
.bv2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bv2-chip {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #f3f4f6;
    color: #44474e;
}
.bv2-chip:hover { background: rgba(5,179,225,0.1); }
.bv2-chip.active {
    background: #0086b3;
    color: #fff;
}

/* Checkboxes */
.bv2-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bv2-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.bv2-checkbox-item input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #0086b3;
    cursor: pointer;
}
.bv2-checkbox-item label {
    font-size: 13px;
    cursor: pointer;
    margin: 0;
    color: #44474e;
}

/* Price range slider */
.bv2-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.bv2-range-badge {
    background: #f0f6f8;
    color: #0086b3;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}
.bv2-range-sep { color: #ccc; font-size: 14px; font-weight: 600; }

.bv2-range-slider {
    position: relative;
    width: 100%;
    height: 40px;
}
.bv2-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
}
.bv2-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #0086b3, #05b3e1);
    border-radius: 3px;
}
.bv2-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 40px;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    outline: none;
}
.bv2-range-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #0086b3;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0,134,179,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}
.bv2-range-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,134,179,0.35);
}
.bv2-range-thumb::-webkit-slider-thumb:active {
    transform: scale(1.2);
    border-color: #05b3e1;
}
.bv2-range-thumb::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #0086b3;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0,134,179,0.25);
}
.bv2-range-thumb::-moz-range-track {
    background: transparent;
    border: none;
}

/* Custom styled select */
.bv2-select {
    width: 100%;
    background: #f8f9fb;
    border: none;
    border-radius: 12px;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    color: #1a1c1e;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2344474e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}
.bv2-select:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0,134,179,0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230086b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}
.bv2-select:hover {
    background-color: #f0f3f5;
}
.bv2-select option {
    padding: 8px 12px;
    background: #fff;
    color: #1a1c1e;
}

/* Apply button */
.bv2-btn-apply {
    width: 100%;
    padding: 14px;
    background: #0086b3;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,134,179,0.15);
}
.bv2-btn-apply:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(0,134,179,0.25);
}

/* Promo card */
.bv2-promo-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #05b3e1;
    padding: 24px;
    margin-top: 24px;
}
.bv2-promo-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f94291;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.bv2-promo-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}
.bv2-promo-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    line-height: 1.5;
}
.bv2-promo-link {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
    cursor: pointer;
    text-decoration: none;
}
.bv2-promo-icon {
    position: absolute;
    right: -30px;
    bottom: -30px;
    opacity: 0.2;
    font-size: 120px !important;
    color: #fff;
    transition: transform 0.7s;
}
.bv2-promo-card:hover .bv2-promo-icon { transform: scale(1.1); }

/* ---------- RESULTS GRID ---------- */
.busqueda-v2-results { flex: 1; min-width: 0; }
.bv2-results-count {
    font-size: 14px;
    font-weight: 600;
    color: #44474e;
    margin-bottom: 20px;
}
.bv2-results-count strong { color: #1a1c1e; }

.bv2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 768px) {
    .bv2-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tour card V2 */
.bv2-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.5s;
}
.bv2-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.bv2-card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.bv2-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.bv2-card:hover .bv2-card-img-wrap img { transform: scale(1.08); }
.bv2-card-badge-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    color: #0086b3;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bv2-card-badge-rating .material-symbols-outlined {
    font-size: 12px;
    color: #f9c25b;
    font-variation-settings: 'FILL' 1;
}
.bv2-card-badge-promo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f94291;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-transform: uppercase;
}
.bv2-card-badge-promo .material-symbols-outlined { font-size: 12px; }
.bv2-card-body { padding: 20px; }
.bv2-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.bv2-card-meta .material-symbols-outlined {
    font-size: 14px;
    color: #05b3e1;
}
.bv2-card-meta-text {
    font-size: 11px;
    font-weight: 700;
    color: #44474e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bv2-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1a1c1e;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.bv2-card:hover .bv2-card-title { color: #0086b3; }
.bv2-card-title a {
    color: inherit;
    text-decoration: none;
}
.bv2-card-desc {
    font-size: 13px;
    color: #44474e;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bv2-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.bv2-card-price-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #44474e;
    display: block;
}
.bv2-card-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #0086b3;
}
.bv2-card-price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
}
.bv2-card-installment {
    font-size: 12px;
    color: #0086b3;
    font-weight: 600;
    margin-top: 4px;
}
.bv2-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #a540c5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(165,64,197,0.2);
}
.bv2-card-btn:hover {
    filter: brightness(1.1);
    color: #fff;
    text-decoration: none;
}
.bv2-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.bv2-card-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

/* ---------- PAGINATION V2 ---------- */
.bv2-pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bv2-pagination a,
.bv2-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}
.bv2-pagination a {
    background: #fff;
    color: #44474e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bv2-pagination a:hover {
    background: #0086b3;
    color: #fff;
}
.bv2-pagination .active {
    background: #0086b3;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,134,179,0.3);
}

/* ---------- SKELETON V2 ---------- */
.bv2-skeleton-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}
.bv2-skeleton-img {
    height: 220px;
    background: #eee;
    animation: skeleton-pulse 1.5s infinite;
}
.bv2-skeleton-body { padding: 20px; }
.bv2-skeleton-line {
    height: 14px;
    background: #eee;
    border-radius: 6px;
    margin-bottom: 12px;
    animation: skeleton-pulse 1.5s infinite;
}
.bv2-skeleton-line.w60 { width: 60%; }
.bv2-skeleton-line.w80 { width: 80%; }
.bv2-skeleton-line.w40 { width: 40%; }
.bv2-skeleton-line.h20 { height: 20px; }
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .busqueda-v2-header { padding: 20px 16px; }
    .busqueda-v2-title { font-size: 34px; }
    .busqueda-v2-layout { padding: 0 16px 60px; }
}
@media (max-width: 767px) {
    .busqueda-v2-title { font-size: 28px; }
    .bv2-card-img-wrap { height: 180px; }
    .bv2-card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bv2-card-btn { width: 100%; text-align: center; }
}
