/**
 * ذكاء صفحة العروض — استكشاف وليس إدارة
 */
.oix {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.oix__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.75rem;
}

@media (max-width: 900px) {
    .oix__grid { grid-template-columns: 1fr; }
}

.oix-panel {
    border: 1px solid #e7e5e4;
    border-radius: 4px;
    background: #fff;
    padding: 0.75rem 0.85rem;
}

.oix-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.oix-panel__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: #1c1917;
}

.oix-panel__title i {
    margin-left: 0.35rem;
    color: #78716c;
    font-size: 0.8rem;
}

.oix-market__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.45rem;
}

.oix-market__label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #78716c;
}

.oix-market__val {
    font-family: var(--font-numeric);
    font-size: 1rem;
    font-weight: 700;
    color: #1c1917;
    font-variant-numeric: tabular-nums;
}

.oix-market__val--highlight {
    color: #14532d;
    font-size: 1.12rem;
}

.oix-market__delta {
    font-family: var(--font-numeric);
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    justify-self: start;
}

.oix-market__context {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: #a8a29e;
}

/* What's Hot */
.oix-hot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.oix-hot__tab {
    padding: 0.3rem 0.65rem;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    background: #fafaf9;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: #57534e;
    cursor: pointer;
}

.oix-hot__tab.is-active {
    background: #292524;
    border-color: #292524;
    color: #fff;
}

.oix-hot__list {
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.oix-hot__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.45rem;
    border-radius: 2px;
    background: #fafaf9;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: right;
    width: 100%;
}

.oix-hot__item:hover { border-color: #e7e5e4; }

.oix-hot__name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: #1c1917;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oix-hot__meta {
    font-family: var(--font-numeric);
    font-size: 0.68rem;
    color: #78716c;
}

/* Activity Feed */
.oix-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.oix-feed__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px dashed #d6d3d1;
    border-radius: 999px;
    background: #fafaf9;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: #44403c;
}

.oix-feed__item strong {
    font-family: var(--font-numeric);
    color: #b45309;
}

/* Quick Collections */
.oix-collections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.oix-collect {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: #292524;
    cursor: pointer;
}

.oix-collect.is-active {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.oix-collect i { color: #78716c; font-size: 0.72rem; }
.oix-collect.is-active i { color: #b45309; }

.oix-collect--rose i { color: #e11d48; }
.oix-collect--teal i { color: #0d9488; }
.oix-collect--sky i { color: #0284c7; }
.oix-collect--violet i { color: #7c3aed; }
.oix-collect--rose.is-active {
    background: #fff1f2;
    border-color: #fda4af;
    color: #9f1239;
}
.oix-collect--teal.is-active {
    background: #f0fdfa;
    border-color: #5eead4;
    color: #115e59;
}
.oix-collect--sky.is-active {
    background: #f0f9ff;
    border-color: #7dd3fc;
    color: #075985;
}
.oix-collect--violet.is-active {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #5b21b6;
}

/* Smart Suggestions */
/* Smart Suggestions — full row in grid */
.properties-grid .oix-suggest {
    grid-column: 1 / -1;
}

.oix-suggest {
    border: 1px solid #e7e5e4;
    border-radius: 4px;
    background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
    padding: 0.75rem;
    margin: 0.25rem 0;
}

.oix-suggest__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.oix-suggest__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1c1917;
}

.oix-suggest__sub {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: #78716c;
}

.oix-suggest__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.oix-suggest__card {
    display: flex;
    gap: 0.5rem;
    padding: 0.45rem;
    border: 1px solid #e7e5e4;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    text-align: right;
}

.oix-suggest__thumb {
    width: 52px;
    height: 52px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.oix-suggest__body { min-width: 0; }

.oix-suggest__name {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: #1c1917;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oix-suggest__tag {
    font-family: var(--font-numeric);
    font-size: 0.65rem;
    color: #b45309;
    font-weight: 700;
}

/* Area Pulse Modal */
.oix-pulse-modal .ant-modal-body { padding-top: 0.5rem; }

.oix-pulse__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.oix-pulse__stat {
    text-align: center;
    padding: 0.55rem;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 2px;
}

.oix-pulse__stat strong {
    display: block;
    font-family: var(--font-numeric);
    font-size: 1rem;
    color: #1c1917;
}

.oix-pulse__stat span {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: #78716c;
}

/* ─── Card extensions ─── */
.fpic-best {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 4;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #b45309, #d97706);
    color: #fff;
    font-family: var(--font-accent);
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(180,83,9,0.35);
}

.fpic-match {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e7e5e4;
    background: #f8fafc;
}

.fpic-match__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.fpic-match__label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: #1c1917;
}

.fpic-match__pct {
    font-family: var(--font-numeric);
    font-size: 1rem;
    font-weight: 700;
    color: #14532d;
}

.fpic-match__reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.fpic-match__reason {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.fpic-opp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e7e5e4;
    background: #fffbeb;
}

.fpic-opp__label {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
}

.fpic-opp__score {
    font-family: var(--font-numeric);
    font-size: 0.95rem;
    font-weight: 700;
    color: #b45309;
}

.fpic-opp__meter {
    flex: 1;
    height: 5px;
    background: #fde68a;
    border-radius: 999px;
    overflow: hidden;
    max-width: 120px;
}

.fpic-opp__meter span {
    display: block;
    height: 100%;
    background: #b45309;
    border-radius: 999px;
}

.fpic-price-move {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    color: #0f766e;
}

.fpic-lifestyle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e7e5e4;
}

.fpic-lifestyle__tag {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    color: #44403c;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.fpic-hood__row--clickable {
    cursor: pointer;
    border-radius: 2px;
    padding: 0.15rem 0.25rem;
    margin: -0.15rem -0.25rem;
}

.fpic-hood__row--clickable:hover {
    background: #f5f5f4;
}
