/*
Theme Name: Astra Child
Theme URI: https://tusitio.com/
Description: Tema hijo de Astra para arriendopucon.cl.
Author: Medialogic Chile
Author URI: https://www.medialogic.cl/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

html {
    scroll-behavior: smooth;
}

.text-right {
	text-align: right;
}

.home.ast-plain-container,
.archive.ast-plain-container {
	/* 1. El color base: Un verde menta/salvia ultra claro */
	background-color: #f8fff2;
	background-image: url('images/bg_pattern.png'),linear-gradient(to right, #579d55 0%, #d7ffaa 50%, #78a370 100%);
	background-blend-mode: multiply;
}

div#top {
	background-image: linear-gradient(to right, #579d55 0%, #d7ffaa 50%, #78a370 100%);
	text-align: right;
	padding: 6px 0;
}

div#top a {
	padding: .3em .75em;
	border-radius: 4px;
	color: #fff;
	font-size: .85rem;
	background-color: #549124;
	margin: 0 .2rem;
}
div#top a:hover {
	background-color: #61ab34;
}

div#top a i {
	margin-right: .25em;
}

/* =========================================================
   Inputs global
========================================================= */

.woocommerce .woocommerce-ordering select, .woocommerce-page .woocommerce-ordering select {
	background-color: #fff;
	border: 1px solid #bbb;
	border-radius: 8px;
}

/* =========================================================
   1. Banner Full Width
========================================================= */
.custom-home-banner {
    /* Overlay oscuro (rgba) combinado con la imagen en la carpeta del tema hijo */
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/bg_pucon.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 120px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-home-banner .banner-content h1,
.custom-home-banner .banner-content p {
    color: #ffffff;
    margin: 0;
    /* Sombra de texto para asegurar el contraste contra cualquier fondo */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.custom-home-banner .banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.custom-home-banner .banner-content p {
    font-size: 2em;
}

/* =========================================================
   2. Filtros y Espaciados del Loop
========================================================= */

#container-filtros {
	width: 100%;
	text-align: center;
	margin-top: -45px;
}

section.custom-properties-filters {
	background: rgba(255,255,255,.6);
	margin-top: 0px;
	z-index: 2;
	position: relative;
	border-radius: 12px;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
	width: auto;
	padding: 25px;
	margin-right: auto;
	margin-left: auto;
	display: inline-block !important;
	backdrop-filter: blur(3px);
}

.custom-properties-loop {
    padding: 60px 0;
}

div.property-filters {
	width: 100%;
}

.property-filters form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
}

.property-filters form input,
.property-filters form select,
.property-filters form button {
	width: auto;
	border-radius: 8px;
	border: 1px solid #ccc;
}
.property-filters form button {
	padding-top: 8px;
	padding-bottom: 8px;
	border: none;
	background: linear-gradient(0deg, #549124, #78cf32);
	color: #ffffff;
}


/* =========================================================
   3. Sección del Shortcode
========================================================= */
.custom-home-form {
    padding: 60px 0;
    text-align: center;
}

.custom-home-form .form-wrapper {
	width: 600px;
	max-width: 95%; /* Limita el ancho del formulario */
	margin: 0 auto;
	background: #f9f9f9;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 2px 2px 24px rgba(0,0,0,.3);
}

.custom-home-form .form-wrapper form p {
	/* width: 49%; */
	/* display: inline-block; */
	position: relative;
	margin: 0;
	padding: .5em 1em;
	text-align: left;
	/* font-weight: 800; */
}

/* =========================================================
   4. Diseño de la Tarjeta de Propiedad (Específico para Astra)
========================================================= */

/* 1. Contenedor principal de la tarjeta */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 0 !important; /* Quita el espacio extra de Astra */
    display: flex !important;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 2. Contenedor de la Imagen */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin: 0;
    display: block;
}

/* Ocultar el icono flotante de la bolsa de compras sobre la imagen */
.woocommerce ul.products li.product .ast-on-card-button {
    display: none !important; 
}

/* 3. Contenedor de Textos (Hace que el botón se vaya al fondo) */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Obliga a este contenedor a rellenar el espacio vacío */
    text-align: left;
}

/* Categoría superior (Ej: Arriendo por Día) */
.woocommerce ul.products li.product .ast-woo-product-category {
    font-size: 0.75rem;
    /*text-transform: uppercase;*/
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 4. Título de la propiedad */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.4;
    padding: 0;
    text-transform: none;
}

/* Ajuste para los iconos de camas/baños dentro del título */
.woocommerce ul.products li.product .woocommerce-loop-product__title strong {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

/* 5. Precio */
.woocommerce ul.products li.product .price {
    color: #6fb429;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* 6. Botón (Ver Propiedad) */
.woocommerce ul.products li.product .button {
    margin-top: auto; /* Empuja el botón hacia la base de la tarjeta */
    background-color: #f1f5f9;
    color: #0f172a;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%; /* Botón de ancho completo */
    box-sizing: border-box;
}

.ast-shop-product-out-of-stock {
	backdrop-filter: blur(3px);
	background-color: rgba(255,255,255,.5) !important;
	border-radius: 6px;
	color: #c35c00;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #6fb429;
    color: #ffffff;
}

.woocommerce-tabs .tab-description iframe {

}

/* Archive */
.archive.ast-plain-container ul.products {

}


@media (min-width: 1200px) {
    .home.ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media (max-width: 544px) {
    .ast-container .woocommerce ul.products:not(.elementor-grid), .woocommerce-page ul.products:not(.elementor-grid), .woocommerce.mobile-columns-2 ul.products:not(.elementor-grid), .woocommerce-page.mobile-columns-2 ul.products:not(.elementor-grid) {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .custom-home-form .form-wrapper {
		padding: 5px;
	}
}

