@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --bg:       #f8f6f3;
  --bg2:      #ffffff;
  --bg3:      #f1ede8;
  --bg4:      #ebe5dc;
  --border:   #e4ddd6;
  --border2:  #cfc8be;
  --text:     #1c1814;
  --text2:    #3e3830;
  --muted:    #7e7468;
  --gold:     #b5803e;
  --gold2:    #d09a58;
  --gold3:    #f2c87a;
  --gold-bg:  rgba(181,128,62,0.09);
  --gold-bg2: rgba(181,128,62,0.16);
  --green:    #2d7a4f;
  --green-bg: rgba(45,122,79,0.08);
  --red:      #c0392b;
  --red-bg:   rgba(192,57,43,0.08);
  --amber:    #c47c1a;
  --amber-bg: rgba(196,124,26,0.10);
  --blue:     #2563a8;
  --blue-bg:  rgba(37,99,168,0.08);
  --teal:     #0d7377;
  --teal-bg:  rgba(13,115,119,0.08);
  --shadow:   0 2px 16px rgba(0,0,0,0.07);
  --shadow2:  0 8px 40px rgba(0,0,0,0.11);
  --shadow3:  0 20px 60px rgba(0,0,0,0.14);
  --radius:   10px;
  --radius2:  14px;
}

html { background-color: #f8f6f3; color-scheme: light; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; letter-spacing: -0.4px; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: 'DM Sans', sans-serif; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold2); }

/* PUBLIC NAV */
.pub-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.pub-nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pub-nav-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 18px;
  color: #fff; flex-shrink: 0;
}
.pub-nav-title { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.pub-nav-title span { color: var(--gold); }
.pub-nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.pub-nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s; padding: 6px 14px; border-radius: 7px; }
.pub-nav-links a:hover { color: var(--gold); background: var(--gold-bg); }
.pub-nav-links a.nav-active { color: var(--gold); font-weight: 600; }
.pub-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mob-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; border-radius: 8px; }
.mob-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mob-nav-drawer {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px; z-index: 199; flex-direction: column; gap: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.mob-nav-drawer.open { display: flex; }
.mob-nav-drawer a { padding: 12px 16px; font-size: 0.9rem; font-weight: 500; color: var(--text2); border-radius: 9px; transition: all 0.15s; }
.mob-nav-drawer a:hover { background: var(--bg3); color: var(--gold); }
.mob-nav-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 10px; }
.mob-nav-actions .btn { flex: 1; justify-content: center; }

