* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Cookie Consent Overlay */
#cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#cookie-consent-overlay.hidden { display: none; }

#cookie-consent-box {
    background: rgba(20,20,30,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 400px;
    width: 90%;
    color: #e0e0e0;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#cookie-consent-box h3 { color: white; margin: 0 0 12px; font-size: 18px; }
#cookie-consent-box p { font-size: 13px; line-height: 1.6; margin: 8px 0; opacity: 0.9; }
#cookie-consent-box ul { font-size: 13px; padding-left: 18px; margin: 8px 0; line-height: 1.8; }
#cookie-consent-box li strong { color: #34d399; }
#cookie-accept-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16,185,129,0.3);
    transition: transform 0.15s;
}
#cookie-accept-btn:active { transform: scale(0.97); }
.cookie-contact {
    margin-top: 12px;
    font-size: 11px;
    text-align: center;
    opacity: 0.6;
}
.cookie-contact a { color: #60a5fa; text-decoration: none; }
.cookie-contact a:hover { text-decoration: underline; }

/* App Footer */
#app-footer {
    position: fixed;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
    pointer-events: auto;
}
#app-footer a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}
#app-footer a:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 1px 4px;
    margin: -1px -4px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    background-color: #111;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

/* Base Custom Marker — light style for dark map */
.marker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    will-change: transform;
    contain: layout;
}

.marker:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.marker-active_event {
    border: 3px solid #059669;
}

.marker-rental_item {
    border: 3px solid #2563eb;
}

.marker-static_place {
    border: 3px solid #6b7280;
}

/* FAB Create Button — inline inside #auth-container */
#fab-create {
    display: none;
    width: 44px;
    height: 44px;
    min-height: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(16,185,129,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    /* center the SVG */
    align-items: center;
    justify-content: center;
}
#fab-create:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}
#fab-create:active {
    transform: scale(0.95);
}

