body {
    font-family: montserrat;
    background-color: #023253;
    text-align: center;
    margin: 20px;
    overflow-x: hidden;
}

.map-container { position: relative; max-width: 1200px; margin: 20px auto; line-height: 0; }
.map-image { display: block; width: 100%; height: auto; }
.map-area { position: absolute; transition: transform 0.2s ease-out, opacity 0.2s ease-out, filter 0.2s ease-out; opacity: 0.9; }
.map-area:hover { opacity: 1; transform: scale(1.05); cursor: pointer; z-index: 10; }
.map-area.selected { opacity: 1; transform: scale(1.08); z-index: 20; filter: drop-shadow(0 0 2px black) drop-shadow(0 0 2px black); }
.info-popup { position: absolute; width: 30%; display: flex; flex-direction: column; background-color: #f4f4f4; color: #333; text-align: left; padding: 20px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 30; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; opacity: 1; transform: scale(1); }
.info-popup.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }
.info-popup h2 { margin-top: 0; margin-bottom: 0; font-size: 1.1em; white-space: normal; overflow-wrap: break-word; min-width: 0; line-height: 1.2; }
.info-popup p { font-size: 0.9em; line-height: 1.5; margin-bottom: 10px; font-weight: 500; }
.info-popup strong { color: #000; }
.info-popup .divider { border-top: 1px solid #000000; margin: 10px 0 5px 0; }
.info-popup::after { content: ''; position: absolute; top: 50%; left: 100%; margin-top: -15px; border-width: 15px; border-style: solid; border-color: transparent transparent transparent #f4f4f4; transition: opacity 0.3s ease-in-out; }
.popup-arrow-bottom::after { top: 100%; left: 50%; margin-top: 0; margin-left: -15px; border-color: #f4f4f4 transparent transparent transparent; }
.image-popup { position: absolute; width: 35%; z-index: 30; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; opacity: 1; transform: scale(1); }
.image-popup.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }
.image-popup img { width: 100%; height: auto; -webkit-tap-highlight-color: transparent; }

#popup-region-north-america {
    background-image: url('https://assets.infoplaza.io/specials/tornados-16072025/popup-amerika.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 800 / 658; 
}
#popup-region-europe {
    background-image: url('https://assets.infoplaza.io/specials/tornados-16072025/popup-europa.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 800 / 646;
}
.image-popup img { display: none; }
.popup-link {
    position: absolute;
    display: block;
}
#link-dagwanoenyent { top: 36%; left: 8%; width: 37%; height: 65%; }
#link-tornado-alley { top: 35%; left: 565%; width: 37%; height: 65%; }
#link-nederland { top: 30%; left: 10%; width: 36%; height: 75%; }
#link-europa-alley { top: 30%; left: 52%; width: 36%; height: 75%; }

#popup-region-bangladesh { top: 16.5%; left: 38.5%; }
#popup-region-east-asia { top: 9%; left: 44%; }
#popup-region-south-africa { top: 18%; left: 41.5%; }
#popup-region-south-america { top: 18%; left: 18%; }
#popup-region-australia { top: 6%; left: 70%; }

#region-north-america { top: 19%; left: 15.6%; width: 14.8%; }
#region-europe { top: 11.6%; left: 47.1%; width: 18.3%; }
#region-east-asia { top: 19%; left: 79.86%; width: 10.6%; }
#region-south-america { top: 62.6%; left: 32%; width: 6.4%; }
#region-south-africa { top: 62.5%; left: 56.8%; width: 2.5%; }
#region-australia { top: 56.7%; left: 81.8%; width: 10.8%; }
#region-bangladesh { top: 35.2%; left: 74.1%; width: 1.5%; }

@media (max-width: 768px) {
    body { margin: 0; }
    .map-scroll-wrapper { overflow-x: auto; }
    .map-container { width: 180vw; margin: 0; max-width: none; }
    .info-popup, .image-popup { position: fixed; top: 35% !important; left: 50% !important; transform: translate(-50%, -50%); width: 85%; max-width: 400px; }
    .info-popup { background-color: rgba(244, 244, 244, 0.9); }
    .info-popup::after { display: none; }
    .info-popup h2 { font-size: 1em; }
    .info-popup p { font-size: 0.85em; }
    #popup-region-north-america { background-image: url('https://assets.infoplaza.io/specials/tornados-16072025/popup-amerika-telefoon.png'); aspect-ratio: 800 / 822; max-width: 450px; }
    .popup-link { display: block; }
    #link-dagwanoenyent { top: 19%; left: 0%; width: 43%; height: 64%; }
    #link-tornado-alley { top: 19%; left: 57%; width: 43%; height: 58%; }
    #popup-region-europe { background-image: url('https://assets.infoplaza.io/specials/tornados-16072025/popup-europa-telefoon.png'); aspect-ratio: 800 / 646; max-width: 450px; }
    #link-nederland { top: 10%; left: 0%; width: 43%; height: 80%; }
    #link-europa-alley { top: 10%; left: 57%; width: 43%; height: 80%; }
}

/* ================================================================ */
/* ==       DEFINITIEVE PULSERENDE ANIMATIE VOOR EUROPA          == */
/* ================================================================ */

@keyframes pulse-europe {
  0% { transform: scale(1);}
  50% { transform: scale(1.08);}
  100% { transform: scale(1);}
}

#region-europe {
  animation: pulse-europe 2.5s infinite ease-in-out;
  transform-origin: center; 
}

/* AANGEPAST: Stop de animatie bij hover, of als de container de 'popup-is-active' class heeft */
#region-europe:hover,
.map-container.popup-is-active #region-europe {
  animation: none;
}