/* DASHBOARD NAV */
.nav {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border); padding: 0 1.75rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 36px; height: 36px; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; color: #fff; font-size: 16px; flex-shrink: 0; }
.nav-title { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 900; color: var(--text); letter-spacing: -0.4px; }
.nav-title span { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-btn { padding: 7px 16px; border-radius: 8px; border: 1.5px solid var(--border2); background: transparent; color: var(--text2); cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.84rem; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.nav-btn.primary { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
.nav-btn.primary:hover { background: var(--gold2); border-color: var(--gold2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; border: 2px solid var(--border); flex-shrink: 0; cursor: pointer; }
.role-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.rb-superadmin { background: var(--red-bg); color: var(--red); }
.rb-company    { background: var(--gold-bg2); color: var(--gold); }
.rb-staff      { background: var(--blue-bg); color: var(--blue); }
.rb-seller     { background: var(--green-bg); color: var(--green); }
.rb-buyer      { background: var(--blue-bg); color: var(--blue); }

/* HERO SLIDER */
.hero-slider { position: relative; overflow: hidden; height: clamp(380px, 64vh, 700px); background: #1a1714; width: 100%; }
.slider-track { display: flex; height: 100%; transition: transform 0.75s cubic-bezier(0.77,0,0.18,1); will-change: transform; }
.slide { min-width: 100%; height: 100%; position: relative; flex-shrink: 0; display: flex; align-items: flex-end; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 9s ease-out; }
.slide.active .slide-bg { transform: scale(1.07); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 55%, transparent 100%); }
.slide-content { position: relative; z-index: 2; padding: 36px 6% 56px; max-width: 700px; width: 100%; }
.slide-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: #fff; padding: 6px 16px; border-radius: 99px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 14px; }
.slide-content h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 3.4vw, 2.4rem); color: #fff; margin-bottom: 10px; line-height: 1.2; font-weight: 800; }
.slide-loc { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 10px; }
.slide-price { font-family: 'Montserrat', sans-serif; font-size: clamp(1.3rem, 2.5vw, 1.9rem); color: var(--gold3); font-weight: 800; margin-bottom: 22px; }
.slide-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); color: #fff; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.22s; user-select: none; }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover { background: var(--gold); border-color: var(--gold); }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s; border: none; }
.slider-dot.active { background: var(--gold); width: 28px; }

/* HERO SEARCH BAR */
.hero-search-bar { background: #fff; box-shadow: 0 8px 48px rgba(0,0,0,0.16); border-radius: 14px; padding: 8px 8px 8px 22px; display: flex; align-items: center; gap: 10px; max-width: 880px; margin: -34px auto 0; position: relative; z-index: 20; border: 1px solid var(--border); }
.hsb-field { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.hsb-field input { flex: 1; border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); background: transparent; min-width: 0; }
.hsb-field input::placeholder { color: var(--muted); }
.hsb-field select { border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 0.87rem; color: var(--muted); background: transparent; padding: 4px 6px; cursor: pointer; flex-shrink: 0; }
.hsb-sep { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }
.hsb-btn { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #fff; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 700; padding: 0 28px; height: 48px; border-radius: 10px; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.hsb-btn:hover { background: linear-gradient(135deg, var(--gold2), var(--gold)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(181,128,62,0.35); }

/* CATEGORY STRIP — buttons, NO icons */
.cat-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 5%; overflow-x: auto; }
.cat-strip::-webkit-scrollbar { height: 0; }
.cat-strip-inner { display: flex; gap: 8px; align-items: center; max-width: 1240px; margin: 0 auto; flex-wrap: wrap; }
.cat-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 8px;
  border: 1.5px solid var(--border2);
  font-size: 0.81rem; font-weight: 600; color: var(--text2);
  background: var(--bg); white-space: nowrap; transition: all 0.2s;
  text-decoration: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  line-height: 1;
}
.cat-pill > span { display: none !important; }
.cat-pill:hover { border-color: var(--gold); color: #fff; background: var(--gold); transform: translateY(-1px); box-shadow: 0 2px 10px rgba(181,128,62,0.25); }
.cat-pill.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.cat-pill.maint { border-color: rgba(13,115,119,0.35); color: var(--teal); background: var(--teal-bg); }
.cat-pill.maint:hover { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 2px 10px rgba(13,115,119,0.25); }

/* STATS STRIP */
.stats-strip { background: var(--bg3); border-bottom: 1px solid var(--border); padding: 20px 5%; }
.stats-strip-inner { display: flex; align-items: center; gap: 0; max-width: 1240px; margin: 0 auto; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 12px; padding: 8px 32px; }
.stat-item:first-child { padding-left: 0; }
.stat-item strong { font-family: 'Montserrat', sans-serif; font-size: 1.65rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-item span { font-size: 0.82rem; color: var(--muted); }
.stat-sep { width: 1px; height: 38px; background: var(--border2); }

/* MAINTENANCE STRIP */
.maint-strip { background: linear-gradient(135deg, #0b6b6f 0%, #12969c 100%); padding: 32px 5%; }
.maint-strip-inner { max-width: 1240px; margin: 0 auto; }
.maint-strip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 14px; }
.maint-strip-head h3 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 3px; }
.maint-strip-head p { color: rgba(255,255,255,0.72); font-size: 0.84rem; }
.maint-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.maint-card { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); border-radius: 10px; padding: 12px 20px; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: all 0.22s; text-decoration: none; color: #fff; font-size: 0.84rem; font-weight: 600; font-family: 'DM Sans', sans-serif; }
.maint-card:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.maint-card .mi { font-size: 1.1rem; }

/* HOME SECTIONS */
.home-sec { padding: 60px 5%; max-width: 1440px; margin: 0 auto; box-sizing: content-box; }
.home-sec-alt { background: var(--bg3); max-width: 100%; padding: 60px 5%; }
.home-sec-alt > * { max-width: 1340px; margin-left: auto; margin-right: auto; }
.home-sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.home-sec-head h2 { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.home-sec-head p { color: var(--muted); font-size: 0.9rem; }
.center-head { text-align: center; justify-content: center; flex-direction: column; align-items: center; }

/* LISTING GRID */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.listing-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* LISTING CARD */
.lcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column; text-decoration: none; }
.lcard:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.11); }
.lcard-img { height: 210px; overflow: hidden; position: relative; background: var(--bg3); flex-shrink: 0; }
.lcard-img-sm { height: 165px; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; display: block; }
.lcard:hover .lcard-img img { transform: scale(1.07); }
.lcard-cat { position: absolute; top: 12px; left: 12px; font-size: 0.65rem; font-weight: 700; padding: 5px 11px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; background: var(--gold); }
.lcat-sale { background: var(--green); }
.lcat-rent { background: var(--blue); }
.lcat-lease { background: #7c5a2a; }
.lcard-feat { position: absolute; top: 12px; right: 12px; background: rgba(181,128,62,0.9); color: #fff; font-size: 0.63rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.lcard-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.lcard-price { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.lcard-title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.38; }
.lcard-loc { font-size: 0.77rem; color: var(--muted); margin-bottom: 12px; }
.lcard-specs { display: flex; gap: 12px; font-size: 0.76rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; margin-top: auto; align-items: center; }
.lcard-type-pill { margin-left: auto; background: var(--bg3); border: 1px solid var(--border); padding: 3px 9px; border-radius: 5px; font-size: 0.68rem; color: var(--muted); }

/* HOW IT WORKS */
.steps-row { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.step-box { flex: 1; min-width: 180px; text-align: center; padding: 32px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); transition: all 0.2s; }
.step-box:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-bg); border: 2px solid var(--gold); color: var(--gold); font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-box h3 { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 9px; color: var(--text); }
.step-box p  { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }
.step-arrow { font-size: 1.4rem; color: var(--gold2); padding: 0 8px; margin-top: 44px; flex-shrink: 0; opacity: 0.7; }

/* WHY GRID */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); padding: 28px; transition: all 0.22s; }
.why-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.why-icon { font-size: 1.9rem; margin-bottom: 14px; }
.why-card h3 { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.why-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.68; }

/* CTA BAND */
.cta-band { background: linear-gradient(135deg, #0f2640 0%, #1a3c5e 100%); border-radius: 18px; padding: 52px; display: flex; gap: 52px; flex-wrap: wrap; align-items: flex-start; }
.cta-left { flex: 1; min-width: 260px; }
.cta-left h2 { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-left p { color: rgba(255,255,255,0.68); margin-bottom: 28px; font-size: 0.92rem; line-height: 1.65; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; min-width: 260px; }
.cta-info { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 16px 18px; }
.ci-ico { font-size: 1.35rem; flex-shrink: 0; }
.ci-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.48); margin-bottom: 2px; }
.ci-val { font-size: 0.87rem; color: #fff; font-weight: 600; }

/* MAINTENANCE SERVICES PAGE */
.maint-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.maint-service-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius2); padding: 26px; transition: all 0.25s; cursor: pointer; }
.maint-service-card:hover { border-color: var(--teal); box-shadow: 0 8px 32px rgba(13,115,119,0.12); transform: translateY(-3px); }
.msc-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--teal-bg); display: flex; align-items: center; justify-content: center; font-size: 1.85rem; margin-bottom: 16px; }
.msc-name { font-family: 'Montserrat', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.msc-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.msc-subs { display: flex; flex-wrap: wrap; gap: 7px; }
.msc-sub-tag { padding: 6px 14px; border-radius: 7px; font-size: 0.73rem; font-weight: 600; background: var(--teal-bg); color: var(--teal); border: 1.5px solid rgba(13,115,119,0.22); cursor: pointer; transition: all 0.2s; line-height: 1; }
.msc-sub-tag:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }

