/* Estilo básico para o corpo */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.fade-out {
    opacity: 0;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.container-header img {
    height: 100px;
    width: auto;
    margin-right: 20px;
}


header h2 {
    max-width: 300px;
    font-size: 34px;
    margin-right: 400px;
    text-align: left;
}


.menu-toggle-header {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.menu-toggle-header i {
    position: relative;
    z-index: 1;
}

nav.main-nav {
    display: flex;
    gap: 25px;
}

nav.main-nav ul {
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav.main-nav li {
    display: flex;
    margin: 10px 0;
}

nav.main-nav a {
    display: flex;
    color: #535332;
    text-decoration: none;
    padding: 10px;
    font-weight: bold;
}

nav.main-nav a:hover {
    background-color: #f5f5dca6;
    border-radius: 5px;
}

nav.main-nav.active {
    max-height: 300px;
}


.menu-toggle-header {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1000;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagens/cabecalho.png') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

header {
    background-color: #f5f5dca6;
    color: #535332;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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


.imovel h2 {
    margin: 0;
    font-size: 1.5em;
}

.imovel p {
    margin: 10px 0;
}

.imovel a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px;
    background-color: #535332;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.imovel a:hover {
    background-color: #2e2e19;
}

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

form label {
    margin-top: 10px;
    font-weight: bold;
}

form input, form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

form button {
    margin-top: 20px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

form button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background: #00abb8;
    color: #fff;
}

tr:nth-child(even) {
    background: #f2f2f2;
}

tr:hover {
    background: #ddd;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

button.primary {
    background: #007bff;
    color: #fff;
}

button.primary:hover {
    background: #0056b3;
}

.logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.logout-button:hover {
    background: #c82333;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #00b9b9;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.back-button:hover {
    background: #008f8f;
}

footer {
    color: #ddd;
    background: #535332;
    padding: 20px;
    text-align: center;
    position: relative;
}

footer .social-media {
    margin-top: 10px;
}

footer .social-media a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    font-size: 40px;
}

footer .social-media a:hover {
    color: #007bff;
}

footer .social-media i {
    transition: color 0.3s ease;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    display: block;
}

.whatsapp-icon i {
    font-size: 40px;
}

.whatsapp-icon:hover {
    background-color: #535332;
}

.container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

.container-contato{
    width: 50%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

.container-contato h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.container-contato form {
    display: flex;
    flex-direction: column;
}

.container-contato label {
    margin-bottom: 10px;
    font-weight: bold;
}

.container-contato input[type="text"],
.container-contato input[type="email"],
.container-contato input[type="telefone"],
.container-contato textarea,
.container input[type="text"],
.container input[type="email"],
.container textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.container-contato textarea {
    resize: vertical;
}

.container-contato button {
    padding: 10px;
    background-color: #535332;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.container-contato button:hover {
    background-color: #2e2e1c;
}

.container-login {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.container-login h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.container-login label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.container-login input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.container-login button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.container-login button:hover {
    background-color: #00438a;
}

.container-login p {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
}

.header-buttons {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.header-buttons button {
    background-color: #007bff;
    color: white;
    border: none;
    margin-top: 10px;
    margin-left: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: auto;
    flex-shrink: 0;
}

.header-buttons button:hover {
    background-color: #5191d4;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.price-filter, .bairro-filter {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.price-filter label, .bairro-filter label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.price-filter input[type="text"] {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
}

.bairro-filter select {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #ffffff;
}

.filter-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.filter-button:hover {
    background-color: #0056b3;
}

.subtitulo {
    position: absolute;
    bottom: 0;
    left: 100px;
    font-size: 18px;
    margin: 0;
    padding: 10px;
    color: #535332;
}

.container-quem-sou {
    position: relative;
    background-image: url('/imagens/2c16b58bfbc5d538b348edb0c5a93f2bad3ad508.jpg');
    background-size: cover;
    background-position: left bottom;
    padding: 50px;
    color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
}

.container-quem-sou h1 {
    color: #ddd;
    margin-bottom: 20px;
    max-width: 80%;
    z-index: 2;
}

.container-quem-sou::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.container-quem-sou p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 10px 0;
    color: #ffffff !important;
    max-width: 50%;
    z-index: 2;
    text-align: justify;
    font-size: 1.2vw;
}

#loading-message {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #494923;
    padding: 20px;
    border-radius: 5px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.fade-out #loading-message {
    display: block;
    opacity: 1;
}

.carousel-item {
    overflow: hidden;
    position: relative;
    height: 1024px;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#imovelCarrossel {
    position: relative;
    width: 60%;
    margin: 0 auto;
}

.container-detalhes p{
    text-align: left;
    margin-left: 20%;
}

.container-detalhes h1{
    text-align: center;
    margin-top: 20px;
    margin-right: 40px;
}

h1 {
    text-align: center;
    color: #333;
    margin-top: 70px;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0010pxrgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #007bff;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

td[colspan='3'] {
    text-align: center;
    font-style: italic;
    color: #777;
}

.menu {
    display: flex;
    justify-content: center;
    background-color: #007bff;
    padding: 10px;
    margin-bottom: 20px;
}
.menu a {
    color: white;
    text-decoration: none;
    padding: 10px20px;
    margin: 010px;
    border-radius: 5px;
    font-weight: bold;
}
.menu a:hover {
    background-color: #0056b3;
}
.menu a.active {
    background-color: #004494;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.button.primary {
    background-color: #009189;
    border: 1px solid #009189;
}

.button.primary:hover {
    background-color: #006d67;
    border: 1px solid #006d67;
    box-shadow: 04px 6px rgba(0, 0, 0, 0.1);
}

.button.danger {
    background-color: #ff0000;
    border: 1px solid #ff0000;
}

.button.danger:hover {
    background-color: #bb0202;
    border: 1px solid #bb0202;
    box-shadow: 04px 6px rgba(0, 0, 0, 0.1);
}

.button-container {
    position: absolute;
    top: 20px;
    left: 130px;
    display: flex;
    gap: 10px;
}

.imoveis {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.imovel {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    box-sizing: border-box;
    max-width: 370px;
}

.imovel img {
    width: 330px;
    height: 450px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.vendido-label {
    position: absolute;
    top: 10px; /* Ajuste a posição superior conforme necessário */
    left: 10px; /* Ajuste a posição à esquerda conforme necessário */
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 9; /* Garante que o label esteja sobre a imagem */
}

.select-container {
    display: flex;
    align-items: center; /* Alinha o select e o label verticalmente no centro */
    
    margin-bottom: 10px; /* Ajuste a margem inferior conforme necessário */
}

.select-container label {
    margin-right: 10px; /* Espaço entre o label e o select */
}

.select-container select {
    padding: 5px; /* Adiciona um pouco de preenchimento ao select */
}



@media (max-width: 768px) {

    .menu-toggle-header {
        position: absolute;
        top: 20px;
        right: 5px;
        background: none;
        border: none;
        color: #494923;
        font-size: 1.8em;
        cursor: pointer;
        z-index: 1000;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(1, 135, 139, 0.1);
    }

    .container-header {
        position: relative;
        z-index: 10;
    }

    .menu-toggle-header i {
        margin: 0;
        font-size: inherit;
    }

    nav.main-nav {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: #f5f5dcd3;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 999;
    }

    nav.main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav.main-nav ul li {
        width: 100%;
        text-align: center;
    }

    nav.main-nav.active {
        max-height: 300px;
    }

    .container-header h2 {
        font-family: Arial, Helvetica, sans-serif;
        max-width: 60%;
        margin-left: -5px;
        text-align: left;
        margin-top: 35px;
        font-size: 1.4em;
        flex-shrink: 0;
    }

    .subtitulo {
        position: absolute;
        bottom: 5px;
        left: 92px;
        font-size: 0.7em;
        margin: 0;
        padding: 10px;
        color: #535332;
    }

    .container-quem-sou {
        padding: 30px;
        height: auto;
    }

    .container-quem-sou p {
        font-size: 3vw;
        max-width: 90%;
    }

    .carousel-item {
        max-height: 600px;
    }

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

}

@media (max-width: 480px) {
    .carousel-item {
        max-height: 400px;
    }
}