html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Inter", system-ui, sans-serif;
}

/* MAPA FULLSCREEN */
#map {
    width: 100vw;
    height: 100vh;
    cursor: crosshair;
}

/* BARRA SUPERIOR */
#toolbar {
    position: absolute;

	width: 100%;
	top: 0px;
    
	
	/*
	top: 12px;
	left: 50%;
    transform: translateX(-50%);
	*/
    z-index: 2000;

    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(6px);
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    gap: 10px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.35);

    justify-content: space-between; /* Acomoda los elementos a los extremos */
}

#toolbar button {
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

#toolbar button:hover {
    background: rgba(255,255,255,0.25);
}

#toolbar button.active {
    background: #ff9800;
    color: black;
}

.custom-marker {
    background: #ff5722;
    border: 2px solid white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* TEXTO ROTADO EN MAPA */
.rotated-text {
    font-size: 14px;
    color: #000;
    font-weight: bold;
    background: rgba(255,255,255,0.8);
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.25);
    white-space: nowrap;
}


/* Ocultar controles de zoom por defecto */
.leaflet-control-zoom {
    display: none !important;
}

/* Input de búsqueda dentro de la barra */
#search-box {
    width: 320px;
    font-size: 14px;
}


/* Input de búsqueda dentro de la barra */
#search-box-rc {
    width: 220px;
    font-size: 14px;
}




#layer-panel {
    position: absolute;
    top: 50px;
    right: -260px; /* oculto por defecto */
    width: 250px;
    max-height: 70%;
    overflow-y: auto;
    z-index: 2000;
    border-radius: 8px;
    transition: right 0.3s;
}

#layer-panel.show {
    right: 10px;
}

#layer-panel h5 {
    margin-bottom: 10px;
}

#layer-panel ul li {
    margin-bottom: 5px;
}


.modal {
  /* Bootstrap usa 1050 por defecto para modales */
    z-index: 2000; /* Asegura que esté por encima */
}


.modal-header{
    background-color:#0066cc;
    color: #fff;
}



/* Barra superior */
.barra {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    padding: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

#Logo{
	max-height:40px;
}


#Concello{
	max-height:40px;
    /*right:10px;*/
    margin-left: auto; /* Mueve el logo del Concello hacia la derecha */
}


.btn-group-vertical > .btn,
.btn-group > .btn {
    flex: initial;   /* o flex: 0 0 auto; */
	width: 50px;
}


/*
#btn-info-tool {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    border-radius: 50%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
}

#btn-info-tool:hover {
    background-color: #0056b3;
}
*/


.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-actions .right-actions {
    display: flex;
    gap: 0.5rem; /* separación entre Cancelar y Guardar */
  }
  

  .hidden {
    display: none;
}
