/* ===============================
   Map Container & Images
   =============================== */
.map-container {
    width: 100%;
    max-width: 700px;        /* maximum size for desktop */
    aspect-ratio: 1 / 1;     /* keeps container square */
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;          /* center horizontally */
    height: auto;            /* adjusts with width */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* ===============================
   ACF Map
   =============================== */
.acf-map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.map-fallback-image{
    height: 100%;
    width: 100%;
    padding: 10px;
}

/* Hide Google Maps copyright (optional, may violate TOS) */
.gm-style-cc {
    display: none !important;
}

/* ===============================
   Jump Animation for Markers
   =============================== */
@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Continuous bouncing pin */
.acf-marker-jump,
.acf-marker-hover:hover {
    animation: jump 1s infinite ease-in-out;
    cursor: pointer; /* pointer on hover */
}

/* ===============================
   Responsive Breakpoints
   =============================== */

/* Medium screens (tablet) */
@media screen and (max-width: 1240px) {
    .map-container {
        max-width: 600px;
    }
}

/* Small screens (mobile) */
@media screen and (max-width: 768px) {
    .map-container {
        max-width: 100%;
        max-height: 360px;
        width: 100%;
    }
}
