* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f3ef;
    color: #2b2b2b;
    margin: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

header.topo {
    background: #3c5a48;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.topo a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

header.topo nav a {
    margin-left: 16px;
    font-weight: 400;
    opacity: 0.9;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.grid-pessoas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pessoa-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}

.pessoa-card:hover { transform: translateY(-2px); }

.pessoa-card .foto {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #e2ddd3;
}

.pessoa-card .info { padding: 12px; }
.pessoa-card .nome { font-weight: 600; margin: 0 0 4px; }
.pessoa-card .datas { font-size: 0.85em; color: #777; }

form label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9em;
}

form input, form select, form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
}

button, .btn {
    display: inline-block;
    background: #3c5a48;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    margin-top: 16px;
}

.btn-secundario { background: #999; }
.btn-perigo { background: #a33; }

.relacoes-lista { list-style: none; padding: 0; }
.relacoes-lista li {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.midias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.midias-grid img { width: 100%; border-radius: 6px; }

.erro { color: #a33; background: #fce8e8; padding: 10px; border-radius: 6px; }
.sucesso { color: #2a6b2a; background: #e8f7e8; padding: 10px; border-radius: 6px; }

.busca-local { position: relative; }

.sugestoes {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sugestao-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.9em;
    border-bottom: 1px solid #f0f0f0;
}

.sugestao-item:hover { background: #f5f3ef; }

.status-local {
    font-size: 0.8em;
    margin-top: 4px;
    min-height: 1em;
}
