.right-panel {
  width: 360px;
  min-height: calc(100vh - 96px);
  background: #ffffff;
  border-left: 1px solid #dbe4f0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.right-panel__header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid #dbe4f0;
}

.right-panel__header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  color: #172033;
}

.right-panel__header p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: #6f82a3;
}

.right-panel__body {
  padding: 16px 32px 110px;
}

.control-section {
  margin-bottom: 25px;
}

.control-section h3 {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #334155;
}

.mode-group {
  margin: 0;
  padding: 0;
  border: none;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-ui {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #d8e2ef;
  background: #ffffff;  
  flex-shrink: 0;
  position: relative;
}

.radio-label {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #334155;
}

.radio-card input:checked + .radio-ui {
  border-color: #ff0d14;
}

.radio-card input:checked + .radio-ui::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0d14;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #334155;
}

.field-icon {
  font-size: 15px;
  color: #334155;
  line-height: 1;
}

.text-input {
  width: 100%;
  height: 76px;
  border: 2px solid #d8e2ef;
  border-radius: 18px;
  padding: 0 24px;
  font-size: 15px;
  color: #334155;
  background: #ffffff;
  outline: none;
}

.text-input::placeholder {
  color: #8a94a6;
}

.text-input:focus {
  border-color: #b8c8dc;
}

.segmented-group {
  display: flex;
  gap: 16px;
}

.time-chip {
  flex: 1;
  height: 72px;
  border: none;
  border-radius: 18px;
  background: #f2f5fb;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.time-chip.active {
  background: #ff0d14;
  color: #ffffff;
}

.help-button {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe4f0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
  color: #172033;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.help-button:hover {
  background: #f8fafc;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.info-panel {
  min-height: 120px;
  padding: 16px 18px;
  border: 2px solid #d8e2ef;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.info-panel ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.info-panel li + li {
  margin-top: 6px;
}

.legend {
  background: #ffffff;
  padding: 10px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
}

.legend strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-row + .legend-row {
  margin-top: 6px;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 14px;
}

.reachable-info {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe4f0;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 18px 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 360px;
  overflow: hidden;
  color: #172033;
}

.reachable-info-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #172033;
  margin-bottom: 10px;
}

.reachable-info-empty {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #ef4444;
}

.reachable-info-empty-muted {
  font-size: 14px;
  line-height: 1.35;
  color: #64748b;
}

.reachable-info-origin {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.reachable-info-count {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #172033;
  margin-bottom: 12px;
}

.reachable-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 230px;
  overflow-y: auto;
}

.reachable-info-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #eef2f7;
}

.reachable-info-item:first-child {
  border-top: none;
  padding-top: 0;
}

.reachable-info-stop {
  font-size: 14px;
  line-height: 1.35;
  color: #172033;
  flex: 1;
}

.reachable-info-time {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
}

.reachable-info-list::-webkit-scrollbar {
  width: 8px;
}

.reachable-info-list::-webkit-scrollbar-thumb {
  background: #dbe4f0;
  border-radius: 999px;
}

.reachable-info-list::-webkit-scrollbar-track {
  background: transparent;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.time-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #fee2e2; /* light red track background */
  outline: none;
}

/* filled track for WebKit */
.time-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: #fee2e2;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;              /* red thumb */
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #ef4444;     /* red ring around thumb */
  cursor: pointer;
  margin-top: -6px;
}

/* Firefox */
.time-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #fee2e2;
}

.time-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #ef4444;
  cursor: pointer;
}

.time-slider-label {
  min-width: 64px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}