/* ═══════════════════════════════════════
   ThinhLand — Premium Design System
   State-of-the-Art Real Estate Interface
   ═══════════════════════════════════════ */

/* ═══ Typography ═══ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ═══ CSS Variables ═══ */
:root {
    --font: 'Plus Jakarta Sans', sans-serif;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-muted: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-glass: rgba(255,255,255,0.72);
    --bg-glass-dark: rgba(15,23,42,0.65);

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;

    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-light: #eef2ff;
    --accent: #0ea5e9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --gradient-hero: linear-gradient(180deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 60%, rgba(15,23,42,0.9) 100%);
    --gradient-brand: linear-gradient(135deg, #4f46e5, #0ea5e9);
    --gradient-surface: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;

    --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-premium: 0 10px 40px -10px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-brand: 0 10px 30px -10px rgba(79,70,229,0.4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-blue: 0 10px 30px -10px rgba(37,99,235,0.4);

    --blue: #2563eb;
    --blue-50: rgba(37,99,235,0.06);
    --blue-light: rgba(37,99,235,0.1);
    --green: #059669;
    --red: #ef4444;
    --red-light: #fef2f2;
    --yellow: #f59e0b;
    --yellow-light: rgba(245,158,11,0.1);

    --gradient-blue: linear-gradient(135deg, #2563eb, #0ea5e9);
    --gradient-cta: linear-gradient(135deg, #059669, #10b981);

    --radius: 16px;
    --transition-slow: cubic-bezier(0.4, 0, 0.2, 1) 0.35s;

    --header-h: 80px;
    --max-w: 1400px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* ═══ Reset & Base ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ HEADER ═══ */
.site-header {
    position: sticky; top: 0; z-index: 200;
    height: var(--header-h);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
}
.header-brand a { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 44px; height: 44px;
    background: var(--gradient-brand);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px; font-weight: 800;
    box-shadow: var(--shadow-brand);
}
.brand-name { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.brand-name span { color: var(--brand); }

.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 24px; color: var(--text); cursor: pointer; }

.header-nav {
    display: flex; align-items: center; gap: 4px;
    background: rgba(15, 23, 42, 0.03); padding: 5px; border-radius: var(--radius-full);
}
.header-nav a {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--text-secondary);
    padding: 8px 20px; border-radius: var(--radius-full);
    transition: var(--transition);
}
.header-nav a i { font-size: 14px; opacity: 0.6; transition: var(--transition); }
.header-nav a:hover { color: var(--text); background: rgba(15, 23, 42, 0.04); }
.header-nav a:hover i { opacity: 0.9; }
.header-nav a.active { background: white; color: var(--brand); box-shadow: var(--shadow-sm); }
.header-nav a.active i { color: var(--brand); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-hotline {
    font-size: 14px; font-weight: 700; color: var(--brand);
    padding: 8px 16px; background: var(--brand-light); border-radius: var(--radius-full);
}

.btn-header-login {
    padding: 10px 24px; border-radius: var(--radius-full);
    background: var(--gradient-brand); color: white;
    font-size: 14px; font-weight: 700; border: none;
    transition: var(--transition);
}
.btn-header-login:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }

/* ═══ HERO SECTION ═══ */
.hero {
    min-height: 600px;
    background: var(--gradient-hero), url('../images/hero_premium.png') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    padding: 100px 0; position: relative;
}
.hero-content { max-width: 900px; width: 100%; padding: 0 40px; text-align: center; color: white; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; margin-bottom: 24px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full); backdrop-filter: blur(10px);
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.hero h1 {
    font-size: 64px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px;
}
.hero h1 span {
    background: linear-gradient(to right, #818cf8, #38bdf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 48px;
}

/* Glass Search Bar */
.hero-search {
    background: var(--bg-glass-dark);
    backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full); padding: 8px;
    display: flex; gap: 4px; max-width: 840px; margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.search-item {
    flex: 1; display: flex; align-items: center; padding: 0 20px;
    gap: 12px; min-width: 0;
}
.search-item i { color: rgba(255,255,255,0.5); font-size: 16px; }
.hero-search select, .hero-search input {
    background: transparent; border: none; color: white;
    padding: 14px 0; font-size: 15px; font-weight: 500; outline: none;
    font-family: var(--font); width: 100%;
}
.hero-search select option { color: #000; }
.hero-search .search-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); align-self: center; }

.hero-search-btn {
    background: white; color: var(--bg-dark);
    padding: 0 32px; border-radius: var(--radius-full);
    border: none; font-weight: 800; font-size: 15px;
    transition: var(--transition); cursor: pointer;
}
.hero-search-btn:hover { background: var(--brand); color: white; transform: scale(1.05); }

/* Hero Stats */
.hero-stats {
    display: flex; justify-content: center; gap: 60px; margin-top: 60px;
}
.hero-stat-value { font-size: 32px; font-weight: 800; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; font-weight: 600; }

/* ═══ PROPERTY CARDS ═══ */
.property-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px; margin-top: 40px;
}
.property-card {
    background: white; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); transition: var(--transition);
    height: 100%; display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-premium); border-color: var(--brand); }

/* ═══ KPI BAR ═══ */
.kpi-bar {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.kpi-bar::-webkit-scrollbar { display: none; }

.kpi-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    white-space: nowrap;
    font-size: 13px;
}

.kpi-chip i { color: var(--blue); font-size: 14px; }
.kpi-chip strong { font-weight: 700; color: var(--text); }

/* ═══ MAIN LAYOUT ═══ */
.main-layout {
    display: flex;
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ═══ FILTER SIDEBAR ═══ */
.filter-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.filter-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

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

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i { color: var(--blue); font-size: 14px; }

.filter-clear {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
}

.filter-clear:hover { color: var(--red); }

.filter-group { margin-bottom: 18px; }

.filter-group:last-child { margin-bottom: 0; }

.filter-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.filter-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    background-color: white;
}

.filter-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: all var(--transition);
}

