:root {
  --bg:#0b132b; --card:#ffffff; --accent:#1c7ed6; --text:#222; --muted:#666;
  --border:#e8edf4; --ok:#2f9e44; --warn:#f08c00; --danger:#c92a2a;
  --brand-blue:#002652; --brand-gold:#e9c369;
}
* { box-sizing: border-box; }
body {
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:#f5f7fb; color:var(--text);
}

/* ===== Header image (requested) ===== */
.site-header { width:100%; }
.site-header a img {
  width:100%;
  height:auto;
  display:block;
}

/* Keep the app's layout */
.wrap { display:grid; grid-template-columns: 420px 1fr; min-height: 60vh; }
@media (max-width: 980px) { .wrap { grid-template-columns: 1fr; } #map { height: 52vh; } }
.panel { padding:16px; background:#fff; border-right: 1px solid var(--border); }
form { display:grid; gap:10px; margin-bottom:12px; }
label { font-size:12px; color:var(--muted); }
input[type="text"] {
  padding:10px 12px; border:1px solid #d9e2ec; border-radius:10px; font-size:14px;
  outline:none; background:#fff; width:100%;
}
.row { display:flex; gap:8px; flex-wrap:wrap; }
button {
  padding:10px 12px; border:none; border-radius:10px; background:var(--accent); color:#fff;
  font-weight:700; cursor:pointer; font-size:14px;
}
button.secondary { background:#e9ecef; color:#222; }
button.ghost { background:#f1f3f5; color:#222; }
button:disabled { opacity:.6; cursor:not-allowed; }
.hint { font-size:12px; color:var(--muted); }
.results { display:grid; gap:10px; margin-top:8px; }
.card {
  background:var(--card); border:1px solid var(--border); border-radius:12px; padding:12px;
  display:grid; gap:8px;
}
.title { font-weight:800; font-size:16px; }
.meta { font-size:13px; color:var(--muted); display:flex; gap:10px; flex-wrap:wrap; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.link { text-decoration:none; color:#fff; background:var(--ok); padding:8px 10px;
  border-radius:10px; font-size:13px; }
.ghostlink { text-decoration:none; color:#222; background:#f1f3f5; padding:8px 10px;
  border-radius:10px; font-size:13px; }
.badge { font-size:11px; padding:2px 8px; border-radius:999px; background:#f1f3f5;
  color:#333; }
.toolbar { display:flex; gap:8px; align-items:center; justify-content:space-between; margin:8px 0 4px; }
.toolbar .left { display:flex; gap:8px; align-items:center; }
.toolbar select { padding:8px 10px; border:1px solid #d9e2ec; border-radius:10px;
  background:#fff; }
.note { font-size:12px; color:var(--muted); margin-top:6px; }

#map { width:100%; height: 60vh; }

/* Existing content's small footer block */
.footer {
  padding:10px 16px; font-size:12px; color:var(--muted); border-top:1px solid var(--border); background:#fff;
}

/* Custom links editor */
.custom { border-top:1px dashed var(--border); padding-top:8px; display:grid; gap:6px; }
.custom .inputs { display:grid; gap:6px; }
.custom .inputs input { width:100%; }
.custom .chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { background:#e7f5ff; border:1px solid #d0ebff; padding:3px 8px; border-radius:999px; font-size:12px; }
.toggle-edit { font-size:12px; }

/* ===== Site footer (requested) ===== */
.site-footer {
  background-color: var(--brand-blue);
  color: #ffffff;
  text-align: center;
  padding: 15px;
}
.site-footer a {
  color: var(--brand-gold);
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}
.site-footer a:hover { text-decoration: underline; }
