/* 1. MODAL OVERLAY (The dark background) */
.map-modal-overlay {
    display: none; 
    position: fixed;
    z-index: 100000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

/* Unique name for the Map Content */
.map-modal-content h3 {
    margin: 0;
    color: #ffffff !important; /* Force white to override any blue defaults */
    font-size: 1.2rem;
    font-family: sans-serif;
    text-align: center; /* Centers the title nicely */
}

/* Styling for your new hint message */
.map-hint {
    font-size: 0.85rem;
    color: #aaa; /* Soft gray so it doesn't distract from buttons */
    text-align: center;
    margin: 5px 0 15px 0;
    font-style: italic;
}

/* Rename keyframes to avoid conflicts */
@keyframes mapPopIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 4. MAP BOX STYLING */
#map-box {
    height: 300px;
    width: 100%;
    background-color: #222;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid #444;
}

/* 5. BUTTONS & UI ELEMENTS */
.close-x {
    float: right;
    font-size: 35px; /* Increased from 24px */
    color: #888;    /* Slightly lighter for better visibility on dark background */
    cursor: pointer;
    line-height: 0.8; /* Adjusted to keep it aligned with the top */
    padding: 10px;   /* Makes the "hit target" larger for fingers */
    margin-top: -10px; /* Pulls it back up to stay in the corner */
    margin-right: -10px;
    transition: color 0.2s;
}

.close-x:hover {
    color: #ff4d4d; /* Changes to red on hover for a clearer "close" feel */
}

.modal-content h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-family: sans-serif;
}

.loc-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}

.loc-btn:active {
    transform: scale(0.98);
}

.btn-locate {
    background: #3498db;
    color: white;
}

.btn-locate:hover {
    background: #2980b9;
}

.btn-save {
    background: #27ae60;
    color: white;
    margin-bottom: 0; /* Remove margin for the last button */
}

.btn-save:hover {
    background: #219150;
}
