/* Era Filter Panel */
#era-filter {
    position: fixed;
    bottom: calc(24px + var(--timeline-height, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.era-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 9px 12px;
    background: rgba(8, 8, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    pointer-events: all;
    max-width: 90vw;
}

.era-filter-title {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    text-align: center;
    margin-bottom: 2px;
    pointer-events: all;
}

.era-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.era-checkbox-label:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.era-checkbox-label input[type="checkbox"] {
    display: none;
}

.era-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.35;
    transition: opacity 0.2s, transform 0.2s;
}

.era-checkbox-label.checked {
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
}

.era-checkbox-label.checked .era-dot {
    opacity: 1;
    transform: scale(1.2);
}

.era-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
    align-self: stretch;
    margin: 0 2px;
}

.era-select-all {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.era-select-all:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,1);
    border-color: rgba(255,255,255,0.3);
}

.era-select-all.all-checked {
    background: rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.4);
    color: rgb(201,168,76);
}

/* Cross-era bridge links */
.link-line.cross-era {
    stroke-dasharray: 5 4;
    opacity: 0.5 !important;
}

/* Node era coloring */
.node-circle[data-era] {
    transition: opacity 0.3s ease;
}

.node-points.era-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.link-group.era-hidden line {
    opacity: 0 !important;
}