/*
 Theme Name:   Howes Realty Child
 Template:     realhomes
 Version:      1.0.0
 Description:  Tema hijo personalizado para Howes Realty con diseño premium fluido.
*/

/* Variables de color y tipografía */
:root {
  --color-primary: #C5A55A;      /* Dorado */
  --color-dark: #0A1F33;         /* Azul marino profundo */
  --color-light: #F9F7F3;        /* Blanco roto */
  --color-text: #4A4A4A;         /* Gris piedra */
  --color-white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', 'Inter', sans-serif;
  --border-radius: 14px;
  --transition: 0.4s ease;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Tipografía global */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-light);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-dark);
}

/* Header sticky transparente */
.rh_header {
  background: transparent !important;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  position: fixed;
  width: 100%;
  z-index: 999;
}
.rh_header.scrolled {
  background: rgba(10,31,51,0.85) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.rh_header .main-menu .menu-item a {
  color: var(--color-white) !important;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.rh_header.scrolled .main-menu .menu-item a {
  color: var(--color-white) !important;
}

/* Buscador de propiedades visualmente integrado */
.rh_prop_search {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius);
  padding: 20px;
}
.rh_prop_search .form-control {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-white);
  font-family: var(--font-sans);
}
.rh_prop_search .form-control::placeholder {
  color: rgba(255,255,255,0.6);
}

/* Tarjetas de propiedades (flip card) */
.rh_property_card {
  perspective: 1000px;
  border-radius: var(--border-radius);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.rh_property_card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.rh_property_card:hover .card-inner {
  transform: rotateY(180deg);
}
.card-front, .card-back {
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.card-front {
  background: var(--color-white);
  z-index: 2;
}
.card-back {
  background: var(--color-dark);
  color: var(--color-white);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.card-back h3 {
  color: var(--color-primary);
  font-family: var(--font-serif);
}
.card-back .price {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 10px 0;
}

/* Animación de entrada con AOS (o clase personalizada) */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Dashboard de propiedades */
.rh_dashboard .rh_my_property {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rh_dashboard .rh_my_property:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}