/* ============================================================
   Broker SareProperty — Design System
   Blue / Black / Grey — Professional Swiggy-style UI
   ============================================================ */
:root {
    /* Primary */
    --primary-color: #1A6FF4;
    --primary-dark: #1558C9;
    --primary-light: #EBF2FF;
    --secondary-color: #0D9488;

    /* Backgrounds */
    --bg-color: #F0F2F5;
    --card-bg: #FFFFFF;
    --bg-dark: #1C1C1E;

    /* Text */
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    /* Borders */
    --border-color: #D1D5DB;
    --border-strong: #D1D5DB;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #1558C9 0%, #1A6FF4 60%, #3B82F6 100%);
    --gradient-2: linear-gradient(135deg, #0F172A 0%, #1C1C1E 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.10), 0 3px 8px rgba(0,0,0,0.05);

    /* Status Colors */
    --success: #0D9488;
    --success-light: #CCFBF1;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
 background: var(--bg-color);}

/* App Container */
.app {
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
 background: var(--bg-color);}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: none; /* hidden by default */
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reusable Components */
.content {
    flex: 1;
    padding: 20px;
    padding-bottom: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Shared screen frame — same constrained width as dashboard */
.screen-frame {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100%;
    position: relative;
    background: #f7f5f0;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

.pb-100 {
    padding-bottom: 100px; /* Space for bottom nav */
}

.mt-20 { margin-top: 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(26, 111, 244, 0.12);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 111, 244, 0.12);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.icon-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
    position: relative;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}

.app-header.hidden {
    transform: translateY(-100%);
}

.app-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

/* Badges */
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 66px;
    background: #FFFFFF;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.07);
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

.bottom-nav.hidden {
    transform: translate(-50%, 100%);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    width: 25%;
}

.nav-item i {
    font-size: 24px;
    transition: transform 0.3s;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: translateY(-2px);
    font-weight: 600;
}

/* Broker Profile Slide-in Panel */
#broker-profile-overlay {
    opacity: 0;
    transition: opacity 0.32s ease;
}
#broker-profile-panel {
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Unified Auth Screen (Login & Signup) */
#login-screen {
    background: #FAFAFA;
    justify-content: center;
    align-items: center;
    display: none;
}

#login-screen.active {
    display: flex;
}

.auth-screen-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 36px 28px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
    border: 1px solid var(--border-color);
}

.auth-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-header-logo i {
    color: #1A6FF4;
    background: #eef2ff;
    padding: 6px;
    border-radius: 10px;
}

.auth-header-logo .logo-bold {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.auth-header-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.auth-header-title p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
}

/* Segment Control */
.auth-segmented-control {
    display: flex;
    background: var(--bg-color);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.segment-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 11px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Outfit', sans-serif;
}

.segment-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 111, 244, 0.20);
}

/* Forms styling */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

/* ── Input with icon ── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #FAFAFA;
    transition: all 0.2s;
    outline: none;
    color: #0f172a;
    box-sizing: border-box;
    height: 50px;
}

.input-wrapper input:focus {
    border-color: #1A6FF4;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 111, 244, 0.15);
}

/* Phone input layout */
.phone-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #FAFAFA;
    transition: all 0.2s;
}

.phone-input-group:focus-within {
    border-color: #1A6FF4;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 111, 244, 0.15);
}

.phone-prefix-select {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    background: #f1f5f9;
    border-right: 1.5px solid #E5E7EB;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.phone-prefix-select i {
    color: #64748b;
    font-size: 16px;
}

.phone-number-wrapper {
    flex: 1;
}

.phone-number-wrapper input {
    width: 100%;
    height: 50px;
    padding: 14px 16px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    outline: none;
    color: #0f172a;
    box-sizing: border-box;
}

/* OTP Row Buttons */
.otp-btn-row {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.otp-send-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: white;
    border: 1.5px solid #1A6FF4;
    color: #1A6FF4;
    font-weight: 600;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    height: 50px;
    box-sizing: border-box;
}