.filter-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    background-color: white;
}

.filter-input::placeholder { color: var(--text-muted); }

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range .filter-input { flex: 1; }
.filter-range-divider {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-tag:hover {
    border-color: var(--blue);
    background: var(--blue-50);
    color: var(--blue);
}

.filter-tag.active {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 600;
}

.filter-tag i { font-size: 10px; }

/* Smart Search */
.smart-search-wrap {
    position: relative;
}
.smart-search-input {
    width: 100%;
    box-sizing: border-box;
}
.smart-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: white;
    border: 1.5px solid var(--blue);
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.smart-search-wrap.open .smart-search-dropdown { display: block; }
.smart-search-item {
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s;
}
.smart-search-item:hover, .smart-search-item.highlighted {
    background: var(--blue-50, #eff6ff);
    color: var(--blue);
}
.smart-search-item.selected {
    background: var(--blue-light, #dbeafe);
    font-weight: 600;
    color: var(--blue);
}
.smart-search-empty {
    padding: 12px 14px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}
.smart-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    line-height: 1;
}
.smart-search-clear:hover { color: var(--danger, #ef4444); }

/* Area Quick Pick Buttons */
.area-pick-btn {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 20px;
    background: white;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    transition: all 0.15s;
}
.area-pick-btn:hover {
    border-color: var(--blue, #3b82f6);
    background: var(--blue-50, #eff6ff);
    color: var(--blue, #3b82f6);
}
.area-pick-btn.active {
    border-color: var(--blue, #3b82f6);
    background: var(--blue, #3b82f6);
    color: white;
}

/* ═══ Utility ═══ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }
.mb-24 { margin-bottom: 24px; }

/* ═══ MAIN LAYOUT ═══ */
.main-layout {
    display: flex; gap: 40px;
    max-width: var(--max-w); margin: 0 auto; padding: 40px;
}

/* ═══ FILTER SIDEBAR ═══ */
.filter-sidebar {
    width: 320px; flex-shrink: 0;
    position: sticky; top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto; scrollbar-width: none;
}
.filter-sidebar::-webkit-scrollbar { display: none; }

.filter-toggle-mobile {
    display: none; width: 100%; padding: 14px; background: white;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 15px; font-weight: 700; color: var(--text);
    cursor: pointer; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 16px; box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.filter-toggle-mobile:hover { border-color: var(--brand); color: var(--brand); }

.filter-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-premium);
}
.filter-header { display: flex; items-center; justify-between; margin-bottom: 24px; }
.filter-title { font-size: 16px; font-weight: 800; display: flex; items-center; gap: 8px; }
.filter-clear { font-size: 12px; font-weight: 700; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.filter-clear:hover { color: var(--danger); }

.filter-group { margin-bottom: 20px; }
.filter-label { display: block; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.filter-select, .filter-input {
    width: 100%; padding: 12px 16px; background: var(--bg-muted);
    border: 1px solid var(--border); border-radius: 12px;
    font-size: 14px; outline: none; transition: var(--transition);
}
.filter-select:focus, .filter-input:focus { border-color: var(--brand); background: white; }

.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
    padding: 6px 14px; border-radius: var(--radius-full);
    border: 1px solid var(--border); background: white;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* ═══ CONTENT AREA ═══ */
.content-area { flex: 1; min-width: 0; }
.content-header { display: flex; items-center; justify-between; margin-bottom: 32px; }
.content-title h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.content-count { font-size: 14px; color: var(--text-muted); }
.content-count strong { color: var(--brand); }

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid var(--border);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.view-toggle-btn.active {
    background: white;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.view-toggle-btn:hover:not(.active) { color: var(--text); }

/* Sort */
.sort-select {
    padding: 7px 32px 7px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* ═══ PROPERTY CARDS (Grid View) ═══ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.property-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-light);
}

.property-card-link { display: block; }

/* Card Image */
.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-muted);
}

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

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

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

.card-badge.owner {
    background: rgba(245,158,11,0.9);
    color: white;
}

.card-badge.featured {
    background: rgba(239,68,68,0.9);
    color: white;
}

.card-badge.type {
    background: rgba(255,255,255,0.9);
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.06);
}

.card-img-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Body */
.card-body { padding: 16px; }

.card-project {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.card-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.card-meta-item i { font-size: 14px; color: var(--brand); opacity: 0.8; }
.card-meta-item strong { color: var(--text); font-weight: 700; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-tag {
    font-size: 11px; font-weight: 600; padding: 4px 10px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    color: var(--text-secondary); background: var(--bg-muted);
}

/* Card Footer */
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.card-price { font-size: 20px; font-weight: 800; color: var(--danger); letter-spacing: -0.5px; }
.card-price.locked {
    font-size: 13px; font-weight: 700; color: var(--brand);
    background: var(--brand-light); padding: 6px 16px;
    border-radius: var(--radius-full); cursor: pointer;
    transition: var(--transition);
}
.card-price.locked:hover { background: var(--brand); color: white; }
.card-price-unit { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 2px; }

.card-agent { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.card-agent-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--gradient-brand); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}

/* ═══ TABLE VIEW ═══ */
.property-table-wrap {
    background: white; border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.property-table { width: 100%; border-collapse: collapse; }
.property-table thead { background: var(--bg-muted); }
.property-table th {
    padding: 16px 20px; font-size: 11px; font-weight: 800;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; text-align: left;
    border-bottom: 1px solid var(--border);
}
.property-table td { padding: 16px 20px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }
.property-table tbody tr { transition: var(--transition); cursor: pointer; }
.property-table tbody tr:hover { background: var(--brand-light); }

.table-unit-code { font-weight: 800; color: var(--brand); }
.table-status {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.table-status.available { background: #d1fae5; color: #065f46; }
.table-status.sold { background: #fee2e2; color: #991b1b; }

/* ═══ PAGINATION ═══ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pagination-btn {
    min-width: 44px; height: 44px; padding: 0 16px;
    background: white; border: 1px solid var(--border);
    border-radius: 12px; font-weight: 700; font-size: 14px;
    color: var(--text-secondary); transition: var(--transition);
}
.pagination-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.pagination-btn.active { background: var(--brand); color: white; border-color: var(--brand); }

/* ═══ LEAD GATE MODAL ═══ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.8);
    backdrop-filter: blur(8px); z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: white; border-radius: var(--radius-lg);
    width: 100%; max-width: 460px; padding: 40px;
    position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: var(--bg-muted); border: none; width: 36px; height: 36px;
    border-radius: 50%; color: var(--text-muted); transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: white; transform: rotate(90deg); }

.modal-icon {
    width: 64px; height: 64px; background: var(--brand-light);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--brand); margin: 0 auto 24px;
}
.modal h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; letter-spacing: -0.5px; }
.modal-sub { font-size: 15px; color: var(--text-muted); text-align: center; margin-bottom: 32px; }

.modal-form .field { margin-bottom: 20px; }
.modal-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); }
.modal-form input {
    width: 100%; padding: 14px 18px; background: var(--bg-muted);
    border: 2px solid transparent; border-radius: 12px; font-size: 15px;
    transition: var(--transition);
}
.modal-form input:focus { border-color: var(--brand); background: white; box-shadow: var(--shadow-brand); }
.modal-submit {
    width: 100%; padding: 16px; background: var(--gradient-brand);
    color: white; border: none; border-radius: 12px; font-weight: 800;
    font-size: 16px; margin-top: 8px; transition: var(--transition);
}
.modal-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }

.modal-submit:hover {
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

.modal-error {
    padding: 10px 14px;
    background: var(--red-light);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--red);
    margin-bottom: 12px;
    display: none;
}

.modal-error.show { display: block; }

/* ═══ DETAIL PAGE ═══ */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    padding: 20px 0;
    transition: gap var(--transition);
}

.detail-back:hover { gap: 10px; }

/* Gallery */
.detail-gallery {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 4px;
    padding: 4px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: var(--radius-sm);
}

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

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item:first-child {
    grid-row: 1 / 3;
}

.gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.gallery-no-image {
    grid-column: 1 / -1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: 15px;
}

/* Detail Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.detail-main { min-width: 0; }

/* Detail Cards */
.detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.detail-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.detail-card-title i { color: var(--blue); font-size: 14px; }

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 14px;
    flex-shrink: 0;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 1px;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* Detail Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.specs-table td:first-child {
    color: var(--text-muted);
    width: 40%;
    font-weight: 500;
}

.specs-table td:last-child {
    color: var(--text);
    font-weight: 600;
}

/* Tags Display */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-secondary);
}

.detail-tag i { font-size: 10px; }

/* Price Sticky Card */
.price-card {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.price-main {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.price-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--red);
    line-height: 1.2;
}

.price-per-m2 {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.price-locked-msg {
    text-align: center;
    padding: 20px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.price-locked-msg i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.price-locked-msg p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* CTA Buttons */
.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 10px;
}

.cta-btn:last-child { margin-bottom: 0; }

.cta-btn.primary {
    background: var(--gradient-blue);
    color: white;
}

.cta-btn.primary:hover {
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}

.cta-btn.zalo {
    background: #0068ff;
    color: white;
}

.cta-btn.zalo:hover {
    background: #0054cc;
    transform: translateY(-1px);
}

.cta-btn.outline {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.cta-btn.outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-50);
}

.cta-btn.register {
    background: var(--gradient-cta);
    color: white;
}

.cta-btn.register:hover {
    box-shadow: 0 8px 30px rgba(5,150,105,0.25);
    transform: translateY(-1px);
}

/* Agent Card */
.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    margin-top: 16px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.agent-name { font-size: 13px; font-weight: 700; color: var(--text); }
.agent-role { font-size: 11px; color: var(--text-muted); }

/* Similar Properties */
.similar-section { margin-top: 40px; }

.similar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.similar-title i { color: var(--blue); }

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Google Drive Embed */
.drive-embed {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--radius-md);
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand-name {
    color: white;
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
}

.footer-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-contact-item i {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 13px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ═══ FLOATING CTA ═══ */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}

.floating-btn.zalo { background: #ffffff; border: 1.5px solid #e2e8f0; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.floating-btn.phone { background: var(--green); animation: pulse-ring 2s infinite; }

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(5,150,105,0.4); }
    70% { box-shadow: 0 0 0 14px rgba(5,150,105,0); }
    100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

/* ═══ LIGHTBOX ═══ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
}

/* ═══ LOADING ═══ */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248,250,252,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}

.loading-overlay.active { display: flex; }

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ═══ RESPONSIVE ═══ */

/* --- Tablet --- */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .price-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }

    .gallery-item:first-child {
        grid-row: auto;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-layout { flex-direction: column; padding: 24px 20px; }
    .filter-sidebar { width: 100%; position: static; max-height: none; }
    .filter-card { display: none; }
    .filter-sidebar.expanded .filter-card { display: block; }
    .filter-toggle-mobile { display: flex; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    /* Mobile nav: slide-down overlay */
    .header-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 12px 24px;
        gap: 0;
        z-index: 100;
        border-radius: 0;
    }

    .header-nav.show {
        display: flex;
    }

    .header-nav a {
        padding: 14px 0; border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 15px;
    }
    .header-nav a:hover, .header-nav a.active { background: transparent; box-shadow: none; }
    .header-nav a:last-child { border-bottom: none; }

    .mobile-menu-btn { display: block; }
    .header-hotline { display: none; }

    /* Optimize header brand and buttons for very small screens */
    .header-inner { padding: 0 16px; }
    .header-brand a { gap: 6px; }
    .brand-logo { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
    .brand-name { font-size: 21px; }
    
    .header-actions { gap: 6px; }
    .btn-header-login {
        padding: 8px 12px !important;
        font-size: 12px;
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    /* The logout button uses inline styles for padding, need to override specifically */
    a[href*="logout.php"] {
        padding: 8px 12px !important;
        margin-left: 2px !important;
    }

    /* Hero */
    .hero { padding: 36px 0 48px; }
    .hero h1 { font-size: 28px; }
    .hero-sub { font-size: 14px; }

    .hero-search {
        flex-direction: column;
        gap: 0;
        border-radius: var(--radius-md);
    }

    .hero-search select,
    .hero-search input {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-search .search-divider { display: none; }

    .hero-search-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-value { font-size: 22px; }

    /* Main layout: stack */
    .main-layout {
        flex-direction: column;
        padding: 0 16px 40px;
    }

    /* Filter sidebar: collapsible on mobile */
    .filter-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .filter-toggle-mobile {
        display: block;
        width: 100%;
        padding: 14px;
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        font-family: var(--font);
        font-size: 14px;
        font-weight: 600;
        color: var(--blue);
        cursor: pointer;
        text-align: center;
        margin-bottom: 8px;
    }

    .filter-toggle-mobile i { margin-right: 6px; }

    .filter-card {
        display: none;
    }

    .filter-sidebar.expanded .filter-card {
        display: block;
    }

    .filter-sidebar.expanded .filter-toggle-mobile {
        background: var(--blue-light);
        border-color: var(--blue);
    }

    /* Property grid: 1 col mobile */
    .property-grid {
        grid-template-columns: 1fr;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Table views: horizontal scroll */
    .property-table-wrap,
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-sm);
        position: relative;
    }

    .property-table-wrap table,
    .table-wrap table {
        min-width: 700px;
    }

    /* Scroll gradient indicator */
    .property-table-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(248,250,252,0.9));
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s;
    }

    /* Gallery: single image on mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 240px;
    }

    .gallery-item:not(:first-child) { display: none; }
    .gallery-item:first-child { grid-row: auto; }

    /* Detail page */
    .detail-back {
        font-size: 13px;
        padding: 12px 0;
    }

    .detail-layout {
        gap: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .specs-table td { font-size: 13px; padding: 8px 12px; }

    /* Price card: full width on mobile */
    .price-card {
        border-radius: var(--radius-md);
    }

    /* Similar section */
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Floating CTA: above content */
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .floating-btn { width: 46px; height: 46px; font-size: 18px; }

    /* Modal: better mobile modal */
    .modal-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .modal {
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    /* Lightbox: touch-friendly */
    .lightbox-nav { width: 40px; height: 40px; font-size: 16px; }
    .lightbox-nav.prev { left: 8px; }
    .lightbox-nav.next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 18px; }
}

/* --- Small mobile --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

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

    .hero h1 { font-size: 24px; }
    .hero-stats { gap: 16px; }
    .hero-stat-value { font-size: 20px; }

    .card-body { padding: 12px; }
    .card-title { font-size: 14px; }
}



/* NEED CHIPS - Lead gate interest collection */
.need-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.need-chip { padding:6px 14px; border:1.5px solid #e2e8f0; border-radius:20px; background:#fff; font-size:13px; font-weight:500; color:#64748b; cursor:pointer; transition:all 0.18s ease; font-family:inherit; white-space:nowrap; }
.need-chip:hover { border-color:#2563eb; color:#2563eb; background:rgba(37,99,235,0.06); }
.need-chip.selected { border-color:#2563eb; background:#2563eb; color:white; font-weight:600; }
.modal-form .field { margin-bottom:14px; }
.modal-form .field label { font-size:12px; font-weight:600; color:#64748b; text-transform:uppercase; letter-spacing:0.4px; margin-bottom:6px; display:block; }

/* ==========================================================================
   MOBILE BOTTOM NAV (Logged in users on public page)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        height: 65px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        z-index: 1000;
        padding: 0 10px;
        justify-content: space-between;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        gap: 4px;
        height: 100%;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .mobile-nav-item i {
        font-size: 20px;
        transition: 0.2s;
    }
    .mobile-nav-item.active {
        color: var(--accent-blue);
    }
    .mobile-nav-item.active i {
        transform: translateY(-2px);
    }
    
    .mobile-nav-center {
        flex: 1;
        display: flex;
        justify-content: center;
        position: relative;
    }
    .mobile-center-btn {
        position: absolute;
        bottom: 15px; 
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, var(--blue), #0ea5e9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        box-shadow: 0 8px 20px rgba(37,99,235,0.3);
        border: 4px solid #f8fafc;
        transition: transform 0.2s;
    }
    .mobile-center-btn:active {
        transform: scale(0.95);
    }

    body {
        padding-bottom: 80px; 
    }
}
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