/* CHAT */
.chat-layout { display: flex; height: calc(100vh - 140px); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; background: #fff; }
.chat-sidebar { width: 270px; border-right: 1px solid var(--border); overflow-y: auto; flex-shrink: 0; }
.chat-sidebar-head { padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.9rem; font-family: 'Montserrat', sans-serif; }
.chat-user-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); }
.chat-user-item:hover, .chat-user-item.active { background: var(--gold-bg); }
.chat-user-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.chat-user-info .cu-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.chat-user-info .cu-last { font-size: 0.76rem; color: var(--muted); }
.chat-user-item .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-left: auto; flex-shrink: 0; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 68%; padding: 11px 16px; border-radius: 14px; font-size: 0.88rem; line-height: 1.55; }
.msg-in { background: var(--bg3); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-out { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-time { font-size: 0.68rem; opacity: 0.58; margin-top: 5px; }
.msg-out .msg-time { text-align: right; }
.chat-input-area { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-shrink: 0; }
.chat-input { flex: 1; border: 1.5px solid var(--border2); border-radius: 99px; padding: 11px 20px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--text); background: var(--bg); outline: none; transition: border-color 0.2s; }
.chat-input:focus { border-color: var(--gold); background: #fff; }
.chat-send-btn { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s; flex-shrink: 0; }
.chat-send-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(181,128,62,0.35); }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--muted); }
.chat-empty .ce-icon { font-size: 3.2rem; opacity: 0.35; }

