:root{
  --cm-accent:#1296ff;
  --cm-text:rgba(255,255,255,0.92);
  --cm-muted:rgba(255,255,255,0.70);
  --cm-border:rgba(18,150,255,0.18);
}

/* Wrapper */
.company-map-wrapper{
  max-width:1440px;
  margin:0 auto;
  color:var(--cm-text);
  border-radius:2px;
  padding:10px;
  position:relative;
}
	
/* Focus-Ring auf SVG-Markern entfernen */
#company-map svg .cm-marker:focus,
#company-map svg .cm-marker:focus-visible{
  outline: none;
}

/* Layout */
.company-map-layout{
  display:flex;
  gap:10px;
  align-items:flex-start;
  position:relative; /* für das city label */
}

.company-map-col-map{ flex: 0 0 60%; max-width:60%; min-width:0; }
.company-map-col-list{ flex: 0 0 40%; max-width:40%; min-width:0; }

.company-map-layout.is-map-right .company-map-col-map{ order:2; }
.company-map-layout.is-map-right .company-map-col-list{ order:1; }

/* Karte */
.company-map-stage{
  position:relative;
  border-radius:2px;
  overflow:hidden;
}

#company-map{
  position:relative;  /* Referenz für absolut positionierte Dinge (falls nötig) */
  width:100%;
  line-height:0;
}

#company-map svg{
  width:100%;
  height:auto;
  display:block;
  max-height:650px; /* Desktop-Deckel */
}

/* SVG Marker */
#company-map svg .cm-marker{
  fill:#fff;
  cursor:pointer;
  paint-order:stroke;
  stroke:rgba(255,255,255,0.20);
  stroke-width:6;
  transform-box: fill-box;      /* wichtig für SVG transform-origin */
  transform-origin: center;
}

#company-map svg .cm-marker.is-active{
  stroke:rgba(18,150,255,0.40);
  stroke-width:10;
  filter: drop-shadow(0 0 10px rgba(18,150,255,0.55));
  animation: cmPulseSvg 1.2s infinite;
}

@keyframes cmPulseSvg{
  0%   { transform: scale(1); }
  50%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* City label */
.company-map-selected-city{
  display:none;
  color: var(--cm-accent);
  font-weight:600;
  font-size:14px;
  letter-spacing:0.2px;
  border:1px solid rgba(18,150,255,0.25);
  background: rgba(0,10,27,0.75);
  border-radius:2px;
  padding:6px 8px;
  line-height:1.2;
  position:absolute;
  top:10px;
  z-index:5;
}

.company-map-layout:not(.is-map-right) .company-map-selected-city{ left:10px; }
.company-map-layout.is-map-right .company-map-selected-city{ right:10px; }

/* Links (nur Widget) */
.company-map-wrapper a{
  color:var(--cm-accent);
  text-decoration:none;
}
.company-map-wrapper a:hover{ text-decoration:underline; }

/* Liste */
.company-map-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
}

.company-map-item{
  border:1px solid var(--cm-border);
  border-radius:2px;
  background:rgba(255,255,255,0.03);
  overflow:hidden;
  width:100%;
}

.company-map-item-header{
  -webkit-appearance:none;
  appearance:none;
  background:transparent !important;
  color:inherit !important;
  border:0 !important;
  box-shadow:none !important;
  margin:0;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 10px;
  cursor:pointer;
  font:inherit;
  line-height:inherit;
  text-align:left;
}

.company-map-item-title{
  font-size:14px;
  font-weight:600;
  color:var(--cm-text);
  padding-right:10px;
}

.company-map-item-toggle{
  color:var(--cm-accent) !important;
  font-size:18px;
  line-height:1;
  margin-right:4px;
  flex:0 0 auto;
  transition:transform .2s ease;
}

.company-map-item-body{
  padding:0 10px 10px 10px;
  color:var(--cm-muted);
  font-size:13px;
  line-height:1.45;
}

.company-map-actions{
  margin-top:8px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.company-map-item.is-active{
  border-color: rgba(18,150,255,0.55);
  background:rgba(18,150,255,0.06);
  box-shadow: 0 0 0 2px rgba(18,150,255,0.14);
}
.company-map-item.is-active .company-map-item-toggle{ transform:rotate(45deg); }

.company-map-item-header:focus,
.company-map-item-header:focus-visible{
  outline:2px solid rgba(18,150,255,0.55);
  outline-offset:2px;
}

/* Mobile */
@media (max-width: 900px){
  .company-map-wrapper{ padding:8px; }

  .company-map-layout{
    flex-direction:column;
    gap:10px;
  }

  .company-map-col-map,
  .company-map-col-list{
    flex:0 0 100%;
    max-width:100%;
    width:100%;
  }

  #company-map svg{
    max-height:60vh; /* Mobile-Deckel */
  }

  .company-map-item-header{ padding:12px 10px; }
  .company-map-item-title{ font-size:15px; }
}

#cm-admin-map-inner svg { overflow: visible; }

#company-map svg .cm-marker{
  stroke-width: 8;
}

#company-map svg .cm-marker.is-active{
  stroke-width: 14;
  transform: scale(1.3);
}
