:root {
  --rep-all: #ffb97c;
  --rep-analog: #ffffff;
  --rep-dstar: #79f7ae;
  --rep-dmr: #80c1fb;
  --rep-fusion: #ed82ff;
  --rep-nxdn: #ff9b85;
  --rep-parrot: #ffff7c;
}

#map {
  height: 100%;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#sidebar {
  font-size: 15px;
  height: 50% !important;
}

.leaflet-control.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.reptitle {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.reptitle>.title-links>a {
  text-decoration: none;
  /* margin-right: 1rem; */
  /* margin-bottom: 0.5rem; */
  /* margin-top: 0.5rem; */
}

.reptitle>.title-links,
.reptitle>h2,
.reptitle>h3 {
  width: 100%;
  text-align: center;
  margin: 0.25rem 0;
}

.modes {
  background-color: rgba(18, 18, 18, 0.75);
  width: auto !important;
  height: auto !important;
  /* padding-top: 0.75rem; */
  padding-left: 0.75rem;
  padding-bottom: 0.1rem;
  padding-right: 0.75rem;
  margin: 0 !important;
  /* border: 1px solid black; */
  border-radius: 5px;
  border-top-left-radius: 0;
  overflow: hidden;
  box-shadow: 5px 5px 8px -4px rgb(0 0 0 / 75%);
  text-align: center;
}

.modes>hr {
  margin: 0;
}

.modes>center {
  color: #999999;
  font-weight: bold;
  /* padding-left: 0.75rem; */
}

/* .modes>center>.name {
      color: #ffb97c;
    } */

.name-UHF {
  color: #89a6e7;
}

.name-VHF {
  color: #db8787;
}

.hr-UHF {
  background-color: var(--rep-all);
  /* background-color: #89a6e7; */
  height: 1px;
  border: none;
}

.hr-VHF {
  background-color: var(--rep-all);
  /* background-color: #db8787; */
  height: 1px;
  border: none;
}

.band-UHF {
  color: #89a6e7;
}

.band-VHF {
  color: #db8787;
}

.modes .pointer {
  position: absolute;
  inset: 0 auto auto 0;
  background: #7d18a1;
  color: lightyellow;
  transform-origin: 100% 0;
  transform: translate(-29.3%) rotate(-45deg);
  box-shadow: 0 0 0 999px #7d18a1;
  clip-path: inset(0 -100%);
  margin-top: -2px;
  margin-left: -2px;
}

.bottom-box {
  background-color: rgba(18, 18, 18, 0.75);
  border: 1px solid black;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
}

.csv-button {
  background-color: #0a0a23;
  color: #fff;
  border-radius: 50%;
  padding: 0.25rem;
  cursor: pointer;
}

.csv-button:hover {
  background-color: #6699ff;
}

.color-rep-all {
  color: var(--rep-all);
}

.color-rep-analog {
  color: var(--rep-analog);
}

.color-rep-fusion {
  color: var(--rep-fusion);
}

.color-rep-dstar {
  color: var(--rep-dstar);
}

.color-rep-dmr {
  color: var(--rep-dmr);
}

.color-rep-nxdn {
  color: var(--rep-nxdn);
}

.color-rep-parrot {
  color: var(--rep-parrot);
}

.csv-button.all {
  border: 1px solid #6699ff;
  /* border: 1px solid var(--rep-all); */
  color: var(--rep-all);
}

.csv-button.analog {
  border: 1px solid #6699ff;
  /* border: 1px solid var(--rep-analog); */
  color: var(--rep-analog);
}

.csv-button.fusion {
  border: 1px solid #6699ff;
  /* border: 1px solid var(--rep-fusion); */
  color: var(--rep-fusion);
}

.csv-button.dstar {
  border: 1px solid #6699ff;
  /* border: 1px solid var(--rep-dstar); */
  color: var(--rep-dstar);
}

.csv-button.dmr {
  border: 1px solid #6699ff;
  /* border: 1px solid var(--rep-dmr); */
  color: var(--rep-dmr);
}

.csv-button.nxdn {
  border: 1px solid #6699ff;
  /* border: 1px solid var(--rep-nxdn); */
  color: var(--rep-nxdn);
}

.csv-button.parrot {
  border: 1px solid #6699ff;
  /* border: 1px solid var(--rep-parrot); */
  color: var(--rep-parrot);
}

.foldable-panel {
  position: relative;
  min-width: 220px;
  transition: max-height 0.3s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s;
  overflow: hidden;
  max-height: 500px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.foldable-panel.folded {
  max-height: 38px !important;
  box-shadow: none;
}

.foldable-panel .panel-header {
  cursor: pointer;
  background: #222;
  color: var(--rep-all);
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px 5px 0 0;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foldable-panel .panel-header .arrow {
  transition: transform 0.3s;
  margin-left: 8px;
}

.foldable-panel.folded .panel-header .arrow {
  transform: rotate(-90deg);
}

.foldable-panel .panel-content {
  padding: 0 8px 8px 8px;
  background: rgba(34, 34, 34, 0.7);
  border-radius: 0 0 5px 5px;
  transition: opacity 0.2s;
}

.foldable-panel.folded .panel-content {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
}

.foldable-panel:not(.folded) #rep-caption-row {
  display: none;
}

.rep-filters {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.rep-filters label {
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rep-filters input[type="checkbox"] {
  accent-color: #6699ff;
  margin-right: 4px;
}

.rep-modes-sup {
  display: inline-block;
  vertical-align: super;
  font-size: 0.7em;
  color: #3a3a3a;
  margin-left: 3px;
  text-decoration: none;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.dot {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  margin-right: 0.4em;
  vertical-align: middle;
}

.dot-red {
  background: #f44336;
}

.dot-green {
  background: #4caf50;
}

.padlock-dot {
  font-size: 0.9em;
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  vertical-align: middle;
  color: #444444;
  margin-right: 0.4em;
  text-align: center;
  line-height: 0.9em;
}

.fa-window-restore {
  color: #444444;
  opacity: 0.92;
}

.copied-label {
  color: #2e7d5a;
  background: #e6f4ee;
  border: 1px solid #2e7d5a;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 6px;
  font-weight: bold;
  font-size: 1em;
  float: right;
  transition: opacity 0.3s;
  opacity: 1;
}

.copied-label.fade-out {
  opacity: 0;
}

.terrain-profile-button {
  display: inline-block;
  font-size: 1em;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #4CAF50, #2E8B57);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, filter .12s ease;
}

/* Disabled state */
.terrain-profile-button:disabled,
.terrain-profile-button[disabled],
.terrain-profile-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  filter: grayscale(30%) brightness(0.95);
}

.terrain-profile-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22)
}

.terrain-profile-button:active {
  transform: translateY(0);
  opacity: .95
}

.terrain-profile-button .small-br {
  display: block;
  font-size: 0.85em;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.95)
}

.terrain-profile-link-container {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5em;
}

.terrain-profile-link {
  font-size: 0.97em;
  color: #0074d9;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline;
  font-weight: normal;
}

.terrain-profile-comment,
.terrain-profile-credit {
  font-size: 0.85em;
  margin-top: 4px;
  color: rgba(34, 34, 34, 0.95);
  text-align: center;
}

.terrain-profile-link-container.sidebar-mode,
.terrain-profile-link-container[style*="text-align: left"] {
  text-align: left !important;
}

.terrain-profile-link-container.sidebar-mode .terrain-profile-comment,
.terrain-profile-link-container[style*="text-align: left"] .terrain-profile-comment,
.terrain-profile-link-container.sidebar-mode .terrain-profile-credit,
.terrain-profile-link-container[style*="text-align: left"] .terrain-profile-credit {
  text-align: left !important;
  margin-top: 2px;
}

.terrain-profile-button {
  display: none !important;
}
