* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a2b3c;
    --secondary: #f20000;
    --accent: #f20000;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: #ffffff;
    line-height: 1.6;
}
html, body {
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.header {
    background: #f8f9fa;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--secondary);
    margin-right: 8px;
}

.nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--dark);
    transition: 0.2s;
    font-size: 1rem;
}
.nav a:hover,
.nav a.active {
    color: var(--secondary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* Submenu */
.menu-dropdown {
    position: relative;
}

.menu-dropdown .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    list-style: none;
    min-width: 200px;
    padding: 6px 0;
    display: none;
    z-index: 999;
}

.menu-dropdown .submenu li a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: 0.2s;
}

.menu-dropdown .submenu li a:hover {
    background: #f5f5f5;
    color: var(--secondary);
}

.menu-dropdown:hover .submenu {
    display: block;
}

/* Hero */
.hero {
    position: relative;
    background: url('/images/top.png') center/cover no-repeat;
    min-height: 550px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    font-weight: 300;
}

.search-box {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    background: white;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 20px 30px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--secondary);
    border: none;
    color: white;
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box button:hover {
    background: var(--accent);
}

/* Seção imóveis */
.properties-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin-top: 10px;
}

/* Filtros */
.filter-bar {
    background: #f8f9fa;
    border-radius: 18px;
    padding: 25px 30px;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.filter-group {
    min-width: 180px;
    flex: 1 1 200px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 6px;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}

.filter-group select:focus {
    border-color: var(--secondary);
}

.btn-clear {
    background: white;
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-content {
    padding: 22px;
    flex: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.card-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray);
}

.card-location {
    color: var(--gray);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.card-location i {
    width: 18px;
    color: var(--secondary);
}

.card-features {
    display: flex;
    gap: 18px;
    margin: 15px 0 20px;
    font-size: 0.9rem;
    color: var(--dark);
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.card-features span i {
    margin-right: 4px;
    color: var(--secondary);
}

.btn-details {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 12px 0;
    width: 100%;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-details:hover {
    background: var(--secondary);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    max-width: 900px;
    width: 90%;
    border-radius: 32px;
    padding: 35px;
    position: relative;
    box-shadow: 0 40px 70px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--dark);
}

#modalDetailContainer {
    margin-top: 10px;
}

.detail-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin-bottom: 25px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-header h2 {
    font-size: 2rem;
    color: var(--primary);
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.detail-location {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.detail-location i {
    color: var(--secondary);
    margin-right: 8px;
}

.detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
}

.detail-features div {
    font-size: 1rem;
}

.detail-features i {
    color: var(--secondary);
    margin-right: 8px;
    width: 22px;
}

.detail-description {
    line-height: 1.8;
    color: var(--gray);
}
/* Botão de cadastro */
.btn-cadastrar{
background:#e30613;
color:#fff;
padding:10px 18px;
border-radius:6px;
text-decoration:none;
font-weight:600;
transition:0.3s;
}

.btn-cadastrar:hover{
background:#c4000d;
}

/* Oportunidade */
.oportunidade-destaque {
    padding: 50px 0;
    background: #f3f3f3;
}

.titulo-oportunidade {
    font-size: 2.2rem;
    font-weight: 300;
    color: #ff3300;
    margin-bottom: 14px;
    text-transform: lowercase;
}

.box-oportunidade {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    background: #efefef;
    border: 1px solid #d8d8d8;
}

.imagem-principal img {
    width: 100%;
    height: 100%;
    min-height: 285px;
    object-fit: cover;
    display: block;
}

.info-oportunidade {
    display: flex;
    flex-direction: column;
    background: #f3f3f3;
}

.topo-info {
    background: #ff0800;
    color: #fff;
    padding: 10px 14px 12px;
}

.codigo-imovel {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.topo-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.subtitulo-info {
    margin: 0;
    font-size: 0.95rem;
}

.descricao-oportunidade {
    padding: 14px;
    color: #222;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.preco-oportunidade {
    padding: 0 14px 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff1a00;
}

.mini-galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 14px 14px;
    border-top: 1px solid #d9d9d9;
}

.mini-galeria img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    border: 1px solid #ccc;
    display: block;
}

/* Sobre */
.about-section {
    padding: 90px 0;
    background: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.foto-about img {
    width: 100%;
    border-radius: 24px;
    display: block;
    box-shadow: var(--shadow);
}

/* Contato */
.contact-section {
    padding: 90px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 22px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--gray);
}

.contact-cta {
    margin-top: 35px;
    text-align: center;
}

.btn-whatsapp-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-whatsapp-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.25);
}

/* Footer */
.footer {
    background: #e30613;
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary);
    margin-top: 8px;
}

.footer-col p,
.footer-col li {
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--secondary);
}

.social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social a {
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid white;
    font-size: 0.9rem;
}

/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float i {
    position: relative;
    z-index: 1;
}

.codigo {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background: red;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
    z-index: 2;
}

@keyframes pulseWhatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,211,102,0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(37,211,102,0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

/* Carrossel */
.imoveis-swiper {
    width: 100%;
    padding-bottom: 50px;
    overflow: hidden;
}

.imoveis-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.imoveis-swiper .card {
    width: 100%;
    height: 100%;
}

.imoveis-swiper .swiper-pagination-bullet {
    background: var(--secondary);
    opacity: 0.5;
}

.imoveis-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}
/* BOTÃO VOLTAR AO TOPO */

.scroll-top{
position:fixed;
right:200px;
bottom:90px;
width:50px;
height:50px;
background:red;
color:white;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
font-size:20px;
text-decoration:none;
box-shadow:0 6px 20px rgba(0,0,0,0.3);
opacity:0;
visibility:hidden;
transition:0.3s;
z-index:9999;
}

.scroll-top:hover{
background:#f20000;
}

.scroll-top.show{
opacity:1;
visibility:visible;
}
/* MENU MOBILE */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-drawer-nav {
    padding: 10px 0 20px;
}

.mobile-drawer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-drawer-nav li {
    border-bottom: 1px solid #f1f1f1;
}

.mobile-drawer-nav a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.2s;
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
    color: var(--secondary);
    background: #f8f9fa;
}

.mobile-submenu {
    padding-left: 0;
    background: #fafafa;
}

.mobile-submenu li {
    border-bottom: none;
}

.mobile-submenu a {
    padding: 14px 20px 14px 34px;
    font-size: 0.95rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 30px;
    }

    .search-box button {
        padding: 15px;
    }

    .filter-bar {
        padding:20px;
        gap:12px;
    }

    .btn-clear {
        justify-content: center;
    }

    .modal-content {
        padding: 20px;
    }

    .detail-header h2 {
        font-size: 1.5rem;
    }

    .box-oportunidade {
        grid-template-columns: 1fr;
    }

    .titulo-oportunidade {
        font-size: 1.8rem;
    }

    .mini-galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 769px) {
    .mobile-menu-overlay,
    .mobile-drawer {
        display: none !important;
    }

.mobile-drawer.active,
.mobile-menu-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .mobile-drawer {
        display: flex;
    }

    .mobile-drawer:not(.active) {
        right: -320px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu-overlay,
    .mobile-drawer {
        display: none !important;
    }
}
}