/**
 * أزرار اختيار موحّدة: سكني/تجاري + مفروشة/غير مفروشة
 * (تتجاوز width:100% من .form-group input و .pap-field input)
 */
.iqfal-segment-pick,
.iqfal-apt-furnish-pick {
    width: 100%;
}

.iqfal-segment-pick__hint {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.iqfal-segment-pick__row,
.iqfal-apt-furnish-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.iqfal-choice-chip,
.iqfal-segment-option,
.iqfal-apt-furn-option {
    position: relative;
    flex: 1 1 0;
    min-width: 88px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    margin: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25;
    color: #334155;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    user-select: none;
    box-sizing: border-box;
}

.iqfal-apt-furnish-pick .iqfal-apt-furn-option {
    flex: 0 1 auto;
    min-width: 96px;
    min-height: 36px;
    padding: 7px 14px;
    font-size: 0.84rem;
    font-weight: 600;
}

.iqfal-choice-chip__input,
.iqfal-segment-option input,
.iqfal-apt-furn-option input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    appearance: none !important;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    pointer-events: none;
}

.iqfal-choice-chip__label,
.iqfal-segment-option > span,
.iqfal-apt-furn-option > span {
    display: block;
    text-align: center;
    pointer-events: none;
}

.iqfal-choice-chip:has(input:checked),
.iqfal-segment-option:has(input:checked),
.iqfal-apt-furn-option:has(input:checked) {
    border-color: var(--secondary-color, #c5a059);
    background: #fffbeb;
    color: #1a2744;
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.28);
}

.iqfal-choice-chip:focus-within,
.iqfal-segment-option:focus-within,
.iqfal-apt-furn-option:focus-within {
    outline: 2px solid rgba(197, 160, 89, 0.45);
    outline-offset: 2px;
}

.iqfal-property-segment-wrap {
    margin-bottom: 4px;
}

.iqfal-apt-furnish-wrap {
    margin-top: 2px;
    margin-bottom: 6px;
}

@media (max-width: 520px) {
    .iqfal-segment-pick__row,
    .iqfal-apt-furnish-pick {
        gap: 6px;
    }

    .iqfal-segment-option {
        flex: 1 1 calc(50% - 3px);
        min-height: 38px;
        font-size: 0.82rem;
    }

    .iqfal-apt-furn-option {
        flex: 1 1 calc(50% - 3px);
        min-height: 34px;
    }
}
