/* ===== ACTIVITIES PAGE - Redesign ===== */

:root {
    --waki-gold: #b2894c;
    --waki-gold-dark: #9a7340;
    --waki-cream: #faf7f1;
    --waki-ink: #1c1a17;
    --waki-muted: #8a8378;
    --waki-line: #ece5d8;
}

/* ---------- Loading overlay ---------- */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250, 247, 241, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #efe6d5;
    border-top-color: var(--waki-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Category tabs ---------- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.category-tab {
    padding: 9px 20px;
    border-radius: 30px;
    border: 1.5px solid var(--waki-line);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #6b6255;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--waki-gold);
    color: var(--waki-gold);
    transform: translateY(-1px);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--waki-gold), var(--waki-gold-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(178, 137, 76, 0.35);
}

@media (max-width: 767px) {
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* ---------- Floating filter button + backdrop (< lg) ---------- */
.filter-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--waki-gold), var(--waki-gold-dark));
    color: #fff;
    border: none;
    padding: 13px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(178, 137, 76, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.filter-fab:hover,
.filter-fab:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(178, 137, 76, 0.55);
}

.filter-fab-badge {
    background: #fff;
    color: var(--waki-gold-dark);
    border-radius: 20px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 26, 23, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1045;
}

.filter-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Filter panel ---------- */
.filter-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--waki-line);
    box-shadow: 0 6px 24px rgba(28, 26, 23, 0.05);
    position: sticky;
    top: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.filter-panel-scroll {
    flex: 1;
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fdfaf4, #f8f1e4);
    border-bottom: 1px solid var(--waki-line);
}

.filter-panel-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--waki-ink);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-panel-header h5 i {
    color: var(--waki-gold);
}

.filter-panel-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-reset-btn {
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--waki-gold);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background: rgba(178, 137, 76, 0.1);
    color: var(--waki-gold-dark);
}

.filter-close {
    border: none;
    background: rgba(178, 137, 76, 0.1);
    color: var(--waki-gold-dark);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.filter-panel-footer {
    display: none;
    padding: 14px 20px;
    border-top: 1px solid var(--waki-line);
    background: #fff;
}

.filter-apply-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--waki-gold), var(--waki-gold-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(178, 137, 76, 0.3);
}

/* Search box */
.filter-search-block {
    padding: 18px 20px 6px;
}

.filter-search-wrapper {
    position: relative;
}

.filter-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c3b9a5;
    font-size: 13px;
}

.filter-search-input {
    border: 1.5px solid var(--waki-line);
    border-radius: 12px;
    padding: 11px 14px 11px 40px;
    font-size: 13px;
    width: 100%;
    transition: all 0.25s ease;
    background: var(--waki-cream);
}

.filter-search-input:focus {
    border-color: var(--waki-gold);
    box-shadow: 0 0 0 3px rgba(178, 137, 76, 0.1);
    outline: none;
    background: #fff;
}

/* Accordion groups */
.filter-group {
    border-bottom: 1px solid #f3eee4;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--waki-ink);
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.filter-group-head:hover {
    background: var(--waki-cream);
}

.filter-group-head .fg-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group-head .fg-label i {
    color: var(--waki-gold);
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.filter-group-head .fg-count {
    font-size: 10px;
    font-weight: 800;
    background: var(--waki-gold);
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 4px;
}

.filter-group-head .fg-chevron {
    color: #c3b9a5;
    font-size: 11px;
    transition: transform 0.3s ease;
}

.filter-group.open .fg-chevron {
    transform: rotate(180deg);
}

.filter-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-group.open .filter-group-body {
    max-height: 600px;
}

.filter-group-body-inner {
    padding: 2px 20px 18px;
}

/* Custom checkbox */
.fcheck {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 2px;
    transition: background 0.15s ease;
    position: relative;
}

.fcheck:hover {
    background: var(--waki-cream);
}

.fcheck input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fcheck-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #d8cfbd;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s ease;
}

.fcheck-box i {
    font-size: 9px;
    color: #fff;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.2s ease;
}

.fcheck input[type="checkbox"]:checked+.fcheck-box {
    background: linear-gradient(135deg, var(--waki-gold), var(--waki-gold-dark));
    border-color: var(--waki-gold);
    box-shadow: 0 2px 6px rgba(178, 137, 76, 0.3);
}

.fcheck input[type="checkbox"]:checked+.fcheck-box i {
    opacity: 1;
    transform: scale(1);
}

.fcheck-label {
    font-size: 13px;
    color: #5b5347;
    flex: 1;
    line-height: 1.35;
}

.fcheck input[type="checkbox"]:checked~.fcheck-label {
    color: var(--waki-ink);
    font-weight: 600;
}

.fcheck-count {
    font-size: 10px;
    font-weight: 700;
    background: #f0e9db;
    color: var(--waki-gold-dark);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Price slider skin */
.filter-price {
    padding: 12px 6px 6px;
}

.filter-price .noUi-connect {
    background: var(--waki-gold);
}

.filter-price .noUi-handle {
    border-radius: 50%;
    border: 2px solid var(--waki-gold);
    box-shadow: 0 2px 8px rgba(178, 137, 76, 0.3);
}

.filter-price .noUi-tooltip {
    display: none;
}

.price-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.price-range-value {
    font-size: 12px;
    font-weight: 800;
    color: var(--waki-gold-dark);
    background: #f7f1e5;
    border: 1px solid #eee2cc;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.price-range-sep {
    color: #c3b9a5;
    font-size: 11px;
}

/* ---------- Results header ---------- */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--waki-line);
    border-radius: 14px;
}

