/*
 * Corrección exclusiva para /propiedades/
 * NO modifica Inicio, Nosotros, Contacto, Inversión, Calculadora, Desarrollos, header ni footer.
 * Objetivo:
 * 1. Quitar fondo verde sólido.
 * 2. Restaurar imagen scrolleable de fondo.
 * 3. Mantener cards blancas y textos legibles.
 */

/* Página completa de propiedades: sin fondo verde sólido */
body.post-type-archive-propiedad,
body.post-type-archive-propiedad .site,
body.post-type-archive-propiedad .rc-main,
body.post-type-archive-propiedad .rc-properties {
	background-color: transparent !important;
	color: #1A1A1A !important;
}

/* Hero superior de propiedades: imagen visible, no bloque verde */
body.post-type-archive-propiedad .rc-properties-hero,
body.post-type-archive-propiedad .rc-archive-hero,
body.post-type-archive-propiedad .rc-page-hero,
body.post-type-archive-propiedad .archive-hero,
body.post-type-archive-propiedad .properties-hero {
	background:
		linear-gradient(
			90deg,
			rgba(11, 11, 11, 0.78) 0%,
			rgba(11, 11, 11, 0.56) 48%,
			rgba(11, 11, 11, 0.28) 100%
		),
		url("../img/section-parallax-realtor-center.png") center center / cover fixed no-repeat !important;
	background-color: transparent !important;
	color: #ffffff !important;
}

/* Textos del hero en blanco, legibles sobre imagen */
body.post-type-archive-propiedad .rc-properties-hero *,
body.post-type-archive-propiedad .rc-archive-hero *,
body.post-type-archive-propiedad .rc-page-hero *,
body.post-type-archive-propiedad .archive-hero *,
body.post-type-archive-propiedad .properties-hero * {
	color: inherit;
	opacity: 1 !important;
}

/* Zona de catálogo: imagen scrolleable clara, sin verde sólido */
body.post-type-archive-propiedad .rc-properties-catalog,
body.post-type-archive-propiedad .rc-properties-list,
body.post-type-archive-propiedad .rc-catalog-section,
body.post-type-archive-propiedad .properties-catalog {
	background:
		linear-gradient(
			180deg,
			rgba(239, 247, 244, 0.88) 0%,
			rgba(239, 247, 244, 0.94) 100%
		),
		url("../img/section-parallax-realtor-center.png") center center / cover fixed no-repeat !important;
	background-color: transparent !important;
	color: #1A1A1A !important;
}

/* Quitar overlays verdes que estén tapando la imagen */
body.post-type-archive-propiedad .rc-properties::before,
body.post-type-archive-propiedad .rc-properties::after,
body.post-type-archive-propiedad .rc-properties-catalog::before,
body.post-type-archive-propiedad .rc-properties-catalog::after,
body.post-type-archive-propiedad .rc-properties-list::before,
body.post-type-archive-propiedad .rc-properties-list::after {
	display: none !important;
	content: none !important;
	background: transparent !important;
}

/* Cards de propiedades: volver a fondo blanco y texto oscuro */
body.post-type-archive-propiedad .rc-property-card,
body.post-type-archive-propiedad .property-card,
body.post-type-archive-propiedad .rc-card-property,
body.post-type-archive-propiedad .rc-listing-card,
body.post-type-archive-propiedad article.propiedad,
body.post-type-archive-propiedad .propiedad-card {
	background: #ffffff !important;
	color: #1A1A1A !important;
	opacity: 1 !important;
	filter: none !important;
	mix-blend-mode: normal !important;
}

/* Contenido interno de cards: eliminar transparencias heredadas */
body.post-type-archive-propiedad .rc-property-card *,
body.post-type-archive-propiedad .property-card *,
body.post-type-archive-propiedad .rc-card-property *,
body.post-type-archive-propiedad .rc-listing-card *,
body.post-type-archive-propiedad article.propiedad *,
body.post-type-archive-propiedad .propiedad-card * {
	opacity: 1 !important;
	filter: none !important;
	mix-blend-mode: normal !important;
	text-shadow: none !important;
}

