/* inSpace Service Area Map — Frontend Styles */

.isam-wrap {
    position: relative;
    font-family: inherit;
    margin: 0 0 16px;
}

/* Legend */
.isam-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.isam-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 10px 4px 6px;
    border-radius: 20px;
    transition: background 0.15s, transform 0.1s;
    border: 1px solid transparent;
}

.isam-legend-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    transform: translateY(-1px);
    color: #111827;
    text-decoration: none;
}

.isam-legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.isam-legend-name {
    white-space: nowrap;
}

/* Hover tooltip */
.isam-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    max-width: 220px;
}

.isam-tooltip strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.isam-tooltip small {
    opacity: 0.75;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .isam-legend {
        gap: 6px 10px;
        padding: 10px 12px;
    }
    .isam-legend-item {
        font-size: 13px;
    }
}
