#map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

#map-reset-button {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#map-reset-button:hover {
    background-color: #666;
}

#map-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    touch-action: none;
    /* background: #ddd; */
    cursor: grab;
}

#map-wrapper:active {
    cursor: grabbing;
}

#map-container {
    position: relative;
    transform-origin: top left;
    transition: transform 0.25s ease-in-out;
    will-change: transform;
}

#map-image {
    display: block;
    max-width: 100%;
    user-drag: none;
    -webkit-user-drag: none;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.map-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -100%);
    transition: transform 0.2s ease;
    cursor: pointer;
    z-index: 2;
}

.map-marker > img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.map-marker:hover {
    z-index: 3;
}

.map-marker:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
}

/* Modal styles */
#map-modal.hidden {
    display: none;
}

#map-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* #map-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
} */

.map-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    position: relative;
    color: #333;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.map-modal-content > img {
    max-width: 100px;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 1em;;
}

.map-modal-content > h3 {
    margin-bottom: 0.2em;
    opacity: 1 !important;
    letter-spacing: initial !important;
}

.map-modal-content > h4 {
    margin-top: 0;
    opacity: 0.5;
    margin-bottom: 1em;;
}

.map-modal-content > a {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: small;
    line-height: 1em;
    padding: 14px 36px;
    display: block;

    background-color: #94D83D !important;
    border-color: #94D83D !important;
    color: #000000 !important;
}

.map-modal-content > a:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #94D83D !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

#map-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
}

#map-modal-link {
    display: inline-block;
    margin-top: 10px;
    color: inherit;
    text-decoration: none;
}

#minimap {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 160px;
    height: auto;
    aspect-ratio: auto;
    border: 1px solid #888;
    background: #fff;
    z-index: 999;
    overflow: hidden;
}
  
#minimap-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
  
#minimap-viewport {
    position: absolute;
    border: 2px solid rgba(0, 150, 255, 0.8);
    background-color: rgba(0, 150, 255, 0.2);
    pointer-events: none;
    box-sizing: border-box;
    transition: all 0.25s ease-in-out;
}