/* BRANDING PAGE */
.branding-preview { background: linear-gradient(135deg, var(--bg3), #fff); border: 1px solid var(--border); border-radius: var(--radius2); padding: 32px; margin-bottom: 28px; text-align: center; }
.color-swatch-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.color-swatch { width: 38px; height: 38px; border-radius: 10px; cursor: pointer; border: 3px solid transparent; transition: all 0.22s; }
.color-swatch.selected { border-color: var(--text); transform: scale(1.18); }

/* IMAGE UPLOAD */
.img-upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; margin-top: 14px; }
.img-upload-item { position: relative; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg3); }
.img-upload-item img { width: 100%; height: 115px; object-fit: cover; display: block; }
.img-cat-label { padding: 7px; }
.img-cat-label select { width: 100%; border: 1px solid var(--border); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.76rem; padding: 4px 7px; color: var(--text2); background: #fff; }
.img-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(192,57,43,0.88); color: #fff; border: none; cursor: pointer; font-size: 0.78rem; display: flex; align-items: center; justify-content: center; }
.img-gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.img-tab { padding: 7px 16px; border-radius: 8px; font-size: 0.79rem; font-weight: 600; border: 1.5px solid var(--border2); color: var(--muted); background: var(--bg); cursor: pointer; transition: all 0.2s; }
.img-tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.img-gallery-panel { display: none; }
.img-gallery-panel.show { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
.img-gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.img-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.img-gallery-item:hover img { transform: scale(1.05); }

/* DASHBOARD LAYOUT */
.app-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 240px; background: #fff; border-right: 1px solid var(--border); padding: 20px 0; flex-shrink: 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-label { padding: 12px 20px 5px; font-size: 0.6rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--border2); font-weight: 700; font-family: 'Montserrat', sans-serif; }
.sidebar-item { display: flex; align-items: center; gap: 11px; padding: 10px 20px; cursor: pointer; font-size: 0.85rem; color: var(--muted); transition: all 0.15s; border-left: 3px solid transparent; overflow: hidden; font-family: 'DM Sans', sans-serif; text-decoration: none; font-weight: 500; }
.sidebar-item:hover { color: var(--text); background: var(--bg3); }
.sidebar-item.active { color: var(--gold); border-left-color: var(--gold); background: var(--gold-bg); font-weight: 600; }
.sidebar-item .icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-item span:not(.icon):not(.badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.badge { margin-left: auto; background: var(--red); color: white; border-radius: 99px; padding: 2px 8px; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
.content { flex: 1; padding: 30px 34px; overflow-y: auto; background: var(--bg); min-width: 0; }

/* PAGE HEADER */
.page-header { margin-bottom: 28px; }
.page-header h2 { font-family: 'Montserrat', sans-serif; font-size: 1.65rem; font-weight: 800; color: var(--text); }
.page-header h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.page-header p { color: var(--muted); margin-top: 6px; font-size: 0.88rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* DASHBOARD CARDS */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; transition: all 0.22s; position: relative; display: flex; flex-direction: column; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow2); }
.card-image { height: 165px; display: flex; align-items: center; justify-content: center; background: var(--bg3); position: relative; overflow: hidden; flex-shrink: 0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-image-placeholder { font-size: 3.5rem; color: var(--border2); }
.card-body { padding: 15px 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: 'Montserrat', sans-serif; font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.card-location { font-size: 0.79rem; color: var(--muted); margin-bottom: 9px; }
.card-price { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--gold); }
.card-meta { display: flex; gap: 10px; margin-top: 9px; font-size: 0.77rem; color: var(--muted); align-items: center; flex-wrap: wrap; }

/* Tags as buttons - no icons */
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  padding: 5px 13px; border-radius: 7px; font-size: 0.72rem; font-weight: 600;
  background: var(--bg3); color: var(--text2);
  border: 1.5px solid var(--border2); cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; line-height: 1;
}
.tag > i, .tag > svg, .tag > .tag-icon { display: none !important; }
.tag:hover { background: var(--gold-bg2); border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.ad-crown { position: absolute; top: 9px; right: 9px; z-index: 5; background: var(--gold); color: #fff; padding: 3px 9px; border-radius: 6px; font-size: 0.62rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.b2b-badge { position: absolute; top: 9px; left: 9px; z-index: 5; background: var(--blue); color: white; padding: 3px 9px; border-radius: 6px; font-size: 0.62rem; font-weight: 700; }

/* STAT CARDS */
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); padding: 20px 22px; transition: all 0.2s; }
.stat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card-num { font-family: 'Montserrat', sans-serif; font-size: 2.1rem; font-weight: 900; line-height: 1.1; }
.stat-card-label { font-size: 0.81rem; color: var(--muted); margin-top: 5px; }
.stat-card-change { font-size: 0.77rem; margin-top: 8px; }
.change-up { color: var(--green); }
.change-down { color: var(--red); }

/* BUTTONS */
.btn { padding: 10px 22px; border-radius: 9px; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.86rem; font-weight: 700; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #fff; }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold2), var(--gold)); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(181,128,62,0.3); }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.btn-green { background: var(--green-bg); color: var(--green); border: 1.5px solid rgba(45,122,79,0.25); }
.btn-green:hover { background: var(--green); color: #fff; }
.btn-red { background: var(--red-bg); color: var(--red); border: 1.5px solid rgba(192,57,43,0.25); }
.btn-red:hover { background: var(--red); color: #fff; }
.btn-teal { background: var(--teal-bg); color: var(--teal); border: 1.5px solid rgba(13,115,119,0.25); }
.btn-teal:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.79rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 32px; font-size: 0.96rem; }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-white { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); backdrop-filter: blur(4px); }
.btn-white:hover { background: rgba(255,255,255,0.25); border-color: #fff; }

/* STATUS BADGES */
.status { padding: 4px 11px; border-radius: 6px; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.s-approved { background: var(--green-bg); color: var(--green); border: 1px solid rgba(45,122,79,0.2); }
.s-pending  { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(196,124,26,0.2); }
.s-rejected { background: var(--red-bg); color: var(--red); border: 1px solid rgba(192,57,43,0.2); }

/* FORMS */
.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); padding: 28px; }
.form-title { font-family: 'Montserrat', sans-serif; font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.81rem; font-weight: 600; color: var(--text2); margin-bottom: 7px; }
.form-input { width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: 11px 15px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); background: #fff; outline: none; transition: all 0.2s; }
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
.form-select { width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: 11px 15px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); background: #fff; outline: none; transition: all 0.2s; }
.form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
textarea.form-input { min-height: 95px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 5px; }
.perm-notice { background: var(--amber-bg); border: 1px solid rgba(196,124,26,0.25); border-radius: var(--radius); padding: 15px 20px; margin-bottom: 22px; display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--text2); }

/* TABLE */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
thead th { padding: 13px 18px; text-align: left; font-weight: 700; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.7px; border-bottom: 1px solid var(--border); background: var(--bg3); white-space: nowrap; font-family: 'Montserrat', sans-serif; }
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; font-family: 'DM Sans', sans-serif; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.52); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-hidden { display: none !important; }
.modal { background: #fff; border-radius: 16px; padding: 30px; max-width: 520px; width: 100%; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.22); }
.modal h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; }
.modal-close { position: absolute; top: 18px; right: 20px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg3); cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 0.2s; }
.modal-close:hover { background: var(--red-bg); color: var(--red); }

/* IMAGE UPLOAD AREA */
.img-upload-area { border: 2px dashed var(--border2); border-radius: var(--radius); padding: 32px; text-align: center; cursor: pointer; transition: all 0.2s; }
.img-upload-area:hover { border-color: var(--gold); background: var(--gold-bg); }
.img-upload-area input[type=file] { display: none; }

/* LISTING DETAIL */
.listing-detail { max-width: 920px; }
.listing-hero { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; margin-bottom: 22px; display: flex; gap: 0; }
.listing-hero-image { width: 95px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; flex-shrink: 0; }
.listing-hero-body { flex: 1; padding: 28px; }
.listing-price-big { font-family: 'Montserrat', sans-serif; font-size: 2.1rem; font-weight: 900; color: var(--gold); margin-bottom: 16px; }
.listing-specs { display: flex; gap: 14px; flex-wrap: wrap; }
.spec-item { background: var(--bg3); padding: 8px 16px; border-radius: 8px; font-size: 0.84rem; color: var(--text2); border: 1px solid var(--border); }

/* FLASH */
.flash { padding: 14px 20px; border-radius: 10px; margin-bottom: 22px; font-size: 0.9rem; font-weight: 500; }
.flash.success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(45,122,79,0.2); }
.flash.error   { background: var(--red-bg); color: var(--red); border: 1px solid rgba(192,57,43,0.2); }

