/* ==========================================================================
   ESTILOS DEL PANEL INMOBILIARIO - MOTION Z
========================================================================== */

/* Contenedor Principal */
.inmo-wrapper {
    display: flex !important;
    background-color: #f8fafc !important;
    min-height: 100vh !important;
    font-family: 'Inter', sans-serif !important;
    margin: -20px !important; 
}

/* SIDEBAR ESTÁTICO BLINDADO */
.inmo-sidebar {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    background-color: #140a60 !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 99999 !important; /* Para que pise hasta el menú del mismísimo WP */
    box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
    overflow-y: auto !important;
}

/* Scrollbar fina para el sidebar */
.inmo-sidebar::-webkit-scrollbar { width: 5px; }
.inmo-sidebar::-webkit-scrollbar-track { background: #140a60; }
.inmo-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.inmo-logo {
    padding: 40px 25px 30px 25px !important; /* Más aire por arriba y a los lados */
    text-align: left !important; /* Alienado a la izquierda como pediste */
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.inmo-logo img {
    max-width: 160px !important; /* Lo hacemos más grande y presente */
    height: auto !important;
    display: block !important;
}
.inmo-menu {
    list-style: none !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    flex-grow: 1 !important;
}

.inmo-menu li { margin-bottom: 5px !important; }

.inmo-menu a {
    display: block !important;
    padding: 14px 25px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid transparent !important;
}

.inmo-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

.inmo-menu a.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-left: 4px solid white !important;
    font-weight: bold !important;
}

.inmo-logout {
    padding: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

/* BOTÓN CERRAR SESIÓN BLANCO */
.inmo-logout a {
    display: block !important;
    background-color: #f8de7e !important;
    color: #140a60 !important;
    text-align: left !important;
    padding: 12px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: 0.3s !important;
}

.inmo-logout a:hover {
    background-color: #f8de8e !important;
}

/* CONTENIDO PRINCIPAL BLINDADO */
.inmo-content {
    flex-grow: 1 !important;
    padding: 40px !important;
    background-color: #ffffff !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    margin-left: 260px !important; 
    width: calc(100% - 260px) !important;
}

.inmo-content h2 {
    color: #140a60 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    font-size: 24px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 10px !important;
}

/* Formularios y Cajas */
.inmo-card {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    max-width: 600px !important;
}

.inmo-form-group { margin-bottom: 15px !important; }

.inmo-form-group label {
    display: block !important;
    margin-bottom: 5px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: bold !important;
}

.inmo-form-group input, .inmo-form-group select {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    outline: none !important;
    font-family: inherit !important;
}

.inmo-form-group input:focus, .inmo-form-group select:focus {
    border-color: #140a60 !important;
}

.inmo-btn-primary {
    background-color: #140a60 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    width: 100% !important;
    font-size: 15px !important;
    transition: 0.3s !important;
}

.inmo-btn-primary:hover { background-color: #0b053a !important; }


/* ==========================================================================
   MODAL (POPUP) Y ALERTAS FLOTANTES (TOAST)
========================================================================== */

/* Fondo oscuro del Modal */
.inmo-modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 10, 96, 0.6); /* Azul noche semi-transparente */
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Caja Blanca del Modal */
.inmo-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: modalEntrada 0.3s ease-out;
}

@keyframes modalEntrada {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón cerrar "X" */
.inmo-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}
.inmo-modal-close:hover { color: #ef4444; }

/* Alerta Flotante (Toast) */
.inmo-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #10b981; /* Verde éxito por defecto */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999999;
    right: 30px;
    bottom: 30px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}
.inmo-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}
.inmo-toast.error { background-color: #ef4444; }

