/* --- Styles for Static Map with Markers --- */

/* Main container for the map section */
.map-container {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wrapper to position markers relative to the image */
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Reducido para hacer el mapa más pequeño */
    margin: 0 auto;
}

/* Responsive map image */
.map-image {
    display: block;
    width: 100%;
    margin-top: 35px;
    height: auto;
}

/* Generic marker style */
.marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #f68b1f;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.marker:hover {
    transform: scale(1.2);
    animation-play-state: paused; /* Pause animation on hover */
}

/* --- Tooltip Styles --- */
.marker::before, .marker::after {
    position: absolute;
    bottom: 140%; /* Position above the marker */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.marker::after { /* Tooltip box */
    content: attr(data-tooltip);
    background-color: #f68b1f;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.marker::before { /* Tooltip arrow */
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #001689 transparent transparent transparent;
    bottom: calc(140% - 6px); /* Position arrow right below the box */
}

.marker:hover::before, .marker:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px); /* Add a slight upward move effect */
}

/* Pulsing animation for markers */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 139, 31, 0.7), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(246, 139, 31, 0), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(246, 139, 31, 0), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Marker positioning */
/* These values may need fine-tuning */
.marker-gt { top: 32%; left: 10.2%; }
.marker-bz { top: 11%;  left: 22%; }
.marker-sv { top: 37%; left: 21%; }
.marker-hn { top: 30%; left: 36%; }
.marker-pa { top: 82%; left: 78%; }


/* --- Responsive Adjustments for Markers --- */

@media (max-width: 768px) {
    .marker {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .map-wrapper {
        position: relative;
        width: 100%;
        max-width: 500px; /* Reducido para hacer el mapa más pequeño */
        margin: 0 auto;
    }

    /* Adjusted positions for tablet */
    .marker-gt { top: 35%; left: 9.5%; }
    .marker-bz { top: 7%;  left: 21%; }
    .marker-sv { top: 34%; left: 20%; }
    .marker-hn { top: 26%; left: 35%; }
    .marker-pa { top: 82%; left: 77%; }
}

@media (max-width: 480px) {
    .marker {
        width: 15px;
        height: 15px;
    }

    /* Adjusted positions for mobile */
    .marker-gt { top: 35%; left: 9.5%; }
    .marker-bz { top: 15%;  left: 21%; }
    .marker-sv { top: 38%; left: 20%; }
    .marker-hn { top: 31%; left: 35%; }
    .marker-pa { top: 82%; left: 77%; }
}
  