/* LOGIN PAGE */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.login-visual { background: linear-gradient(160deg, #0f2640 0%, #1a3c5e 50%, #163228 100%); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 52px; }
.login-visual-bg { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=900&q=80'); background-size: cover; background-position: center; opacity: 0.2; }
.login-visual-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,38,64,0.96) 20%, rgba(15,38,64,0.4) 100%); }
.login-visual-content { position: relative; z-index: 2; }
.login-visual-logo { display: flex; align-items: center; gap: 12px; position: absolute; top: 44px; left: 52px; z-index: 2; }
.login-visual-logo-icon { width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(135deg, var(--gold), var(--gold2)); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; color: #fff; }
.login-visual-logo-name { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 900; color: #fff; }
.login-visual-logo-name span { color: var(--gold3); }
.login-visual-quote { font-family: 'Montserrat', sans-serif; font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1.28; margin-bottom: 16px; }
.login-visual-quote em { color: var(--gold3); font-style: normal; }
.login-visual-sub { font-size: 0.9rem; color: rgba(255,255,255,0.58); }
.login-visual-stats { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.login-visual-stat strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--gold3); }
.login-visual-stat span { font-size: 0.73rem; color: rgba(255,255,255,0.48); }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 44px 52px; background: #fff; overflow-y: auto; }
.login-form-inner { width: 100%; max-width: 400px; }
.login-form-title { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--text); margin-bottom: 7px; }
.login-form-sub { font-size: 0.86rem; color: var(--muted); margin-bottom: 30px; }

