/**
 * الصفحة الرئيسية — تخطيط مكتبي، بدون بنفسجي، بدون hover، خطوط متنوعة
 */
body.fs-index-public.b-home-ev-theme {
    --idx-ink: #1c1917;
    --idx-muted: #78716c;
    --idx-border: #e7e5e4;
    --idx-surface: #fafaf9;
    --idx-accent: #b45309;
    --idx-teal: #0f766e;
    --idx-brand: #166534;
    --idx-brand-dark: #14532d;
    --idx-active: #166534;
    --idx-active-soft: #ecfdf5;
    --idx-active-border: #6ee7b7;
    --idx-head-icon: #78716c;
    --idx-ui-dark: #292524;

    --bm-accent: var(--idx-brand);
    --bm-accent-dark: var(--idx-brand-dark);
    --bm-accent-soft: #ecfdf5;
    --fs-brand: var(--idx-brand);

    font-family: var(--font-body);
    background: #fff !important;
    color: var(--idx-ink);
}

/* Typography — التفاصيل في farask-typography.css */
body.fs-index-public.b-home-ev-theme,
body.fs-index-public.b-home-ev-theme *:not(.anticon):not([class*="fa-"]):not([class*="fab"]) {
    font-family: inherit;
}

body.fs-index-public .bm-toolbar__title,
body.fs-index-public .idx-aside__label {
    font-family: var(--font-display);
}

/* إخفاء المكوّنات القديمة */
.hp-intro, .hp-trust, .hp-journey, .hp-spotlight, .hp-section, .hp-why, .hp-services, .hp-cta,
.fs-home-stats, .re-ad-hero, .re-ad-hero__mini { display: none !important; }

/* ─── تخطيط رئيسي + إعلان ─── */
.idx-page {
    padding-bottom: 3rem;
}

.idx-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 1100px) {
    .idx-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.idx-main {
    min-width: 0;
}

.idx-aside {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: calc(var(--fs-header-offset, 74px) + 1rem);
}

@media (max-width: 1100px) {
    .idx-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* مساحات إعلانية */
.idx-ad-slot {
    border: 1px dashed #d6d3d1;
    background: var(--idx-surface);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--idx-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.5;
}

.idx-ad-slot--tower {
    min-height: 420px;
}

.idx-ad-slot--leader {
    min-height: 90px;
    margin-bottom: 1.25rem;
}

.idx-ad-slot__tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.55rem;
    background: #fef3c7;
    color: #92400e;
    font-family: var(--font-numeric);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
}

.idx-ad-slot__size {
    font-family: var(--font-numeric);
    font-size: 0.72rem;
    color: #a8a29e;
    margin-top: 0.35rem;
}

/* عقار مميز / مدفوع */
.idx-featured {
    border: 1px solid var(--idx-border);
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
}

.idx-aside__label {
    margin: 0 0 0.75rem;
    padding: 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--idx-muted);
    letter-spacing: 0.03em;
}

.idx-featured__img-wrap {
    aspect-ratio: 4 / 3;
    background: #f5f5f4;
    overflow: hidden;
}

.idx-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.idx-featured__body {
    padding: 1rem 1.1rem 1.15rem;
}

.idx-featured__tag {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.15rem 0.5rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 2px;
}

.idx-featured__title {
    margin: 0 0 0.35rem;
    font-family: 'Readex Pro', var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--idx-ink);
    line-height: 1.45;
}

.idx-featured__loc {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: var(--idx-muted);
}

.idx-featured__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--idx-accent);
    margin-bottom: 0.85rem;
}

