:root {
  --bg: #f1efe7;
  --panel: rgba(250, 247, 240, 0.96);
  --panel-border: rgba(64, 52, 38, 0.12);
  --text: #1f2933;
  --muted: #5c6770;
  --accent: #0f766e;
  --accent-soft: #d9f3ef;
  --map-outline: #d97706;
  --map-fill: rgba(217, 119, 6, 0.24);
  --card: rgba(255, 255, 255, 0.8);
  --shadow: 0 18px 50px rgba(47, 41, 33, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(217, 119, 6, 0.12), transparent 28%),
    var(--bg);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
}

.panel {
  padding: 28px;
  background: var(--panel);
  border-right: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

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

h1 {
  margin: 0;
  font-size: 2.15rem;
  line-height: 1;
}

.intro {
  margin: 16px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.controls {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
}

select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  background: white;
  color: var(--text);
  font-size: 0.97rem;
  appearance: none;
}

select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: var(--accent);
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.summary-card,
.details {
  background: var(--card);
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.summary-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.summary-card strong {
  display: block;
  font-size: 1.15rem;
}

.details {
  line-height: 1.55;
  color: var(--muted);
}

.details h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.15rem;
}

.details p {
  margin: 0;
}

.map-shell {
  min-height: 100vh;
  padding: 18px;
  position: relative;
}

#map {
  width: 100%;
  height: calc(100vh - 36px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.leaflet-container {
  background: #dbe7ef;
}

.github-link {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.84);
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(10px);
}

.github-link:hover {
  background: rgba(15, 118, 110, 0.9);
}

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

  .panel {
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }

  .map-shell {
    min-height: auto;
  }

  #map {
    height: 68vh;
  }

  .github-link {
    left: 26px;
    bottom: 26px;
    max-width: calc(100% - 52px);
  }
}
