/* ── Widget container ───────────────────────────────────── */
.ddbw-widget {
    margin: 0 0 1.5em;
    font-family: inherit;
    font-size: 0.9em;
    color: inherit;
    border: 1px solid #ddd;
    border-top: 3px solid #2c5f2d;
    background: #fff;
}

/* ── Header ─────────────────────────────────────────────── */
.ddbw-widget-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #eee;
}

.ddbw-tappa-num {
    margin: 0 0 2px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2c5f2d;
}

.ddbw-percorso-nome {
    margin: 0;
    font-size: 0.95em;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

/* ── Map ────────────────────────────────────────────────── */
.ddbw-map {
    width: 100%;
    height: 210px;
    display: block;
    background: #e8ede8;
}

.ddbw-map .leaflet-pane,
.ddbw-map .leaflet-top,
.ddbw-map .leaflet-bottom {
    z-index: 1;
}

/* ── No-coords placeholder ──────────────────────────────── */
.ddbw-no-coords {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.84em;
    color: #888;
    border-bottom: 1px solid #eee;
}

/* ── Stage list ─────────────────────────────────────────── */
.ddbw-stages {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ddbw-stage {
    padding: 10px 14px 10px 11px;
    border-top: 1px solid #eee;
    border-left: 3px solid transparent;
}

.ddbw-stage-prev {
    border-left-color: #e74c3c;
}

.ddbw-stage-next {
    border-left-color: #2980b9;
}

.ddbw-stage-label {
    display: block;
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    margin-bottom: 4px;
}

.ddbw-stage-link {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 3px;
}

.ddbw-stage-link-prev {
    color: #e74c3c;
}

.ddbw-stage-link-next {
    color: #2980b9;
}

.ddbw-stage-link:hover,
.ddbw-stage-link:focus {
    text-decoration: underline;
}

.ddbw-stage-link-prev:hover { color: #c0392b; }
.ddbw-stage-link-next:hover { color: #1a5f8a; }

.ddbw-arrow {
    flex-shrink: 0;
}

.ddbw-stage-meta {
    display: block;
    font-size: 0.76em;
    color: #999;
    padding-left: 14px;
}

/* ── Route description ──────────────────────────────────── */
.ddbw-route-desc {
    padding: 11px 14px;
    border-top: 1px solid #eee;
}

.ddbw-route-desc p {
    margin: 0 0 8px;
    font-size: 0.82em;
    color: #666;
    line-height: 1.55;
}

.ddbw-route-desc p:last-child {
    margin-bottom: 0;
}

.ddbw-route-facts {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    line-height: 1.7;
}

/* ── CTA ────────────────────────────────────────────────── */
.ddbw-route-cta {
    padding: 10px 14px 12px;
    border-top: 1px solid #eee;
}

.ddbw-route-btn {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #2c5f2d;
    color: #2c5f2d !important;
    font-size: 0.80em;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}

.ddbw-route-btn:hover,
.ddbw-route-btn:focus {
    background: #2c5f2d;
    color: #fff !important;
}

/* ── Leaflet markers ────────────────────────────────────── */
.ddbw-marker {
    background: transparent !important;
    border: none !important;
}

.ddbw-marker-current span,
.ddbw-marker-prev span,
.ddbw-marker-next span {
    display: block;
    line-height: 1;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.ddbw-marker-current span {
    color: #27ae60;
    font-size: 28px;
}

.ddbw-marker-prev span {
    color: #e74c3c;
    font-size: 18px;
}

.ddbw-marker-next span {
    color: #2980b9;
    font-size: 18px;
}
