/* ===================================================================
 * Archive Page Styles (Service Cards & Filters)
 * =================================================================== */

/* Status badge shown on service cards in the archive/search results */
.service-card-status {
    margin-bottom: 8px;
}
.fixydo-business-status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    color: #fff;
    line-height: 1.5;
}
.fixydo-business-status-badge.status-open {
    background-color: #28a745;
}
.fixydo-business-status-badge.status-closed {
    background-color: #6c757d;
}
.fixydo-business-status-badge.status-emergency {
    background-color: #dc3545; /* Red for high visibility */
}
.fixydo-business-status-badge.status-emergency i {
    vertical-align: -2px;
    font-size: 1.1em;
}

/* Styles for the new Emergency filter in the desktop sidebar */
.fxy-sidebar-filter-group {
    margin-top: 32px;
}
.fxy-filter-option {
    display: flex;
    align-items: center;
}
.fxy-filter-option input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.1);
}
.fxy-filter-option label {
    font-weight: 500;
    color: var(--fxy-text-primary, #172b4d);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fxy-filter-option label i {
    font-size: 1.1em;
}

/* Icon for the emergency filter */
.fxy-icon-emergency {
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
}

/* Styles for the new segmented button controls */
.fxy-segmented-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--fxy-border-color, #dfe1e6);
    border-radius: 6px;
    padding: 2px;
    background: var(--fxy-background-white, #ffffff);
}
.fxy-segment-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--fxy-text-secondary, #505f79);
    border-radius: 4px;
    line-height: 1;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.fxy-segment-btn.is-active {
    background-color: var(--fxy-brand-primary, #0052cc);
    color: var(--fxy-background-white, #ffffff);
}
.fxy-control-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--fxy-border-color, #dfe1e6);
    border-radius: 6px;
    background: var(--fxy-background-white, #ffffff);
    height: 44px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fxy-control-box:focus-within {
    border-color: var(--fxy-brand-primary, #0052cc);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}
.fxy-segmented-control.fxy-control-box {
    padding: 2px;
}