.idx-featured__link {
    display: block;
    width: 100%;
    padding: 0.65rem;
    text-align: center;
    background: var(--idx-brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
}

/* فلتر — بسيط وواسع */
.b-home-smart-filter.bm-toolbar {
    background: #fff;
    border: 1px solid var(--idx-border);
    border-radius: 2px;
    box-shadow: none;
    padding: 1.75rem 2rem;
    margin-bottom: 0;
}

.b-home-smart-filter .bm-toolbar__title {
    font-size: 1.15rem;
    color: var(--idx-ink);
}

.b-home-smart-filter .bm-toolbar__title i {
    color: var(--idx-accent) !important;
}

.b-home-smart-filter .bm-toolbar__meta {
    font-family: var(--font-body);
    color: var(--idx-muted);
}

.b-home-smart-filter .bm-search-btn {
    background: var(--idx-brand) !important;
    box-shadow: none !important;
    border-radius: 2px !important;
}

.b-home-smart-filter .bm-search-bar__field {
    border-radius: 2px;
}

.b-home-smart-filter .bm-filter-expand {
    border-radius: 2px;
}

.b-home-smart-filter .bm-pill.is-active {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
}

.b-home-smart-filter .bm-filter-expand__badge {
    background: var(--idx-accent) !important;
}

/* مدن — شريط بسيط بدون بطاقات */
.idx-city-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--idx-border);
}

.idx-city-bar__label {
    width: 100%;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--idx-muted);
    margin-bottom: 0.15rem;
}

.idx-city-link {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--idx-border);
    background: #fff;
    color: var(--idx-ink);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
}

.idx-city-link.is-active {
    background: var(--idx-brand);
    border-color: var(--idx-brand);
    color: #fff;
}

/* شريط النتائج */
.b-home-results.bm-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--idx-border);
    border-radius: 0;
    box-shadow: none;
}

.b-home-results .results-count {
    background: transparent;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--idx-ink);
}

.b-home-results .results-count strong {
    color: var(--idx-accent) !important;
}

.hp-results-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hp-view-toggle {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--idx-border);
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
}