.results-count {
    font-size: 14px;
    font-weight: 600;
    color: #5b5347;
    margin: 0;
}

.results-count strong {
    color: var(--waki-gold);
    font-weight: 800;
    font-size: 16px;
}

.active-filters-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--waki-muted);
}

.active-filters-badge {
    background: #f5efe3;
    color: var(--waki-gold-dark);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.active-filters-clear {
    border: none;
    background: none;
    color: var(--waki-gold);
    font-weight: 700;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
}

/* ---------- Activity card (horizontal, improved) ---------- */
.act-card {
    display: flex;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--waki-line);
    box-shadow: 0 3px 14px rgba(28, 26, 23, 0.05);
    margin-bottom: 22px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.45s ease forwards;
    opacity: 0;
}

.act-card:nth-child(1) {
    animation-delay: 0.05s;
}

.act-card:nth-child(2) {
    animation-delay: 0.1s;
}

.act-card:nth-child(3) {
    animation-delay: 0.15s;
}

.act-card:nth-child(4) {
    animation-delay: 0.2s;
}

.act-card:nth-child(5) {
    animation-delay: 0.25s;
}

.act-card:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.act-card:hover {
    box-shadow: 0 14px 42px rgba(28, 26, 23, 0.12);
    transform: translateY(-4px);
    border-color: #e3d7c1;
}

.act-card-media {
    position: relative;
    flex: 0 0 290px;
    min-height: 230px;
    overflow: hidden;
    display: block;
}

.act-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.act-card:hover .act-card-media img {
    transform: scale(1.07);
}

.act-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 16, 10, 0.45), transparent 45%);
}

.act-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.act-chip-duration {
    top: 14px;
    left: 14px;
    background: rgba(20, 16, 10, 0.8);
    color: #fff;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.act-chip-duration i {
    color: #f0c878;
    font-size: 13px;
}

.act-chip-type {
    bottom: 12px;
    left: 12px;
    background: rgba(178, 137, 76, 0.92);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
}

.act-media-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 26, 23, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.act-card:hover .act-media-overlay {
    opacity: 1;
}

.act-media-btn {
    background: #fff;
    color: var(--waki-ink);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    transform: translateY(8px);
    transition: transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.act-card:hover .act-media-btn {
    transform: translateY(0);
}

.act-card-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.act-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.act-card-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.3;
}