/* Cluster Popup List */
.cluster-popup .mapboxgl-popup-content {
    background: hsla(240, 10%, 5%, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    color: #fff;
}
.cluster-popup .mapboxgl-popup-tip { border-top-color: hsla(240, 10%, 5%, 0.92); }
.cluster-popup .mapboxgl-popup-close-button {
    position: absolute;
    color: #94a3b8; font-size: 20px; right: 10px; top: 8px;
    z-index: 2; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    line-height: 1;
}
.cluster-list-header {
    padding: 12px 40px 8px 16px;
    font-size: 13px; font-weight: 700; color: #94a3b8;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cluster-list-items {
    max-height: 240px; overflow-y: auto;
}
.cluster-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}
.cluster-item:last-child { border-bottom: none; }
.cluster-item:hover { background: rgba(255,255,255,0.08); }
.cluster-item-icon { font-size: 20px; flex-shrink: 0; }
.cluster-item-info { flex: 1; min-width: 0; }
.cluster-item-name {
    font-size: 14px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cluster-item-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.cluster-item svg { color: #64748b; flex-shrink: 0; }

/* Light theme cluster popup */
body.light-theme .cluster-popup .mapboxgl-popup-content {
    background: hsla(0, 0%, 100%, 0.95);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    color: #1e293b;
}
body.light-theme .cluster-popup .mapboxgl-popup-tip { border-top-color: hsla(0, 0%, 100%, 0.95); }
body.light-theme .cluster-popup .mapboxgl-popup-close-button { color: #64748b; }
body.light-theme .cluster-list-header { color: #64748b; border-bottom-color: rgba(0,0,0,0.06); }
body.light-theme .cluster-item { border-bottom-color: rgba(0,0,0,0.04); }
body.light-theme .cluster-item:hover { background: rgba(0,0,0,0.04); }
body.light-theme .cluster-item-name { color: #1e293b; }
body.light-theme .cluster-item-meta { color: #64748b; }

/* Address Autocomplete */
#address-autocomplete-wrapper { position: relative; }
#address-suggestions {
    position: absolute; top: 100%; left: 0; right: 0;
    background: hsla(240, 10%, 8%, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; margin-top: 4px;
    max-height: 200px; overflow-y: auto; z-index: 110;
}
.address-suggestion {
    padding: 10px 12px; cursor: pointer;
    color: #e2e8f0; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.address-suggestion:last-child { border-bottom: none; }
.address-suggestion:first-child { border-radius: 12px 12px 0 0; }
.address-suggestion:last-child { border-radius: 0 0 12px 12px; }
.address-suggestion:hover { background: rgba(255,255,255,0.1); }
.address-suggestion .suggestion-name { font-weight: 600; }
.address-suggestion .suggestion-addr { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* Bottom UI Panel (Refined Glassmorphism) */
#ui-panel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    background: hsla(240, 10%, 2%, 0.95);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid hsla(0, 0%, 100%, 0.35);
    border-radius: 28px;
    padding: 24px;
    z-index: 10;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px 0 hsla(0, 0%, 100%, 0.15);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#ui-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 60px) scale(0.95);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#panel-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

#close-panel {
    background: transparent;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    min-height: unset;
}

#close-panel:hover {
    background: hsla(0, 0%, 100%, 0.08);
    color: #94a3b8;
}

#panel-desc {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Action Buttons */
#action-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.primary-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.primary-btn:hover:not(:disabled) {
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
}

.secondary-btn {
    background: hsla(0, 0%, 100%, 0.1);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
}

.secondary-btn:hover:not(:disabled) {
    background: hsla(0, 0%, 100%, 0.15);
    border-color: hsla(0, 0%, 100%, 0.2);
}

.edit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.edit-btn:hover:not(:disabled) {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.call-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.rent-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.hidden {
    display: none !important;
}

/* Notification / Spinner */
#notification {
    margin-top: 20px;
    padding: 14px;
    background: hsla(240, 10%, 15%, 0.5);
    border-radius: 12px;
    color: #10b981;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid hsla(160, 80%, 40%, 0.2);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid hsla(160, 80%, 40%, 0.2);
    border-radius: 50%;
    border-top-color: #10b981;
    animation: spin 0.8s linear infinite;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.form-group input,
.form-group select {
    width: 100%;
    background: hsla(0, 0%, 10%, 0.4);
    /* Slightly lighter background for contrast */
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    color-scheme: dark;
    /* Ensures browser pickers use dark theme */
}

/* Force white calendar/clock icons — custom SVG over hidden native icons */
input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}
input[type="time"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 18a8 8 0 110-16 8 8 0 010 16zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
    margin-right: -40px !important;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3b82f6;
    background: hsla(0, 0%, 0%, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

#map.adding-point {
    cursor: crosshair;
}

/* Category Sidebar (Glassmorphism) */
#category-sidebar {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    background: hsla(240, 10%, 5%, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    border-radius: 24px;
    padding: 20px;
    width: 240px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.4s, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s;
}
#sidebar-sticky-header {
    flex-shrink: 0;
    padding-bottom: 4px;
}
#sidebar-scroll-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}
#sidebar-scroll-content::-webkit-scrollbar { width: 6px; }
#sidebar-scroll-content::-webkit-scrollbar-track { background: transparent; }
#sidebar-scroll-content::-webkit-scrollbar-thumb {
    background: hsla(0,0%,100%,0.15);
    border-radius: 3px;
}
#sidebar-scroll-content::-webkit-scrollbar-thumb:hover {
    background: hsla(0,0%,100%,0.3);
}

#category-sidebar::-webkit-scrollbar { width: 6px; }
#category-sidebar::-webkit-scrollbar-track { background: transparent; }
#category-sidebar::-webkit-scrollbar-thumb {
    background: hsla(0,0%,100%,0.15);
    border-radius: 3px;
}
#category-sidebar::-webkit-scrollbar-thumb:hover {
    background: hsla(0,0%,100%,0.3);
}

#category-sidebar.wide {
    width: 440px;
}

#category-sidebar h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
    padding-bottom: 12px;
}