.hp-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    min-width: 76px;
    padding: 0 0.85rem;
    border: none;
    border-left: 1px solid var(--idx-border);
    background: #fff;
    color: var(--idx-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.hp-view-toggle__btn:first-child { border-left: none; }

.hp-view-toggle__btn.is-active {
    background: var(--idx-brand);
    color: #fff;
    box-shadow: none;
}

.hp-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0 0.85rem;
    border: 1px solid var(--idx-border);
    border-radius: 2px;
    background: #fff;
    color: var(--idx-ink);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.hp-tool-btn--map {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: var(--idx-teal);
}

.hp-sort-select .ant-select-selector {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 2px !important;
    font-family: var(--font-body) !important;
}

/* بطاقات عقار — مساحة breathing room */
.properties-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.properties-grid.grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

.properties-grid.list {
    grid-template-columns: 1fr !important;
}

.fs-listing-card {
    border-radius: 2px;
    box-shadow: none;
    border-color: var(--idx-border);
}

.fs-listing-card__badge--purpose { background: #92400e !important; }
.fs-listing-card__badge--rent { background: #0f766e !important; }
.fs-listing-card__badge--both { background: #1e4976 !important; }

.fs-listing-card__price { color: var(--idx-accent) !important; }
.fs-listing-card__loc i { color: var(--idx-teal) !important; }

.fs-listing-card__btn--primary {
    background: var(--idx-brand) !important;
    border-radius: 2px;
}

.fs-listing-card__btn {
    border-radius: 2px;
}

.b-home-content .empty-state {
    border-radius: 2px;
    border: 1px dashed #d6d3d1;
    background: var(--idx-surface);
    padding: 3rem 2rem;
}

.b-home-content .ant-btn-primary {
    background: var(--idx-brand) !important;
    border-color: var(--idx-brand) !important;
    border-radius: 2px !important;
}

/* بدون hover */
body.fs-index-public .fs-listing-card,
body.fs-index-public .idx-city-link,
body.fs-index-public .hp-view-toggle__btn,
body.fs-index-public .fs-listing-card__map-btn,
body.fs-index-public .fs-listing-card__btn,
body.fs-index-public .idx-featured__link,
body.fs-index-public .fs-banner__cta {
    transition: none;
}

body.fs-index-public .fs-listing-card:hover,
body.fs-index-public .hp-type-card:hover,
body.fs-index-public .hp-journey-card:hover {
    transform: none;
    box-shadow: none;
}

/* إلغاء hover من CSS القديم */
body.fs-index-public .b-home-smart-filter .bm-filter-expand:hover,
body.fs-index-public .b-home-smart-filter .bm-search-bar__clear:hover,
body.fs-index-public .b-home-smart-filter .bm-search-btn:hover,
body.fs-index-public .b-home-smart-filter .bm-pill:hover:not(:disabled),
body.fs-index-public .b-home-content .ant-btn-primary:hover,
body.fs-index-public .b-home-content .search-button:hover,
body.fs-index-public .fs-listing-card__btn:hover,
body.fs-index-public .fs-listing-card__btn--primary:hover,
body.fs-index-public .fs-listing-card__btn--wa:hover,
body.fs-index-public .fs-listing-card__fav:hover,
body.fs-index-public .fs-listing-card__advertiser-link:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

body.fs-index-public .b-home-smart-filter .bm-search-btn:hover {
    background: var(--idx-brand) !important;
}

body.fs-index-public .b-home-smart-filter .bm-pill:hover:not(:disabled):not(.is-active) {
    background: #fff !important;
    border-color: var(--idx-border) !important;
    color: var(--idx-ink) !important;
}

/* ─── FaraskHomeIntelligence — Bento / strips / meters ─── */
.fhi {
    margin: 1.75rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fhi-capsule {
    border: 1px solid var(--idx-border);
    background: linear-gradient(135deg, #fff 0%, var(--idx-surface) 100%);
    border-radius: 2px;
    padding: 1.1rem 1.25rem 1.25rem;
}

.fhi-capsule__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.fhi-capsule__eyebrow {
    font-family: var(--font-numeric);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--idx-brand);
    text-transform: uppercase;
}

.fhi-capsule__eyebrow i { margin-left: 0.35rem; }

.fhi-capsule__hint {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--idx-muted);
}

.fhi-capsule__body {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(180px, 1.4fr) minmax(160px, 1fr) auto;
    gap: 0.65rem 0.75rem;
    align-items: end;
}

@media (max-width: 1100px) {
    .fhi-capsule__body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fhi-capsule__go { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .fhi-capsule__body { grid-template-columns: 1fr; }
}

.fhi-capsule__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.fhi-capsule__label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--idx-muted);
}

.fhi-capsule__label i {
    margin-left: 0.25rem;
    color: var(--idx-teal);
    font-size: 0.68rem;
}

.fhi-capsule__control {
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--idx-border);
    border-radius: 2px;
    background: #fff;
    color: var(--idx-ink);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.fhi-capsule__control--compact { min-height: 36px; }

.fhi-capsule__price-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fhi-capsule__dash {
    color: var(--idx-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.fhi-capsule__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fhi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--idx-border);
    border-radius: 999px;
    background: #fff;
    color: var(--idx-ink);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.fhi-chip.is-active {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: var(--idx-brand-dark);
}

.fhi-capsule__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 1.1rem;
    border: none;
    border-radius: 2px;
    background: var(--idx-brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.fhi-capsule__go strong {
    font-family: var(--font-numeric);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.1rem 0.45rem;
    border-radius: 2px;
}

.fhi-bento {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .fhi-bento { grid-template-columns: 1fr; }
}

.fhi-bento__cell {
    border: 1px solid var(--idx-border);
    background: #fff;
    border-radius: 2px;
    padding: 1rem 1.1rem 1.05rem;
    min-width: 0;
}

.fhi-panel__head { margin-bottom: 0.85rem; }

.fhi-panel__title {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--idx-ink);
}

.fhi-panel__title i {
    margin-left: 0.4rem;
    color: var(--idx-head-icon);
    font-size: 0.88rem;
}

.fhi-panel__sub {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--idx-muted);
}

.fhi-purpose-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 560px) {
    .fhi-purpose-strip { grid-template-columns: 1fr; }
}

.fhi-purpose-meter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--idx-border);
    border-radius: 2px;
    background: var(--idx-surface);
    cursor: pointer;
    text-align: right;
}

.fhi-purpose-meter.is-active {
    outline: 2px solid var(--idx-active);
    outline-offset: -1px;
    background: var(--idx-active-soft);
}

.fhi-purpose-meter__label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--idx-ink);
}

.fhi-purpose-meter__track {
    height: 6px;
    background: #e7e5e4;
    border-radius: 999px;
    overflow: hidden;
}

.fhi-purpose-meter__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #78716c;
}

