#map { border-top: 1px solid #ddd; }
.navbar.navbar-compact { min-height: 28px; padding-top: 0; padding-bottom: 0; }
.navbar.navbar-compact .navbar-brand { font-size: 0.95rem; padding: 0; }
.callsign-label { pointer-events: none; }
.callsign-label .label{
  background: rgba(255,255,255,0.85);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2);
  transform: translate(-50%, -18px);
}

/* Fullscreen map */
.map-fullscreen {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1060; /* above navbar */
}

/* Pin styling for more plasticity */
.qso-pin {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}

/* 3D-style target pin using a DivIcon */
.qso-pin-icon {
  pointer-events: auto;
}
.qso-pin-icon .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.35);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.7), /* top light */
    inset 0 -2px 4px rgba(0,0,0,0.25),     /* bottom shade */
    0 2px 3px rgba(0,0,0,0.25);            /* outer shadow */
}

  /* Triangle marker for estimated positions */
  .qso-triangle-icon {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid var(--tri-color, #ff6600);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  }

/* Hide UI elements for clean screenshot */
/* Screenshot styles removed */

/* Fixed width for band labels to align color inputs */
.band-label {
  min-width: 64px;
  text-align: center;
}

#selectedFileName {
  word-break: break-word;
  white-space: normal;
  line-height: 1.2;
}

/* Verbesserte Darstellung des File-Inputs auf schmalen Sidebars */
@media (min-width: 992px) and (max-width: 1200px) {
  #adifFile.form-control[type="file"] {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }
}

/* ── Band-Legende (Leaflet topright Control) ─────────────────────── */
.band-legend-control {
  background: rgba(15, 15, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 18px 10px;
  min-width: 140px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  color: #f0f0f0;
  font-family: inherit;
  pointer-events: auto;
}

.band-legend-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.band-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.band-legend-row:last-child { margin-bottom: 0; }

.band-legend-swatch {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.band-legend-name {
  flex: 1;
  font-weight: 500;
  color: #e8e8e8;
}

.band-legend-count {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  min-width: 24px;
  text-align: right;
}

/* Split-view Layout */
.split-container {
  display: flex;
  gap: 0;
}
.split-sidebar {
  width: var(--sidebar-width, 22%);
  min-width: 220px;
  max-width: 45vw;
  flex: 0 0 auto;
}
.splitter {
  width: 6px;
  cursor: col-resize;
  background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.15), rgba(0,0,0,0.05));
  margin: 0 4px;
  border-radius: 3px;
  user-select: none;
  touch-action: none; /* wichtig für touch-drag */
}
.splitter:hover { background: rgba(0,0,0,0.2); }
.split-main {
  flex: 1 1 auto;
  min-width: 280px;
}

/* Stack on small screens */
@media (max-width: 991.98px) {
  .split-container {
    display: block;
  }
  .split-sidebar {
    width: auto !important;
    max-width: none;
    min-width: 0;
    margin-bottom: 0.75rem;
  }
  .splitter { display: none; }
}

/* Bootstrap alert container (top-right) */
.alert-container {
  position: fixed;
  top: 52px; /* just below compact navbar */
  right: 12px;
  z-index: 1080; /* above cards and map */
  max-width: 460px;
}
.alert-container .alert { margin-bottom: 8px; }