/* Search Bar */
#search-container { position: relative; margin-bottom: 12px; }
#search-container .search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.4); pointer-events: none;
}
#search-input {
    width: 100%; padding: 10px 36px 10px 36px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
    color: #fff; font-size: 13px; box-sizing: border-box;
}
#search-input::placeholder { color: rgba(255,255,255,0.4); }
#search-input:focus { outline: none; border-color: #10b981; }
#search-clear {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%) !important;
    width: 24px !important; height: 24px; min-height: auto !important;
    padding: 0 !important; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.15); color: #fff; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
#search-clear:hover { background: rgba(255,255,255,0.25); }

/* City Chips */
#city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#city-chips .city-chip {
    width: auto !important; min-height: auto !important; padding: 6px 12px !important;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06); color: #94a3b8; font-size: 12px;
    cursor: pointer; transition: all 0.15s; transform: none !important;
}
#city-chips .city-chip:hover:not(.active) { background: rgba(255,255,255,0.1); color: white; }
#city-chips .city-chip.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white; border-color: #10b981; font-weight: 600;
}

/* Search Result Count */
#search-result-count {
    font-size: 12px; color: #94a3b8; margin-bottom: 8px; padding: 0 2px;
}

/* Sidebar event list items */
.sidebar-event-item {
    padding: 12px;
    margin-bottom: 6px;
    background: hsla(0,0%,100%,0.05);
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}
.sidebar-event-item:hover {
    background: hsla(0,0%,100%,0.1);
    border-color: hsla(0,0%,100%,0.15);
    transform: translateY(-1px);
}
.sidebar-event-item:active {
    transform: scale(0.98);
}
.sei-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sei-emoji {
    font-size: 28px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.sei-info {
    flex: 1;
    min-width: 0;
}
.sei-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sei-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
    font-size: 11px;
    color: #94a3b8;
}
.sei-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.sei-price {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
}
.sei-pax {
    font-size: 11px;
    color: #94a3b8;
}

.category-group {
    margin-bottom: 4px;
}

.category-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 4px;
    user-select: none;
    transition: color 0.2s;
}

.category-group-header:hover {
    color: #94a3b8;
}

.category-group-header .arrow {
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-group-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-group.collapsed .category-group-content {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
}

.category-group.collapsed .arrow {
    transform: rotate(-90deg);
}

.category-btn {
    position: relative;
    background: hsla(0, 0%, 100%, 0.03);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    color: #94a3b8;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.category-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

.category-btn:hover {
    background: hsla(0, 0%, 100%, 0.08);
    color: #fff;
    border-color: hsla(0, 0%, 100%, 0.2);
}

.category-btn.active {
    background: hsla(217, 91%, 60%, 0.2);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

#btn-show-all {
    margin-top: 8px;
    background: hsla(217, 91%, 60%, 0.15);
    border: 1px solid hsla(217, 91%, 60%, 0.3);
    color: #60a5fa;
}

#btn-show-all:hover {
    background: hsla(217, 91%, 60%, 0.25);
    color: #fff;
}

#create-event-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 90%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: hsla(240, 10%, 5%, 0.9);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid hsla(0, 0%, 100%, 0.25);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
}

.panel-title-large {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    background: hsla(0, 0%, 100%, 0.05);
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    box-shadow: inset 0 1px 1px 0 hsla(0, 0%, 100%, 0.1);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    width: auto;
}

.tab-btn:hover {
    color: #fff;
    background: hsla(0, 0%, 100%, 0.05);
}

.tab-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

#sidebar-title {
    margin-top: 4px;
}

/* ==============================
   Hamburger / Mobile Menu Button
   ============================== */
#hamburger-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: hsla(240, 10%, 5%, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    color: #fff;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 0;
    min-height: unset;
    transition: all 0.3s;
}
#hamburger-btn.sidebar-open {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Sidebar overlay backdrop */
#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 499;
}
#sidebar-overlay.active {
    display: block;
}

/* Desktop sidebar collapse */
#category-sidebar.desktop-collapsed {
    transform: translateX(-110%);
    pointer-events: none;
    opacity: 0;
}

