#ghana-map {
    position: relative;
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 2rem;
}

#ghana-map svg {
    width: 100%;
    height: 100%;
    transform: scale(0.9);
    transform-origin: center center;
}

.region {
    fill: #e2e8f0;
    stroke: #ffffff;
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: none;
}

.region:hover, .region.active {
    fill: #3b82f6;
    transform: none;
    filter: none;
}

#map-tooltip {
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    pointer-events: none;
    z-index: 1000;
    display: none;
    transform: translate(-50%, -100%);
    margin-top: -4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#map-tooltip:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);
}

.region-label {
    font-size: 11px;
    font-weight: 600;
    fill: #4b5563;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #4b5563;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 14px;
    height: 14px;
    margin-right: 10px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}