/* Role selector */
.role-selector { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 26px; }
.role-option { padding: 12px 6px; border-radius: 10px; border: 1.5px solid var(--border2); background: var(--bg); cursor: pointer; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.role-option:hover { border-color: var(--gold); background: var(--gold-bg); }
.role-option.active { border-color: var(--gold); background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.role-option.active .role-name, .role-option.active .role-sub { color: #fff; }
.role-icon { font-size: 1.35rem; line-height: 1; }
.role-name { font-size: 0.67rem; font-weight: 700; color: var(--text2); line-height: 1.2; }
.role-sub { font-size: 0.6rem; color: var(--muted); }
.demo-credentials { margin-top: 20px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.demo-credentials strong { font-size: 0.78rem; color: var(--text2); display: block; margin-bottom: 6px; font-family: 'Montserrat', sans-serif; }
.demo-credentials #demoCred { font-size: 0.76rem; color: var(--muted); }

/* Legacy login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.login-box { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 44px 38px; width: 100%; max-width: 420px; box-shadow: var(--shadow3); }
.login-logo { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), var(--gold2)); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 24px; color: #fff; margin: 0 auto 20px; }
.login-title { font-family: 'Montserrat', sans-serif; font-size: 1.65rem; font-weight: 800; text-align: center; margin-bottom: 7px; }
.login-sub { font-size: 0.85rem; color: var(--muted); text-align: center; margin-bottom: 30px; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-icon  { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.7; }

/* DIVIDER */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* UTILITIES */
.mb-3   { margin-bottom: 12px; }
.mt-4   { margin-top: 16px; }
.text-sm { font-size: 0.86rem; }
.text-xs { font-size: 0.76rem; }
.fw-600  { font-weight: 600; }
.color-muted { color: var(--muted); }
.color-gold  { color: var(--gold); }

/* PUBLIC LISTING CARD */
.pub-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; transition: all 0.25s; cursor: pointer; display: flex; flex-direction: column; }
.pub-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow2); }
.pub-card-img { height: 210px; overflow: hidden; position: relative; background: var(--bg3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pub-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.pub-card:hover .pub-card-img img { transform: scale(1.06); }
.pub-card-img-placeholder { font-size: 4.2rem; color: var(--border2); }
.pub-card-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 5px 11px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.pub-card-badge.sale { background: var(--green); }
.pub-card-badge.rent { background: var(--blue); }
.pub-card-badge.lease { background: #7c5a2a; }
.pub-card-featured { position: absolute; top: 12px; right: 12px; background: rgba(181,128,62,0.9); color: #fff; font-size: 0.63rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.pub-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.pub-card-price { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--gold); margin-bottom: 4px; }
.pub-card-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 7px; line-height: 1.38; }
.pub-card-loc { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.pub-card-specs { display: flex; gap: 16px; font-size: 0.78rem; color: var(--muted); padding-top: 13px; border-top: 1px solid var(--border); flex-wrap: wrap; margin-top: auto; }

/* FOOTER */
.footer { background: #0e1822; color: rgba(255,255,255,0.72); padding: 56px 5% 26px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; max-width: 1240px; margin: 0 auto 44px; }
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-brand-name span { color: var(--gold3); }
.footer h4 { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; color: #fff; margin-bottom: 16px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul li a { font-size: 0.84rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer ul li a:hover { color: var(--gold3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.79rem; color: rgba(255,255,255,0.38); max-width: 1240px; margin: 0 auto; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .content { padding: 24px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
  .sidebar { width: 216px; }
  .pub-nav { padding: 0 4%; }
  .login-form-side { padding: 32px 36px; }
  .cta-band { padding: 36px 32px; }
}
@media (max-width: 900px) {
  .pub-nav-links { display: none; }
  .pub-nav-actions { display: none; }
  .mob-menu-btn { display: flex; }
  .hero-slider { height: clamp(300px, 54vw, 500px); }
  .slide-content { padding: 24px 5% 44px; }
  .steps-row { gap: 14px; }
  .step-arrow { display: none; }
  .cta-band { padding: 30px 26px; }
  .cta-right { grid-template-columns: 1fr 1fr; }
  .stats-strip-inner { flex-wrap: wrap; }
  .stat-item { padding: 6px 18px; }
  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-search-bar { flex-wrap: wrap; margin: -18px 4% 0; padding: 16px 18px; border-radius: 12px; }
  .hsb-sep { display: none; }
  .hsb-field { width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .hsb-field:last-of-type { padding-bottom: 0; border-bottom: none; }
  .hsb-btn { width: 100%; margin-top: 8px; height: 48px; }
  .chat-layout { flex-direction: column; height: auto; min-height: 520px; }
  .chat-sidebar { width: 100%; height: 210px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-messages { min-height: 300px; }
  .cat-strip-inner { flex-wrap: nowrap; }
}
@media (max-width: 768px) {
  .app-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); padding: 6px 0; display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; overflow-y: visible; }
  .sidebar::-webkit-scrollbar { height: 0; }
  .sidebar-section { flex: none; }
  .sidebar-section .sidebar-label { display: none; }
  .sidebar-item { padding: 9px 16px; font-size: 0.8rem; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-item.active { border-left: none; border-bottom-color: var(--gold); }
  .sidebar-item .icon { font-size: 0.95rem; }
  .content { padding: 18px 16px; }
  .maint-cards { flex-wrap: wrap; }
  .maint-card { flex: 1; min-width: 135px; justify-content: center; flex-direction: column; text-align: center; padding: 12px 10px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { padding: 36px 24px; min-height: 100vh; align-items: flex-start; padding-top: 52px; }
  .login-form-inner { max-width: 100%; }
  .nav-right .role-badge { display: none; }
  .nav { padding: 0 1.2rem; }
  .page-header h2 { font-size: 1.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .listing-grid, .listing-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lcard-img { height: 135px; }
  .lcard-body { padding: 11px 13px 13px; }
  .lcard-price { font-size: 1.12rem; }
  .lcard-title { font-size: 0.83rem; }
  .home-sec { padding: 32px 4%; }
  .home-sec-alt { padding: 32px 4%; }
  .cat-strip { padding: 12px 4%; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .hero-slider { height: 295px; }
  .slide-content h2 { font-size: 1.15rem; }
  .slide-price { font-size: 1.05rem; margin-bottom: 16px; }
  .slide-cta { gap: 8px; }
  .slide-cta .btn { padding: 9px 16px; font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .maint-service-grid { grid-template-columns: 1fr; }
  .img-upload-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }
  .role-selector { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .stat-item { padding: 6px 12px; }
  .stat-sep { display: none; }
  .cta-band { border-radius: 12px; padding: 24px 20px; gap: 28px; }
  .cta-right { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-left h2 { font-size: 1.55rem; }
  .hero-search-bar { margin: -16px 3% 0; }
  .pub-nav { padding: 0 4%; height: 62px; }
  .pub-nav-title { font-size: 1.2rem; }
  .nav { height: 58px; }
  .nav-title { font-size: 1.08rem; }
  .nav-btn { padding: 6px 12px; font-size: 0.78rem; }
  .stats-strip { padding: 16px 4%; }
  .maint-strip { padding: 24px 4%; }
  .slide-badge { font-size: 0.66rem; padding: 5px 12px; }
  .cat-pill { padding: 8px 14px; font-size: 0.78rem; }
}
@media (max-width: 400px) {
  .listing-grid, .listing-grid-4 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .role-selector { grid-template-columns: repeat(3, 1fr); }
  .cta-right { grid-template-columns: 1fr; }
  .slide-cta .btn:last-child { display: none; }
  .pub-nav-title { font-size: 1.1rem; }
}

/* FORCE LIGHT MODE */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg: #f8f6f3 !important; --bg2: #ffffff !important; --bg3: #f1ede8 !important;
    --border: #e4ddd6 !important; --border2: #cfc8be !important;
    --text: #1c1814 !important; --text2: #3e3830 !important; --muted: #7e7468 !important;
    --gold: #b5803e !important; --gold2: #d09a58 !important;
    --green: #2d7a4f !important; --green-bg: rgba(45,122,79,0.08) !important;
    --red: #c0392b !important; --red-bg: rgba(192,57,43,0.08) !important;
    --blue: #2563a8 !important; --blue-bg: rgba(37,99,168,0.08) !important;
  }
  html, body { background-color: #f8f6f3 !important; color: #1c1814 !important; }
  .pub-nav, .cat-strip, .stats-strip, .footer,
  .lcard, .step-box, .why-card, .home-sec-alt,
  .pub-card, .card, .stat-card, .form-box, .modal,
  .sidebar, .content, .table-wrap, .login-box, .chat-layout,
  .login-form-side {
    background-color: #ffffff !important; color: #1c1814 !important;
  }
  .cta-band { background: linear-gradient(135deg, #0f2640 0%, #1a3c5e 100%) !important; }
  .home-sec-alt { background-color: #f1ede8 !important; }
  nav.pub-nav { background: rgba(255,255,255,0.97) !important; }
}
