body {
  margin: 0;
  padding: 24px;
  font-family: 'Lato', Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
}

#mobileMessage {
  display: none;
  text-align: center;
  padding: 20px;
  font-size: 16px;
  color: #333;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
}

.hud-mapping-compare {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  color: #111827;
}

.page-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
}

.legend-section {
  display: grid;
  grid-template-columns: repeat(10, auto);
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.legend-box {
  border: 0.5px solid #a9a9a9;
  width: 12px;
  height: 12px;
}

.compare-map-wrapper {
  position: relative;
  width: 1200px;
  height: 650px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: #fff;
}

.compare-map-wrapper svg {
  display: block;
}

.map-labels {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

.map-label {
  background: rgba(255,255,255,0.92);
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.compare-instruction {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  z-index: 4;
  pointer-events: none;
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(17, 24, 39, 0.85);
  z-index: 3;
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  margin-left: -21px;
  border-radius: 50%;
  border: 2px solid #111827;
  background: rgba(255,255,255,0.98);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  pointer-events: none;
}

.compare-range {
  width: 100%;
  margin: 0;
}

.tooltip {
  opacity: 0;
  visibility: hidden;
  width: 280px;
  min-height: 40px;
  font-size: 12px;
  background-color: white;
  border: 1px solid #007cc2;
  padding: 12px;
  line-height: 150%;
  z-index: 9;
  box-shadow: 6px 6px 5px rgba(0, 0, 0, .2);
}

.snapshot {
  display: none;
  width: 430px;
  min-height: 40px;
  background-color: white;
  border-width: 1px;
  border-style: solid;
  padding: 12px;
  padding-top: 0;
  z-index: 9;
  box-shadow: 6px 6px 5px rgba(0, 0, 0, .2);
}

#snapshot-body {
  font-size: 12px;
  padding-top: 12px;
  padding-left: 12px;
  padding-right: 12px;
  line-height: 1.45;
}

.close-snapshot {
  display: block;
  color: #58595b;
  float: right;
  font-size: 28px;
  font-weight: bolder;
  border: 0;
  padding-right: 4px;
}

.close-snapshot:hover,
.close-snapshot:focus {
  color: #0a355b;
  text-decoration: none;
  cursor: pointer;
}

hr.hud-divider {
  height: 0;
  border: 1px solid #a9a9a9;
  margin-top: 6px;
  margin-bottom: 6px;
}

@media (max-width: 1270px) {
  body { padding: 12px; }
  .hud-mapping-compare { width: 100%; }
  .compare-map-wrapper { width: 100%; }
}

.floating-label {
  position: absolute;
  top: 12px;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}

.floating-label-left {
  left: 420px;
}

.floating-label-right {
  left: 620px;
}
