
#svg-container {
    display: flex;
    width: 100%;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 225px;
    padding: 15px;
    border-radius: 5px;
    position: relative;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-item h6 {
    font-size: 14px;
    line-height: 14px;
    color: #6c757d !important;
}

.legend-item-square {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-top: -10px;
    margin-right: 10px;
}

/* Specific colors for each legend item */
.legend-item:nth-child(1) .legend-item-square {
    background-color: #573870; /* Hollard License */
}
/* Hollard Partner License */
.legend-item:nth-child(2) .legend-item-square {
    background-color: #47b5a6;
}
/* Hollard Head Office */
.legend-item:nth-child(3) .legend-item-square {
    background-color: #f25921;
}
/* Expats only */
.legend-item:nth-child(4) .legend-item-square {
    background-color: #c3b68f;
}
/* Cannot Assist */
.legend-item:nth-child(5) .legend-item-square {
    background-color: #e6e0d1 !important;
}

@media (min-width: 576px) {
    .map-container {
        display: flex;
        flex-direction: row;
        position: relative;
        margin-bottom: 65px;
    }

    .legend {
        bottom: unset;
        top: 460px;
        position: absolute;
    }
}

@media (max-width: 992px) {
    .legend {
        position: relative;
        bottom: unset;
        top: unset;
        margin-top: 45px;
    }

    .map-container {
        display: flex;
        flex-direction: column;
        position: relative;
        margin-bottom: 0px;
    }
}


/* --- Basic Map Styling --- */
#africa-map {
    width: 80vw;
    /* Make the map responsive */
    height: auto;
    border: 1px solid #ccc;
    display: block;
    margin: 20px auto;
}


/* --- Default Country Style (The Base) --- */
.country {
    fill: #c3b68f;
    stroke: White;
    stroke-width: 0.5px;
    transition: fill 0.3s ease-in-out;
    cursor: pointer;
}

.country-partner-licence {
    fill: #47b5a6 !important
}

.head-office {
    fill: #f25921 !important;
}

.not-available {
    fill: #e6e0d1 !important;
}

/* Define the universal class for the map labels */
.map-label {
    font-family: "Hollard Sans Light", "Quicksand", "Mulish", "Be Vietnam Pro", "Mona Sans", "Manjari";
    font-size: 11px;
    fill: white;
    pointer-events: none;
    z-index: 99;
    letter-spacing: 0.5px;
}

.country.active {
    fill: #573870;
    stroke: White;
    stroke-width: 0.5px;
    transition: fill 0.3s ease-in-out;
    cursor: pointer;
}

.country:hover,
.country-partner-licence:hover {
    fill: #A58B3F !important;
    stroke: White;
    stroke-width: 1px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

#NG {
    fill: #2ecc71;
}

    #NG:hover {
        fill: #27ae60;
    }

.header-map {
    margin-bottom: -30px ;
}