.hotspot-map-list-wrapper {
    display: flex;
    gap: 24px;
    width: 100%;
}

.map-container {
    position: relative;
    flex: 2;
    background: transparent;
    box-shadow: none !important; /* Force completely no shadow */
    filter: none !important;
    border-radius: 8px;
    overflow: visible !important; /* CRITICAL: Allows tooltips to overflow container boundaries */
}

.map-base-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: none !important;
    filter: none !important;
}

.hotspot-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
    filter: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.hotspot-pin:hover,
.hotspot-pin.active {
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 1001; /* Stay higher than standard z-index on active */
}

/* Tooltip implementation */
.pin-tooltip {
    display: none;
    position: absolute;
    background: #1e293b;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    width: max-content;
    max-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important; /* Extremely high z-index, override parent components */
    pointer-events: auto; /* allow text selection if interactive */
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    border-width: 6px;
    border-style: solid;
}

/* Tooltip orientations */

/* UP orientation (Default) */
.hotspot-pin.tooltip-orientation-up .pin-tooltip {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}
.hotspot-pin.tooltip-orientation-up .pin-tooltip::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-color: #1e293b transparent transparent transparent;
}

/* DOWN orientation */
.hotspot-pin.tooltip-orientation-down .pin-tooltip {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}
.hotspot-pin.tooltip-orientation-down .pin-tooltip::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-color: transparent transparent #1e293b transparent;
}

/* LEFT orientation */
.hotspot-pin.tooltip-orientation-left .pin-tooltip {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}
.hotspot-pin.tooltip-orientation-left .pin-tooltip::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-color: transparent transparent transparent #1e293b;
}

/* RIGHT orientation */
.hotspot-pin.tooltip-orientation-right .pin-tooltip {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}
.hotspot-pin.tooltip-orientation-right .pin-tooltip::after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-color: transparent #1e293b transparent transparent;
}

.hotspot-pin:hover .pin-tooltip,
.hotspot-pin.active .pin-tooltip {
    display: block;
    animation: tooltip-fade-be63e0d0 0.2s ease-out;
}

@keyframes tooltip-fade-be63e0d0 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tooltip-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3px;
}

.tooltip-desc {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Country List Styles (Strictly Vertical Column) */
.country-list {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.country-item {
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e1e1e1; /* Initial subtle border */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: normal !important;
    display: block !important;
}

.country-item:hover,
.country-item.active {
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive configurations */
@media (max-width: 1024px) {
    .hotspot-map-list-wrapper {
        flex-direction: column !important;
    }
    .country-list {
        display: flex !important;
        flex-direction: column !important; /* Keep strictly vertical under the map on mobile */
        grid-template-columns: none !important;
        max-height: none;
    }
    .country-item:hover,
    .country-item.active {
        transform: translateY(-2px);
    }
}

@media (max-width: 767px) {
    .country-list {
        display: flex !important;
        flex-direction: column !important; /* Keep strictly vertical on mobile */
        overflow-x: visible !important;
        white-space: normal !important;
    }
    .country-item {
        flex: 1 1 auto !important;
    }
    .country-item:hover,
    .country-item.active {
        transform: none;
    }
}