/* Títulos, textos y precios dentro de cards */
body.post-type-archive-propiedad .rc-property-card h2,
body.post-type-archive-propiedad .rc-property-card h3,
body.post-type-archive-propiedad .rc-property-card h4,
body.post-type-archive-propiedad .rc-property-card p,
body.post-type-archive-propiedad .rc-property-card span,
body.post-type-archive-propiedad .property-card h2,
body.post-type-archive-propiedad .property-card h3,
body.post-type-archive-propiedad .property-card h4,
body.post-type-archive-propiedad .property-card p,
body.post-type-archive-propiedad .property-card span,
body.post-type-archive-propiedad .rc-card-property h2,
body.post-type-archive-propiedad .rc-card-property h3,
body.post-type-archive-propiedad .rc-card-property h4,
body.post-type-archive-propiedad .rc-card-property p,
body.post-type-archive-propiedad .rc-card-property span,
body.post-type-archive-propiedad .rc-listing-card h2,
body.post-type-archive-propiedad .rc-listing-card h3,
body.post-type-archive-propiedad .rc-listing-card h4,
body.post-type-archive-propiedad .rc-listing-card p,
body.post-type-archive-propiedad .rc-listing-card span,
body.post-type-archive-propiedad article.propiedad h2,
body.post-type-archive-propiedad article.propiedad h3,
body.post-type-archive-propiedad article.propiedad h4,
body.post-type-archive-propiedad article.propiedad p,
body.post-type-archive-propiedad article.propiedad span,
body.post-type-archive-propiedad .propiedad-card h2,
body.post-type-archive-propiedad .propiedad-card h3,
body.post-type-archive-propiedad .propiedad-card h4,
body.post-type-archive-propiedad .propiedad-card p,
body.post-type-archive-propiedad .propiedad-card span {
	color: #1A1A1A !important;
}

/* Títulos principales de las cards */
body.post-type-archive-propiedad .rc-property-card h2,
body.post-type-archive-propiedad .rc-property-card h3,
body.post-type-archive-propiedad .property-card h2,
body.post-type-archive-propiedad .property-card h3,
body.post-type-archive-propiedad .rc-card-property h2,
body.post-type-archive-propiedad .rc-card-property h3,
body.post-type-archive-propiedad .rc-listing-card h2,
body.post-type-archive-propiedad .rc-listing-card h3,
body.post-type-archive-propiedad article.propiedad h2,
body.post-type-archive-propiedad article.propiedad h3,
body.post-type-archive-propiedad .propiedad-card h2,
body.post-type-archive-propiedad .propiedad-card h3 {
	color: #1A1A1A !important;
}

/* Badges dentro de cards */
body.post-type-archive-propiedad .rc-property-card .badge,
body.post-type-archive-propiedad .rc-property-card .tag,
body.post-type-archive-propiedad .rc-property-card .pill,
body.post-type-archive-propiedad .property-card .badge,
body.post-type-archive-propiedad .property-card .tag,
body.post-type-archive-propiedad .property-card .pill,
body.post-type-archive-propiedad .rc-card-property .badge,
body.post-type-archive-propiedad .rc-card-property .tag,
body.post-type-archive-propiedad .rc-card-property .pill,
body.post-type-archive-propiedad .rc-listing-card .badge,
body.post-type-archive-propiedad .rc-listing-card .tag,
body.post-type-archive-propiedad .rc-listing-card .pill {
	background: rgba(11, 11, 11, 0.08) !important;
	color: #1A1A1A !important;
	border-color: rgba(11, 11, 11, 0.16) !important;
}

/* Datos técnicos dentro de cards */
body.post-type-archive-propiedad .rc-property-card .spec,
body.post-type-archive-propiedad .rc-property-card .stat,
body.post-type-archive-propiedad .rc-property-card .feature,
body.post-type-archive-propiedad .property-card .spec,
body.post-type-archive-propiedad .property-card .stat,
body.post-type-archive-propiedad .property-card .feature,
body.post-type-archive-propiedad .rc-card-property .spec,
body.post-type-archive-propiedad .rc-card-property .stat,
body.post-type-archive-propiedad .rc-card-property .feature,
body.post-type-archive-propiedad .rc-listing-card .spec,
body.post-type-archive-propiedad .rc-listing-card .stat,
body.post-type-archive-propiedad .rc-listing-card .feature {
	background: #F2F2F2 !important;
	color: #1A1A1A !important;
	border-color: rgba(11, 11, 11, 0.10) !important;
}

/* Botones dentro de cards */
body.post-type-archive-propiedad .rc-property-card a,
body.post-type-archive-propiedad .property-card a,
body.post-type-archive-propiedad .rc-card-property a,
body.post-type-archive-propiedad .rc-listing-card a,
body.post-type-archive-propiedad article.propiedad a,
body.post-type-archive-propiedad .propiedad-card a {
	text-decoration: none !important;
}

