/* components/map.css - Karten-spezifische Styles */
#map-container {
    flex-grow: 1;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

/* Polygon Label Styles */
.polygon-label {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #0066cc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #0066cc;
    text-align: center;
    white-space: nowrap;
}

.polygon-label-small {
    font-size: 10px;
}

/* Sicherstellen, dass Labels über anderen Kartenelementen liegen */
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

/* Wanderweg als eigene, wieder ausblendbare Kartenebene. */
.trail-status[hidden] { display: none !important; }
.trail-status { flex-shrink: 0; padding: 12px; margin: 0 0 12px; border: 1px solid #d7dfd2; border-left: 4px solid #df571d; border-radius: 8px; background: #f7f9f3; font-size: .85rem; line-height: 1.45; }
.trail-status-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trail-status-heading strong { color: #294830; }
#trail-hide { border: 1px solid #b9c7b3; padding: 4px 7px; border-radius: 4px; background: white; cursor: pointer; }
.trail-status p { margin: 6px 0; }
.trail-status-links { display: flex; gap: 12px; flex-wrap: wrap; }
.trail-status-links a, .trail-details a { color: #315b37; }
.trail-error { border-color: #b34430; }
.left-sidebar.trail-active .sidebar-content { overflow-y: auto; }
.trail-card-image { display: block; border: 0; padding: 0; width: 100%; height: 100%; background: transparent; cursor: pointer; }
.trail-card-image > img { height: 100% !important; }
.trail-card-title { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trail-card-title:hover { color: #315b37; text-decoration: underline; }
.location-card:has(.trail-card-action) .location-actions { flex-wrap: wrap; }
.trail-card-action, .trail-reveal-main { padding: 10px 14px; border: 0; border-radius: 5px; background: #294830; color: #fff; cursor: pointer; }
.trail-card-action { flex-basis: 100%; }
.trail-details { padding: 14px; border: 1px solid #dce3d8; border-radius: 9px; margin: 14px 0; background: #fafbf7; }
.trail-details h3 { margin-bottom: 8px; }
.trail-details-map { height: 280px; width: 100%; margin: 12px 0; border-radius: 7px; background: #eee; }
.trail-map-note, .trail-map-source { font-size: .82rem; color: #586553; line-height: 1.5; margin: 8px 0; }
.trail-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.trail-details .leaflet-control-attribution { font-size: 9px; }
@media (max-width: 600px) { .trail-details-map { height: 240px; } .trail-details { padding: 10px; } }

/* Gemeinde-Locations und persönlich ausgewählte Wegpunkte sind getrennte Ebenen. */
.location-map-status { flex-shrink: 0; font-size: .8rem; color: #52604d; line-height: 1.4; margin: -5px 0 10px; }
.location-map-status[hidden] { display: none !important; }
.location-map-dot, .basket-map-dot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; background: #315d39; box-shadow: 0 1px 5px #0008; color: white; font-size: 13px; font-weight: bold; }
.basket-map-dot { width: 32px; height: 32px; background: #0066cc; }
.location-map-popup section { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.location-map-popup section:last-child { margin-bottom: 0; }
.location-map-popup button { padding: 6px 10px; background: #294830; color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
