/* ThaneFlats AI feature styles */
.ai-page__hero { max-width: 720px; }
.ai-card { border-radius: 1rem; }
.ai-price-result {
    background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 60%, #ecfdf5 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.ai-price-result__main { font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.ai-price-result__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 1.1rem;
}
.ai-price-result__tile {
    background: #fff;
    border-radius: 12px;
    padding: .85rem .75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ai-price-result__tile-label { font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #64748b; }
.ai-price-result__tile-value { font-weight: 800; color: #0d9488; font-size: 1.02rem; margin-top: .15rem; }
.ai-commute-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    margin-bottom: .75rem;
}
.ai-commute-item__score {
    min-width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.ai-advisor-messages {
    max-height: 280px;
    overflow-y: auto;
    background: #f8fafc;
}
.ai-advisor-msg { margin-bottom: .75rem; }
.ai-advisor-msg--user { text-align: right; }
.ai-advisor-msg__bubble {
    display: inline-block;
    max-width: 90%;
    padding: .5rem .75rem;
    border-radius: .75rem;
    font-size: .875rem;
}
.ai-advisor-msg--user .ai-advisor-msg__bubble { background: #0d6efd; color: #fff; }
.ai-advisor-msg--assistant .ai-advisor-msg__bubble { background: #fff; border: 1px solid #e2e8f0; }
.ai-neg-result__offer { font-size: 1.1rem; font-weight: 600; }
.ai-lead-badge { font-size: .7rem; }

/* —— AI Buyer Assistant (listing-page canvas) —— */
.ba-page.portal-search--premium .portal-search-hero--pro {
    position: relative;
    top: auto;
    z-index: 1;
    margin-bottom: 1.15rem;
}

.ba-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem 1.2rem;
}

.ba-hero__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0a0f1a;
    background: linear-gradient(145deg, #fde68a, #e8a82e);
    box-shadow: 0 6px 16px rgba(201, 151, 26, 0.28);
}

.ba-hero__eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9971a;
}

.ba-hero__title {
    margin: 0 0 0.3rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0a0f1a;
    line-height: 1.2;
}

.ba-hero__lead {
    margin: 0;
    max-width: 46rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}

.ba-wizard--pro {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.35rem 1.4rem 1.45rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ba-wizard__progress {
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.ba-wizard__progress-bar {
    height: 100%;
    width: 16%;
    background: linear-gradient(90deg, #0a0f1a, #c9971a);
    transition: width 0.25s ease;
}

.ba-wizard__step-count {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1rem;
}

.ba-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #0a0f1a;
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ba-chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.ba-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid #c9d7e6;
    background: #f8fbfe;
    color: #1e293b;
    border-radius: 11px;
    padding: 0.55rem 0.95rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ba-chip i {
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.ba-chip:hover {
    background: #fff;
    border-color: #94a3b8;
    color: #0f172a;
}

.ba-chip.is-selected {
    background: #fff;
    border-color: #0f172a;
    color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.ba-chip--rent i { color: #0d9488; }
.ba-chip--buy i { color: #4f46e5; }
.ba-chip--pg i { color: #16a34a; }
.ba-chip--bhk1 i { color: #0284c7; }
.ba-chip--bhk2 i { color: #4f46e5; }
.ba-chip--bhk3 i { color: #7c3aed; }
.ba-chip--bhk4 i { color: #d97706; }
.ba-chip--any i { color: #64748b; }
.ba-chip--area i { color: #e11d48; }
.ba-chip--parking i { color: #0369a1; }
.ba-chip--furnished i { color: #d97706; }
.ba-chip--station i { color: #4f46e5; }
.ba-chip--pet i { color: #e11d48; }
.ba-chip--now i { color: #d97706; }
.ba-chip--soon i { color: #0284c7; }
.ba-chip--explore i { color: #16a34a; }

.ba-chip-row--intent {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.ba-chip-row--intent .ba-chip {
    flex-direction: column;
    min-height: 6.4rem;
    border-radius: 14px;
    padding: 1rem 0.7rem;
    font-size: 0.98rem;
}

.ba-chip-row--intent .ba-chip i {
    font-size: 1.65rem;
}

.ba-chip-row--presets {
    margin-bottom: 0.85rem;
}

.ba-chip-row--presets .ba-chip i { color: #d97706; }

.ba-step-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.ba-step-rail__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    width: 100%;
    padding: 0.4rem 0.2rem;
    border: 1px solid #d5e2ee;
    border-radius: 10px;
    background: #f8fbfe;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ba-step-rail__btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
}

.ba-step-rail__btn.is-done {
    border-color: #c9d7e6;
    color: #0f172a;
}

.ba-step-rail__btn.is-done span {
    background: #d1fae5;
    color: #047857;
}

.ba-step-rail__btn.is-active {
    border-color: #0f172a;
    background: #fff;
    color: #0f172a;
}

.ba-step-rail__btn.is-active span {
    background: #0f172a;
    color: #fff;
}

.ba-recap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.ba-recap li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #c9d7e6;
    background: #f8fbfe;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 700;
}

.ba-recap i { color: #0284c7; }

.ba-results__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.1rem;
    margin-bottom: 0.85rem;
}

.ba-start-over {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: none;
    padding: 0;
    font-weight: 700;
    color: #64748b;
}

.ba-start-over:hover { color: #0f172a; text-decoration: underline; }

.ba-locality-card__head strong {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ba-locality-card__head strong .bi { color: #e11d48; }

.ba-input {
    border-radius: 12px !important;
    min-height: 2.65rem;
}

.ba-wizard__actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.ba-btn-back {
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.5rem 1.1rem;
    background: #fff !important;
}

.ba-btn-next {
    font-weight: 800;
    border-radius: 12px;
    padding: 0.5rem 1.25rem;
    color: #0a0f1a !important;
    border: none !important;
    background: linear-gradient(135deg, #fde68a, #e8a82e) !important;
    box-shadow: 0 6px 16px rgba(201, 151, 26, 0.28);
}

.ba-wizard__error { margin-top: 0.75rem; }

.ba-results { margin-top: 0.35rem; padding-bottom: 1.5rem; }

.ba-refine {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: none;
    padding: 0;
    font-weight: 700;
    color: #1d4ed8;
}

.ba-refine:hover { color: #1e3a8a; text-decoration: underline; }

.ba-results__summary {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0a0f1a;
    margin-bottom: 1.15rem;
}

.ba-results__heading {
    font-size: 1rem;
    font-weight: 800;
    color: #0a0f1a;
    margin: 0 0 0.75rem;
}

.ba-results__heading + .ba-property-grid,
.ba-results__heading + .row { margin-top: 0; }

.ba-locality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.ba-locality-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ba-locality-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.ba-locality-card__fit {
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.ba-locality-card__stats {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    color: #64748b;
}

.ba-locality-card__copy {
    margin: 0;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.45;
}

.ba-listing-shell {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.ba-listing-shell .portal-listing-card--premium {
    box-shadow: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.ba-listing-shell .property-card-link {
    flex: 1 1 auto;
}

.ba-listing-why {
    list-style: none;
    margin: 0 0 0.7rem;
    padding: 0;
}

.ba-listing-why li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: #475569;
    line-height: 1.35;
    margin-bottom: 0.22rem;
}

.ba-listing-why .bi {
    color: #059669;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.ba-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.65rem 0.85rem 0.9rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid #e8a82e;
    color: #92400e;
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: none;
    background: #fffbeb;
}

.ba-visit-btn:hover {
    color: #78350f;
    background: #fef3c7;
    border-color: #c9971a;
}

.ba-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0.25rem;
    color: #475569;
    font-weight: 600;
}

.ba-loading__spin {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    border-top-color: #c9971a;
    animation: ba-spin 0.7s linear infinite;
}

@keyframes ba-spin { to { transform: rotate(360deg); } }

.ba-results__empty {
    color: #64748b;
    font-weight: 600;
    margin: 0.75rem 0 0;
}

.ba-results__empty--error { color: #b91c1c; }

@media (min-width: 768px) {
    .ba-wizard__step-count { display: none; }
}

@media (max-width: 575.98px) {
    .ba-hero__inner { padding: 0.95rem 1rem 1rem; }
    .ba-wizard--pro { padding: 1.05rem 1rem 1.15rem; }
    .ba-wizard__actions { flex-wrap: wrap; }
    .ba-btn-next { width: 100%; }
    .ba-chip-row--intent { grid-template-columns: 1fr; }
    .ba-chip-row--intent .ba-chip { min-height: 4.4rem; flex-direction: row; justify-content: flex-start; padding: 0.75rem 1rem; }
    .ba-chip-row--intent .ba-chip i { font-size: 1.25rem; }
    .ba-step-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