.fhi-purpose-meter--rent .fhi-purpose-meter__fill { background: var(--idx-teal); }
.fhi-purpose-meter--both .fhi-purpose-meter__fill { background: #1e4976; }
.fhi-purpose-meter--sale .fhi-purpose-meter__fill { background: var(--idx-accent); }

.fhi-purpose-meter__num {
    font-family: var(--font-numeric);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--idx-ink);
}

.fhi-pulse-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fhi-pulse-row {
    display: grid;
    grid-template-columns: minmax(72px, 92px) minmax(0, 1fr) 36px 48px;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    text-align: right;
}

.fhi-pulse-row.is-active {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.fhi-pulse-row__city {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--idx-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fhi-pulse-row__meter {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #f5f5f4;
}

.fhi-pulse-row__seg { display: block; height: 100%; min-width: 2px; }
.fhi-pulse-row__seg--sale { background: #fbbf24; }
.fhi-pulse-row__seg--rent { background: #2dd4bf; }
.fhi-pulse-row__seg--both { background: #60a5fa; }

.fhi-pulse-row__count {
    font-family: var(--font-numeric);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--idx-ink);
    text-align: center;
}

.fhi-pulse-row__gauge {
    height: 4px;
    background: #e7e5e4;
    border-radius: 999px;
    overflow: hidden;
}

.fhi-pulse-row__gauge span {
    display: block;
    height: 100%;
    background: #a8a29e;
    border-radius: 999px;
}

.fhi-pulse-row.is-active .fhi-pulse-row__gauge span {
    background: var(--idx-active);
}

.fhi-radar-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.55rem;
    border: 1px dashed #fcd34d;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.fhi-radar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fhi-radar-strip {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(60px, 1fr) 34px;
    gap: 0.55rem;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border: 1px solid var(--idx-border);
    border-radius: 2px;
    background: var(--idx-surface);
    cursor: pointer;
    text-align: right;
}

.fhi-radar-strip.is-active {
    background: var(--idx-active-soft);
    border-color: var(--idx-active-border);
}

.fhi-radar-strip__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 2px;
    background: #fff;
    border: 1px solid var(--idx-border);
    color: var(--idx-head-icon);
    font-size: 0.82rem;
}

.fhi-radar-strip.is-active .fhi-radar-strip__icon {
    color: var(--idx-active);
    border-color: var(--idx-active-border);
}

.fhi-radar-strip--belowMarket .fhi-radar-strip__icon { color: var(--idx-accent); }
.fhi-radar-strip--new .fhi-radar-strip__icon { color: #ca8a04; }
.fhi-radar-strip--complete .fhi-radar-strip__icon { color: var(--idx-teal); }

.fhi-radar-strip__main { min-width: 0; }

.fhi-radar-strip__label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--idx-ink);
}

.fhi-radar-strip__sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--idx-muted);
}

.fhi-radar-strip__meter {
    height: 6px;
    background: #e7e5e4;
    border-radius: 999px;
    overflow: hidden;
}

.fhi-radar-strip__fill {
    display: block;
    height: 100%;
    background: #a8a29e;
    border-radius: 999px;
}

.fhi-radar-strip.is-active .fhi-radar-strip__fill {
    background: var(--idx-active);
}

.fhi-radar-strip--belowMarket .fhi-radar-strip__fill { background: var(--idx-accent); }
.fhi-radar-strip--new .fhi-radar-strip__fill { background: #eab308; }
.fhi-radar-strip--complete .fhi-radar-strip__fill { background: var(--idx-teal); }

.fhi-radar-strip__count {
    font-family: var(--font-numeric);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--idx-ink);
    text-align: center;
}

body.fs-index-public .fhi-chip,
body.fs-index-public .fhi-capsule__go,
body.fs-index-public .fhi-purpose-meter,
body.fs-index-public .fhi-pulse-row,
body.fs-index-public .fhi-radar-strip,
body.fs-index-public .fhi-radar-clear {
    transition: none;
}

/* ─── Filter Intelligence ─── */
.fi {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fi__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fi__title {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--idx-ink);
}

.fi__title i { margin-left: 0.4rem; color: var(--idx-head-icon); }

.fi__sub {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--idx-muted);
}

