:root {
    --primary: #0046CC;
    --bg-body: #FFFFFF;
    --text-main: #0F172A;
    --text-light: #64748B;
    --border: #E2E8F0;
    --radius: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
body { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-body); color: var(--text-main); height: 100vh; overflow-y: scroll; padding-bottom: 80px; }
.hidden { display: none !important; }

#app-container { max-width: 480px; margin: 0 auto; padding: 0 16px; position: relative; }

/* HEADER */
header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 10px; background: var(--bg-body); position: sticky; top: 0; z-index: 100; }
.user-info { display: flex; align-items: center; gap: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background-size: cover; border: 1px solid var(--border); }
.greeting { font-size: 11px; color: var(--text-light); }
.username { font-size: 14px; font-weight: 700; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-main); cursor: pointer; }

/* SEARCH */
.search-bar { background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.search-bar span { font-size: 13px; color: #94A3B8; flex: 1; }
.search-bar i { color: var(--text-light); }
.mic-icon { color: var(--primary); font-size: 18px; }

/* QUICK ACTIONS */
.action-row { display: flex; gap: 10px; margin-bottom: 16px; }
.act-btn { flex: 1; padding: 12px; border-radius: var(--radius); border: none; background: var(--primary); color: white; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,70,204,0.2); }
.act-btn.outline { background: #E0F2FE; color: var(--primary); box-shadow: none; }

/* STICKY CHIPS */
.sticky-header { position: sticky; top: 62px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); z-index: 99; padding: 10px 0; margin: 0 -16px; padding-left: 16px; border-bottom: 1px solid transparent; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-right: 16px; }
.nav-chip { padding: 8px 18px; border-radius: 24px; border: 1px solid var(--border); background: white; font-size: 13px; font-weight: 600; color: var(--text-light); white-space: nowrap; cursor: pointer; transition: 0.2s; }
.nav-chip.active { background: var(--text-main); color: white; border-color: var(--text-main); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* FEED */
.listings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 8px; }
.property-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; transition: transform 0.1s; }
.property-card:active { transform: scale(0.98); }
.prop-image { height: 130px; background-color: #eee; background-size: cover; background-position: center; position: relative; }

/* BADGES */
.badge-group { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.badge { font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; color: white; text-transform: uppercase; letter-spacing: 0.5px; }
.badge.type { background: rgba(0,0,0,0.7); backdrop-filter: blur(2px); }
.badge.sponsored { background: #F59E0B; color: black; }
.badge.pin { background: var(--primary); }

.fav-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: rgba(255,255,255,0.95); border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; color: #94A3B8; cursor: pointer; font-size: 16px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.prop-details { padding: 10px; }
.prop-price { font-size: 16px; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.prop-loc { font-size: 11px; color: var(--text-light); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-specs { margin-top: 8px; display: flex; gap: 8px; font-size: 10px; color: var(--text-light); font-weight: 600; }
.prop-specs span { display: flex; align-items: center; gap: 3px; background: #F8FAFC; padding: 2px 6px; border-radius: 4px; }

/* HUD */
.voice-hud { position: fixed; bottom: 85px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 101; pointer-events: none; }
.mic-button { width: 64px; height: 64px; border-radius: 50%; background: var(--text-main); color: white; border: none; font-size: 28px; pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; transition: 0.2s; cursor: pointer; }
.mic-button.active { background: var(--primary); transform: scale(1.1); box-shadow: 0 10px 40px rgba(0,70,204,0.4); }
.status-pill { background: white; padding: 6px 14px; border-radius: 20px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.pulse-dot { width: 6px; height: 6px; background: #22C55E; border-radius: 50%; animation: pulse 1.5s infinite; }

/* NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 70px; background: white; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--border); z-index: 100; padding-bottom: 10px; }
.nav-item { background: none; border: none; font-size: 26px; color: #CBD5E1; cursor: pointer; padding: 10px; }
.nav-item.active { color: var(--text-main); }

/* AUTH MODAL */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-content { background: white; padding: 24px; border-radius: 24px; width: 85%; max-width: 340px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { margin: 0; font-size: 18px; font-weight: 800; }
.auth-tabs { display: flex; background: #F1F5F9; padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 8px; transition: 0.2s; }
.auth-tab.active { background: white; color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.input-group input { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; font-size: 14px; background: #F8FAFC; outline: none; }
.input-group input:focus { border-color: var(--primary); background: white; }
.btn-primary { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: 0.2s; }
.btn-primary:active { transform: scale(0.98); }

@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }



/* Add to public/assets/css/style.css */

/* Profile Form Elements */
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: "▼"; font-size: 10px; color: #64748B;
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    pointer-events: none;
}
select {
    width: 100%; padding: 12px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 14px; background: #F8FAFC;
    appearance: none; outline: none; margin-bottom: 12px;
}
.btn-secondary {
    width: 100%; padding: 12px; border-radius: 10px; border: none;
    font-weight: 600; cursor: pointer; font-size: 14px;
    background: #FEF2F2; color: #EF4444; transition: 0.2s;
}
.btn-secondary:active { background: #FEE2E2; }

/* Ensure modal is on top */
#profile-modal { z-index: 201; }


/* Add to style.css */

/* Custom Modal Tweaks */
.modal-header h2 { font-size: 20px; font-weight: 800; margin: 0; color: var(--text-main); }
.select-wrapper { position: relative; }
.select-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #64748B; }

/* Form Elements */
select {
    width: 100%; padding: 12px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 14px; background: #F8FAFC;
    appearance: none; outline: none; margin-bottom: 12px; color: var(--text-main);
}

.input-group-row { margin-bottom: 12px; }

/* GPS Switch */
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin-bottom: 15px; border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9; font-weight: 600; font-size: 14px; }

.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #CBD5E1; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }

/* Text Button (Logout) */
.btn-text { background: none; border: none; font-weight: 600; cursor: pointer; width: 100%; text-align: center; padding: 10px; }

/* Update this section in style.css */

.act-btn { 
    flex: 1; 
    padding: 12px; 
    border-radius: var(--radius); 
    border: none; 
    background: var(--primary); /* Solid Blue by default */
    color: white; 
    font-weight: 600; 
    font-size: 13px; 
    cursor: pointer; 
    box-shadow: 0 2px 5px rgba(0,70,204,0.2); 
    transition: 0.2s;
}

.act-btn.outline { 
    background: #F1F5F9; /* Light Grey for inactive */
    color: var(--text-main); 
    box-shadow: none; 
}

/* Ensure Active state overrides outline if both classes somehow persist */
.act-btn.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 5px rgba(0,70,204,0.2);
}