.interactive-map-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: auto;
}

.interactive-map svg {
    width: 100%;
    height: auto;
}

.hotspot-boxes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Default hotspot styling */
.hotspot {
    position: absolute;
    background: black;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: inline-grid;
}

.hotspot {
    box-shadow: 0 10px 27px 0 rgba(0, 0, 0, .2) !important;
}

/* Tooltip inside hotspot */
.hotspot .tooltip {
    display: contents;
    flex-direction: column;
    align-items: center;
    background: black;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Continent name */
.hotspot .continent-name {
    font-size: 16px;
    font-weight: bold;
}

/* User-added text (link) */
.hotspot .custom-text {
    font-size: 14px;
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 20px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.hotspot .custom-text:hover {
    background: white;
    color: black;
}

/* Enlarging tooltip on continent hover */
/* .hotspot.hovered .tooltip {
    transform: scale(1.3) !important;
    background: white !important;
    color: black !important;
} */

/* Ensure transition applies properly */
/* svg g.cont-hvr path {
    transition: fill 0.3s ease, stroke 0.3s ease;
} */

/* Hover effect */
svg g.cont-hvr:hover path {
    fill: #51c91d21 !important;
    stroke: #51c91d !important;
    stroke-width: 2px;
}


/* Default hotspot styling */
.hotspot {
    position: absolute;
    background: black;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    pointer-events: auto;
    display: inline-grid;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 1; /* Hide by default */
}

/* Arrow below the hotspot */
.hotspot::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid black; /* Default arrow color */
    transition: all 0.1s ease-ou;
}

/* Enlarged hotspot styling */
.hotspot.enlarged {
    transform: scale(1.3);
    background: white;
    color: black;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
    opacity: 1; /* Ensure only the hovered hotspot is visible */
}

/* Change arrow color when the hotspot is enlarged */
.hotspot.enlarged::after {
    border-top-color: white !important;
}


/* Default transition for continents */
svg g.cont-hvr path {
    transition: fill 0.1s, stroke 0.1s;
}

/* Highlight continent when hotspot is active */
svg g.cont-hvr.highlighted path {
    fill: #51c91d21 !important;
    stroke: #51c91d !important;
    stroke-width: 2px !important;
}