:root {
  --bg: #f6f7fb;
  --paper: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d7dde8;
  --accent: #9a3412;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #fff3e9, #f6f7fb 45%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.topbar nav {
  display: flex;
  gap: 14px;
}

.topbar a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.container {
  width: min(1040px, 92vw);
  margin: 18px auto 48px;
}

.hero {
  background: linear-gradient(120deg, var(--accent), #1f2937);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hero p {
  margin: 10px 0 0;
  opacity: 0.96;
  line-height: 1.6;
}

.hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card h2 {
  margin-top: 0;
}

.card p {
  line-height: 1.7;
  color: var(--muted);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline time {
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
}

#map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.sources {
  display: grid;
  gap: 8px;
}

.sources a {
  color: #0f3c8d;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.list-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 14px;
}

.list-card h3 {
  margin: 0 0 6px;
}

.list-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
}

.list-card a {
  text-decoration: none;
  font-weight: 700;
  color: #7c2d12;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

textarea {
  resize: vertical;
}

button,
.btn-link {
  border: 0;
  border-radius: 10px;
  background: #0f3c8d;
  color: #fff;
  padding: 10px 12px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muted {
  color: var(--muted);
}

.admin-list {
  list-style: none;
  padding: 0;
}

.admin-list li {
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.admin-list li button {
  background: #374151;
  min-width: 0;
  padding: 6px 10px;
}

@media (max-width: 920px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  #map {
    height: 310px;
  }
}
