* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #efe7db;
  color: #231815;
}

body {
  min-height: 100%;
}

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

.panel {
  padding: 24px 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(180deg, #f4ecdf 0%, #e7dccd 100%);
  border-right: 1px solid rgba(35, 24, 21, 0.12);
}

.panel h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1;
}

.panel p {
  margin: 0 0 16px;
  line-height: 1.45;
}

.legend {
  margin: 20px 0;
}

.legend__bar {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d73027 0%, #7b1fa2 100%);
  box-shadow: inset 0 0 0 1px rgba(35, 24, 21, 0.14);
}

.legend__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.95rem;
}

.range-picker {
  margin: 20px 0 10px;
}

.range-picker__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.range-picker__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

#range-selected {
  font-size: 0.92rem;
  color: rgba(35, 24, 21, 0.8);
}

.dual-range {
  position: relative;
  margin-top: 12px;
  height: 34px;
}

.dual-range__track {
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d73027 0%, #7b1fa2 100%);
  box-shadow: inset 0 0 0 1px rgba(35, 24, 21, 0.14);
}

.dual-range__fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(35, 24, 21, 0.2);
}

.dual-range__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: none;
}

.dual-range__input::-webkit-slider-runnable-track {
  height: 34px;
  appearance: none;
  background: transparent;
}

.dual-range__input::-moz-range-track {
  height: 34px;
  background: transparent;
  border: 0;
}

.dual-range__input::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 8px;
  border-radius: 50%;
  border: 2px solid #fff6ea;
  background: #231815;
  box-shadow: 0 1px 6px rgba(35, 24, 21, 0.28);
  cursor: pointer;
}

.dual-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff6ea;
  background: #231815;
  box-shadow: 0 1px 6px rgba(35, 24, 21, 0.28);
  cursor: pointer;
}

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

.stats div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(35, 24, 21, 0.12);
  border-radius: 12px;
}

.stats dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(35, 24, 21, 0.7);
}

.stats dd {
  margin: 6px 0 0;
  font-size: 1.5rem;
}

.status {
  padding: 10px 12px;
  border-left: 4px solid #9b5f1f;
  background: rgba(255, 255, 255, 0.55);
}

.map-shell {
  min-height: 100vh;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.gm-style .info-card {
  font-family: Georgia, "Times New Roman", serif;
  color: #231815;
}

.gm-style .info-card strong {
  display: block;
  margin-bottom: 4px;
}

.gm-style .info-card__years {
  margin: 10px 0 0;
  padding-left: 18px;
}

.gm-style .info-card__years li {
  margin: 4px 0;
}

.gm-style .info-card__years span {
  color: rgba(35, 24, 21, 0.76);
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 65vh;
  }

  .panel {
    border-right: 0;
    border-bottom: 1px solid rgba(35, 24, 21, 0.12);
  }

  .map-shell,
  #map {
    min-height: 65vh;
  }
}
