/* JDI Remmicom — Frontend Map Styles */

.jdi-remmicom-map-wrap {
    position: relative;
    width: 100%;
    /* Aspect ratio ~2.5:1 for Flanders shape. JS will also call invalidateSize. */
    aspect-ratio: 2.5 / 1;
    background: transparent;
    /* overflow stays visible so the tooltip (anchored to the map) is not clipped
       when it extends beyond the map bounds; the map element below clips Leaflet. */
    overflow: visible;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0;
    padding: 0;
}

.jdi-remmicom-map {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Kill every Leaflet-generated border, outline, shadow */
.jdi-remmicom-map *,
.jdi-remmicom-map-wrap .leaflet-container,
.jdi-remmicom-map-wrap .leaflet-pane,
.jdi-remmicom-map-wrap .leaflet-map-pane,
.jdi-remmicom-map-wrap .leaflet-overlay-pane {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* But keep SVG path strokes (the municipality borders) */
.jdi-remmicom-map svg path {
    outline: none !important;
    box-shadow: none !important;
}

.jdi-remmicom-map-wrap .leaflet-control-zoom {
    display: none !important;
}

.jdi-remmicom-map-wrap .leaflet-control-attribution {
    display: none !important;
}

.jdi-remmicom-map-wrap .leaflet-tile-pane {
    display: none !important;
}

/* Loading */
.jdi-remmicom-loading {
    position: absolute;
    inset: 0;
    z-index: 900;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.jdi-remmicom-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: #4CAF2B;
    border-radius: 50%;
    animation: jdi-remmicom-spin 0.7s linear infinite;
}

@keyframes jdi-remmicom-spin {
    to { transform: rotate(360deg); }
}

.jdi-remmicom-loading-text {
    font-family: 'Lemon Milk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #707070;
    letter-spacing: 0.5px;
}

/* Tooltip — anchored to the map (absolute within .jdi-remmicom-map-wrap), so it
   stays glued to the clicked gemeente and scrolls together with the map. */
.jdi-remmicom-tt {
    position: absolute;
    z-index: 2000;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.jdi-remmicom-tt.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.jdi-remmicom-tt-box {
    width: 256px;
    background: #fff;
    border: 1.5px solid #E5DDD2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
    position: relative;
}

.jdi-remmicom-tt-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #999;
    font-size: 18px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.jdi-remmicom-tt-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.jdi-remmicom-tt-head {
    padding: 14px 16px 11px;
    border-bottom: 1.5px solid #E5DDD2;
}

.jdi-remmicom-tt-gemeente {
    font-family: 'Lemon Milk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    color: #1A1A1A;
    padding-right: 24px;
}

.jdi-remmicom-tt-subtype {
    font-family: 'Lemon Milk', sans-serif;
    font-size: 11px;
    color: #707070;
    margin-top: 3px;
    font-weight: 500;
}

.jdi-remmicom-tt-body {
    padding: 11px 16px;
}

.jdi-remmicom-tt-slabel {
    font-family: 'Lemon Milk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #707070;
    margin-bottom: 7px;
}

.jdi-remmicom-tt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.jdi-remmicom-tt-tag {
    padding: 3px 9px;
    border-radius: 12px;
    font-family: 'Lemon Milk', sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.jdi-remmicom-tt-foot {
    padding: 9px 16px 12px;
    border-top: 1.5px solid #E5DDD2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jdi-remmicom-tt-since {
    font-family: 'Lemon Milk', sans-serif;
    font-size: 11px;
    color: #707070;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jdi-remmicom-tt-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Notice for duplicate shortcode */
.jdi-remmicom-notice {
    padding: 12px;
    color: #666;
    font-size: 13px;
}
