:root {
    --bg: #0f172a;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbe4ee;
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --success-bg: #ecfdf5;
    --success-text: #166534;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: var(--text);
}
.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}
.site-header, .site-footer {
    background: var(--bg);
    color: white;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}
.brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
nav a {
    color: white;
    text-decoration: none;
}
main.container { padding: 28px 0 36px; }
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 800px) {
    .grid { grid-template-columns: 1fr; }
    .topbar { flex-direction: column; align-items: flex-start; }
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
}
textarea { min-height: 120px; }
.row { margin-bottom: 16px; }
button, .button {
    display: inline-block;
    background: var(--primary);
    color: white;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { background: var(--primary-dark); }
.flash {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-error { background: var(--error-bg); color: var(--error-text); }
.muted { color: var(--muted); }
#map {
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.list {
    margin: 0;
    padding-left: 18px;
}
.hero h1 { margin-top: 0; }
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}

.table-wrap { overflow-x: auto; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar input { flex: 1 1 320px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.button-light {
    background: #e2e8f0;
    color: #0f172a;
}
.button-light:hover { background: #cbd5e1; }
.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.table-actions form { margin: 0; }
.button-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--primary-dark);
    cursor: pointer;
}
.button-link.danger { color: #b91c1c; }
@media (max-width: 800px) {
    .two-cols { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
}
