/*
Theme Name: RealHomes Child Theme
Theme URI: http://themeforest.net/item/real-homes-wordpress-real-estate-theme/5373914
Description: Child theme for Real Homes.
Author: Inspiry Themes
Author URI: https://www.inspirythemes.com/
Template: realhomes
Version: 1.4.2
*/

/* ------------------------------------------------------------------------- *
 * KlicHábitat — Sistema de Diseño V1.0 (Azul / Naranja)
 * ------------------------------------------------------------------------- */

:root {
	/* Colores núcleo (También deben configurarse en WP Customizer) */
	--rh-azul: #0561AE;
	--rh-naranja: #EF5F20;
	
	/* Acentos Extra */
	--rh-verde-jade: #1E9E6B;
	--rh-purpura: #6E3B7A;
	--rh-dorado: #C9982E;
	
	/* Tipografía */
	--font-display: 'Sora', sans-serif;
	--font-texto: 'Source Sans 3', sans-serif;
}

/* 
 * Clases de Utilidad y Badges Personalizados
 * Puedes aplicar estas clases en Elementor o modificarlas según el DOM nativo.
 */
.property-featured-tag, 
.badge-destacado {
	background-color: var(--rh-purpura) !important;
	color: #fff !important;
}

.property-status-available, 
.badge-disponible {
	background-color: var(--rh-verde-jade) !important;
	color: #fff !important;
}

/* Sobreescritura global de tipografía para los componentes de RealHomes */
body, p, a, li, span, input, select, textarea {
	font-family: var(--font-texto);
}

h1, h2, h3, h4, h5, h6, .rh_page__title {
	font-family: var(--font-display);
}

/* Fix para el login modal en móviles (teclado abierto) */
@media (max-width: 767px) {
    .rh_modal {
        max-height: 95vh !important;
        overflow-y: auto !important;
        align-items: flex-start !important;
        padding-top: 10px !important;
    }
    .rh_modal .rh_modal__wrap {
        margin-top: 10px !important;
        max-height: calc(95vh - 20px) !important;
        overflow-y: auto !important;
        padding-bottom: 20px !important;
    }
}

/* Empty State en Dashboard de Propiedades */
#dashboard-properties {
    padding-bottom: 50px;
}
#dashboard-properties .dashboard-no-items {
    width: 100% !important;
    max-width: 520px !important;
    margin: 40px auto 30px !important;
    padding: 35px 25px !important;
    text-align: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
#dashboard-properties .dashboard-no-items .icon-wrap {
    margin: 0 auto 20px !important;
    width: 85px !important;
}
#dashboard-properties .dashboard-no-items .icon-wrap svg {
    max-width: 100% !important;
    max-height: 100% !important;
    fill: var(--rh-azul, #0561AE) !important;
}
#dashboard-properties .dashboard-no-items h3 {
    margin: 0 0 10px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}
#dashboard-properties .dashboard-no-items p {
    margin: 0 !important;
    font-size: 15px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

/* ------------------------------------------------------------------------- *
 * Dashboard Header & Logo Centering (Mobile y Desktop)
 * ------------------------------------------------------------------------- */
.rh-header-slim-left {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.rh-header-slim-left .rh-logo {
    flex: 1 1 100% !important;
    margin-right: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.rh-header-slim-left .rh-logo a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    text-align: center !important;
    max-width: calc(100% - 60px) !important;
}

.rh-header-slim-left .rh-logo img {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

.rh-header-slim-left .rh-site-title {
    margin: 0 auto !important;
    text-align: center !important;
}

.rh-header-slim-left .rh-sidebar-menu-toggle {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}