#staff-map-wrap {
    position: relative;
    width: 100%;
}

#staff-map {
    width: 100%;
    height: 600px;
}

#staff-map-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px 20px 20px;
    z-index: 10;
    text-align: center;
    font-family: inherit;
    max-height: 85%;
    overflow-y: auto;
}

.smp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.smp-close:hover {
    color: #7a1a2e;
}

.smp-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid #f0f0f0;
}

.smp-avatar-placeholder {
    background: #e0e0e0;
}

.smp-name {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.smp-role {
    font-size: 13px;
    color: #555;
    margin: 0 0 6px;
}

.smp-state {
    font-size: 13px;
    font-weight: 600;
    color: #7a1a2e;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smp-contacts {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.smp-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.smp-contact-row a {
    color: #1a1a1a;
    text-decoration: none;
    word-break: break-all;
}

.smp-contact-row a:hover {
    color: #7a1a2e;
}

.smp-icon {
    color: #7a1a2e;
    flex-shrink: 0;
}

.smp-expertise {
    border-top: 1px solid #eee;
    padding-top: 10px;
    text-align: left;
}

.smp-expertise-toggle {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #7a1a2e;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.smp-expertise-toggle:hover {
    opacity: 0.8;
}

.smp-expertise-body {
    display: none;
    font-size: 13px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}

.smp-expertise.open .smp-expertise-body {
    display: block;
}

.smp-expertise.open .smp-arrow {
    transform: rotate(180deg);
    display: inline-block;
}

@media (max-width: 768px) {
    #staff-map-popup {
        position: fixed;
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 60vh;
    }

    #staff-map {
        height: 450px;
    }
}