/* Category Chip (map click) */
#category-chip {
    position: absolute;
    z-index: 200;
    background: hsla(240, 10%, 5%, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid hsla(0, 0%, 100%, 0.25);
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    animation: chip-appear 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
}
@keyframes chip-appear {
    from { opacity: 0; transform: scale(0.85) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.chip-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: center;
}
.chip-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.chip-type-btn {
    width: auto;
    min-width: 80px;
    height: auto;
    padding: 12px 18px;
    border-radius: 14px;
    background: hsla(0, 0%, 100%, 0.06);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    color: #fff;
    min-height: unset;
}
.chip-type-btn:hover {
    background: hsla(0, 0%, 100%, 0.15);
    border-color: hsla(0, 0%, 100%, 0.3);
    transform: scale(1.05);
}
.chip-cat-btn {
    width: auto;
    min-width: 56px;
    height: auto;
    padding: 8px 12px;
    border-radius: 14px;
    background: hsla(0, 0%, 100%, 0.06);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.15s;
    color: #fff;
    min-height: unset;
}
.chip-cat-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}
.chip-cat-btn:hover {
    background: hsla(0, 0%, 100%, 0.15);
    border-color: hsla(0, 0%, 100%, 0.3);
    transform: scale(1.05);
}
.chip-cat-btn:hover .chip-cat-label {
    color: #fff;
}
.chip-close-btn {
    margin-top: 8px;
    font-size: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    width: 100%;
    min-height: unset;
}

/* Apple-inspired Mini Calendar */
#calendar-section {
    background: hsla(0, 0%, 0%, 0.2);
    border-radius: 12px;
    padding: 8px 10px;
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    margin-bottom: 12px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
#calendar-section .cal-nav {
    padding: 2px 0 4px;
}
#calendar-section .cal-nav span {
    font-size: 12px !important;
}
#calendar-section .cal-nav button {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    min-height: unset !important;
}
.cal-day-header {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    padding: 2px 0;
    text-align: center;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    border-radius: 50%;
    cursor: default;
    border: none;
    background: transparent;
    padding: 0;
    min-height: unset;
    width: 100%;
}
.cal-day.today {
    color: #fff;
    font-weight: 700;
    background: hsla(0, 0%, 100%, 0.1);
}
.cal-day.event-day {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
}
.cal-day.event-day.today {
    box-shadow: 0 0 0 1.5px #fff, 0 1px 4px rgba(16, 185, 129, 0.3);
}
.cal-day.occupied-day {
    background: hsla(0, 70%, 50%, 0.3);
    color: #f87171;
    font-weight: 600;
    position: relative;
}
.cal-day.occupied-day::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f87171;
}
.cal-day.other-month {
    opacity: 0.25;
}
/* Rental calendar: available dates */
.cal-day.cal-available {
    color: #a7f3d0;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.cal-day.cal-available:hover {
    background: hsla(160, 60%, 40%, 0.25);
    transform: scale(1.15);
}
/* Owner view: subtle available indicator */
.cal-day.cal-available-owner {
    color: #6ee7b7;
}
/* Unavailable (past or out of range) */
.cal-day.cal-unavailable {
    opacity: 0.3;
}
/* Selected start/end */
.cal-day.cal-selected-start,
.cal-day.cal-selected-end {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}
/* In-range days between start and end */
.cal-day.cal-in-range {
    background: hsla(217, 80%, 55%, 0.2) !important;
    color: #93c5fd !important;
    font-weight: 600;
}

