/* ============================================
   FRONTEND - Modern Mobile-First UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --accent: #0f766e;
    --accent-light: #ccfbf1;
    --gold: #f59e0b;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 72px;
    font-size: 0.9rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* ---- Navbar ---- */
.navbar {
    background: var(--surface) !important;
    box-shadow: 0 1px 0 var(--border);
    padding: 12px 0;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .brand-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    overflow: hidden;
}

.navbar-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    background: white;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: all 0.18s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.site-header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 11px 0;
}

.navbar-brand span {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.site-menu-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none !important;
    color: #475569;
}

.site-menu-toggle i {
    font-size: 1.35rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-cta {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .header-actions {
        align-items: stretch;
        flex-wrap: wrap;
        width: 100%;
    }

    .header-login-btn {
        flex: 1 1 150px;
    }
}

/* ---- Hero ---- */
.hero-section {
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.04)),
        radial-gradient(circle at 14% 18%, rgba(20, 184, 166, 0.42), transparent 27%),
        radial-gradient(circle at 86% 8%, rgba(245, 158, 11, 0.28), transparent 24%),
        linear-gradient(135deg, #1e1b4b 0%, #4f46e5 48%, #0f766e 100%);
    padding: 54px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto -8% -34% 46%;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    min-height: 380px;
}

.hero-copy {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.06;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 3.55rem;
}

.hero-section p {
    opacity: 0.85;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-search {
    position: relative;
    z-index: 30;
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.26);
    margin-top: 24px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 22px 13px;
    border-bottom: 1px solid #e8eef6;
    color: #0f172a;
}

.hero-search-head strong {
    font-size: 0.96rem;
    font-weight: 800;
}

.hero-search-head span {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.advanced-hero-search {
    max-width: 1060px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: #ffffff;
    backdrop-filter: blur(14px);
}

.hero-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.1fr)
        minmax(270px, 1.35fr)
        minmax(190px, 0.95fr)
        minmax(170px, 0.8fr);
    gap: 12px;
    align-items: stretch;
    padding: 16px 18px 18px;
}

.hero-filter-deal {
    grid-column: 1 / -1;
}

.hero-filter-budget {
    grid-column: 1 / span 1;
}

.hero-filter-bhk {
    grid-column: 2 / span 1;
}

.hero-filter-submit {
    grid-column: 3 / span 1;
    max-width: 190px;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.3);
}

.hero-search .form-control,
.hero-search .form-select {
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 0.88rem;
    min-height: 48px;
    padding-left: 32px;
}

.hero-search .form-select {
    padding-right: 28px;
    white-space: nowrap;
}

.hero-search .form-control:focus,
.hero-search .form-select:focus {
    box-shadow: none;
}

.hero-search .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hero-field {
    position: relative;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.hero-deal-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 7px;
    border: 1px solid #dfe7f1;
    border-radius: 15px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.hero-deal-tabs button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.hero-deal-tabs button.active,
.hero-deal-tabs button:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.hero-field:focus-within {
    background: white;
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.09);
}

.hero-field > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c8aa2;
    z-index: 2;
    font-size: 0.9rem;
}

.hero-field select:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.hero-custom-select {
    z-index: 80;
}

.hero-custom-select.open {
    z-index: 3000;
}

.hero-select-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.88rem;
    padding: 0 10px 0 32px;
    text-align: left;
}

.hero-select-trigger > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-select-trigger > i {
    color: #94a3b8;
    flex-shrink: 0;
    font-size: 0.82rem;
    transition: transform 0.18s;
}

.hero-custom-select.open .hero-select-trigger > i {
    transform: rotate(180deg);
}

.hero-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    padding: 6px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: white;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    z-index: 2000;
}

.hero-custom-select.open .hero-select-menu {
    display: grid;
    gap: 3px;
}

.hero-select-menu button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 10px;
    text-align: left;
}

.hero-select-menu button:hover,
.hero-select-menu button.active {
    color: var(--primary);
    background: var(--primary-light);
}

.hero-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.hero-quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 0.18s, transform 0.18s;
}

.hero-quick-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    transform: translateY(-1px);
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    gap: 0;
    margin-top: 18px;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.hero-showcase {
    display: none;
}

.hero-stats span {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats span:last-child {
    border-right: 0;
}

.hero-stats strong {
    color: white;
    font-weight: 900;
}

.hero-showcase {
    min-height: 390px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, rgba(204, 251, 241, 0.18), rgba(99, 102, 241, 0.2));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.hero-showcase::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    background:
        linear-gradient(115deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.02) 42%, rgba(15, 23, 42, 0.2)),
        url("../images/hero-property-types.png") center/cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-showcase-main,
