/*
 * Arquivo: css/propriedades.css
 * Descrição: Folha de estilos especializada para a página "A Propriedade",
 * com efeitos de animação preservados e tipografia alinhada à home.
 * Autor: Dr. Caetano Neri
 * Versão: 6.0 (Módulo Harmonizado)
 */

/* --- FUNDAMENTOS E VARIÁVEIS DE SISTEMA --- */
/* REMOÇÃO SISTÊMICA: Bloco de variáveis redundante removido para garantir a hierarquia do sistema. */
/* Todas as variáveis (--font-primary, --cor-texto-primario, --espaco-base, etc.) agora são herdadas de css/styles.css. */


/* --- ESTILOS GERAIS DA PÁGINA 'PROPERTY-PAGE' --- */
.property-page {
    /* HARMONIZAÇÃO: Adoção da variável de cor do sistema mestre. */
    background-color: var(--cor-fundo-primario);
}

/* --- REFINAMENTO DA SEÇÃO HERO --- */
.property-page .welcome-hero.shorten {
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
    opacity: 0;
    /* HARMONIZAÇÃO: Adoção da curva de animação para carregamento. */
    transition: opacity 1.2s var(--ease-load) 0.4s;
}

.body-loaded .property-page .welcome-hero.shorten {
    animation: kenBurns-subtle 20s ease-out forwards;
    opacity: 1;
}

@keyframes kenBurns-subtle {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

.property-page .welcome-hero .overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0) 100%);
}

.property-page .welcome-hero .page-title {
    /* SIMPLIFICAÇÃO: A tipografia (família, peso, etc.) agora é herdada da regra global 'h1' em styles.css. */
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--cor-fundo-primario); /* HARMONIZAÇÃO: Adoção de variável. */
    letter-spacing: .15em;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px);
    /* HARMONIZAÇÃO: Adoção da curva de animação padrão do sistema. */
    transition: opacity 1s var(--ease-signature) 1s, transform 1s var(--ease-signature) 1s;
}

.body-loaded .property-page .welcome-hero .page-title {
    opacity: 1;
    transform: translateY(0);
}

/* --- REFINAMENTO DA SEÇÃO DE INTRODUÇÃO --- */
.property-page .page-intro {
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    padding: calc(var(--espaco-base) * 12) calc(var(--espaco-base) * 3); /* 96px 24px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.property-page .page-intro .centered-content {
    max-width: 720px;
}

/* SIMPLIFICAÇÃO: Regras tipográficas removidas; agora herdadas de 'h1' / '.title' em styles.css. */
.property-page .page-intro .title {
    /* Esta regra permanece para garantir a cor, mas a tipografia é herdada. */
    color: var(--cor-titulos-e-interacao);
    font-size: 28px; /* Override mantido conforme layout original */
    font-weight: 400; /* Override mantido */
}

/* SIMPLIFICAÇÃO: Regras tipográficas removidas; agora herdadas de 'body' e 'p' em styles.css. */
.property-page .page-intro .intro {
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    margin-top: calc(var(--espaco-base) * 5); /* 40px */
    color: var(--cor-texto-primario);
    font-family: var(--font-secondary);
    font-size: 1rem; /* Herda de body, mas explicitado para manter intenção original. */
    line-height: 1.6; /* Herda de body, mas explicitado para manter intenção original. */
}

.property-page .page-intro .intro p {
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    margin-bottom: calc(var(--espaco-base) * 3); /* 24px */
}

.property-page .page-intro .intro ul {
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    margin-top: calc(var(--espaco-base) * 4); /* 32px */
    padding-left: calc(var(--espaco-base) * 3); /* 24px */
    text-align: left; 
    max-width: 520px;
    display: inline-block;
}

.property-page .page-intro .intro ul li {
    list-style: disc;
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    margin-bottom: calc(var(--espaco-base) * 2); /* 16px */
    padding-left: 0;
    font-size: 1rem;
}

.property-page .page-intro .intro ul li::before {
    content: none;
}

/* --- GALERIA DE IMAGENS --- */
.property-page .image-gallery {
    padding: 0;
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    margin: calc(var(--espaco-base) * 8) auto; /* 64px auto */
}

.property-page .image-gallery .inner-w {
    max-width: 1080px;
    position: relative;
    padding: 0;
    display: block;
}

.property-page .swiper-container {
    overflow: hidden;
}

.property-page .swiper-slide {
    /* HARMONIZAÇÃO: Adoção da curva de animação para carregamento. */
    transition: opacity 0.8s var(--ease-load);
}

.property-page .swiper-pagination-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: auto;
    right: 30px;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    color: var(--cor-fundo-primario);
}