/* Notification Toast */
#toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.notif-toast {
    pointer-events: auto;
    background: hsla(240, 10%, 5%, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    border-radius: 16px;
    padding: 14px 18px;
    max-width: 340px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    cursor: pointer;
    animation: toast-in 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transition: opacity 0.3s, transform 0.3s;
}
.notif-toast:hover {
    border-color: #10B981;
}
.notif-toast.toast-exit {
    opacity: 0;
    transform: translateX(100%);
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.toast-body {
    font-size: 12px;
    color: #94a3b8;
}

/* ==============================
   NOTIFICATION BELL & PANEL
   ============================== */
@keyframes bell-ring {
    0% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
    100% { transform: rotate(0); }
}
.bell-ring svg {
    animation: bell-ring 0.6s ease;
}
.notif-item {
    padding: 10px 16px;
    border-bottom: 1px solid hsla(0,0%,100%,0.06);
    cursor: pointer;
    transition: background 0.15s;
}
.notif-item:hover {
    background: hsla(0,0%,100%,0.06);
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.notif-item-body {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 2px;
}
.notif-item-time {
    font-size: 11px;
    color: #475569;
}

/* ==============================
   AD CONTAINERS
   ============================== */
.ad-container {
    margin: 12px 0;
    min-height: 90px;
    background: hsla(0,0%,100%,0.03);
    border: 1px dashed hsla(0,0%,100%,0.1);
    border-radius: 12px;
    display: none; /* Hidden until ads are loaded — change to flex when AdSense is active */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ad-container.ad-active {
    display: flex; /* Show when ad is loaded */
}
.ad-container::after {
    content: 'AD';
    color: hsla(0,0%,100%,0.15);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}
.ad-sidebar { margin: 16px 0 0; min-height: 100px; }
.ad-panel { margin: 0 0 12px; min-height: 80px; }

/* ==============================
   PROFILE PANEL
   ============================== */
#profile-panel {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10;
    background: hsla(240, 10%, 5%, 0.92);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    animation: panel-in 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
#profile-panel.hidden {
    display: none;
}
.profile-tab {
    flex: 1;
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid hsla(0,0%,100%,0.12);
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: unset;
}
.profile-tab.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border-color: transparent;
}
.profile-activity-card {
    padding: 12px 14px;
    background: hsla(0,0%,100%,0.04);
    border: 1px solid hsla(0,0%,100%,0.08);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.profile-activity-card:hover {
    background: hsla(0,0%,100%,0.08);
}
.profile-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}
.profile-status-badge.status-approved {
    background: hsla(142, 71%, 45%, 0.15);
    color: #10B981;
}
.profile-status-badge.status-pending {
    background: hsla(45, 93%, 47%, 0.15);
    color: #eab308;
}
.profile-status-badge.status-rejected {
    background: hsla(0, 84%, 60%, 0.15);
    color: #f87171;
}

/* ==============================
   MOBILE RESPONSIVE (max-width: 768px)
   ============================== */
/* --- Participant Approval System --- */
.participant-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 12px;
    margin-bottom: 8px;
}
.approve-btn {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: hsla(145, 70%, 40%, 0.2);
    color: #34d399;
    min-height: unset;
    white-space: nowrap;
}
.approve-btn:hover { background: hsla(145, 70%, 40%, 0.35); }
.reject-btn {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: hsla(0, 70%, 50%, 0.15);
    color: #f87171;
    min-height: unset;
    white-space: nowrap;
}
.reject-btn:hover { background: hsla(0, 70%, 50%, 0.3); }

/* Session date chips */
.session-chip {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.session-chip:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.session-chip.active {
    background: rgba(16,185,129,0.2);
    border-color: #10b981;
    color: #10b981;
}
.session-chip.cancelled {
    opacity: 0.5;
    color: #64748b;
    cursor: default;
    border-style: dashed;
}

/* Share menu */
#share-menu-overlay {
    animation: fadeIn 0.2s ease;
}
#share-menu-overlay #share-menu {
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.share-option:active div {
    transform: scale(0.9);
    transition: transform 0.1s;
}

/* Engagement bar */
.engagement-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.engagement-btn:active {
    transform: scale(0.95);
}
.engagement-btn.active {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}
.engagement-view {
    cursor: default;
    margin-left: auto;
}
.engagement-icon {
    font-size: 14px;
}
.engagement-count {
    font-weight: 600;
    color: #cbd5e1;
}
.engagement-label {
    color: #64748b;
}

.approved-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    color: #e2e8f0;
    background: hsla(0, 0%, 100%, 0.03);
    border-radius: 8px;
    margin-bottom: 4px;
}

