/* Standardwerte – werden vom Shortcode mit den Einstellungen überschrieben */
:root {
    --vca-headline-font-size: 24px;
    --vca-text-font-size: 16px;
    --vca-label-font-size: 14px;
    --vca-line-height: 1.5;
    --vca-color: #000;
}

.vca-directory .vca-item .title {
    font-size: var(--vca-headline-font-size, 24px);
    color: var(--vca-color, #000);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Roboto Condensed', sans-serif;
}
.vca-directory .vca-item .details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    padding-top: 20px;
}
.vca-directory .vca-item .details p {
    font-size: var(--vca-text-font-size, 16px);
    line-height: var(--vca-line-height, 1.5);
}
.vca-directory .vca-item .details label {
    font-size: var(--vca-label-font-size, 14px);
}
.vca-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    margin-right: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
.vca-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* macht das SVG weiß */
}
.vca-icon.vca-apotheke {
    background-color: #639f38; /* VCA Grün für zertifizierte Apotheken */
    padding: 3px;
}
.vca-icon.apotheke {
    background-color: #8BC34A; /* Helles Grün für normale Apotheken */
}
.vca-icon.foerdermitglied {
    background-color: #FF9800; /* Orange für Fördermitglieder */
}
#directory-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}
.vca-item {
    border-bottom: 1px solid #ddd;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 32px;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}
.vca-item:hover {
    background-color: rgba(99, 159, 56, 0.05); /* Sehr helles Grün mit Transparenz */
    transform: translateX(2px);
}
.vca-item .title {
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 32px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: var(--vca-headline-font-size, 24px);
    color: var(--vca-color, #000);
}
.vca-item .details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    padding: 0 0 15px 38px; /* 38px = Icon-Breite (28px) + margin-right (10px) */
}
.vca-item.active .details {
    max-height: 1000px;
    opacity: 1;
}
.toggle-indicator {
    margin-left: auto;
    font-size: 16px;
    color: #888;
}
#map {
    height: 500px;
    display: none; /* zunächst verborgen */
    margin-bottom: 20px;
}
.map-toggle-button {
    background-color: #486617;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}
.vca-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}
.legend-item {
    display: flex;
    align-items: center;
}

/* Karten-Popup kompakter darstellen.
   Leaflet setzt sonst margin:18px auf <p> – daher die großen Zeilenabstände. */
.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.4;
    font-size: 14px;
}
.leaflet-popup-content p {
    margin: 0 0 6px;
}
.leaflet-popup-content p:last-child {
    margin-bottom: 0;
}
.leaflet-popup-content b {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.3;
}
.leaflet-popup-content a {
    word-break: break-word; /* lange URLs sauber umbrechen */
}

/* Styles für die Importer-Tabelle */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
}
.wp-list-table th, .wp-list-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.wp-list-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}
.wp-list-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.wp-list-table tbody tr:hover {
    background-color: #f1f1f1;
}
