/* Event Search Page Improvements */

/* ===== Card Layout ===== */
.bc_search_event .event-loop {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bc_search_event .event-loop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.bc_search_event .event-loop .thumb-image {
    position: relative;
    padding-bottom: 65%;
    overflow: hidden;
    background: #f0f0f0;
}
.bc_search_event .event-loop .thumb-image a {
    display: block;
    position: absolute;
    inset: 0;
}
.bc_search_event .event-loop .thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.bc_search_event .event-loop:hover .thumb-image img {
    transform: scale(1.06);
}

.bc_search_event .event-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: #f5f5f5;
    color: #ccc;
    font-size: 48px;
}

/* Badges */
.bc_search_event .event-loop .item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}
.bc_search_event .event-loop .sale_info {
    background: #e53e3e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}
.bc_search_event .event-loop .featured {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Wishlist */
.bc_search_event .event-loop .service-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.bc_search_event .event-loop .service-wishlist:hover {
    transform: scale(1.15);
}

/* Card Body */
.bc_search_event .event-card-body {
    padding: 14px 16px 16px;
}
.bc_search_event .event-loop .location {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}
.bc_search_event .event-loop .location i {
    margin-right: 3px;
    font-size: 13px;
}
.bc_search_event .event-loop .item-title {
    margin-bottom: 8px;
    line-height: 1.35;
}
.bc_search_event .event-loop .item-title a {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.bc_search_event .event-loop .item-title a:hover {
    color: #5191fa;
}

/* Review */
.bc_search_event .event-loop .service-review {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 6px;
}
.bc_search_event .event-loop .service-review .fa-star {
    color: #f6ad55;
    font-size: 12px;
}
.bc_search_event .event-loop .service-review .review-score {
    font-weight: 600;
    color: #1a202c;
}

/* Start Time */
.bc_search_event .event-loop .start-time {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}
.bc_search_event .event-loop .start-time i {
    margin-right: 4px;
}

/* Info Row */
.bc_search_event .event-loop .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}
.bc_search_event .event-loop .duration {
    font-size: 13px;
    color: #718096;
}
.bc_search_event .event-loop .duration i {
    margin-right: 3px;
}
.bc_search_event .event-loop .g-price {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.bc_search_event .event-loop .g-price .fr_text {
    font-size: 12px;
    color: #a0aec0;
}
.bc_search_event .event-loop .g-price .onsale {
    text-decoration: line-through;
    font-size: 13px;
    color: #e53e3e;
}
.bc_search_event .event-loop .g-price .text-price {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
}

/* ===== Topbar Search ===== */
.bc_search_event .topbar-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.bc_search_event .topbar-search .result-count {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

/* ===== Empty State ===== */
.search-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}
.search-empty-state i {
    font-size: 56px;
    color: #cbd5e0;
    margin-bottom: 16px;
    display: block;
}
.search-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}
.search-empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}
.search-empty-state .btn {
    border-radius: 8px;
}

/* ===== Filter Sidebar ===== */
.btn-filter-toggle {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
}
.filter-badge {
    background: #5191fa;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    display: inline-block;
}
.filter-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ebf4ff;
    border-bottom: 1px solid #bee3f8;
    font-size: 13px;
    font-weight: 500;
    color: #2b6cb0;
}
.filter-active-bar .btn-link {
    color: #e53e3e;
    font-size: 13px;
    text-decoration: none;
    padding: 0;
}
.filter-active-bar .btn-link:hover {
    text-decoration: underline;
}

.bc_search_event .bc_filter {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.bc_search_event .g-filter-item {
    border-top: 1px solid #e2e8f0;
    padding: 16px;
}
.bc_search_event .g-filter-item:first-child {
    border-top: none;
}
.bc_search_event .g-filter-item .item-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bc_search_event .g-filter-item .item-title h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}
.bc_search_event .g-filter-item .item-title .fa {
    font-size: 14px;
    color: #a0aec0;
    transition: transform 0.2s;
}
.bc_search_event .g-filter-item .item-title.e-close .fa {
    transform: rotate(180deg);
}
.bc_search_event .g-filter-item .item-content {
    margin-top: 12px;
}
.bc_search_event .g-filter-item .item-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bc_search_event .g-filter-item .item-content li {
    margin-bottom: 6px;
}
.bc_search_event .bc-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
}
.bc_search_event .bc-checkbox .fa-star {
    color: #f6ad55;
    font-size: 14px;
}
.bc_search_event .btn-apply-price-range {
    font-size: 13px;
    font-weight: 600;
    color: #5191fa;
    padding: 0;
    margin-top: 12px;
}

/* ===== Loading State ===== */
.ajax-search-result {
    position: relative;
    min-height: 200px;
}
.ajax-search-result.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}
.ajax-search-result.is-loading::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    margin-left: -16px;
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #5191fa;
    border-radius: 50%;
    z-index: 11;
    animation: search-spin 0.6s linear infinite;
}
@keyframes search-spin {
    to { transform: rotate(360deg); }
}
.item-loop-wrap.skeleton-loading .event-loop {
    pointer-events: none;
    opacity: 0.4;
}

/* ===== Pagination ===== */
.bc_search_event .bc-pagination {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.bc_search_event .bc-pagination .count-string {
    font-size: 13px;
    color: #718096;
}
.bc_search_event .bc-pagination .pagination {
    margin: 0;
}
.bc_search_event .bc-pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 14px;
    padding: 6px 12px;
    transition: all 0.15s;
}
.bc_search_event .bc-pagination .page-link:hover {
    background: #5191fa;
    border-color: #5191fa;
    color: #fff;
}
.bc_search_event .bc-pagination .page-item.active .page-link {
    background: #5191fa;
    border-color: #5191fa;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .bc_search_event .topbar-search .result-count {
        font-size: 16px;
    }
    .bc_search_event .event-loop .item-title a {
        font-size: 14px;
    }
}
@media (max-width: 767px) {
    .bc_search_event .event-loop .thumb-image {
        padding-bottom: 55%;
    }
    .bc_search_event .bc-pagination {
        justify-content: center;
        text-align: center;
    }
}

/* ===== Focus States ===== */
.bc_search_event .event-loop .item-title a:focus-visible,
.bc_search_event .event-loop .thumb-image a:focus-visible {
    outline: 2px solid #5191fa;
    outline-offset: 2px;
}
.bc_search_event .service-wishlist:focus-visible {
    outline: 2px solid #5191fa;
    outline-offset: 2px;
    border-radius: 50%;
}
.bc_search_event .bc-pagination .page-link:focus-visible {
    outline: 2px solid #5191fa;
    outline-offset: 1px;
    box-shadow: none;
}
.btn-filter-toggle:focus-visible {
    outline: 2px solid #5191fa;
    outline-offset: 2px;
}
.bc_search_event .bc-checkbox input:focus-visible + .checkmark {
    outline: 2px solid #5191fa;
    outline-offset: 2px;
}
.search-empty-state .btn:focus-visible {
    outline: 2px solid #5191fa;
    outline-offset: 2px;
}
