/* === Map Day Filter (Dropdown Redesign) === */
.map-filter-container {
    position: absolute;
    top: 15px;
    left: 20px;
    /* Moved to left side to avoid overlap */
    transform: none;
    /* Removed centering */
    z-index: 100;
    font-family: var(--font-primary);
}

/* The Trigger Button (Always Visible) */
.map-day-select-trigger {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    min-width: 160px;
    justify-content: space-between;
}

.map-day-select-trigger:hover {
    background: rgba(40, 44, 60, 0.95);
    border-color: var(--primary-accent);
}

.map-day-select-trigger .arrow {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.map-day-select-trigger.open .arrow {
    transform: rotate(180deg);
}

/* The Dropdown Menu (Hidden by default) */
.map-day-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 8px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    /* Changed to hidden initially for transition */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    /* Changed to flex column via js/css toggle usually better but transition requires max-height */
    flex-direction: column;
}

.map-filter-container.active .map-day-dropdown {
    max-height: 300px;
    /* Scrollable limit */
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    /* Allow scroll when open */
    padding: 6px;
}

/* Custom Scrollbar */
.map-day-dropdown::-webkit-scrollbar {
    width: 4px;
}

.map-day-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Dropdown Options */
.map-day-option {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.2s ease;
}

.map-day-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.map-day-option.selected {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-accent);
    font-weight: 600;
}

.map-day-option.all-days {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
    padding-bottom: 10px;
}