.hero-mini-card,
.hero-floating-price {
    position: absolute;
    z-index: 2;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.hero-showcase-main {
    left: 44px;
    right: 44px;
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 18px;
    padding: 14px;
}

.showcase-icon,
.hero-mini-card i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-showcase-main span,
.hero-mini-card span,
.hero-floating-price span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-showcase-main strong,
.hero-mini-card strong,
.hero-floating-price strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.25;
}

.hero-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    padding: 11px 13px;
}

.hero-mini-card.card-one {
    top: 42px;
    left: 18px;
}

.hero-mini-card.card-two {
    top: 116px;
    right: 18px;
}

.hero-floating-price {
    top: 34px;
    right: 42px;
    border-radius: 16px;
    padding: 12px 15px;
}

.hero-floating-price strong {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ---- Cards ---- */
.card {
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--surface);
}

/* ---- Property Card ---- */
.property-card {
    transition: transform 0.22s, box-shadow 0.22s;
    cursor: pointer;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.property-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.home-property-card .card-img-top {
    height: 210px;
}

.home-property-card .home-reco-img {
    height: 230px;
}

.property-card .card-body {
    padding: 16px;
}

.property-card .price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.property-card .meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.property-card .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.82);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}

.property-title {
    min-height: 42px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.property-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.size-chip {
    flex-shrink: 0;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 800;
}

.badge-buy {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-sell {
    background: #dcfce7;
    color: #15803d;
}

.badge-rent {
    background: #fef3c7;
    color: #b45309;
}

/* ---- Buttons ---- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.855rem;
    transition: all 0.18s;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-sm {
    font-size: 0.78rem;
    padding: 5px 12px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* ---- Forms ---- */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 10px 14px;
    font-size: 0.875rem;
    transition: border-color 0.18s, box-shadow 0.18s;
    background-color: var(--surface);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

.form-control::placeholder {
    color: #cbd5e1;
}

.form-control::-webkit-input-placeholder {
    color: #cbd5e1;
}

textarea::placeholder {
    color: #cbd5e1;
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 6px;
}

.form-text {
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* ---- Status Badges ---- */
.status-badge {
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.status-active {
    background: #dcfce7;
    color: #15803d;
}

.status-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-sold {
    background: #ede9fe;
    color: #6d28d9;
}

/* ---- Avatar ---- */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

/* ---- Mobile Bottom Nav ---- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 1000;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 600;
    gap: 3px;
    transition: color 0.18s;
}

.mobile-bottom-nav a i {
    font-size: 1.3rem;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary);
}

/* ---- Section ---- */
.section-title {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.3px;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.home-section {
    position: relative;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.category-tile {
    min-height: 136px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.category-tile i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.15rem;
}

.category-tile span {
    font-weight: 800;
    line-height: 1.25;
}

.category-tile small {
    color: var(--text-muted);
    font-weight: 600;
}

.category-wise-section {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-property-block {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

.category-property-block:last-child {
    margin-bottom: 0;
}

.category-property-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.category-property-head > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.category-property-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 1.2rem;
}

.category-property-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 800;
}

.category-property-head p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.category-subchips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 4px;
    scrollbar-width: none;
}

.category-subchips::-webkit-scrollbar {
    display: none;
}

.category-subchips button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.category-subchips button:hover,
.category-subchips button.active {
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.35);
    background: var(--primary-light);
}

.category-property-slider {
    position: relative;
}

.category-property-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 10px;
    scrollbar-width: none;
}

.category-property-track::-webkit-scrollbar {
    display: none;
}

.category-property-slide {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 260px;
    scroll-snap-align: start;
}

.category-slider-arrow {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.category-property-slider.has-slider .category-slider-arrow {
    display: inline-flex;
}

.category-slider-prev {
    left: -10px;
}

.category-slider-next {
    right: -10px;
}

.category-load-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.category-view-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.category-count-chip,
.category-loading-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
}

.category-loading-chip {
    color: var(--primary);
    background: var(--primary-light);
}

.category-property-block.is-loading {
    opacity: 0.72;
}

.category-empty-state {
    width: 100%;
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: var(--text-muted);
    background: #f8fafc;
    font-weight: 700;
    text-align: center;
}

.property-filter-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: white;
}

.property-ajax-filter {
    position: sticky;
    top: 82px;
    z-index: 20;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.property-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e8eef6;
}

.property-filter-head strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.property-filter-head span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.property-filter-card .form-control,
.property-filter-card .form-select {
    min-height: 46px;
    border-color: #e2e8f0;
    border-radius: 12px;
    font-size: 0.86rem;
    box-shadow: none;
}

.property-filter-card .form-control:focus,
.property-filter-card .form-select:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.property-search-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.24);
}