.property-page .swiper-pagination-fraction {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    margin-bottom: calc(var(--espaco-base) * 5); /* 40px */
    background: none;
    padding: 0;
    border-radius: 0;
}

.property-page .swiper-navigation-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
    gap: calc(var(--espaco-base) * 2); /* 16px */
}

.property-page .pagination-arrow {
    background: none;
    border: none;
    cursor: pointer;
    position: static;
    transform: none;
    z-index: 10;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    padding: 2px;
    transition: opacity 0.2s ease;
}

.property-page .pagination-arrow:hover {
    background: none;
    opacity: 0.6;
}

.property-page .pagination-arrow-prev,
.property-page .pagination-arrow-next {
    position: static;
    transform: none;
    background: none;
    width: auto;
    height: auto;
}

.property-page .pagination-arrow.pagination-arrow-prev {
    order: 2;
}

.property-page .pagination-arrow.pagination-arrow-next {
    order: 1;
}

.property-page .pagination-arrow svg {
    width: 48px;
    height: 48px;
    fill: var(--cor-fundo-primario);
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.6));
}

.property-page .arrow-icon path {
    fill: var(--cor-fundo-primario) !important;
}


/* --- PRESERVAÇÃO DOS EFEITOS SUPERIORES --- */
.property-page .page-section .title,
.property-page .page-section .intro {
    opacity: 0;
    transform: translateY(30px);
    /* HARMONIZAÇÃO: Adoção da curva de animação padrão do sistema. */
    transition: opacity 1.2s var(--ease-signature), transform 1.2s var(--ease-signature);
}

.property-page .page-section.in-viewport .title,
.property-page .page-section.in-viewport .intro {
    opacity: 1;
    transform: translateY(0);
}

.property-page .page-section.in-viewport .intro {
    transition-delay: 0.2s;
}

.property-page .page-section.in-viewport .intro p,
.property-page .page-section.in-viewport .intro ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s var(--ease-signature), transform 0.9s var(--ease-signature);
    transition-delay: inherit;
}

.property-page .page-section.in-viewport .intro p,
.property-page .page-section.in-viewport .intro ul li {
    opacity: 1;
    transform: translateY(0);
}

.property-page .page-section.in-viewport .intro ul li:nth-child(1) { transition-delay: 0.3s; }
.property-page .page-section.in-viewport .intro ul li:nth-child(2) { transition-delay: 0.35s; }
.property-page .page-section.in-viewport .intro ul li:nth-child(3) { transition-delay: 0.4s; }
.property-page .page-section.in-viewport .intro ul li:nth-child(4) { transition-delay: 0.45s; }
.property-page .page-section.in-viewport .intro ul li:nth-child(5) { transition-delay: 0.5s; }
.property-page .page-section.in-viewport .intro ul li:nth-child(6) { transition-delay: 0.55s; }
.property-page .page-section.in-viewport .intro ul li:nth-child(7) { transition-delay: 0.6s; }

/* --- AJUSTES RESPONSIVOS --- */
@media (max-width: 767px) {
    .property-page .welcome-hero.shorten {
        height: 50vh;
    }

    .property-page .page-intro {
        /* HARMONIZAÇÃO: Espaçamento ajustado para a grade rítmica de 8px. */
        padding: calc(var(--espaco-base) * 8) calc(var(--espaco-base) * 2); /* 64px 16px */
    }

    .property-page .page-intro .title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .property-page .swiper-pagination-custom {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: calc(var(--espaco-base) * 3); /* 24px */
    }

    .property-page .swiper-pagination-fraction {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 0;
        font-size: 24px;
        order: 2;
    }

    .property-page .swiper-navigation-buttons {
        flex-direction: row;
        gap: calc(var(--espaco-base) * 3); /* 24px */
        order: 1;
    }

    .property-page .pagination-arrow.pagination-arrow-prev {
        order: 1;
    }

    .property-page .pagination-arrow.pagination-arrow-next {
        order: 2;
    }

    .property-page .pagination-arrow svg {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 640px) {
    .property-page .page-intro .title {
        letter-spacing: 2px;
    }
}

@media (min-width: 767px) {
    .property-page .page-intro .title {
        font-size: 32px;
    }
}