/* ═══════════════════════════════════════════════
   COMPONENT STYLES
   All reusable component styles go here
   ═══════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────── */


.btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 9999px;
    font-size: 16px;
    line-height: 24px;
    padding: 8px 16px;
    text-decoration: none;
}

.btn-has-icon {
    gap: 4px;
}

.btn-label {
    display: inline-flex;
    align-items: center;
}

.btn-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.btn-lg .btn-icon {
    width: 18px;
    height: 18px;
}

.btn-sm .btn-icon {
    width: 16px;
    height: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.primary.btn-lg {
    border:solid thin transparent;
    background: var(--brand-primary);
    box-shadow: 0 2px 0 0 rgb(0.019607843831181526 0.5686274766921997 1 / 0.10);
    color: #ffffff;
}

.primary.btn-lg:hover {
    background: var(--brand-violet);
}

.secondary.btn-lg {
    border:solid thin var(--brand-primary);
    background: transparent;
    color: var(--brand-primary);
}

.secondary.btn-lg:hover {
    border-color: var(--brand-primary-dark);
    background: rgba(38, 38, 38, 0.08);
}

.danger.btn-lg {
    border:none;
    background: #c53030;
    color: #fff;
}

.danger.btn-lg:hover {
    background: #9a1f1f;
}

.inverse.btn-lg {
    border: solid thin rgba(255, 255, 255, 0.84);
    background: transparent;
    color: #ffffff;
}

.inverse.btn-lg:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.light.btn-lg {
    border: solid thin transparent;
    background: #ffffff;
    color: var(--brand-primary);
}

.light.btn-lg:hover {
    background: #f4f4f5;
}


.primary.btn-sm {
    border:solid thin transparent;
    background: var(--brand-primary);
    box-shadow: 0 2px 0 0 rgb(0.019607843831181526 0.5686274766921997 1 / 0.10);
    font-size: 14px;
    line-height: 18px;
    padding: 4px 12px;
    color: #ffffff;
}

.primary.btn-sm:hover {
    background: var(--brand-violet);
}

.secondary.btn-sm {
    border:solid thin var(--brand-primary);
    background: transparent;
    font-size: 14px;
    line-height: 18px;
    padding: 4px 12px;
    color: var(--brand-primary);
}

.secondary.btn-sm:hover {
    border-color: var(--brand-primary-dark);
    background: rgba(38, 38, 38, 0.08);
}

.danger.btn-sm {
    border:none;
    background: #c53030;
    font-size: 14px;
    line-height: 24px;
    padding: 4px 12px;
    color: #fff;
}

.danger.btn-sm:hover {
    background: #9a1f1f;
}

.inverse.btn-sm {
    border: solid thin rgba(255, 255, 255, 0.84);
    background: transparent;
    font-size: 14px;
    line-height: 18px;
    padding: 4px 12px;
    color: #ffffff;
}

.inverse.btn-sm:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.light.btn-sm {
    border: solid thin transparent;
    background: #ffffff;
    font-size: 14px;
    line-height: 18px;
    padding: 4px 12px;
    color: var(--brand-primary);
}

.light.btn-sm:hover {
    background: #f4f4f5;
}


/* ────────────────────────────────────────────
   PROPERTY CARD
   ──────────────────────────────────────────── */

.property-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.property-card:hover {
    border-color: #0f1b2d;
    box-shadow: 0 8px 24px rgba(15, 27, 45, 0.1);
    transform: translateY(-2px);
}

.property-card.highlighted {
    border-color: #c9952a;
    box-shadow: 0 8px 24px rgba(201, 149, 42, 0.2);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.img-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.img-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.img-dot.active {
    background: white;
}

.card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-name {
    font-size: 20px;
    font-weight: 600;
    color: #0f1b2d;
    line-height: 1.3;
    margin-bottom: 8px;
}
.card-developer {
    font-size: 14px;
    color: var(--muted);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-location {
    font-size: 12px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-price {
    margin-top: 2px;
}

.price-range {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.3px;
}

.price-sqft {
    font-size: 11px;
    color: #718096;
    margin-top: 1px;
}

.card-configs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.bhk-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.bhk-pill {
    font-size: 11px;
    font-weight: 600;
    background: #f7f8fa;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 8px;
    color: #4a5568;
}

.possession {
    font-size: 11px;
    color: #718096;
    text-align: right;
}

.possession strong {
    color: #1a2332;
}

/* ────────────────────────────────────────────
   METRIC CARD
   ──────────────────────────────────────────── */

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(15, 27, 45, 0.1);
}

.metric-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-violet);
}

.metric-icon-svg {
    width: 22px;
    height: 22px;
}

.metric-label {
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #666666;
}

.metric-value {
    font-weight: 400;
    font-size: 20px;
    line-height: normal;
    color: #000000;
}

.metric-unit {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

/* ────────────────────────────────────────────
   INDICATOR CARD 1
   ──────────────────────────────────────────── */

.indicator-card1 {
    width: 100%;
    min-height: 120px;
    margin: 0 auto;
    background: #f1eef9;
    border-radius: 24px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.indicator-card1-value-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.indicator-card1-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    flex-shrink: 0;
}

.indicator-card1-dot-green {
    background: #34c759;
}

.indicator-card1-dot-amber {
    background: #ffb020;
}

.indicator-card1-dot-red {
    background: #ef4444;
}

.indicator-card1-dot-gray {
    background: #cbd5e1;
}

.indicator-card1-value {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 500;
    color: #06010f;
}

.indicator-card1-value-growth {
    font-size: 32px;
}

.indicator-card1-label {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    color: #6d6b73;
}

.indicator-card1-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.indicator-card1-icon-green {
    color: #34c759;
}

.indicator-card1-icon-red {
    color: #ef4444;
}

.indicator-card1-icon-gray {
    color: #98a2b3;
}

.indicator-card1-icon-amber {
    color: #ffb020;
}

.indicator-card1-spotlight {
    background: linear-gradient(135deg, var(--brand-violet) 0%, #7b35e4 100%);
    box-shadow: 0 18px 36px rgba(95, 31, 197, 0.18);
}

.indicator-card1-spotlight .indicator-card1-value,
.indicator-card1-spotlight .indicator-card1-label {
    color: #ffffff;
}

.indicator-card1-spotlight .indicator-card1-value {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.indicator-card1-spotlight .indicator-card1-label {
    margin-top: 10px;
    font-size: 18px;
    opacity: 0.95;
}

/* ────────────────────────────────────────────
    STATUS PILLS
   ──────────────────────────────────────────── */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 64px;
    border-width: 1px;
    color: #fff;
    min-height: 30px;
}

.status-pill-label {
    display: inline-flex;
    align-items: center;
}

.status-pill-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.status-ongoing {
    border-color: #0088FF;
    background: #0088FF;
}

.status-upcoming {
    border-color: #FF8D28;
    background: #FF8D28;
}

.status-completed {
    border-color: #20A641;
    background: #20A641;
}



/* ────────────────────────────────────────────
   BADGES
   ──────────────────────────────────────────── */

.badge {

    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 16px;
    border-radius: 32px;
    border-width: 1px;
    border-style: solid;
    border-color: #d9d9d9;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    min-height: 28px;
}

.badge-with-icon {
    gap: 6px;
}

.badge-without-icon {
    gap: 0;
}

.badge-icon-only {
    padding:4px 6px;
    min-width: 28px;
    min-height: 30px;
    justify-content: center;
}

.badge-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-label {
    display: inline-flex;
    align-items: center;
}

.badge-icon-only .badge-icon {
    width: 16px;
    height: 16px;
}

.badge-default {
    color: #333333;
}

.badge-blue {
    background: #e6f4ff;
    border-color: #91caff;
    color: #1061d1;
}

.badge-green {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.badge-red {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.badge-white {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f1b2d;
}

.badge-cyan {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}

.badge-purple {
    background: #f3e8ff;
    border-color: #d8b4fe;
    color: #7e22ce;
}

.badge-orange {
    background: #ffedd5;
    border-color: #fdba74;
    color: #c2410c;
}

.badge-yellow {
    background: #fef9c3;
    border-color: #fde047;
    color: #a16207;
}

/* ────────────────────────────────────────────
   REMOVABLE TAG
   ──────────────────────────────────────────── */

.removable-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 6px 4px 12px;
    border-radius: 9999px;
    border: 1px solid #d8b4fe;
    background: #f3e8ff;
    color: #7e22ce;
    max-width: 100%;
}

.removable-tag-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.removable-tag-close {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 9999px;
    background: rgba(126, 34, 206, 0.12);
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.removable-tag-close:hover {
    background: rgba(126, 34, 206, 0.22);
    transform: scale(1.04);
}

.removable-tag-close:focus-visible {
    background: rgba(126, 34, 206, 0.22);
    transform: scale(1.04);
    outline: none;
}

.removable-tag-default {
    background: #f4f4f5;
    border-color: #d4d4d8;
    color: #3f3f46;
}

.removable-tag-default .removable-tag-close {
    background: rgba(63, 63, 70, 0.1);
}

.removable-tag-blue {
    background: #e6f4ff;
    border-color: #91caff;
    color: #1061d1;
}

.removable-tag-blue .removable-tag-close {
    background: rgba(16, 97, 209, 0.12);
}

.removable-tag-green {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.removable-tag-green .removable-tag-close {
    background: rgba(22, 101, 52, 0.12);
}

.removable-tag-red {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.removable-tag-red .removable-tag-close {
    background: rgba(185, 28, 28, 0.12);
}

.removable-tag-white {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f1b2d;
}

.removable-tag-white .removable-tag-close {
    background: rgba(15, 27, 45, 0.08);
}

.removable-tag-cyan {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}

.removable-tag-cyan .removable-tag-close {
    background: rgba(14, 116, 144, 0.12);
}

.removable-tag-purple {
    background: #f3e8ff;
    border-color: #d8b4fe;
    color: #7e22ce;
}

.removable-tag-purple .removable-tag-close {
    background: rgba(126, 34, 206, 0.12);
}

.removable-tag-orange {
    background: #ffedd5;
    border-color: #fdba74;
    color: #c2410c;
}

.removable-tag-orange .removable-tag-close {
    background: rgba(194, 65, 12, 0.12);
}

.removable-tag-yellow {
    background: #fef9c3;
    border-color: #fde047;
    color: #a16207;
}

.removable-tag-yellow .removable-tag-close {
    background: rgba(161, 98, 7, 0.14);
}

/* ────────────────────────────────────────────
   SCORE BADGE
   ──────────────────────────────────────────── */

.score-badge {
    background: #ede9fe;
    color: #6b46c1;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    flex-shrink: 0;
}

.score-badge .score-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.score-badge .score-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

/* ────────────────────────────────────────────
   GROWTH BADGE
   ──────────────────────────────────────────── */

.growth-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid;
    white-space: nowrap;
}

.growth-badge.positive {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.growth-badge.negative {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.growth-badge.neutral {
    background: #f1f5f9;
    color: #64748b;
    border-color: #cbd5e1;
}

.growth-badge svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}