.otp-send-btn:hover {
    background: rgba(26, 111, 244, 0.08);
}

.otp-resend-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #F2F2F7;
    border: 1.5px solid transparent;
    color: #94a3b8;
    font-weight: 600;
    border-radius: 12px;
    font-size: 14px;
    cursor: not-allowed;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    height: 50px;
    box-sizing: border-box;
}

.otp-resend-btn:not([disabled]) {
    background: white;
    border-color: #1A6FF4;
    color: #1A6FF4;
    cursor: pointer;
}

.otp-resend-btn:not([disabled]):hover {
    background: rgba(26, 111, 244, 0.08);
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(26, 111, 244, 0.25);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(26, 111, 244, 0.35);
}

.auth-submit-btn:disabled {
    background: var(--border-strong);
    cursor: not-allowed;
    box-shadow: none;
}

.auth-footer-link {
    margin-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.auth-footer-link a {
    color: #1A6FF4;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* 2. Dashboard */
.earnings-card {
    background: var(--gradient-1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    color: white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.earning-item {
    text-align: center;
}

.earning-item .label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.earning-item h3 {
    font-size: 20px;
    font-weight: 700;
}

.divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    height: 40px;
    align-self: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.metric-card:active {
    transform: scale(0.95);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

.bg-blue { background: #DBEAFE; color: #1A6FF4; }
.bg-pink { background: #FCE7F3; color: #DB2777; }
.bg-green { background: #D1FAE5; color: #059669; }

.metric-data h4 {
    font-size: 18px;
    color: var(--text-main);
}

.metric-data p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.section-block {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
}

.section-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.lead-card {
    min-width: 260px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.lead-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.lead-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.visit-card {
    display: flex;
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    gap: 16px;
}

.visit-date {
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.visit-date .day {
    font-size: 20px;
    font-weight: 700;
}

.visit-date .month {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.visit-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.visit-details p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.visit-details .time {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 3. Property Listings */
.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .property-list {
        grid-template-columns: 1fr;
    }
}

.property-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s;
}

.property-item:active {
    transform: scale(0.98);
}

.prop-img-container {
    height: 180px;
    position: relative;
}

.prop-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-status {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(4px);
}

.bg-sale { background: rgba(16, 185, 129, 0.9); }
.bg-rent { background: rgba(26, 111, 244, 0.12); }

.prop-details {
    padding: 14px 16px;
}

.prop-details .prop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.prop-details .prop-id-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.prop-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0;
    line-height: 1.3;
}

.prop-details .prop-rating {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-details .prop-rating span {
    font-weight: 600;
    color: #374151;
}

.prop-details .prop-tags {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.prop-details .prop-loc {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-details .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.prop-details .location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-color);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
}

/* Property Detail Form */
.image-upload-area {
    height: 160px;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    background: white;
    cursor: pointer;
}

.image-upload-area i {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: white;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.amenities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 4. Leads & Notifications */
.tabs {
    display: flex;
    background: #E5E7EB;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
}

.tab.active {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.lead-item-detailed {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.lead-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }

.lead-header h4 {
    font-size: 16px;
}

.lead-header .time-ago {
    font-size: 12px;
    color: var(--text-muted);
}

.lead-body {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
 background: var(--bg-color);}

.lead-body p { margin-bottom: 4px; }
.lead-body p:last-child { margin-bottom: 0; }

.lead-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-action:active { transform: scale(0.95); }
.btn-action i { font-size: 20px; }

.bg-green-light { background: #D1FAE5; color: #059669; }
.bg-blue-light { background: #DBEAFE; color: #1A6FF4; }
.bg-purple-light { background: #F3E8FF; color: #9333EA; }

/* 5. Finance Dashboard */
.finance-summary {
    background: #0F172A;
    border-radius: 24px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.finance-summary::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(40px);
}

.finance-main {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.finance-main p {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 4px;
}

.finance-main h2 {
    font-size: 36px;
    font-weight: 700;
}

.finance-row {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.finance-col {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
}

.finance-col p {
    color: #94A3B8;
    font-size: 12px;
    margin-bottom: 2px;
}

.finance-col h4 {
    font-size: 18px;
    font-weight: 600;
}

.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.txn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.txn-details {
    flex: 1;
}

.txn-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.txn-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.txn-amount {
    text-align: right;
}

.txn-amount h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.status.completed {
    background: var(--success-light);
    color: var(--success);
}

.status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url('https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80') center/cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Clickable Utility */
.clickable {
    cursor: pointer;
    transition: transform 0.2s;
}

.clickable:active {
    transform: scale(0.98);
}

/* Search & Filter Row */
.search-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    cursor: pointer;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pill-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill.active .pill-badge {
    background: white;
    color: var(--primary-color);
}

/* Updated Lead Item */
.lead-item-detailed {
    position: relative;
}

.lead-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tag-rent {
    background: var(--success-light);
    color: var(--success);
}

.tag-sale {
    background: #DBEAFE; /* blue light */
    color: #1A6FF4; /* blue */
}

.lead-footer p {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* Profile Dropdown Menu */
.profile-pic {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
}

.dropdown-header h4 {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.dropdown-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-color);
}

.dropdown-item i {
    font-size: 18px;
    color: var(--text-muted);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger i {
    color: var(--danger);
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0 8px 16px rgba(26, 111, 244, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 99;
}

.fab-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 20px rgba(26, 111, 244, 0.15);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* Inclusions Box */
.inclusions-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.inclusion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inclusion-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-main);
}

.inclusion-list i {
    font-size: 18px;
}

.inclusion-list.simple li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Property Detail Screen Enhancements */
.property-top-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.owner-info .phone-number {
    font-size: 13px;
    color: var(--text-muted);
}

.prop-mini-details p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.action-buttons-slider {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.action-btn-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    height: 72px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border-color);
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.action-btn-circle i {
    font-size: 24px;
}

.action-btn-circle span {
    font-size: 11px;
    font-weight: 600;
}

.notes-card {
    background: #FFFBEB; /* Soft yellow for notes */
    border-radius: 16px;
    padding: 16px;
    border: 1px dashed #FCD34D;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400E;
}

.notes-preview p {
    font-size: 14px;
    color: #92400E;
}

.note-date {
    font-size: 11px;
    color: #B45309 !important;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-size: 18px;
}

/* =========================================
   Property Details Data Grids 
   ========================================= */
.key-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #FAFAFA;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

.amenity i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    animation: slideDown 0.3s ease forwards;
}

.toast.error {
    background: #e74c3c;
}

@keyframes slideDown {
    from { top: -50px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

/* ============================================================
   OTP LOGIN STYLES
   ============================================================ */

/* Login Method Tabs */
.login-tabs {
    display: flex;
    background: #E5E7EB;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 28px;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-tab i {
    font-size: 16px;
}

.login-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(26, 111, 244, 0.15);
}

.login-tab:hover:not(.active) {
    color: var(--text-main);
}

/* OTP Input Group - 4 individual digit boxes */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.otp-digit {
    width: 56px;
    height: 62px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-color);
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    caret-color: var(--primary-color);
}

.otp-digit:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-2px);
}

.otp-digit.filled {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.otp-digit.error {
    border-color: var(--danger);
    background: var(--danger-light);
    animation: otpShake 0.4s ease;
}

@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

/* OTP Action Buttons */
.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-link:disabled {
    color: var(--text-muted);
    cursor: default;
    text-decoration: none;
}

#resend-timer {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Loading state for OTP buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Toggle Switch UI */
.toggle-switch { position: relative; width: 44px; height: 24px; border-radius: 24px; cursor: pointer; transition: background-color 0.3s ease; display: flex; align-items: center; }
.toggle-switch.active { background-color: #3b82f6; }
.toggle-switch.inactive { background-color: #E5E7EB; }
.toggle-switch-handle { position: absolute; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); }
.toggle-switch.active .toggle-switch-handle { transform: translateX(20px); }

/* Swiggy Form Grid UI */
.swiggy-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .swiggy-form-grid { grid-template-columns: 1fr 1fr; } .swiggy-col-span-2 { grid-column: span 2; } }
.swiggy-input-group { position: relative; }
.swiggy-input-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.swiggy-input-group input, .swiggy-input-group select, .swiggy-input-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #E5E7EB; border-radius: 12px; font-family: inherit; font-size: 14px; color: #0f172a; transition: all 0.2s ease; background: #FAFAFA; box-sizing: border-box; }
.swiggy-input-group input:focus, .swiggy-input-group select:focus, .swiggy-input-group textarea:focus { outline: none; border-color: #1A6FF4; background: #fff; box-shadow: 0 0 0 4px rgba(26, 111, 244, 0.12); }
.swiggy-input-group i { color: #1A6FF4; font-size: 16px; }

/* ============================================================
   Leads Screen — Efficient CRM List Redesign
   ============================================================ */

/* ── Screen chrome ── */
.leads-screen-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
}
.leads-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.leads-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 9px 14px;
    transition: border-color 0.2s;
}
.leads-search-box:focus-within { border-color: #0D9488; }
.leads-search-box i { color: #94a3b8; font-size: 18px; }
.leads-search-box input { border: none; background: transparent; outline: none; font-size: 14px; color: #0f172a; width: 100%; font-family: 'Outfit', sans-serif; }
.leads-search-box input::placeholder { color: #94a3b8; }
.leads-add-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: #0D9488;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13,148,136,0.3);
    transition: transform 0.15s;
}
.leads-add-btn:active { transform: scale(0.93); }

/* ── Filter chip row ── */
.leads-filter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.leads-filter-row::-webkit-scrollbar { display: none; }
.leads-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
}
.leads-chip .chip-count {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
}
.leads-chip.active-all   { background: #0f172a; border-color: #0f172a; color: #fff; }
.leads-chip.active-all .chip-count { background: rgba(255,255,255,0.2); color: #fff; }
.leads-chip.active-rent  { background: #eff6ff; border-color: #3b82f6; color: #2563eb; }
.leads-chip.active-rent .chip-count { background: #dbeafe; color: #2563eb; }
.leads-chip.active-sale  { background: #fef3c7; border-color: #f59e0b; color: #d97706; }
.leads-chip.active-sale .chip-count { background: #fde68a; color: #d97706; }

.leads-crm-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================================
   NEW IMAGE-2 STYLE LEAD CARDS
   ============================================================ */
/* ── Leads Card Grid ─────────────────────────────────── */
.leads-v2-list {
    display: grid;
    grid-template-columns: 1fr;   /* mobile: 1 card per row */
    gap: 12px;
    padding: 4px 0 12px;
}

/* Desktop: 3 cards per row */
@media (min-width: 600px) {
    .leads-v2-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* ── Card shell ─────────────────────────────────────── */
.lv2-card {
    display: flex;
    flex-direction: column;    /* vertical layout */
    align-items: stretch;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.lv2-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.11);
}
.lv2-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ── Top — property photo ───────────────────────────── */
.lv2-img-wrap {
    width: 100%;
    height: 110px;             /* shorter image height */
    overflow: hidden;
    background: #f0f2f5;
    flex-shrink: 0;
}
.lv2-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Bottom — text block ────────────────────────────── */
.lv2-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lv2-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv2-phone {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.2px;
}

.lv2-brief {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Section date dividers */
.leads-date-divider {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: #f8fafc;
}

/* Gradient avatars */
.lc-grad-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.lc-grad-2 { background: linear-gradient(135deg, #0D9488, #059669); }
.lc-grad-3 { background: linear-gradient(135deg, #f97316, #ef4444); }
.lc-grad-4 { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.lc-grad-5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

/* ============================================================
   Property Detail — Main Tab Bar + Sub-Menu Pills
   ============================================================ */

/* ── Main Tab Bar ── */
.brk-main-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1.5px solid #f1f5f9;
    padding: 0 4px;
    position: sticky;
    top: 60px;
    z-index: 50;
}
.brk-main-tabs::-webkit-scrollbar { display: none; }

.brk-main-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 72px;
    padding: 12px 10px 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}
.brk-main-tab i { font-size: 22px; line-height: 1; }
.brk-main-tab.active {
    color: #0D9488;
    border-bottom-color: #0D9488;
}
.brk-main-tab.active i { color: #0D9488; }

/* ── Sub-Menu Pill Bar ── */
.brk-sub-pills {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.brk-sub-pills::-webkit-scrollbar { display: none; }

.brk-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #0D9488;
    background: #fff;
    color: #0D9488;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
    font-family: 'Outfit', sans-serif;
}
.brk-pill i { font-size: 14px; }
.brk-pill.active {
    background: #0D9488;
    color: #fff;
}

/* ── Sub-pill content sections ── */
.brk-pill-section { display: none; }
.brk-pill-section.active { display: block; }






/* --- Property Card Premium UI from Main Site --- */

@media (min-width: 768px) {
    .property-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .property-list-card {
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    }
}

.property-list-card {
    display: flex;
    flex-direction: column;
    margin: 15px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.prop-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f5; /* Light grey frame visible where image ends */
}

.prop-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f2f5;
}

/* Card-level image slider */
.prop-image-container .swiper {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.prop-image-container .swiper-slide {
    background: #f0f2f5; /* Light grey frame fills letterbox/pillarbox areas */
}

.prop-image-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full image always visible — never cropped */
    display: block;
    background: #f0f2f5;
}

.prop-image-container .swiper-pagination {
    top: 10px;
    bottom: auto;
    width: 100% !important;
    left: 0;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
    /* No background, no pill */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
}

.prop-image-container .swiper-pagination-bullet {
    background: rgba(255,255,255,0.65);
    opacity: 1;
    width: 6px;
    height: 6px;
    margin: 0 2px !important;
    transition: width 0.25s, background 0.25s;
}

.prop-image-container .swiper-pagination-bullet-active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

/* ── Card nav arrows ── */
/* Hidden on mobile by default */
.card-nav-prev,
.card-nav-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0;
    pointer-events: none;
}

.card-nav-prev { left: 8px; }
.card-nav-next { right: 8px; }

/* Override Swiper default arrow size/color */
.card-nav-prev::after,
.card-nav-next::after {
    font-size: 11px !important;
    color: #222 !important;
    font-weight: 900;
}

/* Show on desktop only */
@media (min-width: 640px) {
    .card-nav-prev,
    .card-nav-next {
        display: flex;
        pointer-events: auto;
    }

    /* Reveal arrows on card hover */
    .property-list-card:hover .card-nav-prev,
    .property-list-card:hover .card-nav-next {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    /* Subtle scale on arrow hover */
    .card-nav-prev:hover,
    .card-nav-next:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 3px 12px rgba(0,0,0,0.28);
    }

    /* Disabled state */
    .card-nav-prev.swiper-button-disabled,
    .card-nav-next.swiper-button-disabled {
        opacity: 0.3;
        pointer-events: none;
    }
}

.fav-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-size: 1.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.fav-icon.active i {
    color: var(--primary);
}

.deal-badge {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 10px 8px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.prop-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.prop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.prop-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-header i {
    color: #999;
    cursor: pointer;
}

.prop-rating {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e1e1e;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}

.prop-rating i {
    color: #16a34a;
}

.prop-tags {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.prop-loc {
    font-size: 0.8rem;
    color: var(--text-sub);
}


