/* ================== Leaflet Map Styles ================== */

.map-wrap {
    background: #0b0b0b;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
    height: 533px;
    width: 983px;
    margin: 0 auto;
  }
  
  #leaflet-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
  }
  
  /* Remove WP box shadows in alignfull */
  .ha-plugin-wrapper .ha-landing.alignfull .map-wrap,
  .ha-plugin-wrapper .ha-landing.alignfull .map-wrap * {
    box-shadow: none !important;
  }
  
  /* Pulse marker */
  .glow-marker .pulse {
    width: 14px;
    height: 14px;
    background: red;
    border-radius: 50%;
    box-shadow: 0 0 15px 6px rgba(255,0,0,0.6);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
  }
  
  /* Highlight countries */
  .leaflet-interactive.country-highlight {
    animation: countryPulse 2.5s infinite;
    stroke: #ff0000 !important;
    filter: drop-shadow(0 0 6px rgba(255,0,0,0.7));
  }
  @keyframes countryPulse {
    0%   { fill-opacity: 0.3; }
    50%  { fill-opacity: 0.6; }
    100% { fill-opacity: 0.3; }
  }
  
  /* Popup */
  .ha-popup-title {
    font-size: clamp(22px, 6vw, 29px);
    color: #000;
    text-align: center;
    font-family: Oswald, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .leaflet-popup-content p {
    margin: 0 !important;
    font-size: 14px !important;
    text-align: left !important;
    text-transform: lowercase !important;
  }
  .leaflet-container a {
    color: #000;
    font-size: 16px !important;
  }
  
  .ha-popup img {
    display: block;
    max-width: 40% !important;
    height: auto;
    border-radius: 6px;
    margin: 20px auto !important;
  }
  .ha-popup .btn-donate {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #e60000;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: none;
  }
  .ha-popup .btn-donate:hover {
    background: #b50000;
  }
  
  /* Modal overlay */
  #story-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
  }
  #story-overlay.active { display: flex; }
  
  /* Modal content */
  #story-overlay .modal-content {
    background: #fff;
    color: #111;
    max-width: 800px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    text-align: left;
  }
  
  /* Close button */
  #story-overlay .overlay-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 32px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    line-height: 1;
  }
  
  /* Headings */
  #story-overlay .ha-popup-title {
    font-size: clamp(22px, 5vw, 29px);
    font-family: Oswald, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #000;
  }
  
  /* Body text */
  #story-overlay .ha-popup-body p {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 1rem;
  }
  
  /* Image */
  #story-overlay img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px auto;
    display: block;
  }
  
  /* Donate button */
  #story-overlay .btn-donate {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #e60000;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
  }
  #story-overlay .btn-donate:hover {
    background: #b50000;
  }
  
  .leaflet-right .leaflet-control {
    margin-right: 10px;
    display: none;
  }  