body.post-type-archive-propiedad .rc-property-card .button,
body.post-type-archive-propiedad .rc-property-card .btn,
body.post-type-archive-propiedad .property-card .button,
body.post-type-archive-propiedad .property-card .btn,
body.post-type-archive-propiedad .rc-card-property .button,
body.post-type-archive-propiedad .rc-card-property .btn,
body.post-type-archive-propiedad .rc-listing-card .button,
body.post-type-archive-propiedad .rc-listing-card .btn {
	color: #1A1A1A !important;
}

/* Evitar fixed en móvil */
@media (max-width: 900px) {
	body.post-type-archive-propiedad .rc-properties-hero,
	body.post-type-archive-propiedad .rc-archive-hero,
	body.post-type-archive-propiedad .rc-page-hero,
	body.post-type-archive-propiedad .archive-hero,
	body.post-type-archive-propiedad .properties-hero,
	body.post-type-archive-propiedad .rc-properties-catalog,
	body.post-type-archive-propiedad .rc-properties-list,
	body.post-type-archive-propiedad .rc-catalog-section,
	body.post-type-archive-propiedad .properties-catalog {
		background-attachment: scroll !important;
	}
}

/* =========================================================
   AJUSTE PUNTUAL: quitar fondo verde en Propiedades disponibles
   Solo afecta el catálogo de /propiedades/
   ========================================================= */

body.post-type-archive-propiedad .rc-properties-catalog,
body.post-type-archive-propiedad .rc-properties-list,
body.post-type-archive-propiedad .rc-catalog-section,
body.post-type-archive-propiedad .properties-catalog {
	background-color: transparent !important;
	background:
		linear-gradient(
			180deg,
			rgba(245, 248, 246, 0.72) 0%,
			rgba(245, 248, 246, 0.82) 100%
		),
		url("../img/section-parallax-realtor-center.png") center center / cover fixed no-repeat !important;
}

/* Evita que algún overlay verde tape la imagen scrolleable */
body.post-type-archive-propiedad .rc-properties-catalog::before,
body.post-type-archive-propiedad .rc-properties-catalog::after,
body.post-type-archive-propiedad .rc-properties-list::before,
body.post-type-archive-propiedad .rc-properties-list::after,
body.post-type-archive-propiedad .rc-catalog-section::before,
body.post-type-archive-propiedad .rc-catalog-section::after,
body.post-type-archive-propiedad .properties-catalog::before,
body.post-type-archive-propiedad .properties-catalog::after {
	background: transparent !important;
	background-color: transparent !important;
	display: none !important;
	content: none !important;
}

@media (max-width: 900px) {
	body.post-type-archive-propiedad .rc-properties-catalog,
	body.post-type-archive-propiedad .rc-properties-list,
	body.post-type-archive-propiedad .rc-catalog-section,
	body.post-type-archive-propiedad .properties-catalog {
		background-attachment: scroll !important;
	}
}

/* Fondo exclusivo de la franja del buscador en /propiedades/. */
body.post-type-archive-propiedad .rc-propiedades-search-zone-bg {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
	margin-top: calc(-1 * clamp(64px, 8vw, 110px));
	padding: clamp(32px, 4vw, 55px) 0;
	background: linear-gradient(135deg, #eef6fa 0%, #e5eff4 100%) !important;
	background-image: linear-gradient(135deg, #eef6fa 0%, #e5eff4 100%) !important;
	background-attachment: initial !important;
}

body.rc-propiedades-final .rc-propiedades-search-zone-bg .rc-properties-search {
	width: 100%;
}

html body.rc-propiedades-final.post-type-archive-propiedad .rc-properties-catalog .rc-propiedades-search-zone-bg .rc-properties-search label,
html body.rc-propiedades-final.post-type-archive-propiedad .rc-properties-catalog .rc-propiedades-search-zone-bg .rc-properties-search label > span {
	color: #1A1A1A !important;
	-webkit-text-fill-color: #1A1A1A !important;
	text-shadow: none !important;
}

body.post-type-archive-propiedad .rc-propiedades-search-zone-bg::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	right: calc(50% - 50vw);
	bottom: 0;
	left: calc(50% - 50vw);
	background: linear-gradient(135deg, #eef6fa 0%, #e5eff4 100%) !important;
	background-image: linear-gradient(135deg, #eef6fa 0%, #e5eff4 100%) !important;
	background-attachment: initial !important;
	pointer-events: none;
}
