/* =============================================================
   MEC OSM Wanderkarte – Frontend-Styles
   ============================================================= */

/* Wrapper */
.mow-map-wrapper {
    position: relative;
    width: 100%;
    margin: 1.5rem 0;
}

/* Karten-Canvas */
.mow-map-canvas {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    background: #f0ede8;
}

/* Lade-Hinweis */
.mow-map-loading {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    margin: 0;
}

/* =============================================================
   Marker-Pin
   ============================================================= */
.mow-marker {
    background: transparent !important;
    border: none !important;
}

.mow-marker-pin {
    width: 30px;
    height: 42px;
    position: relative;
}

.mow-marker-pin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #e84c3d;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
}

.mow-marker-pin:hover::before,
.mow-marker:focus .mow-marker-pin::before {
    background: #c0392b;
}

.mow-marker-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
}

/* =============================================================
   Marker-Cluster
   ============================================================= */
.mow-cluster {
    background: transparent !important;
    border: none !important;
}

.mow-cluster-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e84c3d;
    border: 3px solid rgba(232, 76, 61, 0.3);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}

.mow-cluster:hover .mow-cluster-inner {
    transform: scale(1.1);
    background: #c0392b;
}

.mow-cluster-medium .mow-cluster-inner {
    width: 48px;
    height: 48px;
    font-size: 14px;
    background: #d44;
}

.mow-cluster-large .mow-cluster-inner {
    width: 56px;
    height: 56px;
    font-size: 15px;
    background: #b33;
}

/* =============================================================
   Popup
   ============================================================= */
.mow-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    padding: 0;
    overflow: hidden;
}

.mow-popup .leaflet-popup-content {
    margin: 0;
    width: auto !important;
    min-width: 200px;
}

.mow-popup-content {
    padding: 14px 16px 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mow-popup-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a1a;
    line-height: 1.3;
}

.mow-popup-date {
    font-size: 0.8rem;
    color: #e84c3d;
    margin: 0 0 4px;
    font-weight: 600;
}

.mow-popup-address {
    font-size: 0.8rem;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.4;
}

.mow-popup-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #e84c3d;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease;
    margin-top: 2px;
}

.mow-popup-btn:hover,
.mow-popup-btn:focus {
    background: #c0392b;
    color: #fff !important;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 600px) {
    .mow-map-canvas {
        border-radius: 4px;
    }
    .mow-popup-content {
        padding: 10px 12px 10px;
    }
}