/* Smart Search Capsule */
.fi-capsule {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    border: 1px solid var(--idx-border);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    min-height: 56px;
}

.fi-capsule__segment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.45rem 0.85rem;
    min-width: 0;
    flex: 1 1 140px;
}

.fi-capsule__segment--search { flex: 2 1 200px; }

.fi-capsule__seg-label {
    font-family: var(--font-numeric);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--idx-muted);
    text-transform: uppercase;
}

.fi-capsule__seg-label i { margin-left: 0.25rem; color: var(--idx-head-icon); font-size: 0.58rem; }

.fi-capsule__input,
.fi-capsule__select {
    font-family: var(--font-body) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--idx-ink) !important;
}

.fi-capsule__input { padding: 0 !important; }

.fi-capsule__select .ant-select-selector {
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.fi-capsule__purpose {
    display: flex;
    gap: 0.35rem;
}

.fi-capsule__purpose-btn {
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--idx-border);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--idx-muted);
    cursor: pointer;
}

.fi-capsule__purpose-btn.is-active {
    background: var(--idx-active-soft);
    border-color: var(--idx-active-border);
    color: var(--idx-brand-dark);
}

.fi-capsule__divider {
    width: 1px;
    background: var(--idx-border);
    align-self: stretch;
    flex-shrink: 0;
}

.fi-capsule__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.25rem;
    border: none;
    background: var(--idx-ui-dark);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.fi-capsule__submit strong {
    font-family: var(--font-numeric);
    font-size: 0.82rem;
    background: rgba(255,255,255,0.15);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.fi-capsule__select--multi .ant-select-selector {
    min-height: 28px !important;
    padding: 0 !important;
}

.fi__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.fi-advanced-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 2px solid #fcd34d;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    color: #78350f;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(120, 53, 15, 0.08);
}

.fi-advanced-cta i {
    color: #b45309;
    font-size: 0.95rem;
}

.fi-advanced-cta__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #b45309;
    color: #fff;
    font-family: var(--font-numeric);
    font-size: 0.72rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .fi__toolbar { flex-direction: column; align-items: stretch; }
    .fi-advanced-cta { justify-content: center; width: 100%; }
    .fi-capsule { border-radius: 2px; }
    .fi-capsule__divider { display: none; }
    .fi-capsule__segment { border-bottom: 1px solid var(--idx-border); flex: 1 1 100%; }
    .fi-capsule__submit { flex: 1; width: auto; min-height: 44px; }
}

/* QuickFilterChips */
.fi-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.fi-quick__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--idx-border);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--idx-ink);
    cursor: pointer;
}

.fi-quick__chip i { color: var(--idx-head-icon); font-size: 0.72rem; }

.fi-quick__chip.is-active {
    background: var(--idx-active);
    border-color: var(--idx-active);
    color: #fff;
}

.fi-quick__chip.is-active i { color: #fff; }

/* ActiveFilterRail */
.fi-rail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px dashed #d6d3d1;
    border-radius: 2px;
    background: var(--idx-surface);
    overflow: hidden;
}

.fi-rail__label {
    font-family: var(--font-numeric);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--idx-muted);
    flex-shrink: 0;
}

.fi-rail__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 2px;
    flex: 1;
    min-width: 0;
}

.fi-rail__tag {
    margin: 0 !important;
    border-radius: 999px !important;
    font-family: var(--font-body) !important;
    font-size: 0.72rem !important;
    border: 1px solid #bbf7d0 !important;
    background: #ecfdf5 !important;
    color: var(--idx-brand-dark) !important;
    flex-shrink: 0;
}

/* FilterSummaryMeter */
.fi-meter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fi-meter__stats {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fi-meter__stat {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--idx-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.fi-meter__stat--results strong {
    font-family: var(--font-numeric);
    color: var(--idx-accent);
    font-size: 0.95rem;
}

.fi-meter__actions {
    display: flex;
    gap: 0.35rem;
}

.fi-meter__btn {
    font-family: var(--font-body) !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
}

.fi-meter__btn--clear {
    color: #92400e !important;
    border-color: #fcd34d !important;
    background: #fffbeb !important;
}

/* PriceRangeControl */
.fi-price__labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-numeric);
    font-size: 0.75rem;
    color: var(--idx-ink);
    margin-bottom: 0.35rem;
}

