* { 
    touch-action: manipulation; 
}

body, html { 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    height: 100vh; 
    background: #000; 
    overflow: hidden; 
}

.map-container { 
    width: 100vw; 
    height: 100vh; 
    position: relative; 
    overflow: hidden; 
}

svg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

.pin-group { 
    cursor: pointer; 
}

/* ========================================================== */
/* NEW CODE: Custom Pin Hover Logic                           */
/* ========================================================== */
.custom-pin {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.pin-group:hover .custom-pin {
    transform: scale(1.3); /* Makes the pin expand */
    filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.6)); /* Adds a shadow on hover */
}
/* ========================================================== */

.hidden { 
    display: none !important; 
}

.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.9); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 9999; 
}

.modal-content { 
    background: #f1f2f6; 
    padding: 20px; 
    border-radius: 8px; 
    width: 90%; 
    max-width: 600px; 
    max-height: 80vh; 
    overflow-y: auto; 
    text-align: center; 
    position: relative;
}

.media-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.popup-image { 
    max-width: 100%; 
    height: auto; 
    border-radius: 5px; 
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-overlay:hover {
    background: #ff4757;
}

.popup-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    background: #000;
}

.close-btn { 
    position: absolute; 
    top: 10px; 
    right: 15px; 
    font-size: 28px; 
    cursor: pointer; 
    color: #333; 
}

.back-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #f1f2f6;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.back-button:hover {
    background: #dfe4ea;
}