/* Event Filter Drawer Styles */

.pop-filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pop-filter-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.pop-filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.pop-filter-drawer.open {
    transform: translateY(0);
}

.pop-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.pop-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.pop-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 4px;
    line-height: 1;
}

.pop-filter-content {
    padding: 20px;
}

.pop-filter-section {
    margin-bottom: 24px;
}

.pop-filter-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Scope Pills */
.pop-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pop-filter-pill {
    padding: 8px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pop-filter-pill:hover {
    border-color: #8257c3;
    color: #8257c3;
}

.pop-filter-pill.active {
    background: #8257c3;
    border-color: #8257c3;
    color: #fff;
}

/* Category Checkboxes */
.pop-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pop-filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.pop-filter-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #8257c3;
}

/* Order Select */
.pop-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.pop-filter-select:focus {
    outline: none;
    border-color: #8257c3;
}

/* Apply Button */
.pop-filter-apply {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8257c3 0%, #6a3fb5 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pop-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(130, 87, 195, 0.4);
}

.pop-filter-apply:active {
    transform: translateY(0);
}

/* Reset Link */
.pop-filter-reset {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.pop-filter-reset:hover {
    color: #8257c3;
}

/* Geolocation Filter */
#pop-filter-geo-section .pop-filter-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Toggle Switch */
.pop-geo-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.pop-geo-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pop-geo-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.pop-geo-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pop-geo-toggle input:checked+.pop-geo-toggle-slider {
    background: linear-gradient(135deg, #8257c3 0%, #6a3fb5 100%);
}

.pop-geo-toggle input:checked+.pop-geo-toggle-slider:before {
    transform: translateX(22px);
}

/* Geo Content */
.pop-geo-content {
    margin-top: 12px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 12px;
}

.pop-geo-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.pop-geo-status.success .pop-geo-text {
    color: #28a745;
}

.pop-geo-status.error .pop-geo-text {
    color: #dc3545;
}

.pop-geo-icon {
    font-size: 18px;
}

/* Distance Slider */
.pop-geo-slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pop-geo-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #8257c3 0%, #e5e5e5 0%);
    outline: none;
}

.pop-geo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8257c3;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(130, 87, 195, 0.4);
    transition: transform 0.2s ease;
}

.pop-geo-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.pop-geo-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8257c3;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(130, 87, 195, 0.4);
}

.pop-geo-distance-label {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

#pop-geo-distance-value {
    color: #8257c3;
    font-size: 20px;
}

/* City Input */
.pop-geo-separator {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 12px 0;
    position: relative;
}

.pop-geo-separator::before,
.pop-geo-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.pop-geo-separator::before {
    left: 0;
}

.pop-geo-separator::after {
    right: 0;
}

.pop-geo-city-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pop-geo-city-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.pop-geo-city-input input:focus {
    border-color: #8257c3;
}

.pop-geo-city-input input::placeholder {
    color: #aaa;
}

.pop-geo-city-btn {
    padding: 10px 14px;
    background: linear-gradient(135deg, #8257c3 0%, #6a3fb5 100%);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pop-geo-city-btn:hover {
    transform: scale(1.05);
}

.pop-geo-city-btn:active {
    transform: scale(0.95);
}

.pop-geo-city-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === CITY SEARCH SUGGESTIONS === */
.pop-geo-city-input {
    position: relative;
}

.pop-geo-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.pop-geo-suggestions.active {
    display: block;
}

.pop-geo-suggestions::-webkit-scrollbar {
    width: 6px;
}

.pop-geo-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pop-geo-suggestions::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.pop-geo-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pop-geo-suggestion-item:last-child {
    border-bottom: none;
}

.pop-geo-suggestion-item:hover {
    background-color: #f9fafb;
    color: #8257c3;
}

.pop-geo-suggestion-main {
    font-weight: 500;
    color: #111827;
}

.pop-geo-suggestion-details {
    font-size: 12px;
    color: #9ca3af;
}

/* === Date range (Choisir une date) === */
.pop-date-range {
    margin-top: 12px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #eee;
}

.pop-date-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pop-date-row label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.pop-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.pop-date-input:focus {
    border-color: #8257c3;
}

.pop-date-hint {
    font-size: 12px;
    color: #666;
}

/* === Access Modal === */
.pop-access-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.pop-access-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.pop-access-modal {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #fff;
    border-radius: 16px;
    z-index: 10001;
    transform: translateY(120%);
    transition: transform .25s ease;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
}

.pop-access-modal.open {
    transform: translateY(0);
}

.pop-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.pop-access-title {
    font-weight: 800;
    font-size: 16px;
}

.pop-access-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.pop-access-body {
    padding: 14px 16px 16px;
}

.pop-access-row {
    margin-bottom: 14px;
}

.pop-access-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pop-access-value {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    word-break: break-word;
}