/* --- R E S E T S --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* --- CONTAINER PRINCIPAL --- */
.app-container {
    width: 100%;
    max-width: 450px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* --- HEADER --- */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

header h3 {
    color: #8b949e;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- INPUTS --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: #8b949e;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #00ff00;
}

/* --- BOTÃO --- */
#btn-buscar {
    width: 100%;
    background-color: #00ff00;
    color: #000000;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

#btn-buscar:hover {
    background-color: #00cc00;
    transform: translateY(-1px);
}

/* --- RESULTADO --- */
.resultado-container {
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1.2rem;
    text-align: center;
}

#status-texto {
    font-size: 1rem;
    color: #8b949e;
}

/* Estrutura das informações retornadas */
.dados-endereco {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-top: 5px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30363d;
    padding-bottom: 6px;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item .label {
    font-size: 0.85rem;
    color: #8b949e;
}

.info-item .valor {
    font-size: 0.95rem;
    font-weight: 600;
    color: #00ff00;
}

/* Classe utilitária para ocultar a lista quando vazia */
.escondido {
    display: none;
}

/* Adicione no final do seu arquivo style.css existente */

.mapa-container {
    width: 100%;
    height: 200px;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #30363d;
    overflow: hidden;
}

/* Garante que os controles do mapa fiquem visíveis no tema escuro */
.leaflet-container {
    background-color: #0d1117 !important;
}