/********************
Reset e Fonte
*********************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", serif;
    background-color: #ad4949; /* Cor principal de fundo */
    color: #333;
    min-height: 100vh;
}

/********************
Header
*********************/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 20px;
    z-index: 100;
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1300px;
    width: 95%;
    background-color: #fff;
}

.logo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 5px;
    margin-right: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-links {
    display: flex;
    gap: 50px;
}

.header-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 25px;
}

.header-links a:hover {
    color: #007bff;
}

/********************
Hero
*********************/
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 70vh;
    margin-top: 80px; /* Compensa a altura do header fixo */
    background: url('imagens/Designer.png') center/cover no-repeat;
}

.hero-overlay {
    /* Para que a posição dos elementos dentro seja calculada
       em relação a este contêiner */
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    color: #fff;
    max-width: 600px;
    margin: auto;
    /* Certifique-se de não usar overflow: hidden aqui
       se precisar que a suggestions-box apareça livremente */
}

.hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/********************
Formulário de busca
*********************/
.search-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* O input-group precisa ser relative para o .suggestions-box
   se posicionar logo abaixo do input */
.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #fff;
}

.input-group select,
.input-group input {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.search-bar button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.search-bar button:hover {
    background-color: #0056b3;
}

/********************
Sugestões de cidade
*********************/
.suggestions-box {
    /* Absoluto para ficar imediatamente abaixo do input
       e dentro de .input-group (que está com position: relative) */
    position: absolute;
    top: 100%;
    left: 0;
    /* Largura total do campo, para alinhar direitinho */
    width: 100%;
    /* Para garantir que apareça sobre outros elementos */
    z-index: 9999;

    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none; /* Controlado via JavaScript */
    overflow-y: auto;
    max-height: 200px;
}

.suggestions-box div {
    padding: 10px 10px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

.suggestions-box div:hover {
    background-color: #f0f0f0;
}

.suggestions-box .suggestion-active {
    background-color: #007bff;
    color: #fff;
}


/********************
Página de Resultados
*********************/
/* Corpo da página de resultados */
.search-results-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px); /* Ajuste para não sobrepor o header */
    padding-top: 80px; /* Espaço para compensar header fixo */
    background-color: #ad4949;
    width: 100%;
    margin-top: 20px;
}

/* Container dos resultados */
.results-container {
    max-width: 700px;
    width: 95%;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-top: 50px;
}

/* Item individual de resultado */
.search-result-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h3 a {
    text-decoration: none;
    color: #007bff;
    font-family: "Montserrat", serif;
    font-size: 1.2rem;
}

.search-result-item h3 a:hover {
    text-decoration: underline;
}

.search-result-item p {
    color: #555;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Caso não encontre resultados */
.no-results-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    background-color: #ad4949;
    width: 100%;
}

.no-results-container {
    max-width: 700px;
    width: 95%;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-size: 1.2rem;
    margin-top: 50px;
}

.divulga {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-direction: column;
}
.divulga-container{
    background-color: #fff;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 15px;
}
.divulga-content {
    max-width: 600px;
    width: 95%;
    text-align: center;
    font-size: 15spx;
    padding: 10px;
    margin-top: 10px;
}	
.divulga-content h2 {
    font-size: 30px;
    margin-bottom: 15px;
}	
.divulga-content p {
    margin-bottom: 15px;
}	
.btn-primary {
    background-color: #A2D5AB; /* Verde claro */
    color: #333;
    padding: 0.75rem 1.5rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .btn-primary:hover {
    background-color: #92c59b;
  }
/********************
Responsividade
*********************/
@media (max-width: 800px) {
    .body{
        width: 90%;
    }
    .header {
        padding: 10px;
    }

    .header-content {
        width: 95%;
        flex-direction: row;
        align-items: center;
    }

    .logo-placeholder {
        margin-right: 20px;
    }

    .header-links {
        gap: 20px;
    }

    .header-links a {
        font-size: 20px;
    }

    .hero {
        margin-top: 60px;
        min-height: 60vh;
    }

    .hero-overlay {
        padding: 20px;
        max-width: 90%;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .search-bar {
        gap: 10px;
    }

    .input-group select,
    .input-group input {
        font-size: 15px;
        padding: 10px;
    }

    .search-bar button {
        font-size: 1rem;
        padding: 10px;
    }

    .results-container, .no-results-container {
        width: 95%;
        padding: 15px;
        margin-bottom: 20px;
    }
    .divulga {
        margin:5px;
        
    }
    .divulga-container{
        max-width: 90%;
    }
    .divulga-content {
        max-width: 90%;
        padding: 0;
    }
}
@media (max-width: 500px) {
    .divulga {
        margin: 5px;
    }
    .divulga-container {
        max-width: 90%;
        width: 90%;
        padding: 0;
    }
    .divulga-content {
        max-width: 90%;
        padding: 0;
    }
}
