/* Reset & Map Visibility Fix */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000; /* dark fallback, not covering map */
  overflow: hidden;
}

#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* bottom layer */
}

/* Sidebar Panel */
.float-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2000; /* ABOVE map, BELOW popups */
  background: rgba(20, 20, 30, 0.95);
  padding: 18px;
  border-radius: 16px;
  max-width: 340px;
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.float-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.float-panel label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: bold;
}

.float-panel input,
.float-panel select {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
}

.float-panel button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: #ff7a1a;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.6);
}

.float-panel button:hover {
  box-shadow: 0 0 16px rgba(255, 122, 26, 1);
}

.hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}

/* SLIDE-UP SEASON PANEL */
.results-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: #0a0f1c;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
  z-index: 3000; /* ABOVE sidebar */
  box-shadow: 0 -4px 20px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
}

.results-panel.open {
  transform: translateY(0);
}

/* ALWAYS Visible Close Button */
#results-close-top {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 4000; /* TOP layer */
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

#results-close-top:hover {
  background: rgba(255,255,255,0.3);
}

/* Header */
.results-header {
  padding: 40px 16px 10px;
  font-weight: bold;
  font-size: 15px;
  color: #fff;
  border-bottom: 1px solid #1f2937;
}

/* Body */
.results-body {
  overflow-y: auto;
  padding: 16px;
  color: #eee;
}

.results-body h2 {
  margin-top: 0;
}

.results-body h3 {
  margin-top: 12px;
  color: #ff7a1a;
}
