/* Zonas: panel a la izquierda y mapa a todo lo que queda. En el celular, el mapa arriba y el panel abajo. */
.zonas { display: grid; grid-template-columns: 360px 1fr; height: 100dvh; }
.panel { display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-right: 1px solid var(--line); }
.panel-cab { background: var(--brand); color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-cab .quien { font-size: 13px; color: var(--brand-ink-2); text-align: right; line-height: 1.2; }
.panel-cab .quien button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
.panel-cuerpo { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.panel h2 { font-size: 15px; margin: 0 0 8px; }
.seccion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.fila-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.zona-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.zona-item:hover { background: var(--surface-2); }
.zona-item.on { border-color: var(--accent); background: var(--blue-bg); }
.zona-item.baja { opacity: .6; }
.zona-color { width: 14px; height: 14px; border-radius: 4px; background: #d23a2e; flex: none; margin-top: 3px; }
.zona-item.baja .zona-color { background: var(--ink-3); }
.zona-txt { min-width: 0; flex: 1; }
.zona-txt .nombre { font-weight: 600; }
.zona-txt .sub { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.campo input, .campo textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); min-height: 40px; }
.campo textarea { min-height: 70px; resize: vertical; }
.aviso { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); }
.resultado { font-weight: 700; padding: 8px 10px; border-radius: 10px; margin-top: 8px; }
.resultado.rechazada { background: var(--red-bg); color: var(--red); }
.resultado.permitida { background: var(--green-bg); color: var(--green); }
.resultado.sin { background: var(--surface-2); color: var(--ink-2); }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.hist li { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; }
.chk input { width: 18px; height: 18px; }
.punto-ley { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
#mapa { height: 100%; width: 100%; background: var(--surface-2); }
.leaflet-container { font: inherit; }
.etiqueta-zona { background: rgba(255,255,255,.9); border: 0; box-shadow: none; font-weight: 700; color: #7d1a12; }
.cargando { display: grid; place-items: center; height: 100dvh; color: var(--ink-3); }
@media (max-width: 760px) {
  .zonas { grid-template-columns: 1fr; grid-template-rows: 55dvh 1fr; }
  .panel { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .mapa-caja { order: 1; }
}
#toast { z-index: 2000; bottom: calc(24px + env(safe-area-inset-bottom)); }
