/* Service Area Preview Map — lightweight homepage widget */

.da-service-area-preview-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

#da-service-area-preview {
    height: 350px;
    width: 100%;
}

/* Legend — floating bottom-left */
.da-preview-legend {
    position: absolute;
    bottom: 40px;
    left: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.8;
    display: none;
}

.da-preview-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.da-preview-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.da-preview-legend-swatch.primary {
    background: rgba(45, 90, 39, 0.35);
    border: 2px solid #2d5a27;
}

.da-preview-legend-swatch.extended {
    background: rgba(193, 121, 0, 0.25);
    border: 2px solid #bf6c00;
}

/* CTA overlay at bottom */
.da-preview-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    padding: 24px 16px 12px;
    text-align: center;
}

.da-preview-cta a {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.da-preview-cta a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    #da-service-area-preview {
        height: 260px;
    }
}
