.leaflet-popup-content-wrapper { background: #1e293b; color: #f8fafc; border: 1px solid rgba(56, 189, 248, 0.3); }
.leaflet-popup-tip { background: #1e293b; }

#services-map {
    position: relative;
}

.services-map-empty-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    box-sizing: border-box;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.services-map-empty-overlay p {
    margin: 0 0 10px;
    max-width: 36rem;
}

.services-map-empty-overlay strong {
    color: #f8fafc;
}

.services-map-empty-sub {
    font-size: 0.82rem;
    color: #94a3b8;
}

.services-map-empty-sub code {
    font-size: 0.78rem;
    color: #cbd5e1;
}

#filter-status {
    padding: 12px;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Service Card & Distance Badge Fix */
.service-item[data-distance] {
    padding-right: 90px !important;
    position: relative;
}

.service-item[data-distance]::after {
    content: attr(data-distance) " mi away";
    position: absolute;
    top: 18px;
    right: 16px;
    background-color: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.25);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Extra safety for very long titles on tiny phones */
@media (max-width: 480px) {
    .service-item[data-distance] {
        padding-top: 42px !important;
        padding-right: 20px !important;
    }
    .service-item[data-distance]::after {
        top: 14px;
        left: 20px;
        right: auto;
    }
}