/* ══════════════════════════════════════════════════════════
   BERENTZEN STANDORTKARTE — Länder-Tabs + Karte (50%) + Info-Panel (50%)
   Klick auf einen Pin wechselt den Inhalt im Info-Panel, statt ein
   Popup zu oeffnen. Unter 1024px stapeln sich beide Spalten
   (Karte oben, Info-Panel darunter).
══════════════════════════════════════════════════════════ */

/* ── Länder-Tabs ── */
.loc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.loc-tab {
  background: #FBFAF7 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 14px; font-weight: 600;
  color: #4E5859 !important;
  cursor: pointer;
}
.loc-tab.is-active { color: #C25E26 !important; }
.loc-tab:focus-visible { outline: 3px solid var(--cyan, #37BFF0); outline-offset: 2px; }

.loc-country-panel { display: none; }
.loc-country-panel.is-active { display: block; }

.loc-country-empty {
  padding: 32px; text-align: center;
  color: rgba(78,88,89,0.45); font-size: 14px;
  background: var(--bg, #f5f4f1); border-radius: 14px;
}

.loc-map-layout {
  display: flex;
  align-items: flex-start; /* Hoehen-Abgleich passiert per JS (praeziser als CSS-stretch) */
  gap: 32px;
}
.loc-map-col  { flex: 0 0 50%; max-width: 50%; }
.loc-info-col { flex: 1 1 50%; max-width: 50%; min-width: 0; }

@media (max-width: 1024px) {
  .loc-map-layout { flex-direction: column; }
  .loc-map-col, .loc-info-col { flex: 1 1 100%; max-width: 100%; }
}

/* ── Karte ── */
.loc-map {
  position: relative;
  width: 100%;
  background: transparent; /* entfernt, damit eine transparente PNG-Karte korrekt durchscheint */
  line-height: 0; /* verhindert Weissraum unter dem Bild */
  margin-top: 28px; /* Luft nach oben, damit ein sehr hoch sitzender Pin nicht an der Tab-Leiste anstoesst */
}
/* Rundung liegt jetzt am Bild selbst (nicht mehr am Container), da der
   Container kein "overflow: hidden" mehr hat -> Pins nahe am Bildrand
   werden dadurch nicht mehr abgeschnitten. */
.loc-map-bg { display: block; width: 100%; height: auto; border-radius: 14px; }

.loc-map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: none !important; /* Sicherheitsnetz gegen Theme-/Kit-Standardstile fuer Buttons */
  border: none !important;
  box-shadow: none !important;
  outline: none;
  padding: 0 !important; margin: 0;
  cursor: pointer;
  color: var(--copper, #C25E26); /* nur relevant, falls das Font-Icon als Fallback greift */
  font-size: 30px; line-height: 1;
  display: block;
  transition: transform 0.2s ease;
}
.loc-map-pin:hover,
.loc-map-pin:focus,
.loc-map-pin:active,
.loc-map-pin.is-active {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: translate(-50%, -100%) scale(1.15);
}
.loc-map-pin:focus-visible {
  outline: 3px solid var(--cyan, #37BFF0);
  outline-offset: 3px;
  border-radius: 6px;
}

.loc-map-pin-icon {
  display: block;
  width: 32px; /* Standardwert, per Elementor-Feld "Icon-Größe" ueberschreibbar */
  height: auto;
  background: none !important; /* Sicherheitsnetz, falls die Box hier statt am Button haengt */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
/* Fallback-Icon (Tabler-Font), falls kein eigenes Icon gesetzt ist */
.loc-map-pin i {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

/* ── Info-Panel (rechts / unten) ── */
.loc-info-panel {
  position: relative;
  height: 580px; /* Fallback, bevor JS die tatsaechliche Kartenhoehe misst (= Mindesthoehe) */
  overflow-y: auto; /* laengerer Text scrollt intern, statt die Box zu vergroessern */
  background: var(--white, #fff);
  border-radius: 14px;
  border: 0.5px solid rgba(78,88,89,0.1);
  box-shadow: 0 2px 12px rgba(78,88,89,0.06); /* bekannte Schattierung */
}

.loc-info-empty,
.loc-info-item {
  display: none;
}
.loc-info-empty.is-active,
.loc-info-item.is-active {
  display: block;
}

.loc-info-empty {
  padding: 40px 28px;
  text-align: center;
  color: rgba(78,88,89,0.45);
}
.loc-info-empty i { font-size: 32px; display: block; margin: 0 auto 12px; }
.loc-info-empty p { font-size: 14px; margin: 0; line-height: 1.6; }

.loc-info-img {
  width: 100% !important;
  height: 300px !important; /* fester Standardwert, orientiert an der Haselünne-Kachel */
  object-fit: cover !important;
  display: block;
}

.loc-info-body { padding: 20px 24px 24px; }
.loc-info-body h3 { font-size: 20px; font-weight: 700; color: var(--dark, #4E5859); margin: 0 0 8px; }
.loc-info-body p  { font-size: 14px; color: rgba(78,88,89,0.75); line-height: 1.6; margin: 0; overflow-wrap: break-word; word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  .loc-map-pin { transition: none !important; }
}