/* Fire Map Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 0;
    background-color: #2c3e50;
}

.map-container {
    flex: 1;
    background-color: white;
    display: flex;
    flex-direction: column;
}

#map {
    flex: 1;
}

/* Visitor Counter */
.visitor-counter {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Report Button */
.report-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.report-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Admin Toggle Button */
#adminToggleBtn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

/* Data Status Indicator */
.data-status {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    min-width: 200px;
}

.status-fresh { border-left: 4px solid #27ae60; }
.status-loading { border-left: 4px solid #f39c12; }
.status-error { border-left: 4px solid #e74c3c; }
.status-no-data { border-left: 4px solid #95a5a6; }

/* Form Overlay */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
}

/* Report Form */
.report-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    z-index: 2001;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.report-form h3 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.location-input {
    background-color: #f8f9fa !important;
}

.location-select-btn {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.location-select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.location-help-text {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: #95a5a6;
    color: white;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
}

.btn-submit {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

@media (max-width: 768px) {
    .report-button {
        top: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .data-status {
        top: 15px;
        left: 15px;
        font-size: 11px;
        min-width: 150px;
    }
    
    .report-form {
        width: 95%;
        padding: 20px;
    }
}

/* Minimize report form while selecting a map location */
.report-form.minimized{
  top: auto; left: auto; right: 16px; bottom: 16px;
  transform: none;
  width: 320px; max-height: 64px; overflow: hidden;
  padding: 10px 12px;
  opacity:.96; z-index: 3000;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.report-form.minimized h3{ margin:0; font-size:14px; }
.report-form.minimized .form-group,
.report-form.minimized .form-buttons{ display:none; }

/* Ensure map gets full height even if layout changes */
html, body { height: 100%; }
#map { min-height: 100%; }

/* Pane ordering: heat under markers; ignore pointer events on heat */
.leaflet-pane.heatPane { z-index: 300 !important; pointer-events: none; }
.leaflet-pane.firePane { z-index: 450 !important; }