/* Reject Reason Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 360px;
}
.quick-reasons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-reasons button {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-reasons button:hover,
.quick-reasons button.active {
    background: hsla(0, 70%, 50%, 0.2);
    border-color: #f87171;
    color: #f87171;
}

/* Pre-member input rows in create form */
.pre-member-row {
    display: flex; gap: 6px; margin-bottom: 6px; align-items: center;
}
.pre-member-row input {
    padding: 8px 10px; border-radius: 8px;
    border: 1px solid hsla(0,0%,100%,0.1);
    background: hsla(0,0%,0%,0.3); color: #fff; font-size: 13px;
    box-sizing: border-box;
}
.pre-member-name { flex: 1; }
.pre-member-note { flex: 1.5; }
.pre-member-remove {
    width: 28px; height: 28px; border-radius: 50%;
    background: hsla(0, 70%, 50%, 0.2); border: none;
    color: #f87171; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; min-height: unset !important;
}
.pre-member-remove:hover { background: hsla(0, 70%, 50%, 0.35); }

/* Member display in detail panel */
.member-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-radius: 10px;
    background: hsla(0, 0%, 100%, 0.05);
    margin-bottom: 4px;
}
.member-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.member-note { font-size: 12px; color: #94a3b8; }

@media (max-width: 768px) {
    /* Sidebar: hidden by default, slides in from left */
    #category-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85vw !important;
        max-width: 340px;
        border-radius: 0 24px 24px 0;
        z-index: 500;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: 60px;
        overflow: hidden;
    }
    #category-sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Bottom panel: full-width bottom sheet */
    #ui-panel {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        left: 0;
        transform: none;
        border-radius: 24px 24px 0 0;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1001;
        position: fixed;
    }
    #ui-panel.hidden {
        transform: translateY(100%);
        opacity: 0;
    }

    /* Auth container: compact horizontal row on mobile */
    #auth-container {
        bottom: 20px !important;
        right: 50% !important;
        transform: translateX(50%);
        padding: 6px 10px !important;
        border-radius: 28px !important;
        gap: 6px !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        max-width: calc(100vw - 100px);
    }
    #auth-container #fab-create {
        width: 38px !important;
        height: 38px !important;
    }
    #auth-container #fab-create svg {
        width: 20px !important;
        height: 20px !important;
    }
    #auth-container #auth-divider {
        height: 24px !important;
    }
    #auth-container #user-info {
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
    #auth-container #user-email {
        display: none !important;
    }
    #auth-container #user-avatar {
        width: 28px !important;
        height: 28px !important;
    }
    #auth-container #btn-logout {
        padding: 4px 10px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
        min-height: auto !important;
    }
    /* Notification panel: center on mobile */
    #notif-panel {
        width: calc(100vw - 32px) !important;
        max-width: 320px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        position: fixed !important;
        bottom: 56px !important;
    }
    /* Ad containers: compact on mobile */
    .ad-sidebar { margin: 12px 0 0; min-height: 80px; }
    .ad-panel { min-height: 70px; }

    /* Profile panel: full-width bottom sheet on mobile */
    #profile-panel {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        left: 0;
        transform: none;
        border-radius: 24px 24px 0 0;
        max-height: 80vh;
        padding: 20px;
    }

    /* Create event panel: bottom sheet on mobile */
    #create-event-panel {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px 16px;
    }

    #create-event-panel .form-group {
        max-width: 100%;
        overflow: hidden;
    }

    #create-event-panel .form-group label {
        word-break: break-word;
    }

    #create-event-panel input,
    #create-event-panel select {
        max-width: 100% !important;
        min-width: 0;
    }

    #create-event-panel .form-group[style*="display: flex"] {
        flex-wrap: wrap;
    }

    #create-event-panel .form-group[style*="display: flex"] > div {
        min-width: 0;
    }

    /* Touch-friendly buttons */
    button {
        min-height: 44px;
    }

    /* Hamburger: visible */
    #hamburger-btn {
        display: flex !important;
    }

    /* Desktop expand toggle: hidden */
    #btn-toggle-expand {
        display: none !important;
    }

    /* Mapbox controls: reposition */
    .mapboxgl-ctrl-top-right {
        top: 60px;
        right: 8px;
    }

    /* Toast: full width */
    #toast-container {
        right: 12px;
        left: 12px;
        top: 70px;
    }
    .notif-toast {
        max-width: 100%;
    }

    /* Mobile form fields: constrain to panel width */
    #join-controls {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #join-controls input[type="number"],
    #join-controls input[type="text"],
    #join-controls .note-name,
    #join-controls .note-input {
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
    }
    #participant-notes-list > div {
        flex-wrap: wrap !important;
    }
}