.property-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.property-ajax-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 800;
}

.property-load-more {
    min-width: 210px;
    border-radius: 999px;
    font-weight: 800;
}

.property-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 240px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: var(--text-muted);
    background: white;
    text-align: center;
}

.property-empty-state i {
    font-size: 2.7rem;
}

.property-empty-state p {
    margin: 0;
    font-weight: 700;
}

.recommended-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.96)),
        linear-gradient(135deg, rgba(204, 251, 241, 0.65), rgba(254, 243, 199, 0.45));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ---- Property Gallery ---- */
.property-gallery img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery-thumb {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.18s, border-color 0.18s;
    border: 2px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
}

/* ---- Property Detail Page ---- */
.property-detail-page {
    background:
        linear-gradient(180deg, rgba(238, 242, 255, 0.58), rgba(248, 250, 252, 0) 320px),
        var(--bg);
}

.property-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.property-breadcrumb a {
    font-weight: 600;
}

.property-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    background: white;
}

.property-hero-card .property-gallery img {
    height: 430px;
    border-radius: 18px;
}

.property-empty-gallery {
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 18px;
}

.property-empty-gallery i {
    font-size: 4rem;
}

.gallery-overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(15, 23, 42, 0.78);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
}

.detail-chip-soft {
    background: var(--primary-light);
    color: var(--primary);
}

.property-thumb-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.property-main-card .card-body {
    padding: 24px;
}

.property-detail-title {
    margin: 0;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.18;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin: 10px 0 16px;
}

.property-price-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.property-detail-price {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.property-price-line span {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.82rem;
}

.property-share-actions {
    display: inline-flex;
    gap: 8px;
}

.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.detail-stat {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.detail-stat i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.05rem;
}

.detail-stat span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.detail-stat strong {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.25;
}

.detail-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--border);
}

.detail-section h6 {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 10px;
}

.detail-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

.location-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.location-info-grid div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.location-info-grid span,
.location-info-grid strong {
    display: block;
}

.location-info-grid span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.location-info-grid strong {
    margin-top: 5px;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.35;
}

.property-sidebar {
    position: sticky;
    top: 88px;
}

.agent-card,
.inquiry-card {
    border-radius: 18px;
}

.agent-bio {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: -4px 0 14px;
}

.inquiry-heading {
    margin-bottom: 16px;
}

.inquiry-heading h6 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 3px;
}

.inquiry-heading span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.similar-section {
    padding-bottom: 12px;
}

/* ---- Amenity Tags ---- */
.amenity-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ---- Toast ---- */
.toast-container {
    z-index: 9999;
}

/* ---- Spinner ---- */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

/* ---- Login / Auth ---- */
.auth-card {
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 32px;
}

/* ---- Footer ---- */
.site-footer {
    background:
        radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.22), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(15, 118, 110, 0.2), transparent 24%),
        #0f172a;
    padding: 34px 0 0;
    color: white;
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 42px;
}

.footer-cta h5 {
    margin: 0 0 4px;
    font-weight: 800;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.58);
    margin: 0;
    font-size: 0.86rem;
}

.footer-main {
    padding-bottom: 42px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    overflow: hidden;
}

.footer-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: white;
}

.footer-brand span {
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-about {
    max-width: 340px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.84rem;
    line-height: 1.75;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: background 0.18s, color 0.18s, transform 0.18s;
}

.footer-social a:hover {
    background: rgba(99, 102, 241, 0.4);
    color: white;
    transform: translateY(-1px);
}

.site-footer h6 {
    color: white;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.52);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.18s;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: white;
}

.footer-contact {
    display: grid;
    gap: 10px;
}

.footer-contact a,
.footer-contact div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.5;
}

.footer-contact i {
    color: rgba(255, 255, 255, 0.86);
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.76rem;
    margin: 0;
}

