/* ==========================================================================
   HaNeu Mapbox Plugin
   Add this file to your theme's style.css or enqueue it separately.
   ========================================================================== */

/* Map container -----------------------------------------------------------*/
.haneu-mapbox-wrap {
    /* wrapper for map + location list */
}

.haneu-mapbox-map {
    width: 100%;
    /* height is set via shortcode attribute (default 500px) */
}

/* Marker label (visible on hover via JS) ----------------------------------*/
.haneu-marker-label {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    background: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    display: none;
    pointer-events: none;
    z-index: 1;
}

.haneu-marker--active .haneu-marker-label {
    display: block;
}

.haneu-marker--active svg path {
    fill: #e74c3c;
}

/* Location list -----------------------------------------------------------*/
.haneu-mapbox-orte-nav {
    margin-top: 0.5rem;
}

.haneu-mapbox-orte-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.haneu-mapbox-orte-list a {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    color: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.haneu-mapbox-orte-list a:hover,
.haneu-mapbox-orte-list a.is-active {
    background: #f0f4ff;
    border-color: #3388ff;
}

/* Visible focus ring for keyboard navigation (BITV/WCAG 2.4.7) */
.haneu-mapbox-orte-list a:focus-visible {
    outline: 2px solid #3388ff;
    outline-offset: 2px;
}
