* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* CABEÇALHO */

header {
    border-bottom: 1px solid #f1e9e9;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.botoes-header {
    display: flex;
    gap: 1rem;
}

.botao-anunciar,
.botao-ser-agente {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    cursor: pointer;
}

.botao-anunciar {
    background-color: #fff;
    color: #ea580c;
    border: 2px solid #ea580c;
}

.botao-anunciar:hover {
    background-color: #fff7ed;
    transform: scale(1.02);
    box-shadow: 0 4px 8px #d7d4d4;
}

.botao-ser-agente {
    background-color: #f97316;
    color: #fff;
    border: 1px solid #f97316;
}

.botao-ser-agente:hover {
    background-color: #f18d1a;
    transform: scale(1.02);
    box-shadow: 0 4px 8px #d7d4d4;
}

/* CONTEÚDO PRINCIPAL */

.principal {
    display: flex;
    justify-content: center;
}

.principal-container {
    max-width: 1300px;
    width: 100%;
    display: flex;
    min-height: calc(100vh - 120px);
}

.lado-esquerdo {
    width: 40%;
    background-image: url('../_img/bg-esq.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.lado-direito {
    width: 60%;
    display: flex;
    padding: 2rem;
    justify-content: center;
}

.conteudo {
    max-width: 840px;
    width: 100%;
}

.titulo {
    color: #111827;
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.descricao-titulo {
    color: #4b5563;
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

.palavra-em-destaque {
    color: #ea580c;
}

/* BUSCA */

.buscar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.buscar input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #bbbaba;
    border-radius: 0.6rem;
    font-size: 1rem;
}

.buscar input::placeholder {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #9ca3af;
}

.buscar input:focus {
    border:2px solid #f97316;
    outline: none;
}

.buscar button {
    background-color: #ea580c;
    padding: 1rem 1.4rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #f97316;
    border-radius: 0.6rem;
    cursor: pointer;
}

.buscar button:hover {
    background-color: #f18d1a;
    border-color: #f18d1a;
}

/* VANTAGENS */

.vantagens {
    display: flex;
    gap: 1.2rem;
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #bbbaba36;
    border-radius: 0.6rem;
    background-color: #f3f1f01c;
    padding: 1rem;
}

.icone {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
    border-radius: 0.6rem;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.icone svg {
    stroke: #fff;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.card p {
    color: #4b5563;
    font-size: 0.85rem;
}

/* FEITO POR */

.feito-por {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
}

.feito-por a {
    color: #ea580c;
    text-decoration: none;
}

.feito-por a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.tela {
    height: 74%;
}

.tela-resultados {
    display: flex;
    flex-direction: column;
}

.voltar {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 0;
    text-align: left;
}

.loader {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lista {
    overflow-y: auto;
    max-height: 350px;
    border-top: 1px solid #eee;
}

.linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.2rem;
}

.dados {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sem-dados p {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    line-height: 1.4;
}

.sem-dados a {
    text-decoration: none;
    color: #ea580c;
}

.botao-entrar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
    border-radius: 0.6rem;
    width: 40px;
    height: 40px;
    color: #fff;
    border: 1px solid #d97706;
    cursor: pointer;
}

.linha .icone {
    margin: 0;
}

.linha:hover {
    background: #f7f7f7;
    color: #d97706;
}

/* RESPONSIVO */

@media (max-width: 900px) {
    .principal-container {
        flex-direction: column;
    }

    .lado-esquerdo {
        display: none;
    }

    .lado-direito {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .titulo {
        font-size: 2.2rem;
    }

    .descricao-titulo {
        font-size: 1.1rem;
        margin-bottom: 3.6rem;
    }

    .buscar {
        flex-direction: column;
    }

    .vantagens {
        flex-direction: column;
    }

    .feito-por {
        position: inherit;
        padding: 0;
        margin-top: 2rem;
        text-align: center;
    }
}

@media (min-width: 901px) and (max-height: 719px) {
    .feito-por {
        position: static;
        margin-top: 8rem;
    }
}

@media (max-width: 720px) {
    .botao-anunciar,
    .botao-ser-agente {
        justify-content: center;
        align-items: center;
        padding: 0.6rem;
    }

    .botao-anunciar span,
    .botao-ser-agente span {
        display: none;
    }

    .botao-anunciar svg,
    .botao-ser-agente svg {
        display: block;
    }
}