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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

header nav {
    display: flex;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

header nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
}

/* Main Content */
main {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Grid de Imóveis */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.imovel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.imovel-imagem {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.imovel-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.imovel-card:hover .imovel-imagem img {
    transform: scale(1.1);
}

.badge-destaque {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.imovel-info {
    padding: 1.5rem;
}

.imovel-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.endereco {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.tipo-imovel {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.caracteristicas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.caracteristicas span {
    font-size: 0.9rem;
    color: #555;
}

.preco {
    margin: 1rem 0;
    color: #27ae60;
    font-size: 1.1rem;
}

.btn-detalhes {
    display: block;
    text-align: center;
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: bold;
}

.btn-detalhes:hover {
    background: #2980b9;
}

/* Botão Explorar - OPÇÃO 3 */
.btn-container {
    text-align: center;
    margin: 3rem 0;
}

.btn-explorar {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 20px 35px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-explorar:hover {
    background: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-icon {
    font-size: 2rem;
    transition: transform 0.3s;
}

.btn-explorar:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-text strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    transition: color 0.3s;
}

.btn-text small {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 3px;
    transition: color 0.3s;
}

.btn-explorar:hover .btn-text strong,
.btn-explorar:hover .btn-text small {
    color: white;
}

.btn-arrow {
    font-size: 1.5rem;
    color: #667eea;
    transition: all 0.3s;
}

.btn-explorar:hover .btn-arrow {
    color: white;
    transform: translateX(10px);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* --- RESPONSIVIDADE --- */

/* Telas menores que 992px (tablets e celulares grandes) */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header nav {
        gap: 1.5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

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

    .imovel-imagem {
        height: 220px;
    }

    .imovel-info h3 {
        font-size: 1.2rem;
    }

    .btn-explorar {
        padding: 18px 30px;
        gap: 1rem;
    }

    .btn-icon {
        font-size: 1.8rem;
    }

    .btn-text strong {
        font-size: 1rem;
    }

    .btn-text small {
        font-size: 0.85rem;
    }
}

/* Telas menores que 768px (tablets pequenos e celulares) */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    header nav {
        flex-direction: column; /* Empilha os links de navegação */
        gap: 0.8rem;
        width: 100%; /* Ocupa toda a largura */
    }

    header nav a {
        padding: 0.5rem 0; /* Adiciona padding para melhor toque */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Separador visual */
    }

    header nav a:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .imoveis-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas pequenas */
        gap: 1.5rem;
    }

    .imovel-imagem {
        height: 200px;
    }

    .imovel-info h3 {
        font-size: 1.1rem;
    }

    .caracteristicas {
        flex-direction: column; /* Empilha as características */
        gap: 0.5rem;
    }

    .btn-explorar {
        flex-direction: column; /* Empilha ícone, texto e seta */
        gap: 1rem;
        text-align: center;
        padding: 20px 25px;
    }
    
    .btn-text {
        text-align: center;
    }
    
    .btn-icon {
        font-size: 2.5rem;
    }

    .btn-arrow {
        transform: rotate(90deg); /* Gira a seta para baixo */
    }

    footer {
        padding: 1.5rem 0;
    }
}

/* Telas menores que 480px (celulares muito pequenos) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .imovel-imagem {
        height: 180px;
    }

    .imovel-info {
        padding: 1rem;
    }

    .imovel-info h3 {
        font-size: 1rem;
    }

    .endereco, .tipo-imovel, .caracteristicas span, .preco {
        font-size: 0.85rem;
    }

    .btn-detalhes {
        padding: 8px;
        font-size: 0.9rem;
    }

    .btn-explorar {
        padding: 15px 20px;
        gap: 0.8rem;
    }

    .btn-icon {
        font-size: 2rem;
    }

    .btn-text strong {
        font-size: 0.9rem;
    }

    .btn-text small {
        font-size: 0.8rem;
    }
}
