.map-info-popup {
    position: absolute;
    right: 0;
    top: 50%;
    width: 280px;
    transform: translateY(-50%) translateX(100%);
    background-color: var(--bs-primary-600);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

.map-info-popup.active {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    visibility: visible;
    display: block;
}

.map-connection-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.map-connection-line line,
.map-connection-line circle {
    transition: opacity 0.3s ease, stroke-dasharray 0.3s ease, cx 0.2s ease, cy 0.2s ease, x1 0.2s ease, y1 0.2s ease, x2 0.2s ease, y2 0.2s ease;
}

.map-info-popup-content {
    padding: 16px 14px;
    color: white;
    border: 1px solid white;
    border-radius: 8px;
}

.map-info-popup-content .map-popup-image {
    width: 100%;
    height: 145px;
    border-radius: 10px;
}

.map-info-popup-title {
    color: white;
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
    border-bottom: 1.5px solid rgba(255, 255, 255);
    padding: 10px 0 4px 0;
    line-height: 1.5;
    font-family: "Futura PT Web";
}

.map-info-popup-stats {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 6px;
    border-bottom: 1.5px solid white;
    padding-bottom: 6px;
}

.map-info-popup-stat {
    font-size: 15px;
    color: white;
    display: flex;
    gap: 4px;
    font-family: "Futura-Medium";
    line-height: var(--fs-26);
}

.map-info-popup-categories {
    margin-bottom: 10px;
}

.map-info-popup-category {
    margin-bottom: 6px;
    border-bottom: 1.5px solid white;
    padding-bottom: 6px;
}

.map-info-popup-category-title {
    font-weight: bold;
    font-size: var(--fs-15);
    line-height: var(--fs-26);
    color: white;
    text-transform: uppercase;
    font-family: "Futura PT Web";
}

.map-info-popup-category-value {
    font-size: 15px;
    display: flex;
    gap: 4px;
    font-size: var(--fs-15);
    line-height: var(--fs-26);
    font-family: "Futura PT Web";
}
.map-info-popup-category-main{
    display: flex;
    gap: 6px;
}
.map-info-popup-button-wrapper{
    display: flex;
    justify-content: center;
}
.map-info-popup-button {
    display: block;
    width: 100%;
    padding: 5px 0;
    background: linear-gradient(270deg, #34919f -0.32%, #43b1c1 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: "Futura PT Web";
    font-size: var(--fs-22);
    line-height: var(--fs-24);
    width: 60%;
}

.map-info-popup-button:hover {
    transform: scale(1.05);
    color: var(--bs-white);
}

@media (max-width: 767px) {
    .map-info-popup {
        width: 320px;
    }

    .map-info-popup-title {
        font-size: 20px;
    }

    .map-info-popup-stat {
        font-size: 14px;
    }

    .map-info-popup-category-title {
        font-size: 15px;
    }

    .map-info-popup-category-value {
        font-size: 14px;
    }

    .map-popup-container,
    .map-info-popup {
        width: 90% !important;
        max-width: 320px !important;
    }

    .map-popup-container.active,
    .map-info-popup.active {
        transform: translateY(-50%) translateY(0) !important;
        right: 20px !important;
    }

    .map-popup-content,
    .map-info-popup-content {
        padding: 10px !important;
    }

    .map-info-popup-title{
        padding: 6px 0 4px 0;
    }
    .map-info-popup-stats{
        gap: 2px;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    .map-info-popup-categories{
        margin-bottom: 6px;
    }
    .map-info-popup-category{
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    .map-info-popup-category-title{
        /* margin-bottom: 5px; */
    }
    .map-info-popup-button{
        padding: 6px 0;
    }

    /* Connection line adjustments for mobile */
    .map-connection-line line {
        stroke-width: 1;
    }

    .map-connection-line circle {
        r: 3;
    }
}

@media (max-width: 575px) {
    .map-info-popup {
        width: 280px;
    }

    .map-info-popup-title {
        font-size: 18px;
    }

    .map-info-popup-content {
        padding: 10px;
    }

    .map-popup-container,
    .map-info-popup {
        width: 85% !important;
        max-width: 280px !important;
        right: 15px !important;
    }

    .map-popup-container.active,
    .map-info-popup.active {
        top: 45% !important;
        transform: translateY(-50%) translateY(0) !important;
    }

    /* Connection line adjustments for smaller mobile */
    .map-connection-line line {
        stroke-width: 1;
    }

    .map-connection-line circle {
        r: 2.5;
    }
}

.map-popup-container {
    position: fixed !important;
    top: 50% !important;
    left: auto !important;
    right: 60px !important;
    transform: translateY(-50%) translateY(70px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
    z-index: 9999 !important;
    opacity: 0 !important;
}

.map-info-popup {
    position: fixed !important;
    top: 50% !important;
    left: auto !important;
    right: 23% !important;
    transform: translateY(-50%) translateY(70px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
    z-index: 9999 !important;
    opacity: 0 !important;
}

.map-popup-container.active,
.map-info-popup.active {
    z-index: 9999 !important;
    transform: translateY(-50%) translateY(0) !important;
    opacity: 1 !important;
}
