/* ==========================================================================
   Events Page Styles
   Extracted from events.blade.php for maintainability
   ========================================================================== */

/* ========== TiketOdyssey Font for Event List ========== */
@font-face {
    font-family: 'TiketOdysseyText';
    src: url('/assets/global/webfonts/TiketOdysseyText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TiketOdysseyText';
    src: url('/assets/global/webfonts/TiketOdysseyText-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TiketOdysseyText';
    src: url('/assets/global/webfonts/TiketOdysseyText-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========== Unified Premium Bar ========== */
.results-bar-wrapper {
    position: relative;
    z-index: 10;
}

.results-bar-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(255, 140, 50, 0.08), rgba(255, 200, 100, 0.04));
    border-radius: 60px;
    filter: blur(14px);
    opacity: 0.6;
    pointer-events: none;
}

.results-bar {
    position: relative;
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 8px -2px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f3f5;
    padding: 8px 12px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.3s ease;
}

.results-bar:hover {
    box-shadow: 0 6px 28px -4px rgba(0, 0, 0, 0.08), 0 2px 10px -2px rgba(0, 0, 0, 0.03);
}

/* Search Hint (Desktop) */
.results-bar__search-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    color: #94a3b8;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.results-bar__search-hint i {
    font-size: 18px;
}

/* Filter Chips Area */
.results-bar__filters {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.results-bar__filters::-webkit-scrollbar {
    display: none;
}

/* Pill Divider (between Filter btn and category chips) */
.results-bar__pill-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    flex-shrink: 0;
    margin: 0 2px;
}

/* Filter Chip (category pills) */
.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
    background: #FFF8F2;
    color: #334155;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.filter-chip i {
    font-size: 15px;
    opacity: 0.6;
}

.filter-chip:hover {
    border-color: rgba(255, 140, 50, 0.3);
    background: #FFF0E0;
    color: #1f2937;
}

