/*
Theme Name:   Rentanova Child
Theme URI:    https://rentanova.cl
Description:  Child theme de Astra para Rentanova. Aquí viven todas las personalizaciones (CSS, funciones PHP, plantillas) sin riesgo de perderse cuando Astra actualice.
Author:       Rentanova
Author URI:   https://rentanova.cl
Template:     astra
Version:      1.0.0
Text Domain:  rentanova-child
*/

/* ==========================================================================
   CSS personalizado del sitio.
   ========================================================================== */

/* ------------------------------------------------------------------
   GALERÍA DE FOTOS — shortcode [rentanova_galeria]
   Swiper: imagen principal con flechas + tira de miniaturas
   ------------------------------------------------------------------ */

.rn-galeria-wrap {
	margin: 24px 0;
	width: 100%;
}

.rn-swiper-main {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background: #111;
	margin-bottom: 8px;
}

.rn-swiper-main .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rn-swiper-main .swiper-button-prev,
.rn-swiper-main .swiper-button-next {
	color: #fff;
	background: rgba( 0, 0, 0, 0.35 );
	width: 38px;
	height: 38px;
	border-radius: 50%;
}

.rn-swiper-main .swiper-button-prev::after,
.rn-swiper-main .swiper-button-next::after {
	font-size: 14px;
	font-weight: 700;
}

.rn-swiper-thumbs {
	width: 100%;
	height: 72px;
}

.rn-swiper-thumbs .swiper-slide {
	opacity: 0.5;
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	height: 72px;
}

.rn-swiper-thumbs .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rn-swiper-thumbs .swiper-slide-thumb-active {
	opacity: 1;
	outline: 2px solid #3B7A57;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
   FICHA DE PROPIEDAD — precio, características, WhatsApp, descripción
   Shortcodes: [rentanova_precio] [rentanova_specs]
               [rentanova_wsp_boton] [rentanova_descripcion]
   ------------------------------------------------------------------ */

.rn-ico {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* --- Título de sección compartido --- */

.rn-seccion-titulo {
	font-family: 'Manrope', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #1A1A1A;
	margin: 0 0 16px;
}

/* --- Precio --- */

.rn-precio {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.rn-estado {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
}

.rn-estado--disponible { background: #E8F1EC; color: #3B7A57; }
.rn-estado--reservado  { background: #FBF3D9; color: #8A6D1D; }
.rn-estado--arrendado  { background: #F9E3DC; color: #B4472A; }

.rn-precio__valor {
	font-family: 'Manrope', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #3B7A57;
	line-height: 1.2;
}

.rn-precio__sufijo {
	font-size: 16px;
	font-weight: 600;
	color: #6B7B72;
}

.rn-precio__gastos {
	font-size: 14px;
	color: #555;
}

/* --- Botón WhatsApp --- */

.rn-wsp-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #E07856;
	color: #fff !important;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 28px;
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rn-wsp-btn .rn-ico {
	width: 22px;
	height: 22px;
}

.rn-wsp-btn:hover {
	background: #CF6544;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(224, 120, 86, 0.35);
}

@media (max-width: 767px) {
	.rn-wsp-btn {
		width: 100%;
		justify-content: center;
	}
}

/* --- Grilla de características --- */

.rn-specs {
	margin: 8px 0 8px;
}

.rn-specs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.rn-spec {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #FAF7F2;
	border-radius: 12px;
	padding: 14px 16px;
}

.rn-spec .rn-ico {
	width: 22px;
	height: 22px;
	color: #3B7A57;
}

.rn-spec__valor {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #1A1A1A;
	line-height: 1.3;
}

.rn-spec__label {
	display: block;
	font-size: 13px;
	color: #6B6B6B;
}

.rn-specs__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.rn-chip {
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid #3B7A57;
	color: #3B7A57;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
}

/* --- Descripción --- */

.rn-descripcion {
	margin-top: 24px;
	max-width: 760px;
	font-size: 16px;
	line-height: 1.7;
	color: #1A1A1A;
}