/* Theme Toggle (inline in user bar) */
#theme-toggle {
    transition: transform 0.2s;
    transform: none !important;
}
#theme-toggle:hover { transform: scale(1.15) !important; }

/* ============================
   LIGHT THEME OVERRIDES
   ============================ */
body.light-theme {
    color: #1e293b;
    background-color: #f8fafc;
}


/* Markers: dark/grey on light map for contrast */
body.light-theme .marker {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 0, 0, 0.15);
}
body.light-theme .marker:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(0, 0, 0, 0.2);
}
body.light-theme .marker-active_event { border-color: #34d399; }
body.light-theme .marker-rental_item { border-color: #60a5fa; }
body.light-theme .marker-static_place { border-color: #9ca3af; }

/* Sidebar — dark on light map for contrast */
body.light-theme #category-sidebar {
    background: hsla(220, 15%, 10%, 0.88);
    border-color: hsla(0, 0%, 100%, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
body.light-theme #category-sidebar::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 100%, 0.15);
}
body.light-theme #category-sidebar h3 {
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    border-bottom-color: hsla(0, 0%, 100%, 0.1);
}

/* Search bar — keep dark style in sidebar (sidebar is dark on light theme) */
body.light-theme #search-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
body.light-theme #search-input::placeholder { color: rgba(255, 255, 255, 0.4); }
body.light-theme #search-input:focus { border-color: #10b981; }
body.light-theme .search-icon { color: rgba(255, 255, 255, 0.4) !important; }
body.light-theme #search-clear {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* City chips — dark style */
body.light-theme #city-chips .city-chip {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
}
body.light-theme #city-chips .city-chip.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-color: #10b981 !important;
}
body.light-theme #city-chips .city-chip:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Category buttons — dark style */
body.light-theme .category-btn {
    background: hsla(0, 0%, 100%, 0.03);
    border-color: hsla(0, 0%, 100%, 0.08);
    color: #94a3b8;
}
body.light-theme .category-btn:hover {
    background: hsla(0, 0%, 100%, 0.08);
    color: #fff;
    border-color: hsla(0, 0%, 100%, 0.2);
}
body.light-theme .category-btn.active {
    background: hsla(217, 91%, 60%, 0.2);
    border-color: #3b82f6;
    color: #fff;
}
body.light-theme .category-group-header {
    color: #64748b;
}
body.light-theme .category-group-header:hover {
    color: #94a3b8;
}
body.light-theme #btn-show-all {
    background: hsla(217, 91%, 60%, 0.15);
    border-color: hsla(217, 91%, 60%, 0.3);
    color: #60a5fa;
}

