.kbk-map-section {
  --kbk-primary: var(--color-primary, #00539f);
  --kbk-primary-hover: var(--color-primary-hover, #003f79);
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.kbk-map-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kbk-map-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--kbk-primary);
}

.kbk-map-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
}

.kbk-map-input:focus,
.kbk-radius-select:focus,
.kbk-radius-button:focus-visible,
.kbk-radius-reset:focus-visible,
.kbk-map-result:focus-visible {
  border-color: var(--kbk-primary);
  outline: 2px solid var(--kbk-primary);
  outline-offset: 1px;
}

.standorte-by-kraehativ {
  width: 100%;
  min-height: 460px;
  border-radius: 4px;
  overflow: hidden;
  background: #f3f3f3;
}

.kbk-map-results {
  margin-top: 16px;
  max-height: 360px;
  overflow: auto;
}

.kbk-map-results-count {
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.kbk-map-result {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.kbk-map-result:hover,
.kbk-map-result:focus-visible {
  border-color: var(--kbk-primary);
}

.kbk-map-result strong {
  display: block;
  color: var(--kbk-primary);
  line-height: 1.3;
}

.kbk-map-result span {
  display: block;
  margin-top: 3px;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}

.kbk-map-empty {
  margin: 0;
  color: #666;
}

.kbk-map-info {
  min-width: 190px;
  line-height: 1.45;
}

.kbk-map-info strong {
  color: var(--kbk-primary);
}

.kbk-map-info a {
  word-break: break-word;
}

.kbk-map-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid #d63638;
  background: #fff4f4;
}

.kbk-radius-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.kbk-radius-label {
  font-size: 14px;
  font-weight: 700;
  color: #555;
}

.kbk-radius-select,
.kbk-radius-button,
.kbk-radius-reset {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 15px;
}

.kbk-radius-select {
  border: 1px solid #cfcfcf;
  background: #fff;
}

.kbk-radius-button,
.kbk-radius-reset {
  border: 1px solid var(--kbk-primary);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.kbk-radius-button {
  background: var(--kbk-primary);
  color: #fff;
}

.kbk-radius-button:hover {
  background: var(--kbk-primary-hover);
  border-color: var(--kbk-primary-hover);
}

.kbk-radius-reset {
  background: #fff;
  color: var(--kbk-primary);
}

.kbk-radius-reset:hover {
  background: var(--kbk-primary);
  color: #fff;
}

.kbk-radius-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #555;
  font-size: 14px;
}

.kbk-map-distance {
  display: block;
  margin-top: 6px;
  color: #333;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 767px) {
  .kbk-map-section {
    grid-template-columns: 1fr;
  }

  .standorte-by-kraehativ {
    min-height: 380px;
  }

  .kbk-map-results {
    max-height: 260px;
  }
}
