:root {
    --party-fill-alp: #e3142d;
    --party-text-alp: #f87171;
    --party-fill-lnp: #003087;
    --party-text-lnp: #60a5fa;
    --party-fill-grn: #10c44e;
    --party-text-grn: #4ade80;
    --party-fill-kap: #04411b;
    --party-text-kap: #09c34d;
    --party-fill-ind: #6b1e6f;
    --party-text-ind: #871785;

    --boundary-old: #dc2626;
    --boundary-new: #2563eb;
}

/* Page title in header */
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

/* Map Container - Full screen */
.map-container {
    position: fixed;
    top: var(--header-offset, 60px);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-offset, 60px));
}

.compare-map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

/* Compare layer labels */
.compare-label {
    position: fixed;
    top: calc(var(--header-offset, 60px) + 0.75rem);
    z-index: 10;
    background: var(--surface-color, #1e293b);
    color: var(--text-primary, #f1f5f9);
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius, 0.5rem);
    border: 1px solid var(--border-color, #334155);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.5);
    font-size: 0.8125rem;
    font-weight: 600;
    pointer-events: none;
}

.compare-label-before {
    right: calc(50% + 0.75rem);
    border-color: var(--boundary-old);
    color: var(--boundary-old);
}

.compare-label-after {
    left: calc(50% + 0.75rem);
    border-color: var(--boundary-new);
    color: var(--boundary-new);
}

/* MapLibre Popup Customization */
.maplibregl-popup-content {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.55);
}

.maplibregl-popup-close-button {
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
}

.maplibregl-popup-close-button:hover {
    background: var(--surface-hover);
    color: var(--primary-color);
}

/* District hover overlay */
.district-hover-overlay {
    position: fixed;
    bottom: 1rem;
    left: 0.5rem;
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 0.625rem 0.875rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.5);
    z-index: 10;
    min-width: 180px;
    pointer-events: none;
    font-size: 0.875rem;
    line-height: 1.5;
}

.district-hover-prompt {
    color: var(--text-secondary);
    font-style: italic;
}

.district-hover-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.district-hover-detail {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.district-party-alp {
    color: var(--party-text-alp);
    font-weight: 600;
}

.district-party-lnp {
    color: var(--party-text-lnp);
    font-weight: 600;
}

.district-party-grn {
    color: var(--party-text-grn);
    font-weight: 600;
}

.district-party-kap {
    color: var(--party-text-kap);
    font-weight: 600;
}

.district-party-ind {
    color: var(--party-text-ind);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.1rem;
    }
}
