/* ---------------- MAP ---------------- */
#map {
    width: 100%;
    height: 500px;      /* mandatory for Leaflet map */
    min-height: 500px;  /* prevents zero-height issues */
    background: #eaeaea;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ---------------- GRID LABELS ---------------- */
.utm-label {
    font-size: 11px;
    font-weight: bold;
    color: #d00000;       /* red label for visibility */
    text-align: center;
    pointer-events: none;  /* so tooltips and clicks pass through */
    white-space: nowrap;
}

/* ---------------- CONTROLS ---------------- */
.utm-controls {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.utm-controls input {
    padding: 6px 10px;
    width: 140px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.utm-controls button {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #0077ff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.utm-controls button:hover {
    background-color: #005bb5;
}

/* ---------------- OUTPUT PANEL ---------------- */
#output {
    margin-top: 10px;
    padding: 10px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ---------------- RESPONSIVE ---------------- */
@media screen and (max-width: 600px) {
    .utm-controls {
        flex-direction: column;
        gap: 5px;
    }

    .utm-controls input {
        width: 100%;
    }

    .utm-controls button {
        width: 100%;
    }
}