.footer-bottom div {
    display: flex;
    gap: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: white;
        box-shadow: var(--shadow);
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding: 56px 0 42px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 24px;
    }

    .hero-copy {
        max-width: 100%;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.8rem;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-search {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-filter-deal {
        grid-column: 1 / -1;
    }

    .hero-filter-specific,
    .hero-filter-city,
    .hero-filter-budget,
    .hero-filter-bhk,
    .hero-filter-submit {
        grid-column: auto;
        max-width: none;
    }

    .hero-quick-links,
    .hero-stats {
        justify-content: center;
    }

    .category-property-slide {
        flex-basis: calc((100% - 16px) / 2);
    }

    .hero-showcase {
        min-height: 280px;
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-showcase-main {
        left: 28px;
        right: 28px;
        bottom: 26px;
    }

    .hero-mini-card.card-one {
        top: 28px;
        left: 24px;
    }

    .hero-mini-card.card-two,
    .hero-floating-price {
        display: none;
    }

    .property-sidebar {
        position: static;
    }

    .detail-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-info-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-property-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 32px 0 24px;
    }

    .hero-section h1 {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .hero-section .lead {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 0;
    }

    .hero-kicker {
        font-size: 0.72rem;
        padding: 6px 11px;
    }

    .hero-search {
        border-radius: 16px;
        padding: 0;
        margin-top: 18px;
    }

    .hero-search-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding: 13px 14px 10px;
    }

    .hero-filter-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .hero-filter-deal,
    .hero-filter-type,
    .hero-filter-specific,
    .hero-filter-city,
    .hero-filter-budget,
    .hero-filter-bhk,
    .hero-filter-submit {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
    }

    .hero-deal-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 5px;
        border-radius: 12px;
    }

    .hero-deal-tabs button {
        min-height: 38px;
        gap: 4px;
        font-size: 0.72rem;
    }

    .hero-deal-tabs button i {
        display: none;
    }

    .hero-search .form-control,
    .hero-search .form-select,
    .hero-search .btn {
        min-height: 44px;
        font-size: 0.8rem;
    }

    .hero-select-trigger {
        min-height: 44px;
        font-size: 0.8rem;
    }

    .hero-select-menu button {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .hero-search .btn span {
        display: inline;
    }

    .hero-field {
        border-radius: 12px;
    }

    .hero-field > i {
        left: 11px;
        font-size: 0.85rem;
    }

    .hero-search .form-control,
    .hero-search .form-select {
        padding-left: 30px;
    }

    .hero-showcase {
        min-height: 210px;
        border-radius: 20px;
    }

    .hero-showcase::before {
        inset: 10px;
        border-radius: 16px;
    }

    .hero-showcase-main {
        left: 18px;
        right: 18px;
        bottom: 16px;
        padding: 10px;
        border-radius: 14px;
    }

    .hero-showcase-main strong {
        font-size: 0.82rem;
    }

    .showcase-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .hero-mini-card.card-one {
        display: none;
    }

    .hero-quick-links {
        gap: 8px;
        margin-top: 12px;
    }

    .hero-quick-links a {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .hero-stats {
        display: inline-flex;
        max-width: 100%;
        margin-top: 14px;
        border-radius: 14px;
    }

    .hero-stats span {
        padding: 8px 10px;
        font-size: 0.66rem;
        white-space: nowrap;
    }

    .hero-stats strong {
        font-size: 0.72rem;
    }

    .property-card .card-img-top {
        height: 175px;
    }

    .property-ajax-filter {
        position: static;
        border-radius: 14px;
        padding: 12px !important;
    }

    .property-filter-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .property-filter-head .btn {
        width: 100%;
        justify-content: center;
    }

    .property-search-btn span {
        display: inline;
    }

    .property-result-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .property-load-more {
        width: 100%;
    }

    .category-property-block {
        padding: 14px;
        border-radius: 14px;
    }

    .category-property-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .category-property-head h3 {
        font-size: 0.98rem;
    }

    .category-property-head p {
        font-size: 0.76rem;
    }

    .category-subchips {
        margin-right: -14px;
        margin-left: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .category-property-track {
        gap: 10px;
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .category-property-slide {
        flex-basis: min(82vw, 292px);
        min-width: min(82vw, 292px);
    }

    .category-slider-arrow {
        display: none;
    }

    .category-load-row {
        padding-top: 0;
    }

    .property-hero-card .property-gallery img,
    .property-empty-gallery {
        height: 270px;
    }

    .gallery-overlay {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .detail-chip {
        padding: 5px 9px;
        font-size: 0.66rem;
    }

    .property-main-card .card-body {
        padding: 18px;
    }

    .property-detail-title {
        font-size: 1.55rem;
    }

    .property-detail-price {
        font-size: 1.55rem;
    }

    .property-share-actions {
        width: 100%;
    }

    .property-share-actions .btn:last-child {
        flex: 1;
    }

    .detail-stats-grid {
        gap: 9px;
    }

    .detail-stat {
        min-height: 104px;
        padding: 12px;
    }

    .detail-stat strong {
        font-size: 0.82rem;
    }

    .property-thumb-row {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .gallery-thumb {
        width: 66px;
        height: 52px;
        flex: 0 0 auto;
    }

    .home-property-card .card-img-top,
    .home-property-card .home-reco-img {
        height: 205px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-heading {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .section-heading .btn {
        white-space: nowrap;
    }

    .category-tile {
        min-height: 122px;
        padding: 14px;
    }

    .property-title {
        min-height: auto;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .site-footer {
        padding-top: 24px;
    }

    .footer-cta {
        padding: 18px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
