/* public/assets/css/detalhe_empreendimento_style.css */

/* =========================================
   ESTILOS GERAIS DA PÁGINA DE DETALHES
   (Assume que variáveis e reset básico vêm do main_style.css ou de um CSS base)
   ========================================= */

/* HERO ESPECÍFICO PARA DETALHES */
.detalhe-hero {
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80'); 
    background-size: cover;
    background-position: center center;
    padding: 5rem 0;
    color: #fff;
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 5px solid var(--primary-color);
}
.detalhe-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
}
.detalhe-hero-content {
    position: relative;
    z-index: 2;
}
.detalhe-hero-content .breadcrumb-nav {
    border-bottom: none;
    padding: 0;
    margin-bottom: 1rem;
    justify-content: center; 
    display: flex;
    gap: 0.5rem;
}
.detalhe-hero-content .breadcrumb-nav a,
.detalhe-hero-content .breadcrumb-nav span {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}
.detalhe-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.detalhe-hero-content .hero-location {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.detalhe-hero-content .hero-location i {
    font-size: 1.4rem;
    color: var(--accent-color);
}
.detalhe-hero-content .hero-precos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2rem;
}
.detalhe-hero-content .price-tag {
    background-color: rgba(0,0,0,0.3);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.detalhe-hero-content .price-tag.venda {
    background-color: var(--primary-color);
}
.detalhe-hero-content .price-tag.aluguel {
    background-color: var(--success-color); 
}

/* CONTEÚDO PRINCIPAL */
.detalhe-page-content { 
    padding: 2rem 0 5rem 0;
}

.detalhe-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* Coluna principal flexível */
    gap: 3rem;
    align-items: flex-start; 
}

.detalhe-main-content {
    /* Coluna esquerda */
}

/* SEÇÕES DE CONTEÚDO */
.detalhe-section {
    margin-bottom: 2.5rem;
}
.detalhe-section:last-child {
    margin-bottom: 0;
}

/* Estilo de Card para as seções */
.card-styled {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden; /* Importante para border-radius nos filhos */
}


.detalhe-section .section-heading {
    font-size: 1.6rem; /* Um pouco menor */
    font-weight: 700;
    color: var(--secondary-color);
    padding: 1.2rem 1.8rem; /* Ajuste padding */
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--light-gray); 
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.detalhe-section .section-heading i {
    font-size: 1.4rem; /* Ícone menor */
    color: var(--primary-color);
    margin-top: -2px; /* Ajuste fino vertical */
}

.detalhe-section .content-box {
    padding: 1.8rem; /* Ajuste padding */
    line-height: 1.8;
}
.detalhe-section .content-box p {
    color: var(--text-color);
    margin-bottom: 1rem;
}
.detalhe-section .content-box p:last-child {
    margin-bottom: 0;
}

/* GALERIA DE IMAGENS */
.detalhe-gallery-section { 
    padding: 1.5rem; /* Padding interno do card */
}

.gallery-featured {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 550px; 
    display: flex; 
    align-items: center;
    justify-content: center;
    background-color: var(--medium-gray); /* Fundo para imagens não-proporcionais */
    border: 1px solid var(--border-color);
}
.gallery-featured img {
    width: 100%;
    height: 100%; 
    object-fit: contain; 
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 0.8rem;
}
.gallery-thumbnail-wrapper {
    width: 100%;
    padding-bottom: 75%; 
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Borda inicial transparente */
}
.gallery-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.gallery-thumbnail-wrapper:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
/* Classe 'active' indica a thumbnail selecionada (via JS) */
.gallery-thumbnail-wrapper img.active { 
    border: 3px solid var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.3);
}

/* CARACTERÍSTICAS */
.features-list-detail {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem; 
}
.features-list-detail li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0; 
    border-bottom: 1px dashed var(--medium-gray);
}
.features-list-detail li:last-child,
.features-list-detail li:nth-last-child(2) { 
    border-bottom: none;
}
.features-list-detail li strong {
    color: var(--secondary-color);
    font-weight: 600;
}
.features-list-detail li span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* COMODIDADES */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.7rem; 
    background-color: var(--light-gray);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}
.amenity-item i {
    color: var(--primary-color);
    font-size: 1.3rem; 
}

/* MAPA */
.map-container {
    padding: 0 !important; 
    border-radius: 12px;
    overflow: hidden; 
}
.map-container iframe {
    display: block; 
}

/* ENDEREÇO */
.address-details p {
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem;
}
.address-details strong {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}


/* SIDEBAR DE DETALHES */
.detalhe-sidebar {
    position: sticky;
    top: 100px; 
    align-self: flex-start; 
}

.contact-agent-card { 
    /* Já herda .card-styled */
    padding: 2rem;
    text-align: center;
}
.contact-agent-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.contact-agent-card h3 i {
    color: var(--primary-color);
}
.contact-agent-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.8rem; 
}
.agent-info {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.agent-info img {
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color); 
    box-shadow: var(--shadow-sm);
}
.agent-info strong {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 700;
}
.agent-info span {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: -0.5rem; 
}
.contact-agent-card .btn {
    font-size: 1.1rem;
    padding: 0.9rem; 
}
.contact-agent-card .btn i {
    margin-right: 0.6rem;
    font-size: 1.2rem;
}
.no-whatsapp-info {
    font-style: italic;
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    margin-top: 1rem;
}

/* RESPONSIVIDADE ESPECÍFICA DA PÁGINA DE DETALHES */
@media (max-width: 992px) {
    .detalhe-grid {
        grid-template-columns: 1fr; /* Coluna única */
    }
    .detalhe-sidebar {
        position: relative;
        top: 0;
        margin-top: 3rem; /* Espaçamento quando vira coluna única */
    }
    .detalhe-hero {
        padding: 3rem 0;
    }
    .detalhe-hero-content h1 {
        font-size: 2.2rem;
    }
    .detalhe-hero-content .hero-location {
        font-size: 1rem;
    }
    .detalhe-hero-content .hero-precos {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .detalhe-section .section-heading {
        font-size: 1.4rem; /* Títulos menores */
        padding: 1rem 1.5rem;
    }
    .detalhe-section .content-box {
        padding: 1.5rem;
    }
    .features-list-detail {
        grid-template-columns: 1fr; /* Características em coluna única */
    }
}

@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    }
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}