/* RESET BÁSICO */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

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

/* HERO (BANNER) */
.hero {
    height: 270px;

    background-image: url("/static/banner.jpg");
    background-size: cover;
    background-position: center 2%;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    text-align: center;
}

/* camada escura */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);

    pointer-events: none; /* 👈 AQUI */
}
/* conteúdo do banner */
.hero .container {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* TEXTO */
.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.hero p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: white;
}

/* BOTÕES */
.hero .btn {
    margin: 5px;
}

/* botão "Ver anúncios" sempre visível */
.hero .btn-outline-light {
    border: 1px solid white;
    color: white;
}

.hero .btn-outline-light:hover {
    background: white;
    color: black;
}

/* CARDS */
.card {
    border-radius: 10px;
    transition: 0.3s;
    border: none;
}

.card:hover {
    transform: scale(1.03);
}

/* CONTAINER */
.container {
    max-width: 1100px;
}

/* FOOTER */
footer.footer {
    background-color: #0d1b2a !important;
    color: white !important;
    margin-top: auto;
}

.footer a {
    color: #ccc !important;
    text-decoration: none;
}

.footer a:hover {
    color: white !important;
}

.footer ul {
    padding: 0;
}

.footer li {
    margin-bottom: 8px;
}

.border-top {
    border-color: rgba(255,255,255,0.2) !important;
}

/* INPUT */
form input {
    width: 100%;
}
body {
    font-family: Arial;
    background: #f4f4f4;
    text-align: center;
}

.box {
    width: 300px;
    margin: auto;
    background: white;
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
}

input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
}

button {
    width: 100%;
    padding: 10px;
    background: green;
    color: white;
    border: none;
}

.anuncio {
    background: white;
    margin: 15px;
    padding: 15px;
    border-radius: 8px;
}
/* NAVBAR sempre acima de tudo */
.bg-white {
    position: relative;
    z-index: 1000;
}

.bg-dark {
    position: relative;
    z-index: 1000;
}

/* Banner fica abaixo */
.hero {
    z-index: 1;
}
.bg-white, .bg-dark {
    position: relative;
    z-index: 1000;
}
@media (max-width: 768px) {
    form button {
        width: auto;
        padding: 8px 12px;
        font-size: 14px;
    }
}
.form-busca button {
    height: 38px;
    padding: 0 15px;
    font-size: 14px;
}
/* 🖼️ imagem responsiva correta */
.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* 📱 celular */
@media (max-width: 768px) {
    .card-img-top {
        height: 120px;
    }
}
/* TOPO RESPONSIVO */
.search-form {
    flex: 1;
    max-width: 520px;
}

.site-logo {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .top-header-content {
        flex-direction: column;
        align-items: stretch !important;
    }

    .site-logo {
        text-align: center;
        font-size: 18px;
        margin-bottom: 5px;
    }

    .search-form {
        width: 100%;
        max-width: 100%;
    }

    .search-form input {
        min-width: 0;
    }

    .search-form button {
        width: 110px;
    }

    .user-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .user-actions .btn {
        width: 100%;
        text-align: center;
    }

    .navbar-toggler {
        border-color: rgba(255,255,255,0.3);
    }
}