.filter-chip.is-active {
    background: var(--base-color, #6366f1);
    color: #fff;
    border-color: var(--base-color, #6366f1);
    box-shadow: 0 2px 8px rgba(var(--base-color-rgb, 99, 102, 241), 0.25);
}

.filter-chip.is-active i {
    opacity: 1;
}

.filter-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    display: none;
}

.filter-chip.is-active .filter-chip__dot {
    display: inline-block;
}

/* Primary Filter Chip (orange "Filter" button) */
.filter-chip--primary {
    background: var(--base-color, #FF8C32);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 140, 50, 0.3);
    font-weight: 600;
}

.filter-chip--primary i {
    opacity: 1;
}

.filter-chip--primary:hover {
    background: var(--base-color-hover, #e67a20);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 140, 50, 0.4);
}

.filter-chip--primary.is-active {
    background: var(--base-color, #FF8C32);
    box-shadow: 0 4px 14px rgba(255, 140, 50, 0.35);
}

/* Result Count Row */
.results-bar__count-row {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    padding-left: 4px;
    font-family: 'TiketOdysseyText', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.results-bar__count-number {
    font-weight: 700;
    color: var(--base-color, #6366f1);
}

/* Right Section: Sort + Views */
.results-bar__right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.results-bar__sort {
    display: flex;
    align-items: center;
}

.results-bar__sort-select {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 6px 32px 6px 4px !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #334155 !important;
    cursor: pointer;
    min-width: 140px;
    font-family: 'TiketOdysseyText', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.results-bar__sort-select:focus {
    box-shadow: none !important;
    outline: none !important;
}

.results-bar__divider {
    width: 1px;
    height: 28px;
    background: #e5e7eb;
    margin: 0 6px;
    flex-shrink: 0;
}

.results-bar__views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.results-bar__views .nav {
    gap: 4px;
}

.results-bar__view-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.results-bar__view-btn:hover {
    background: #f8fafc;
    color: #64748b;
}

.results-bar__view-btn.active {
    background: rgba(var(--base-color-rgb, 99, 102, 241), 0.1);
    color: var(--base-color, #6366f1);
}

/* ========== Mobile Search Bar ========== */
.mobile-search-bar {
    display: none;
}

.mobile-search-bar__inner {
    position: relative;
}

.mobile-search-bar__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.mobile-search-bar__inner:focus-within .mobile-search-bar__icon {
    color: var(--base-color, #6366f1);
}

.mobile-search-bar__input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #f8fafc;
    border: 1px solid #f1f3f5;
    border-radius: 16px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    font-family: 'TiketOdysseyText', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-search-bar__input::placeholder {
    color: #94a3b8;
}

.mobile-search-bar__input:focus {
    border-color: var(--base-color, #6366f1);
    box-shadow: 0 0 0 3px rgba(var(--base-color-rgb, 99, 102, 241), 0.1);
    background: #fff;
}

/* ========== Responsive: Unified Bar ========== */
@media (max-width: 767px) {
    .mobile-search-bar {
        display: block;
    }

    .results-bar {
        border-radius: 16px;
        padding: 8px;
        gap: 6px;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .results-bar::-webkit-scrollbar {
        display: none;
    }

    .results-bar-glow {
        border-radius: 20px;
    }

    .results-bar__search-hint {
        display: none !important;
    }

    .filter-chip {
        padding: 8px 14px;
        font-size: 13px;
    }

    .results-bar__count-row {
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .results-bar {
        padding: 8px 12px 8px 8px;
    }

    .results-bar__sort-select {
        min-width: 120px;
    }
}

.filter-modal-content .grid-sidebar {
    box-shadow: none;
    padding: 0;
}

/* ========================================================================
   Modern Filter Modal (fm-*)
   Inspired by stitch reference, pure Bootstrap 5 + custom CSS
   ======================================================================== */

/* Dialog sizing */
.fm-dialog {
    max-width: 960px;
}

.fm-content {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---- Header ---- */
.fm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    /* backdrop-filter: blur(12px); - CAUSES CHROME GLITCHES */
    /* -webkit-backdrop-filter: blur(12px); */
}

.fm-header__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
}

.fm-header__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fm-header__close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ---- Mobile Tab Pills ---- */
.fm-mobile-tabs {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fm-mobile-tabs__scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.fm-mobile-tabs__scroll::-webkit-scrollbar {
    display: none;
}

.fm-mobile-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.fm-mobile-tab i {
    font-size: 1rem;
}

.fm-mobile-tab:hover {
    background: #e2e8f0;
    color: #334155;
}

.fm-mobile-tab.active {
    background: hsl(var(--base));
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--base-color-rgb, 99, 102, 241), 0.3);
}

/* ---- Body Layout ---- */
/* ensure modal body doesn't double-scroll */
.fm-dialog .modal-body {
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fm-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* ---- Desktop Sidebar ---- */
.fm-sidebar {
    width: 240px;
    min-width: 240px;
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 0.25rem;
    border-right: 1px solid #e9ecef;
    background: #f8fafc;
    overflow-y: auto;
}

.fm-nav {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.8rem 1.5rem;
    margin: 0 0.75rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.fm-nav:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.fm-nav__icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.fm-nav:hover .fm-nav__icon {
    opacity: 1;
}

.fm-nav__text {
    flex: 1;
}

/* Active sidebar tab */
.fm-nav.active,
.fm-nav.active:focus,
.fm-nav.active:hover {
    background: rgba(var(--base-color-rgb, 99, 102, 241), 0.08) !important;
    color: hsl(var(--base)) !important;
    font-weight: 600 !important;
}

.fm-nav.active .fm-nav__icon {
    opacity: 1;
    color: hsl(var(--base));
}

.fm-nav.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: hsl(var(--base));
    border-radius: 0 4px 4px 0;
}

/* ---- Content Area ---- */
.fm-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    min-width: 0;
}

/* Scrollbar styling for content area */
.fm-content-area::-webkit-scrollbar {
    width: 5px;
}

.fm-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.fm-content-area::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

/* ---- Search Bar ---- */
.fm-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.fm-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.2s;
}

.fm-search:focus-within .fm-search__icon {
    color: hsl(var(--base));
}

.fm-search__input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 2.8rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #1e293b;
    outline: none;
    transition: all 0.25s ease;
}

.fm-search__input::placeholder {
    color: #94a3b8;
}

.fm-search__input:focus {
    border-color: hsl(var(--base));
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--base-color-rgb, 99, 102, 241), 0.08);
}

.fm-search__btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
    border: none;
    background: hsl(var(--base));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.fm-search__btn:hover {
    filter: brightness(1.1);
    transform: translateY(-50%) scale(1.05);
}

/* ---- Section Header ---- */
.fm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.fm-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.fm-section-reset {
    background: none;
    border: none;
    color: hsl(var(--base));
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0;
    transition: opacity 0.2s;
}

.fm-section-reset:hover {
    opacity: 0.7;
}

/* ---- Card-based Selection Grid ---- */
.fm-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.fm-card-grid--single {
    grid-template-columns: 1fr;
}

.fm-card-option {
    cursor: pointer;
    margin: 0;
}

/* Hide the native radio */
.fm-card-option .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.fm-card-option__body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.fm-card-option__body:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fm-card-option__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.fm-card-option__body:hover .fm-card-option__icon {
    background: #e8f4fd;
    color: #3b82f6;
}

.fm-card-option__icon--all {
    background: rgba(var(--base-color-rgb, 99, 102, 241), 0.08);
    color: hsl(var(--base));
}

.fm-card-option__label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-card-option__check {
    font-size: 1.3rem;
    color: hsl(var(--base));
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

/* Checked state */
.fm-card-option .form-check-input:checked ~ .fm-card-option__body {
    border-color: hsl(var(--base));
    background: rgba(var(--base-color-rgb, 99, 102, 241), 0.04);
}

.fm-card-option .form-check-input:checked ~ .fm-card-option__body .fm-card-option__icon {
    background: rgba(var(--base-color-rgb, 99, 102, 241), 0.12);
    color: hsl(var(--base));
}

.fm-card-option .form-check-input:checked ~ .fm-card-option__body .fm-card-option__label {
    color: hsl(var(--base));
    font-weight: 600;
}

.fm-card-option .form-check-input:checked ~ .fm-card-option__body .fm-card-option__check {
    opacity: 1;
}

/* ---- Category-Specific Icon Colors ---- */
/* Konser - Purple/Music theme */
.fm-card-option__body:has(.la-music):hover .fm-card-option__icon {
    background: #f3e8ff;
    color: #a855f7;
}

/* Festival & Pameran - Pink/Festival theme */
.fm-card-option__body:has(.la-campground):hover .fm-card-option__icon {
    background: #fce7f3;
    color: #ec4899;
}

/* Konferensi & Seminar - Yellow/Education theme */
.fm-card-option__body:has(.la-chalkboard-teacher):hover .fm-card-option__icon,
.fm-card-option__body:has(.la-graduation-cap):hover .fm-card-option__icon {
    background: #fef3c7;
    color: #f59e0b;
}

/* Balapan & Ketahanan - Red/Sports theme */
.fm-card-option__body:has(.la-flag-checkered):hover .fm-card-option__icon,
.fm-card-option__body:has(.la-trophy):hover .fm-card-option__icon {
    background: #fee2e2;
    color: #ef4444;
}

/* Pertunjukan & Penampilan - Indigo/Theater theme */
.fm-card-option__body:has(.la-theater-masks):hover .fm-card-option__icon {
    background: #e0e7ff;
    color: #6366f1;
}

/* Atraksi & Taman Hiburan - Green/Fun theme */
.fm-card-option__body:has(.la-gamepad):hover .fm-card-option__icon {
    background: #d1fae5;
    color: #10b981;
}

/* Tur & Perjalanan - Cyan/Travel theme */
.fm-card-option__body:has(.la-plane-departure):hover .fm-card-option__icon {
    background: #cffafe;
    color: #06b6d4;
}

/* Social Gathering - Orange/Social theme */
.fm-card-option__body:has(.la-glass-cheers):hover .fm-card-option__icon {
    background: #ffedd5;
    color: #f97316;
}

/* Komunitas & Perkumpulan - Blue/Community theme */
.fm-card-option__body:has(.la-users):hover .fm-card-option__icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* Event/Acara - Teal/Event theme */
.fm-card-option__body:has(.la-ticket-alt):hover .fm-card-option__icon {
    background: #ccfbf1;
    color: #14b8a6;
}


/* ---- Price Display (modern) ---- */
.fm-price-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
}

.fm-price-display__item {
    flex: 1;
    text-align: center;
}

.fm-price-display__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.fm-price-display__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: hsl(var(--base));
}

.fm-price-display__divider {
    color: #cbd5e1;
    font-weight: 300;
    font-size: 1.25rem;
}

/* Price buttons */
.fm-btn-apply-price {
    background: hsl(var(--base));
    color: #fff;
    border: none;
    border-radius: 0.625rem;
    padding: 0.625rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.fm-btn-apply-price:hover {
    filter: brightness(1.1);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--base-color-rgb, 99, 102, 241), 0.3);
}

.fm-btn-reset-price {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.fm-btn-reset-price:hover {
    background: #e2e8f0;
    color: #334155;
}

/* ---- Footer ---- */
.fm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid #e9ecef;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fm-footer__left {
    display: flex;
    align-items: center;
}

.fm-btn-reset {
    background: transparent;
    border: 1px solid #fecaca;
    color: #ef4444;
    border-radius: 0.625rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.fm-btn-reset:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.fm-btn-apply {
    background: linear-gradient(135deg, hsl(var(--base)), #FF6B6B);
    color: #fff;
    border: none;
    border-radius: 0.625rem;
    padding: 0.625rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 14px rgba(var(--base-color-rgb, 99, 102, 241), 0.3);
}

.fm-btn-apply:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--base-color-rgb, 99, 102, 241), 0.4);
}

/* ========================================================================
   Modern Filter Modal — Responsive (Mobile)
   ======================================================================== */
@media (max-width: 767.98px) {
    .fm-dialog {
        max-width: 100%;
        margin: 0;
        height: 100%;
    }

    .fm-content {
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .fm-body {
        flex-direction: column;
        max-height: none;
        min-height: 0;
        flex: 1;
        overflow: hidden;
    }

    .fm-content-area {
        padding: 1.25rem;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 6rem; /* space for fixed footer */
    }

    .fm-card-grid {
        grid-template-columns: 1fr;
    }

    .fm-header {
        padding: 1rem 1.25rem;
    }

    .fm-header__title {
        font-size: 1.15rem;
    }

    .fm-footer {
        padding: 0.875rem 1.25rem;
        z-index: 20;
    }

    .fm-btn-apply {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .fm-search__input {
        font-size: 0.875rem;
        padding: 0.7rem 3rem 0.7rem 2.5rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .fm-dialog {
        max-width: 720px;
    }

    .fm-sidebar {
        width: 200px;
        min-width: 200px;
    }

    .fm-nav {
        padding: 0.7rem 1.25rem;
        font-size: 0.875rem;
    }

    .fm-content-area {
        padding: 1.25rem 1.5rem;
    }
}

/* ---- Backward compat: keep old classes working ---- */

.popular-item,
.popular-item__title,
.popular-item__content,
.popular-list,
.event-price-box,
.grid-event-header,
.grid-sidebar {
    font-family: 'TiketOdysseyText', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.popular-item__title a {
    font-weight: 700;
}

.event-price-box .price {
    font-weight: 600;
}

/* Location Filter Styles */
.location-filter {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Nested Location Dropdown */
.nested-location-dropdown {
    position: relative;
    margin-top: 10px;
}

.location-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.location-dropdown-toggle:hover {
    border-color: var(--base-color, #6366f1);
}

.location-dropdown-toggle .location-text {
    font-size: 14px;
    color: #666;
}

.location-dropdown-toggle.has-value .location-text {
    color: #333;
    font-weight: 500;
}

.location-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 250px;
    max-height: 350px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 1065;
    margin-top: 5px;
    overflow: hidden;
}

.nested-location-dropdown.open .location-dropdown-menu {
    display: block;
}

.location-search-box {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.location-search-box input {
    font-size: 13px;
}

.location-list-wrapper {
    max-height: 280px;
    overflow-y: auto;
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-item {
    position: relative;
}

.location-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.location-item-content:hover {
    background: #f5f5f5;
}

.location-item-content .item-text {
    color: #333;
}

.location-item-content .arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.location-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    border-left: 3px solid var(--base-color, #6366f1);
}

.location-item.expanded>.location-submenu {
    display: block;
}

.location-item.expanded>.location-item-content .arrow {
    transform: rotate(90deg);
}

.location-item.expanded>.location-item-content {
    background: #f0f0f0;
    font-weight: 500;
}

.location-submenu .location-item-content {
    padding-left: 25px;
}

.location-submenu .location-submenu .location-item-content {
    padding-left: 40px;
}

.location-submenu .location-submenu .location-submenu .location-item-content {
    padding-left: 55px;
}

.location-item.selected>.location-item-content {
    background: var(--base-color, #6366f1);
}

.location-item.selected>.location-item-content .item-text,
.location-item.selected>.location-item-content .arrow,
.location-item.selected>.location-item-content i {
    color: #fff;
}

.location-item.highlight>.location-item-content {
    background: #fff3cd;
}

/* All Locations Option Styling */
.all-locations-option .location-item-content {
    font-weight: 500;
    color: var(--base-color, #6366f1);
}

.all-locations-option .location-item-content i {
    color: var(--base-color, #6366f1);
}

.all-locations-option.selected .location-item-content {
    background: var(--base-color, #6366f1);
    color: #fff;
}

.all-locations-option.selected .location-item-content i,
.all-locations-option.selected .location-item-content .item-text {
    color: #fff;
}

.location-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 10px;
}

.selected-location .badge {
    font-size: 12px;
    padding: 6px 10px;
}

.selected-location .badge a {
    text-decoration: none;
}

@media (max-width: 767px) {
    .location-dropdown-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 350px;
        max-height: 70vh;
    }

    .nested-location-dropdown.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* Time Filter Styles */
.time-filter {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.time-filter .form-check-label {
    display: flex;
    align-items: center;
}

.time-filter .form-check-label i {
    color: var(--base-color, #6366f1);
    font-size: 16px;
}

/* Price Filter Styles */
.price-filter {
    padding-bottom: 15px;
}

.price-display {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
}

.price-display .price-label {
    font-size: 13px;
    color: #666;
}

.price-display .price-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--base-color, #6366f1);
}

.price-slider-wrapper {
    position: relative;
    padding: 10px 0;
}

.price-slider-track {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 15px 0;
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: var(--base-color, #6366f1);
    border-radius: 3px;
    z-index: 1;
}

.price-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--base-color, #6366f1);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--base-color, #6366f1);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-slider-labels small {
    font-size: 11px;
}

#applyPriceFilter,
#resetPriceFilter {
    font-size: 13px;
}

.btn--dark {
    background: #6c757d;
    color: #fff;
    border: none;
}

.btn--dark:hover {
    background: #5a6268;
    color: #fff;
}

/* Clear All Filters Button - No hover effect */
#clearAllFilters.btn--outline-danger {
    background: transparent;
    border: 1px solid hsl(var(--danger));
    color: hsl(var(--danger));
}

#clearAllFilters.btn--outline-danger:hover,
#clearAllFilters.btn--outline-danger:focus,
#clearAllFilters.btn--outline-danger:active {
    background: transparent;
    border: 1px solid hsl(var(--danger));
    color: hsl(var(--danger));
    box-shadow: none;
}

/* Loading State for Sidebar */
.grid-sidebar.loading {
    pointer-events: none;
    position: relative;
}

.grid-sidebar.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
}

.grid-sidebar.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--base-color, #6366f1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 101;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Search Box Improvements */
.search-box-wrapper .search-box {
    position: relative;
}

.search-box-wrapper .search-box input:focus {
    border-color: var(--base-color, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Active Filter Indicators */
.form-check-input:checked+.form-check-label {
    color: var(--base-color, #6366f1);
    font-weight: 500;
}

/* Events Loading State */
#pills-h .row,
#pills-p .row {
    transition: opacity 0.3s ease;
}

/* Clear All Filters Button */
.btn--outline-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.btn--outline-danger:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.clear-all-filters {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* ========== Standardized Event Card Cover Images ========== */
/* Grid view (card) - Fixed aspect ratio container */
.popular-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.popular-item .popular-item__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
    background: hsl(var(--dark) / .05);
}

.popular-item .popular-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.popular-item .popular-item__thumb:hover img {
    transform: scale(1.05);
}

.popular-item .popular-item__wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* List view (item-two) - Fixed height thumbnail */
.popular-item.item-two .popular-item__thumb {
    width: 280px;
    min-width: 280px;
    height: 180px;
    aspect-ratio: unset;
    border-radius: 12px;
    flex-shrink: 0;
}

.popular-item.item-two .popular-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive adjustments for list view */
@media screen and (max-width: 991px) {
    .popular-item.item-two .popular-item__thumb {
        width: 220px;
        min-width: 220px;
        height: 150px;
    }
}

@media screen and (max-width: 767px) {
    .popular-item.item-two .popular-item__thumb {
        width: 100%;
        min-width: unset;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* Ensure equal height cards in grid */
.row.gy-4>[class*="col-"] {
    display: flex;
}

.row.gy-4>[class*="col-"]>.popular-item {
    width: 100%;
}

/* ========== Custom Sort Dropdown ========== */
.custom-dropdown {
    position: relative;
    width: auto;
    min-width: 220px;
    font-family: var(--body-font);
    user-select: none;
}

.custom-dropdown__selected {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--heading-color));
    height: 42px;
}

/* Hover effect for the main pill */
.custom-dropdown__selected:hover {
    border-color: hsl(var(--base));
    background-color: hsl(var(--base)/0.03);
}

.custom-dropdown.open .custom-dropdown__selected {
    border-color: hsl(var(--base));
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.custom-dropdown__selected .text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.custom-dropdown__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background-color: #ffffff;
    border: 1px solid hsl(var(--black) / 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.custom-dropdown.open .custom-dropdown__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-dropdown__item {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 0.9rem;
    color: hsl(var(--body-color));
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.custom-dropdown__item:hover {
    background-color: hsl(var(--base) / 0.08);
    color: hsl(var(--base));
    transform: translateX(4px);
}

.custom-dropdown__item:last-child {
    margin-bottom: 0;
}

.custom-dropdown__selected i {
    font-size: 0.8rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .custom-dropdown__selected i {
    transform: rotate(180deg);
    color: hsl(var(--base));
}

/* ========== Mobile View Switcher ========== */
.mobile-view-switcher {
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
    position: relative;
    z-index: 5;
}

.mobile-view-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-view-btn:hover {
    color: hsl(var(--base));
    background-color: rgba(255, 255, 255, 0.5);
}

.mobile-view-btn.active {
    background-color: #ffffff;
    color: hsl(var(--base));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

/* ========================================
   MODERN LOCATION FILTER TAB STYLES
   ======================================== */

/* Search Box */
.fm-search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.fm-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--base));
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 1;
}

.fm-search-box .fm-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid hsl(var(--base) / 0.3);
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #fff;
    color: #1e293b !important;
}

.fm-search-box .fm-search-input::placeholder {
    color: #94a3b8 !important;
}

.fm-search-box .fm-search-input:focus {
    outline: none;
    border-color: hsl(var(--base));
    box-shadow: 0 0 0 3px hsl(var(--base) / 0.1);
}

/* Location List Container - NO SCROLL (modal body handles scroll) */
.fm-location-list {
    /* Removed max-height and overflow - modal body already scrolls */
    padding-right: 0.5rem;
}

/* Location Item - Label wrapper */
.fm-location-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    transition: all 0.2s ease;
}

/* Hide the actual radio input */
.fm-location-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* The content wrapper - contains icon  and text */
.fm-location-item__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

/* Hover state */
.fm-location-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Icon styling */
.fm-location-item__content > i {
    font-size: 1.25rem;
    color: #64748b !important;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

/* Text container */
.fm-location-item__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.fm-location-item__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b !important;
}

.fm-location-item__detail {
    font-size: 0.8125rem;
    color: #64748b !important;
}

/* Check icon - HIDDEN by default */
.fm-location-item__check {
    font-size: 1.25rem;
    color: hsl(var(--base)) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

/* Checked State - ONLY show check when radio is checked */
.fm-location-item:has(input[type="radio"]:checked) {
    background: hsl(var(--base) / 0.05);
    border-color: hsl(var(--base) / 0.3);
}

.fm-location-item:has(input[type="radio"]:checked) .fm-location-item__content > i {
    color: hsl(var(--base)) !important;
}

.fm-location-item:has(input[type="radio"]:checked) .fm-location-item__name {
    color: hsl(var(--base)) !important;
    font-weight: 600;
}

.fm-location-item:has(input[type="radio"]:checked) .fm-location-item__check {
    opacity: 1;
    visibility: visible;
}

/* Current Location Special Style */
.fm-location-item.fm-location-item--current {
    background: hsl(var(--base) / 0.05);
    border-color: hsl(var(--base) / 0.2);
}

.fm-location-item.fm-location-item--current:hover {
    background: hsl(var(--base) / 0.08);
    border-color: hsl(var(--base) / 0.3);
}

.fm-location-item.fm-location-item--current .fm-location-item__content > i {
    color: hsl(var(--base)) !important;
}

/* Divider */
.fm-location-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

/* Location Section */
.fm-location-section {
    margin-bottom: 1.5rem;
}

.fm-location-section__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b !important;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

/* No Results Message */
.fm-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8 !important;
}

.fm-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
    color: #94a3b8 !important;
}

.fm-no-results p {
    font-size: 0.9375rem;
    margin: 0;
    color: #94a3b8 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fm-location-list {
        max-height: 350px;
    }
    
    .fm-location-item {
        padding: 0.75rem 0.875rem;
    }
    
    .fm-location-item__name {
        font-size: 0.875rem;
    }
    
    .fm-location-item__detail {
        font-size: 0.75rem;
    }
}


