/* Wrapper optional */
.boxemap-wrapper{
  width: 100%;
}

.boxemap-map-wrap{
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* Leaflet Map DIV füllt den Wrapper komplett */
#boxemap-map{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Radius/Clipping sicherstellen */
#boxemap-map.leaflet-container{
  border-radius: 18px;
  overflow: hidden;
}

.boxemap-map{
  width: 100%;
  aspect-ratio: 18 / 9;
  overflow: hidden;       /* WICHTIG */
  border-radius: 18px;
  position: relative;     /* sicherheitshalber */
}

/* Leaflet setzt eigene Wrapper – die müssen mit geclippt werden */
.boxemap-map .leaflet-container{
  border-radius: inherit;
}

/* die sicherste Variante: Leaflet-Root selbst clippen */
.boxemap-map.leaflet-container{
  border-radius: 18px;
  overflow: hidden;
}
/* Leaflet Standard */
.leaflet-container {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Popup */
.boxemap-popup-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.boxemap-popup-address {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.boxemap-popup-button {
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    background: #111;
    color: #fff;
    cursor: pointer;
}

/* ---- Rote runde Marker auf der Karte ---- */

.boxemap-marker-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.boxemap-marker {
    width: 32px !important;
    height: 32px !important;
    background: #d60000 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 6px rgba(0,0,0,0.35) !important;
    user-select: none !important;
}

.boxemap-marker span {
    line-height: 1;
    padding-top: 1px;
}

/* ---- Liste der POIs unterhalb der Karte ---- */

#boxemap-poi-list {
    padding: 20px 16px 40px;
    background: #ffffff;
}

/* Falls ein H2 verwendet wird */
#boxemap-poi-list h2,
.boxemap-poi-list-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

/* UL als flex-Liste, egal ob mit Klasse oder nicht */
#boxemap-poi-list ul,
.boxemap-poi-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LI als Karten-Element, egal ob mit Klasse oder nicht */
#boxemap-poi-list li,
.boxemap-poi-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

/* Hover-Effekt */
#boxemap-poi-list li:hover,
.boxemap-poi-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* Wenn unsere Badge-Klasse existiert – schön rund anzeigen */
.boxemap-poi-number-badge {
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d60000;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Textbereich in der Liste */
.boxemap-poi-text {
    flex: 1;
}

/* Fallback: wenn der Text im LI einfach nur normal drinsteht */
#boxemap-poi-list li {
    font-size: 0.95rem;
    color: #333;
}

/* Wenn du irgendwann .boxemap-poi-title / .boxemap-poi-address hast */
.boxemap-poi-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.boxemap-poi-address {
    font-size: 0.9rem;
    color: #555;
}