/* Detail panel — dark on light map */
body.light-theme #ui-panel {
    background: hsla(220, 15%, 5%, 0.92);
    border-color: hsla(0, 0%, 100%, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 hsla(0, 0%, 100%, 0.1);
    color: #fff;
}
body.light-theme #panel-title {
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
body.light-theme .panel-meta { color: #94a3b8 !important; }
body.light-theme .panel-section-title { color: #e2e8f0 !important; }
body.light-theme .panel-desc { color: #94a3b8 !important; }

/* Create event panel — dark on light map */
body.light-theme #create-event-panel {
    background: hsla(220, 15%, 5%, 0.92);
    border-color: hsla(0, 0%, 100%, 0.15);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}
body.light-theme #create-event-panel h2 { color: #fff; }
body.light-theme #create-event-panel label { color: #94a3b8 !important; }
body.light-theme #create-event-panel input,
body.light-theme #create-event-panel select,
body.light-theme #create-event-panel textarea {
    background: hsla(0, 0%, 100%, 0.08) !important;
    border-color: hsla(0, 0%, 100%, 0.15) !important;
    color: #fff !important;
}

/* Address suggestions — dark style on light map */
body.light-theme #address-suggestions {
    background: hsla(220, 15%, 8%, 0.95);
    border-color: hsla(0, 0%, 100%, 0.15);
}
body.light-theme .address-suggestion {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
body.light-theme .address-suggestion:hover { background: rgba(255, 255, 255, 0.1); }
body.light-theme .address-suggestion .suggestion-addr { color: #94a3b8; }

/* Chip selector — dark style */
body.light-theme #category-chip {
    background: hsla(220, 15%, 5%, 0.92) !important;
    border-color: hsla(0, 0%, 100%, 0.15) !important;
}
body.light-theme .chip-title { color: #94a3b8 !important; }
body.light-theme .chip-type-btn,
body.light-theme .chip-cat-btn {
    background: hsla(0, 0%, 100%, 0.06) !important;
    border-color: hsla(0, 0%, 100%, 0.1) !important;
    color: #fff !important;
}
body.light-theme .chip-type-btn:hover,
body.light-theme .chip-cat-btn:hover {
    background: hsla(0, 0%, 100%, 0.15) !important;
}

/* Chat section — stays dark */
body.light-theme .chat-messages {
    background: hsla(0, 0%, 0%, 0.2) !important;
}
body.light-theme .chat-msg {
    background: hsla(0, 0%, 100%, 0.06) !important;
    color: #e2e8f0 !important;
}
body.light-theme .chat-input-row input {
    background: hsla(0, 0%, 100%, 0.08) !important;
    border-color: hsla(0, 0%, 100%, 0.15) !important;
    color: #fff !important;
}

/* Tabs — dark sidebar context */
body.light-theme .tab-btn {
    color: #94a3b8 !important;
    border-bottom-color: transparent !important;
}
body.light-theme .tab-btn.active {
    color: #fff !important;
    background: #fff !important;
    color: #000 !important;
}

/* Calendar — dark context */
body.light-theme .cal-day { color: #94a3b8; }
body.light-theme .cal-day.today { background: hsla(0, 0%, 100%, 0.1); color: #fff; }
body.light-theme .cal-day.event-day { background: linear-gradient(135deg, #10B981, #059669); color: #fff; }

/* Venue cards — dark context */
body.light-theme .venue-card {
    background: hsla(0, 0%, 100%, 0.04) !important;
    border-color: hsla(0, 0%, 100%, 0.08) !important;
}
body.light-theme .venue-card:hover {
    background: hsla(0, 0%, 100%, 0.08) !important;
}
body.light-theme .venue-card-name { color: #fff !important; }
body.light-theme .venue-card-meta { color: #94a3b8 !important; }

/* Profile panel — dark on light map */
body.light-theme #profile-panel {
    background: hsla(220, 15%, 5%, 0.92) !important;
    border-color: hsla(0, 0%, 100%, 0.15) !important;
    color: #fff !important;
}
body.light-theme #profile-panel h2 { color: #fff; }

/* User bar — dark panel on light map for contrast */
body.light-theme #auth-container {
    background: hsla(220, 15%, 15%, 0.88) !important;
    border-color: hsla(0, 0%, 100%, 0.12) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
}
body.light-theme #auth-container #user-email { color: #e2e8f0 !important; }
body.light-theme #auth-container #notif-bell-btn svg { stroke: #e2e8f0; }
body.light-theme #theme-toggle svg { stroke: #e2e8f0; }
body.light-theme #auth-container #btn-logout {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%) !important;
    color: white !important;
}
body.light-theme #auth-container #btn-login-google {
    background: #fff !important;
    color: #000 !important;
}
body.light-theme #notif-panel {
    background: hsla(220, 15%, 12%, 0.97) !important;
    border-color: hsla(0, 0%, 100%, 0.12) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
}
body.light-theme #notif-panel span { color: #e2e8f0 !important; }

/* Footer: dark text on light theme */
body.light-theme #app-footer { color: rgba(0,0,0,0.5); }
body.light-theme #app-footer a { color: rgba(0,0,0,0.6); }
body.light-theme #app-footer a:hover { color: rgba(0,0,0,0.8); background: rgba(0,0,0,0.08); border-radius: 4px; padding: 1px 4px; margin: -1px -4px; }

/* FAB stays the same (green) in both themes */

/* Cluster circles stay visible on both themes */