/* Contenedor de botones en fila dentro del Leaflet GroupedLayers */
.leaflet-grouped-custom-btns {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 12px;
}
/* Botones personalizados dentro del Leaflet Group */
.leaflet-control-download,
.leaflet-control-buscar-expediente {
  cursor: pointer !important;
}

/* Aumentar el alto del panel de capas Leaflet Group */
.leaflet-control-layers-expanded {
  max-height: 600px !important;
  overflow-y: auto !important;
}
/* Estilos separados desde index.html */
#map {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 350px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2100;
}
#map {
  position: relative;
  z-index: 1;
}
#coords {
  z-index: 3000;
}
.download-btn:hover {
  background: #1565c0;
}
.download-links {
  margin-bottom: 16px;
}
.download-links a {
  display: inline-block;
  margin: 0 8px 8px 0;
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted #1976d2;
}
.download-links a:hover {
  color: #1565c0;
  border-bottom: 1px solid #1565c0;
}
.modal-content .close {
  cursor: pointer;
  transition: color 0.2s;
}
.modal-content .close:hover {
  color: #1565c0;
}

/* Cursor fixes for map navigation */
.leaflet-container {
    cursor: grab !important;
}

.leaflet-dragging .leaflet-container {
    cursor: grabbing !important;
}

/* Estilos para el menú desplegable */
#menuHerramientas {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#btnMenuPrincipal:hover {
    background: #1976D2 !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

#panelHerramientas {
    animation: slideDown 0.2s ease-out;
    width: 240px;
    box-sizing: border-box;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#panelHerramientas button {
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: left;
}

#panelHerramientas button:hover {
    background: rgba(0,0,0,0.1) !important;
    transform: translateX(4px);
}

#btnBuscarExpedienteToggle:hover {
    background: #45a049 !important;
}

#btnDescargarCapas:hover {
    background: #1565C0 !important;
}

#btnAvisoLegal:hover {
    background: #c62828 !important;
}

#controlEtiquetasExpediente:hover {
    background: #e8f5e8 !important;
}

/* Estilos para popup multi-feature */
.multi-feature-popup .leaflet-popup-content {
    margin: 12px 16px;
    min-width: 300px;
}

.multi-feature-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

.feature-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.feature-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.feature-tab-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
    transform: translateY(-1px);
}

.feature-tab-btn.active {
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.feature-tab-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-tab-content table {
    width: 100%;
    font-size: 12px;
}

.feature-tab-content table td {
    padding: 6px 8px;
    vertical-align: top;
}

.feature-tab-content table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