.fi-price__slider { margin: 0.25rem 0.35rem 0.75rem !important; }

.fi-price__slider .ant-slider-track { background: var(--idx-brand) !important; }
.fi-price__slider .ant-slider-handle { border-color: var(--idx-brand) !important; }

.fi-price__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fi-price__preset {
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--idx-border);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-numeric);
    font-size: 0.68rem;
    cursor: pointer;
}

.fi-price__preset.is-active {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

/* AdvancedFilterDrawer */
.fi-drawer .ant-drawer-header { border-bottom: 1px solid var(--idx-border); }

.fi-drawer__title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--idx-ink);
}

.fi-drawer__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding-left: 1.5rem;
}

.fi-drawer__width {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex: 0 0 auto;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    background: #fafaf9;
    padding: 0.1rem;
}

.fi-drawer__width-btn {
    width: 1.7rem;
    height: 1.7rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #57534e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fi-drawer__width-btn:hover:not(:disabled) {
    background: #fff;
    color: #0f766e;
}

.fi-drawer__width-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fi-drawer__width-val {
    min-width: 2.2rem;
    text-align: center;
    font-family: var(--font-numeric, 'Tajawal', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    color: #78716c;
}

.fi-meter__btn--advanced {
    background: #fffbeb !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
    font-weight: 700 !important;
    padding: 0 0.85rem !important;
}

.fi-drawer__title i { margin-left: 0.4rem; color: var(--idx-head-icon); }

.fi-drawer__section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--idx-border);
}

.fi-drawer__section:last-child { border-bottom: none; }

.fi-drawer__soft-sep {
    height: 0;
    margin: 0.85rem 0 0.95rem;
    border: 0;
    border-top: 1px solid rgba(28, 25, 23, 0.08);
}

.fi-drawer__footer-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fi-drawer__footer-stack .fi-drawer__check {
    margin: 0;
}

.fi-drawer .ant-drawer-wrapper-body {
    display: flex;
    flex-direction: column;
}

.fi-drawer .ant-drawer-body {
    padding-bottom: 0.5rem;
}

.fi-drawer__heading {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--idx-ink);
}

.fi-drawer__heading i { margin-left: 0.35rem; color: var(--idx-teal); font-size: 0.78rem; }

.fi-drawer__field { margin-bottom: 0.55rem; }

.fi-drawer__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.fi-drawer__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fi-drawer__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--idx-border);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.fi-drawer__chip.is-active {
    background: var(--idx-active-soft);
    border-color: var(--idx-active-border);
    color: var(--idx-brand-dark);
}

.fi-drawer__chip.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fi-drawer__footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fi-drawer__hint {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #f0fdfa;
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: #334155;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
}

.fi-drawer__check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #e7e5e4;
    background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fi-drawer__check:hover {
    border-color: #d6d3d1;
    box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

.fi-drawer__check.is-on {
    border-color: #a78bfa;
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.fi-drawer__check-icon {
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 0.95rem;
}

.fi-drawer__check.is-on .fi-drawer__check-icon {
    background: #7c3aed;
    color: #fff;
}

.fi-drawer__check-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.1rem;
}

.fi-drawer__check-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.35;
}

.fi-drawer__check-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    color: #78716c;
    line-height: 1.45;
}

.fi-drawer__check-box {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.fi-drawer__check-box .ant-checkbox-inner {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.fi-drawer__check.is-on .fi-drawer__check-box .ant-checkbox-checked .ant-checkbox-inner {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.fi-drawer__save {
    border-color: rgba(210, 131, 8, 0.45) !important;
    color: #d28308e3 !important;
}

.fi-drawer__save:hover {
    background: #fffbeb !important;
    border-color: #d28308e3 !important;
    color: #b45309 !important;
}

body.fs-index-public .fi-capsule__purpose-btn,
body.fs-index-public .fi-quick__chip,
body.fs-index-public .fi-capsule__submit,
body.fs-index-public .fi-price__preset,
body.fs-index-public .fi-drawer__chip {
    transition: none;
}
