/* public/assets/css/style.css */

:root {
    --primary: #0066cc;
    --secondary: #00cc99;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --border: #e0e0e0;
    --text: #333;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

/* WhatsApp Flutuante */
.whatsapp-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1);
    color: white;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.busca-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.busca-form .form-group {
    margin: 0;
}

.busca-form .form-control {
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 5px;
}

.busca-form .btn-primary {
    background: var(--primary);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.busca-form .btn-primary:hover {
    background: #0052a3;
}

/* Section */
.section {
    padding: 60px 0;
}

.section.bg-light {
    background: var(--light);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text);
}

/* Grid de Imóveis */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.imovel-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.imovel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.imovel-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.imovel-imagem {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.imovel-info {
    padding: 20px;
}

.imovel-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.imovel-info .localizacao {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.imovel-info .preco {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.imovel-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.imovel-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Detalhes do Imóvel */
.imovel-detalhes {
    padding: 40px 0;
}

.galeria-section {
    margin-bottom: 40px;
}

.galeria-principal {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.galeria-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-miniaturas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.galeria-miniaturas .thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.galeria-miniaturas .thumbnail:hover,
.galeria-miniaturas .thumbnail.active {
    border-color: var(--primary);
}

.preco-destaque {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.preco-destaque h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 0;
}

.preco-destaque .modalidade {
    color: var(--text-light);
    margin: 5px 0 0 0;
}

/* Características */
.caracteristicas-principais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.caracteristica {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
}

.caracteristica i {
    font-size: 1.5rem;
    color: var(--primary);
}

.caracteristica .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.caracteristica .valor {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text);
    margin: 0;
}

/* Card de Contato */
.card-contato {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-item p {
    margin: 5px 0 0 0;
    font-weight: 500;
}

.botoes-contato {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.botoes-contato .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Amenidades */
.amenidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.amenidade {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light);
    border-radius: 5px;
}

.amenidade i {
    color: var(--secondary);
    font-weight: bold;
}

/* Estatísticas */
.estatisticas {
    background: var(--primary) !important;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer h5 {
    margin-bottom: 20px;
    font-weight: bold;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

/* Formulários */
.form-control {
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Botões */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    color: white;
}

.btn-success {
    background: #25d366;
    color: white;
}

.btn-success:hover {
    background: #1fa855;
    color: white;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .busca-form {
        grid-template-columns: 1fr;
    }

    .imoveis-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .galeria-principal {
        height: 300px;
    }

    .card-contato {
        position: static;
        margin-top: 30px;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer h5 {
        margin-bottom: 15px;
    }
}

/* Lazyload */
img[loading="lazy"] {
    background: var(--light);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.imovel-card {
    animation: fadeIn 0.5s ease-out;
}

/* Print */
@media print {
    .header, .footer, .whatsapp-flutuante {
        display: none;
    }
}