/* index.css */
/* ==========================================
   ESTILOS GENERALES Y LOGIN
   ========================================== */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
}

/* Pantalla de login centrada */
body.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 350px;
}

.card h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.25rem;
}

.card input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.card button {
    width: 100%;
    padding: 0.75rem;
    background-color: #673ab7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.card button:hover {
    background-color: #512da8;
}

.error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ==========================================
   ESTILOS DEL MAPA Y CONTENEDOR
   ========================================== */
.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 5px;
    width: 100% !important;
}

.map-wrapper {
    position: relative;
    padding: 5px 5px;
}

#map {
    width: 100%;
    height: 96vh;
    z-index: 1;
}

.btn-logout-container {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

.btn-logout {
    background: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-family: sans-serif;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-logout:hover {
    background: #f0f0f0;
}

/* ==========================================
   ESTILOS PARA EL TOOLTIP / HOVER DEL MAPA
   ========================================== */
.tooltip-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}

.tooltip-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.tooltip-title {
    font-size: 13px;
    color: #333;
    display: block;
}

.tooltip-status {
    font-size: 11px;
    color: #666;
}

/* ==========================================
   ESTILOS PARA EL CUADRO DE LA LEYENDA FLOTANTE
   ========================================== */
.info.legend {
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

/* ==========================================
   AJUSTES POP-UP Y BOTÓN STREET VIEW
   ========================================== */
.leaflet-popup-content-wrapper {
    overflow: visible !important;
    padding: 4px;
}

.leaflet-popup-content {
    margin: 12px 14px !important;
    width: auto !important;
    min-width: 210px;
}

.popup-custom a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1000;
}