/*
Theme Name: PF Inmobiliaria
Theme URI: https://propiedadesfrutillar.cl/
Description: Tema exclusivo de Propiedades Frutillar.
Version: 0.1.0
Requires PHP: 8.2
Text Domain: pf-inmobiliaria
*/

:root {
    --verde: #203e32;
    --verde-claro: #436653;
    --crema: #f7f5f0;
    --texto: #27372f;
    --borde: #e3e5dd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--crema);
    color: var(--texto);
    font: 16px/1.65 Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.pf-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.pf-header {
    background: white;
    border-bottom: 1px solid var(--borde);
}

.pf-header-inner {
    min-height: 95px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.pf-brand {
    font: bold 23px Georgia, serif;
    line-height: 1.3;
}

.pf-brand small {
    display: block;
    margin-top: 5px;
    font: 10px Arial, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pf-nav {
    display: flex;
    gap: 25px;
    font-size: 14px;
}

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    line-height: 1.2;
}

h1 {
    font-size: clamp(38px, 6vw, 70px);
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.pf-hero {
    min-height: 475px;
    display: flex;
    align-items: center;
    color: white;
    background:
        radial-gradient(
            ellipse at 85% 110%,
            #77917c,
            transparent 50%
        ),
        linear-gradient(
            115deg,
            #172c23,
            #42634e
        );
}

.pf-hero-inner {
    max-width: 760px;
    padding: 80px 0;
}

.pf-eyebrow {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.pf-hero p {
    max-width: 570px;
    font-size: 18px;
}

.pf-button {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 24px;
    color: white;
    background: var(--verde-claro);
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.pf-hero .pf-button {
    color: var(--verde);
    background: #f0ecdf;
}

.pf-section {
    padding: 70px 0;
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.pf-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--borde);
}

.pf-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e1e5dd;
}

.pf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #738276;
    font: 22px Georgia, serif;
    text-align: center;
    padding: 20px;
}

.pf-card-body {
    padding: 23px;
}

.pf-card h3 {
    margin: 10px 0;
    font-size: 24px;
}

.pf-muted {
    color: #68766e;
    font-size: 14px;
}

.pf-price {
    font-size: 24px;
    font-weight: bold;
}

.pf-detail {
    padding: 50px 0 80px;
}

.pf-detail h1 {
    margin-bottom: 12px;
}

.pf-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    gap: 40px;
    margin-top: 35px;
}

.pf-main-photo {
    display: block;
    width: 100%;
    max-height: 640px;
    object-fit: cover;
}

.pf-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.pf-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.pf-facts {
    align-self: start;
    padding: 28px;
    background: white;
    border: 1px solid var(--borde);
}

.pf-facts p {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--borde);
}

.pf-description {
    margin-top: 45px;
}

.pf-footer {
    padding: 45px 0;
    color: #edf0e9;
    background: var(--verde);
    font-size: 13px;
}

@media (max-width: 850px) {
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .pf-header-inner {
        flex-direction: column;
        padding: 20px 0;
    }

    .pf-grid {
        grid-template-columns: 1fr;
    }

    .pf-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-section {
        padding: 45px 0;
    }
}
