/* =========================
RESET GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: url("../fotoss/fundo.avif") repeat;
    color: #1f2a6d;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
HEADER PADRÃO (TODAS PÁGINAS)
========================= */
header {
    background: #ffffff;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 55px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
}

.logo span {
    color: #f58220;
}

nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #1f2a6d;
    font-weight: 500;
}

nav a:hover {
    color: #f58220;
}

.bem-vindo {
    margin-left: 25px;
    font-weight: 600;
}

/* =========================
HERO (INDEX)
========================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 90px 60px;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #333;
}

.hero-text a {
    display: inline-block;
    padding: 14px 34px;
    background: #f58220;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.hero-text a:hover {
    background: #d96f15;
}

.hero-img img {
    max-width: 100%;
}

/* =========================
FOOTER
========================= */
footer {
    background: #1f2a6d;
    color: #ffffff;
    padding: 22px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: auto;
}

/* =========================
LOGIN
========================= */
.login-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 90px 60px;
}

.login-box {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #f58220;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
}

.btn-login:hover {
    background: #d96f15;
}

.btn-cadastro {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid #1f2a6d;
    color: #1f2a6d;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn-cadastro:hover {
    background: #1f2a6d;
    color: white;
}

/* =========================
PÁGINA IMÓVEIS (LISTAGEM)
========================= */
.container {
    padding: 40px 60px;
}

.container h1 {
    margin-bottom: 20px;
    font-size: 30px;
}

/* FILTROS */
.filtros {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filtros select,
.filtros input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filtros button {
    padding: 10px 18px;
    border: none;
    background: #f58220;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.filtros button:hover {
    background: #d96f15;
}

/* GRID DE CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD */
.card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #1f2a6d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* IMAGEM */
.imagem {
    width: 100%;
    height: 170px;
    background: #eee;
}

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

.sem-img {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #777;
}

/* INFO CARD */
.info {
    padding: 15px;
}

.info h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.tipo {
    font-size: 13px;
    color: #555;
}

.preco {
    font-size: 18px;
    font-weight: 700;
    color: #f58220;
}

.cidade {
    font-size: 13px;
    color: #444;
}
/* =========================
   LISTA DE IMÓVEIS
========================= */
.imoveis-container {
    padding: 60px;
}

.lista-imoveis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
.card-imovel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: 0.3s;
}

.card-imovel:hover {
    transform: translateY(-5px);
}

.card-imovel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card-info p {
    font-size: 14px;
    color: #444;
}

.preco {
    font-size: 18px;
    font-weight: bold;
    color: #1f2a6d;
    margin-top: 10px;
}
/* =========================
   GRID PADRÃO (DESKTOP)
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 25px;
}

/* Estrutura correta do card */
.card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.imagem {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.info {
    padding: 12px;
    display: block;
}

.info h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

/* =========================
   TABLET
========================= */
@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   CELULAR
========================= */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .imagem {
        height: 160px;
    }

    .info h3 {
        font-size: 15px;
    }
}
/* =========================
   RESPONSIVO
========================= */

/* Tablet */
@media (max-width: 900px) {
    .lista-imoveis {
        grid-template-columns: repeat(2, 1fr);
    }

    .imoveis-container {
        padding: 40px 30px;
    }
}

/* Celular */
@media (max-width: 600px) {
    .lista-imoveis {
        grid-template-columns: 1fr;
    }

    .imoveis-container {
        padding: 30px 15px;
    }

    .card-imovel img {
        height: 180px;
    }
}
/* =========================
DETALHE DO IMÓVEL - VISUAL PROFISSIONAL
========================= */

.container-detalhe {
    max-width: 1150px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* TOPO */
.topo {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 35px;
    align-items: start;
}

/* IMAGEM PRINCIPAL */
.galeria .principal {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* MINIATURAS */
.miniaturas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.miniaturas img {
    width: 95px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.miniaturas img:hover {
    transform: scale(1.05);
    border-color: #f58220;
}

/* CAIXA DE INFORMAÇÕES */
.info-detalhe {
    background: #f7f9ff;
    padding: 25px;
    border-radius: 12px;
    border-left: 6px solid #f58220;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* PREÇO */
.info-detalhe .preco {
    font-size: 30px;
    font-weight: 700;
    color: #f58220;
    margin-bottom: 18px;
}

/* LINHAS DE INFORMAÇÃO */
.info-detalhe p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
}

.info-detalhe strong {
    color: #1f2a6d;
}

/* DESCRIÇÃO */
.descricao {
    margin-top: 35px;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.descricao h2 {
    margin-bottom: 12px;
    color: #1f2a6d;
}

.descricao p {
    line-height: 1.7;
    color: #444;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .topo {
        grid-template-columns: 1fr;
    }

    .galeria .principal {
        height: 260px;
    }
}
/* =========================
GALERIA EM LINHA (ESQUERDA → DIREITA)
========================= */

.container-detalhe {
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Imagens lado a lado */
.galeria {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* Cada imagem */
.galeria img {
    width: 320px;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.galeria img:hover {
    transform: scale(1.03);
}

/* Informações abaixo */
.info-detalhe {
    margin-top: 25px;
    padding: 20px;
    background: #f7f9ff;
    border-radius: 10px;
    border-left: 6px solid #f58220;
}

/* Preço */
.info-detalhe .preco {
    font-size: 30px;
    font-weight: bold;
    color: #f58220;
    margin-bottom: 15px;
}

/* Textos */
.info-detalhe p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

/* BOTÃO WHATSAPP */
.btn-whatsapp {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 22px;
    background: #25D366;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}
/* =========================
RESPONSIVO
========================= */
@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .topo {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
.descricao {
    margin-top: 30px;
    line-height: 1.7;
    color: #333;
}

.descricao h2 {
    margin-bottom: 10px;
}

.info-detalhe .preco {
    font-size: 26px;
    margin-bottom: 15px;
}
.senha-container {
    position: relative;
    display: flex;
    align-items: center;
}

.senha-container input {
    flex: 1;
    padding-right: 40px; /* espaço para o botão */
}

.senha-container .toggle-olho {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}
.btn-whatsapp.bloqueado {
    pointer-events: auto; /* necessário se você tiver algum reset */
    opacity: 0.6;
    cursor: not-allowed;
    background-color: gray; /* opcional, para visualmente parecer desabilitado */
}