/* WPForms Map Location Picker - map-picker.css */

.map-location-wrapper {
    max-width: 800px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.map-location-header {
    background: #f0f4ff;
    border-left: 4px solid #4a6cf7;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.map-location-header h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1a1a2e;
}

.map-location-header p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

/* Map container - explicit size is critical for Leaflet */
#location-map {
    width: 100% !important;
    height: 450px !important;
    display: block !important;
    border-radius: 8px;
    border: 2px solid #dde2f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    cursor: crosshair;
    background: #e8e8e8;
}

/* Coordinate display bar */
.map-coords-display {
    display: flex;
    gap: 24px;
    background: #1a1a2e;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 24px;
}

.map-coords-display strong {
    color: #7dd3fc;
}

/* Hide lat/lng WPForms fields from user */
.wpforms-field[id*="latitude"],
.wpforms-field[id*="longitude"],
.wpforms-field[id*="field_7"],
.wpforms-field[id*="field_8"] {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
    #location-map {
        height: 300px !important;
    }
    .map-coords-display {
        flex-direction: column;
        gap: 8px;
    }
}
