/* Map styling */
#map-wrapper svg {
    border: 1px solid white;
    background-color: white;
}

/* Denmark - green */
#dk {
    fill: #00847c;
    stroke: #00847c;
    stroke-width: 1;
    transition: fill 0.3s ease;
}


/* Foreign areas - grey */
#foreign {
    fill: #bababa;
    stroke: #bababa;
    stroke-width: 1;
    transition: fill 0.3s ease;
}


#map-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}



.container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: calc(100vh - 60px); /* Adjust based on header height */
    display: flex;
    flex-direction: column;
}

#map-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

#map-wrapper svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    background: white;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .info-label {
        font-size: 12px;
    }
    .info-value {
        font-size: 10px;
    }
}

@media (max-width: 1200px) {
    .info-label {
        font-size: 11px;
    }
    .info-value {
        font-size: 9px;
    }
}

.map-title {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map-wrapper {
    position: relative;
    width: 100%;
    overflow: auto;
}

.cls-green-line {
    stroke-width: 4;
    stroke-miterlimit: 50;
    stroke-dasharray: 4 12; 
    fill: none;
    stroke: #02525e;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cls-yellow-line {
    fill: none;
    stroke: #ffd237; 
    stroke-width: 4;
    stroke-miterlimit: 50;
    stroke-dasharray: 4 12; 
    stroke-linecap: round;
    stroke-linejoin: round;
}


.reverse-animation {
    fill: none;
    stroke-width: 1px;
    stroke-dasharray: 3;
    stroke-dashoffset: 15;
    animation: reverse-move 0.5s linear infinite; /* Faster: was 1s */
}

.animation {
    fill: none;
    stroke-width: 1px;
    stroke-dasharray: 3;
    stroke-dashoffset: -15;
    animation: move 0.5s linear infinite; /* Faster: was 1s */
}

@keyframes move {
    to {
        stroke-dashoffset: 2;
    }
}

@keyframes reverse-move {
    to {
        stroke-dashoffset: -2;
    }
}

/* Info boxes */
.info-box {
    transition: all 0.3s ease;
    font-family: 'Times New Roman', Times, serif;
    background-color: grey;
}

.info-box:hover rect {
    stroke-width: 3;
}

.info-label {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    fill: #02525e;
}

.info-value {
    font-size: 14px;
    font-weight: bold;
    fill: #000000;
}

.info-box rect {
    opacity: 0.95;
}

.info-box:hover rect {
    opacity: 1;
}

g.info-box {
    background-color: grey;
}