.act-card-title a {
    color: var(--waki-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.act-card:hover .act-card-title a {
    color: var(--waki-gold);
}

.act-rating {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff9ec;
    border: 1px solid #f3e5c3;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--waki-ink);
}

.act-rating i {
    color: #f5a623;
    font-size: 11px;
}

.act-rating .reviews {
    font-weight: 500;
    color: var(--waki-muted);
    font-size: 11px;
}

.act-card-location {
    font-size: 12.5px;
    color: var(--waki-muted);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.act-card-location i {
    color: var(--waki-gold);
}

.act-desc {
    font-size: 13px;
    color: #6b6255;
    line-height: 1.55;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.act-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.act-stars {
    display: inline-flex;
    gap: 2px;
}

.act-stars i {
    font-size: 12px;
    color: #e2d9c6;
}

.act-stars i.filled {
    color: #f5a623;
}

.act-notation {
    font-size: 12px;
    font-weight: 800;
    color: var(--waki-gold-dark);
    letter-spacing: 0.2px;
}

/* Specs : une seule ligne avec libellés */
.act-specs {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fbf8f2;
    border: 1px solid #f0e9db;
    border-radius: 12px;
    padding: 11px 16px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.act-specs::-webkit-scrollbar {
    display: none;
}

.act-spec {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.act-spec+.act-spec {
    border-left: 1px solid #e8e0d0;
    padding-left: 20px;
}

.act-spec-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--waki-muted);
}

.act-spec-label i {
    color: var(--waki-gold);
    font-size: 10px;
}

.act-spec-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #3c362e;
}

.act-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.act-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b6255;
    background: var(--waki-cream);
    border: 1px solid #f0e9db;
    padding: 5px 11px;
    border-radius: 8px;
}

.act-meta-item i {
    color: var(--waki-gold);
    font-size: 10px;
}

.act-meta-item .meta-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 9.5px;
    letter-spacing: 0.5px;
    color: var(--waki-muted);
}

.act-meta-item.ok {
    color: #1e7e4d;
    background: #eef9f2;
    border-color: #d3edde;
}

.act-meta-item.ok i {
    color: #1e7e4d;
}

.act-meta-item.ok .meta-label {
    color: #1e7e4d;
}

.act-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--waki-line);
}

.act-price-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--waki-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.act-price-value {
    font-size: 21px;
    font-weight: 800;
    color: var(--waki-gold);
    line-height: 1.15;
}

.act-price-value small {
    font-size: 11px;
    font-weight: 600;
    color: var(--waki-muted);
}

.act-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--waki-gold), var(--waki-gold-dark));
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 14px rgba(178, 137, 76, 0.3);
}

.act-cta i {
    transition: transform 0.25s ease;
}

.act-cta:hover {
    color: #fff;
    box-shadow: 0 8px 22px rgba(178, 137, 76, 0.4);
    transform: translateY(-2px);
}

.act-cta:hover i {
    transform: translateX(4px);
}

/* ---------- Pagination ---------- */
.waki-pagination {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.waki-pagination .page-item .page-link {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid var(--waki-line);
    font-size: 13px;
    font-weight: 700;
    color: #5b5347;
    transition: all 0.2s ease;
    background: #fff;
}

.waki-pagination .page-item .page-link:hover {
    border-color: var(--waki-gold);
    color: var(--waki-gold);
}

.waki-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--waki-gold), var(--waki-gold-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(178, 137, 76, 0.3);
}

.waki-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ---------- Empty state ---------- */
.activities-empty-state {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border: 1.5px dashed var(--waki-line);
    border-radius: 18px;
}

.activities-empty-state .empty-icon {
    font-size: 52px;
    color: #ddd0b8;
    margin-bottom: 16px;
}

.activities-empty-state h4 {
    font-weight: 800;
    color: var(--waki-ink);
    margin-bottom: 8px;
}

.activities-empty-state p {
    color: var(--waki-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.activities-empty-state .empty-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1.5px solid var(--waki-gold);
    border-radius: 30px;
    color: var(--waki-gold);
    font-size: 13px;
    font-weight: 700;
    background: none;
    transition: all 0.25s ease;
}

.activities-empty-state .empty-reset:hover {
    background: var(--waki-gold);
    color: #fff;
}

/* ---------- Responsive : drawer flottant (< lg) ---------- */
@media (max-width: 991px) {
    .filter-panel {
        position: static;
        border-radius: 0;
        border: none;
        height: 100%;
        box-shadow: none;
    }

    .filter-panel-scroll {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-panel-footer {
        display: block;
    }

    #mobileFilters {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(340px, 88vw);
        z-index: 1050;
        transform: translateX(-105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }

    #mobileFilters.open {
        transform: translateX(0);
    }

    body.filters-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {

    .filter-fab,
    .filter-backdrop {
        display: none;
    }
}

@media (max-width: 767px) {
    .act-card {
        flex-direction: column;
    }

    .act-card-media {
        flex: none;
        width: 100%;
        min-height: 190px;
        height: 190px;
    }

    .act-card-body {
        padding: 16px;
    }

    .act-card-title {
        font-size: 16px;
    }

    .act-card-foot {
        flex-direction: row;
    }

    .act-cta {
        padding: 9px 16px;
        font-size: 12px;
    }
}