/* ==========================================================================
   INTERACTIVE MAP STYLES
   Used specifically for mitglieder-karte.html
   ========================================================================== */

.map-container {
    display: flex;
    height: calc(100vh - 80px);
    position: relative;
    background: #eef2f5;
    overflow: hidden;
}

/* SVG Map Area (Left) */
.map-area {
    flex: 1;
    position: relative;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.map-area.panel-open {
    flex: 0 0 60%;
}

.map-svg {
    width: 100%;
    height: 100%;
    max-width: 900px;
    max-height: 800px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.map-region {
    fill: #b5a073;
    stroke: white;
    stroke-width: 2;
    transition: fill 0.2s, stroke 0.2s, transform 0.2s;
    cursor: pointer;
}

.map-region:hover {
    fill: #1b3153;
    stroke: #ffda75;
    stroke-width: 3;
    transform: scale(1.01);
    transform-origin: center;
}

.map-region.active {
    fill: #1b3153;
    stroke: #ffda75;
    stroke-width: 3;
}

.map-label {
    fill: white;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Detail Panel (Right Side Drawer) */
.detail-panel {
    position: absolute;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.detail-panel.open {
    right: 0;
}

.panel-header {
    background: var(--clr-navy);
    color: white;
    padding: 2rem;
    position: relative;
}

.panel-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.panel-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.region-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.region-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-content {
    padding: 2rem;
    flex: 1;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--clr-navy);
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title svg {
    color: var(--clr-gold);
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.item-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-icon {
    color: var(--clr-gold);
    margin-top: 3px;
}

.item-text {
    flex: 1;
}

.item-text strong {
    display: block;
    color: #333;
    font-weight: 500;
}

.item-text span {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.2rem;
}

.link-interactive {
    color: var(--clr-navy);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
    cursor: pointer;
}

.link-interactive:hover {
    color: var(--clr-gold);
    text-decoration: underline;
}

.tag {
    display: inline-block;
    background: #f0f4f8;
    color: var(--clr-navy);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.3rem;
    border: 1px solid rgba(27, 49, 83, 0.1);
}

.map-controls {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-btn {
    background: none;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    color: #555;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-btn:hover {
    background: #f8f9fa;
    color: var(--clr-navy);
}

.map-btn:not(:last-child) {
    border-bottom: 1px solid #eee;
}

#empty-state-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #888;
    padding: 2rem;
}

#empty-state-panel svg {
    color: #ccc;
    margin-bottom: 1rem;
}

/* Publication Type Badges */
.pub-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.badge-rs { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-auf { background: #fff7ed; color: #9a3412; border: 1px solid #ffedd5; }
.badge-vor { background: #f0fdf4; color: #166534; border: 1px solid #dcfce7; }
