:root {
  --bg: #e8ece7;
  --panel: rgba(248, 247, 241, 0.96);
  --panel-border: rgba(65, 81, 66, 0.18);
  --text: #1f2a23;
  --muted: #546358;
  --accent: #9b2c2c;
  --accent-soft: #d9b07a;
  --map-outline: #34433a;
  --shadow: 0 18px 40px rgba(24, 32, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(155, 44, 44, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(92, 122, 99, 0.18), transparent 24%),
    linear-gradient(135deg, #eef1ea 0%, #dde5dc 100%);
}

body {
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 24px;
  backdrop-filter: blur(10px);
  background: rgba(238, 241, 234, 0.86);
  border-right: 1px solid rgba(45, 59, 49, 0.12);
  overflow-y: auto;
}

.hero {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2 {
  font-family: "Noto Serif TC", "PMingLiU", serif;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.intro {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.panel select,
.panel input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(55, 68, 58, 0.2);
  border-radius: 12px;
  font: inherit;
  background: #fffdfa;
}

.tips {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.site-list {
  display: grid;
  gap: 10px;
}

.site-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(63, 76, 66, 0.14);
  background: #fffef9;
}

.site-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.meta,
.description {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.92rem;
}

.status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-confirmed {
  background: rgba(38, 102, 61, 0.14);
  color: #225c37;
}

.status-probable {
  background: rgba(169, 106, 26, 0.14);
  color: #8a5310;
}

.status-suspected {
  background: rgba(155, 44, 44, 0.14);
  color: #8d2525;
}

.map-shell {
  padding: 18px;
}

#map {
  width: 100%;
  height: calc(100vh - 36px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 62, 51, 0.2);
}

.leaflet-popup-content {
  line-height: 1.6;
}

.popup-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.popup-link {
  color: var(--accent);
}

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

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(45, 59, 49, 0.12);
  }

  .map-shell {
    padding-top: 0;
  }

  #map {
    height: 68vh;
    border-radius: 0 0 24px 24px;
  }
}
