/* Results only; retain the existing dropdown geometry and type. */
body.na-results-shell .production-location-row { grid-template-columns: minmax(0, 1fr); }
body.na-results-shell .filter-dropdown-location .dropdown-toggle.open { color: var(--color-19); border-bottom-color: var(--color-19); }
body.na-results-shell .filter-dropdown-location .dropdown-list::after { display: none; }
body.na-results-shell .production-location-controls { padding: .75rem; box-sizing: border-box; color: var(--color-11); font: inherit; letter-spacing: .0825rem; }
body.na-results-shell .production-location-search { display: flex; margin: 0; gap: 0; align-items: stretch; }
body.na-results-shell .production-location-search input { flex: 1 1 auto; width: 0; min-width: 0; min-height: 2.5rem; padding: .5rem; border: 1px solid var(--color-11); border-radius: 0; background: #f4f4f4; color: #111; font: inherit; letter-spacing: inherit; box-sizing: border-box; appearance: none; }
body.na-results-shell .production-location-search input::-webkit-search-cancel-button { display: none; }
body.na-results-shell .production-location-controls button { font: inherit; letter-spacing: inherit; color: var(--color-11); background: #e5e5e5; border: 0; border-radius: 0; box-shadow: none; padding: .5rem; cursor: pointer; min-height: 2.5rem; }
body.na-results-shell .production-location-search button { border: 1px solid var(--color-11); border-left: 0; }
body.na-results-shell .production-location-clear { flex: 0 0 2.5rem; }
body.na-results-shell .production-location-controls button:focus-visible, body.na-results-shell .production-location-controls input:focus-visible { outline: 2px solid #a00101; outline-offset: -2px; }
body.na-results-shell .production-location-controls button:hover:not(:disabled), body.na-results-shell .production-location-radii button[aria-pressed="true"] { color: #fff; background: #a00101; }
body.na-results-shell .production-location-controls button:disabled { opacity: .45; cursor: default; }
body.na-results-shell .production-location-radii { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-top: .65rem; }
body.na-results-shell .production-location-status { margin-top: .65rem; overflow-wrap: anywhere; line-height: 1.35; }
body.na-results-shell .production-location-hint { font-size: .8rem; line-height: 1.35; margin-top: .35rem; }
body.na-results-shell .production-location-expanded { display: none; }
body.na-results-shell #map-specialcontainer.results-map-expanded .production-location-expanded { display: block; position: absolute; z-index: 1100; top: max(.5rem,env(safe-area-inset-top,0px)); left: max(.5rem,env(safe-area-inset-left,0px)); width: min(27rem,calc(100% - 5rem)); max-height: calc(100% - 2rem); overflow: auto; background: rgba(249,249,249,.80); border: 1px solid #111; box-sizing: border-box; }
@media (max-width: 420px) { body.na-results-shell .production-location-controls { padding: .5rem; letter-spacing: .03rem; font-size: .85rem; } }

/* Isolate the search row from shared full-width form/button rules. */
body.na-results-shell .production-location-controls .production-location-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content 2.5rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}
body.na-results-shell .production-location-search .production-location-input {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 2.5rem;
  margin: 0;
  padding: 0 .5rem;
  background-image: none;
  line-height: normal;
  -webkit-appearance: none;
}
body.na-results-shell .production-location-search > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 2.5rem;
  margin: 0;
  box-sizing: border-box;
  white-space: nowrap;
}
body.na-results-shell .production-location-search > .production-location-submit {
  padding: 0 .75rem;
}
body.na-results-shell .production-location-search > .production-location-clear {
  padding: 0;
}

/* Slim, perfectly centered clear symbol drawn with CSS lines. */
body.na-results-shell .production-location-search > .production-location-clear {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  text-align: center;
  padding: 0;
  color: var(--color-11);
}
body.na-results-shell .production-location-search > .production-location-clear::before,
body.na-results-shell .production-location-search > .production-location-clear::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
  transform-origin: center center;
}
body.na-results-shell .production-location-search > .production-location-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
body.na-results-shell .production-location-search > .production-location-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Geographic filtering does not remove or reorder existing profile cards. */
body.na-results-shell .results > .result-item.production-location-excluded { display: none !important; }
body.na-results-shell .results > .result-item.production-location-has-routes { display: block; }
body.na-results-shell .result-item.production-location-has-routes > a.result-text-link { position: relative; }
body.na-results-shell .production-card-routes {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: .25rem .85rem; padding: .3rem .65rem; background: var(--results-card-bg, var(--color-20));
  width: 100%; margin: 0; border: 0; border-radius: 0;
  color: #111; font-size: .85rem; font-weight: 500; letter-spacing: .10rem; text-transform: uppercase;
  box-sizing: border-box;
}
body.na-results-shell .production-route-distance { margin-right: auto; }
body.na-results-shell .production-card-routes a,
body.na-results-shell .production-popup-routes a,
body.na-results-shell .production-person-popup > a { color: #111; text-decoration: none; white-space: nowrap; }
body.na-results-shell .production-card-routes a:hover,
body.na-results-shell .production-person-popup a:hover { color: #a00101; }
body.na-results-shell #production-location-empty { margin: 1rem .5rem; }
body.na-results-shell .production-person-popup { display: grid; gap: .55rem; font-size: 110%; letter-spacing: .05rem; }
body.na-results-shell .production-person-popup .production-popup-pin { display: block; width: auto; margin: 0; padding: .35rem .65rem; border: 0; border-radius: 0; background: #111; color: #fff; font: inherit; cursor: pointer; }
body.na-results-shell .production-person-popup .production-popup-pin[aria-pressed="true"] { background: #a00101; }
body.na-results-shell .production-popup-routes { display: flex; flex-wrap: wrap; gap: .5rem; }
body.na-results-shell .production-popup-routes .production-route-distance { flex-basis: 100%; }
body.na-results-shell .production-map-popup .leaflet-popup-content-wrapper { border-radius: 0; }

/* Preserve non-interactive map dots in the original, unfiltered normal view. */
body.na-results-shell #map-specialcontainer:not(.results-map-expanded) #map:not(.production-location-active) .kamerapunkt { pointer-events: none; }

/* Use the existing external-link artwork, scaled to capital-letter height. */
body.na-results-shell .production-card-routes a.production-route-link::after,
body.na-results-shell .production-popup-routes a.production-route-link::after,
body.na-results-shell .production-person-popup > a.production-route-link::after {
  content: "";
  display: inline-block;
  width: .648em;
  height: .648em;
  width: .9cap;
  height: .9cap;
  margin-left: .3em;
  vertical-align: baseline;
  background-color: currentColor;
  -webkit-mask: url('/grafic/pfeil-extern.svg') center / contain no-repeat;
  mask: url('/grafic/pfeil-extern.svg') center / contain no-repeat;
  transform: rotate(90deg);
}

/* Person popup: neutral grey, restrained shadow. */
body.na-results-shell .production-map-popup .leaflet-popup-content-wrapper,
body.na-results-shell .production-map-popup .leaflet-popup-tip {
  background: #efefef;
  color: #111;
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
  border: 1px solid #111;
}
body.na-results-shell .production-map-popup .leaflet-popup-content {
  margin: 1.21rem 1.815rem 1.21rem 1.43rem;
}
body.na-results-shell .production-map-popup a.leaflet-popup-close-button {
  width: 1.65rem;
  height: 1.65rem;
  top: .2rem;
  right: .2rem;
  color: #111;
  font-size: 0;
  line-height: 1;
  padding: 0;
}
body.na-results-shell .production-map-popup a.leaflet-popup-close-button > span { font-size: 0; }
body.na-results-shell .production-map-popup a.leaflet-popup-close-button::before,
body.na-results-shell .production-map-popup a.leaflet-popup-close-button::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: .9rem; height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
body.na-results-shell .production-map-popup a.leaflet-popup-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
body.na-results-shell .production-map-popup a.leaflet-popup-close-button:hover { color: #a00101; }


/* Larger production location search, matching the dropdown background. */
body.na-results-shell .production-location-controls {
  padding: 1.1rem .75rem 1.35rem;
}
body.na-results-shell .production-location-controls .production-location-search {
  --pl-field-height: 5rem;
  grid-template-columns: minmax(0, 1fr) var(--pl-field-height) var(--pl-field-height);
  background: transparent;
}
body.na-results-shell .production-location-search .production-location-input {
  height: var(--pl-field-height);
  min-height: var(--pl-field-height);
  font-size: 2em;
  padding: 0 .75rem;
  background: transparent;
  border: 1px solid var(--color-11);
  text-overflow: ellipsis;
}
body.na-results-shell .production-location-search > button {
  height: var(--pl-field-height);
  min-height: var(--pl-field-height);
  width: var(--pl-field-height);
  background: transparent;
  color: #111;
  padding: 0;
  border: 1px solid var(--color-11);
  border-left: 0;
}
body.na-results-shell .production-location-search > .production-location-submit svg {
  display: block;
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
}
body.na-results-shell .production-location-search > .production-location-clear::before,
body.na-results-shell .production-location-search > .production-location-clear::after {
  width: 1.95rem;
  height: 1px;
}
body.na-results-shell .production-location-search > .production-location-submit:hover:not(:disabled),
body.na-results-shell .production-location-search > .production-location-clear:hover:not(:disabled) {
  background: transparent;
  color: #a00101;
}
body.na-results-shell .production-location-radii {
  gap: 0;
  margin-top: 1.25rem;
}
body.na-results-shell .production-location-radii button[data-radius="25"] { --pl-radius-color: #9aaa7a; }
body.na-results-shell .production-location-radii button[data-radius="50"] { --pl-radius-color: #90a0af; }
body.na-results-shell .production-location-radii button[data-radius="100"] { --pl-radius-color: #c7b76a; }
body.na-results-shell .production-location-radii button[data-radius="all"] { --pl-radius-color: #c9a0c3; }
body.na-results-shell .production-location-radii button[data-radius] {
  background: var(--pl-radius-color);
  color: #111;
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.na-results-shell .production-location-radii button[data-radius]:disabled { opacity: 1; color: #333; cursor: default; }
body.na-results-shell .production-location-radii button[data-radius][aria-pressed="true"]:not(:disabled) { box-shadow: inset 0 -3px #111; }
body.na-results-shell .production-location-radii button[data-radius]:hover:not(:disabled) { color: #a00101; }
body.na-results-shell .production-location-status { margin-top: 1rem; }
/* Keep the two square controls usable without squeezing the text field on phones. */
@media (max-width: 600px) {
  body.na-results-shell .production-location-controls .production-location-search { --pl-field-height: 3.25rem; }
  body.na-results-shell .production-location-search .production-location-input { font-size: 1.3em; padding: 0 .4rem; }
  body.na-results-shell .production-location-search > .production-location-submit svg { width: 2rem; height: 2rem; }
  body.na-results-shell .production-location-search > .production-location-clear::before,
  body.na-results-shell .production-location-search > .production-location-clear::after { width: 1.45rem; }
}
/* Expanded map has a narrower controls panel even on desktop. */
body.na-results-shell .production-location-expanded .production-location-controls .production-location-search { --pl-field-height: 3.5rem; }
body.na-results-shell .production-location-expanded .production-location-search .production-location-input { font-size: 1.4em; }
body.na-results-shell .production-location-expanded .production-location-search > .production-location-submit svg { width: 2rem; height: 2rem; }
body.na-results-shell .production-location-expanded .production-location-search > .production-location-clear::before,
body.na-results-shell .production-location-expanded .production-location-search > .production-location-clear::after { width: 1.5rem; }

/* Match the two symbols optically and keep the dropdown background. */
body.na-results-shell .production-location-controls .production-location-search > .production-location-submit,
body.na-results-shell .production-location-controls .production-location-search > .production-location-clear {
  background: transparent;
}
body.na-results-shell .production-location-search > .production-location-clear::before,
body.na-results-shell .production-location-search > .production-location-clear::after {
  height: 1.5px;
}

/* Keep clear symbol black even when the empty-field button is disabled. */
body.na-results-shell .production-location-controls .production-location-search > .production-location-clear { color: #111; }
body.na-results-shell .production-location-controls .production-location-search > .production-location-clear:disabled { opacity: 1; }

/* Production location only: neutral input and black radius hover. */
body.na-results-shell .production-location-controls .production-location-search > input.production-location-input,
body.na-results-shell .production-location-controls .production-location-search > input.production-location-input:focus,
body.na-results-shell .production-location-controls .production-location-search > input.production-location-input:valid {
  background: transparent;
  border: 1px solid var(--color-11);
  outline: none;
  box-shadow: none;
  caret-color: #111;
}
body.na-results-shell .production-location-controls .production-location-radii > button[data-radius]:hover {
  background: #000;
  color: #e5e5e5;
  box-shadow: none;
  border-bottom: 0;
}

/* Search in progress: retain full contrast instead of disabled opacity. */
body.na-results-shell .production-location-controls .production-location-search > button.production-location-submit:disabled {
  opacity: 1;
  background: #000;
  border-color: #000;
  color: #e5e5e5;
  -webkit-text-fill-color: #e5e5e5;
  cursor: default;
}
body.na-results-shell .production-location-controls .production-location-search > button.production-location-submit:disabled svg {
  opacity: 1;
  color: #e5e5e5;
}

/* Production Location: translucent neutral dropdown, without affecting the input. */
body.na-results-shell .container-profil-dyn .filter-dropdown-location .dropdown-list {
  background: rgba(244,244,244,.90);
}
/* Keep the route strip in sync with the existing card, including hover. */
body.na-results-shell .production-card-routes { transition: background-color .22s ease; }
body.na-results-shell .result-item > a.result-text-link:hover ~ .production-card-routes,
body.na-results-shell .result-item > a.result-text-link:focus-visible ~ .production-card-routes {
  background-color: var(--result-hover-bg, var(--color-8));
}
/* Popup controls: the four existing radius colours, in the same order. */
body.na-results-shell .production-map-popup .leaflet-popup-content-wrapper { box-sizing: border-box; }
body.na-results-shell .production-map-popup .leaflet-popup-tip { box-shadow: none; }
body.na-results-shell .production-popup-actions {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px;
}
body.na-results-shell .production-person-popup .production-popup-actions > .production-popup-action {
  display: flex; align-items: center; justify-content: center; gap: .25em;
  width: 100%; min-width: 0; min-height: 2.64rem; box-sizing: border-box;
  margin: 0; padding: .4rem .35rem; border: 0; border-radius: 0;
  text-decoration: none; white-space: nowrap; color: #111;
  font: inherit; letter-spacing: inherit; cursor: pointer; box-shadow: none;
}
body.na-results-shell .production-popup-actions > .production-popup-profile { background: #9aaa7a; }
body.na-results-shell .production-popup-actions > .production-popup-google { background: #90a0af; }
body.na-results-shell .production-popup-actions > .production-popup-sbb { background: #c7b76a; }
body.na-results-shell .production-person-popup .production-popup-actions > .production-popup-pin { background: #c9a0c3; color: #111; }
body.na-results-shell .production-person-popup .production-popup-actions > .production-popup-action:hover,
body.na-results-shell .production-person-popup .production-popup-actions > .production-popup-action:focus-visible { background: #111; color: #f4f4f4; }
body.na-results-shell .production-person-popup .production-popup-actions > .production-popup-pin[aria-pressed="true"] { box-shadow: inset 0 -3px #111; }
/* Original external arrow; no inherited icon or duplicate glyph. */
body.na-results-shell .production-person-popup .production-popup-actions > a.production-route-link::before,
body.na-results-shell .production-person-popup .production-popup-actions > a.production-route-link::after {
  content: none;
  display: none;
}
body.na-results-shell .production-popup-actions .production-popup-arrow {
  display: block; flex: 0 0 auto;
  width: .648em; height: .648em; width: .9cap; height: .9cap;
  margin: 0; padding: 0; object-fit: contain;
  transform: rotate(90deg);
}
body.na-results-shell .production-popup-actions > a:hover .production-popup-arrow,
body.na-results-shell .production-popup-actions > a:focus-visible .production-popup-arrow { filter: invert(1); }
body.na-results-shell .production-person-popup > strong { font-size: 1.12em; line-height: 1.25; }
@media (max-width: 420px) {
  body.na-results-shell .production-map-popup .leaflet-popup-content { margin: .9rem 1.35rem .9rem .9rem; }
}
body.na-results-shell .production-location-expanded
.production-location-search > .production-location-submit svg {
  width: 1.855rem;
  height: 1.855rem;
}

body.na-results-shell .production-location-expanded
.production-location-search > .production-location-clear::before,
body.na-results-shell .production-location-expanded
.production-location-search > .production-location-clear::after {
  width: 1.365rem;
  height: 1.05px;
}
body.na-results-shell #map .production-map-popup .leaflet-popup-content-wrapper,
body.na-results-shell #map .production-map-popup .leaflet-popup-tip {
  background: rgba(249, 249, 249, .9);
}