/* RESET BÁSICO */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 12px;
    background: #f5f5f5;
    color: #333;
}

/* TÍTULOS */
h2 {
    text-align: center;
    margin-bottom: 16px;
}

h4 {
    margin: 14px 0 6px;
    font-size: 15px;
    color: #555;
}

/* LOGO TOPO */
.logo-topo {
    text-align: center;
    margin: 12px 0 16px;
}

.logo-topo img {
    width: 140px;      /* tamanho ideal no celular */
    max-width: 60%;    /* segurança */
    height: auto;
}


/* BOTÃO LIMPAR */
.btn-limpar {
    background: #e0e0e0;
    color: #000;
    margin-top: 10px;
}


/* CAMPOS */
input {
    width: 100%;
    padding: 14px;
    font-size: 16px; /* evita zoom no iOS */
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

input:focus {
    border-color: #000;
}

/* AUTOCOMPLETE */
.autocomplete {
    position: relative;
}

.autocomplete ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    list-style: none;
    padding: 0;
    margin-top: 4px;
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.autocomplete li {
    padding: 14px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.autocomplete li:last-child {
    border-bottom: none;
}

.autocomplete li:hover {
    background: #f2f2f2;
}

/* BOTÃO */
button {
    width: 100%;
    margin-top: 18px;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: #000;
    color: #fff;
    cursor: pointer;
}

button:active {
    opacity: 0.9;
}

/* RESULTADO */
#resultado {
    margin-top: 16px;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
}

/* MAPA */
#map {
    height: 280px;
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
}

/* DESKTOP */
@media (min-width: 768px) {
    body {
        max-width: 520px;
        margin: auto;
    }

    #map {
        height: 350px;
    }
}
