@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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(440px, 70vh, 740px); 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; width: 100%; }
.slide { min-width: 100%; width: 100%; height: 100%; position: relative; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: flex-start; overflow: hidden; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center center; transition: transform 9s ease-out; width: 100%; height: 100%; }
.slide.active .slide-bg { transform: scale(1.07); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.10) 100%); }
.slide-content { position: relative; z-index: 2; padding: 0 6% 72px; max-width: 680px; width: 100%; box-sizing: border-box; }
.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: -36px auto 0; position: relative; z-index: 20; border: 1px solid var(--border); left: 0; right: 0; width: calc(90% - 0px); }
.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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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: 1280px; 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: 'Montserrat', 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: 1280px; 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: 1280px; 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.18); border: 1.5px solid rgba(255,255,255,0.30); border-radius: 8px; padding: 10px 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; transition: all 0.22s; text-decoration: none; color: #fff; font-size: 0.82rem; font-weight: 600; font-family: 'Montserrat', sans-serif; letter-spacing: 0.2px; }
.maint-card:hover { background: rgba(255,255,255,0.30); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.50); }
.maint-card .mi { display: inline-flex; align-items: center; margin-right: 5px; }

/* HOME SECTIONS */
.home-sec { padding: 60px 5%; width: 100%; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
/* Alias so property.php class="section" works identically */
.section { padding: 80px 5% 60px; width: 100%; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.home-sec-alt { background: var(--bg3); width: 100%; padding: 60px 5%; box-sizing: border-box; }
.home-sec-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.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 { width: 52px; height: 52px; border-radius: 12px; background: rgba(181,128,62,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--gold); }
.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 { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', 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 { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.role-icon svg { width: 22px; height: 22px; }
.role-option.active .role-icon { color: #fff; }
.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: 1280px; 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: 1280px; 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; }
  .slide-content { padding: 0 5% 52px; }
  .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 auto 0; padding: 16px 18px; border-radius: 12px; width: 92%; }
  .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: none; min-width: auto; flex-direction: row; text-align: left; padding: 10px 20px; font-size: 0.8rem; }
  .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; }
  .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 auto 0; width: 94%; }
  .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; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NATIVE FEEL & BREATHING SPACE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Safe area insets for notched phones */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Smooth momentum scrolling on iOS */
html { -webkit-overflow-scrolling: touch; overscroll-behavior-y: none; }

/* Better tap targets & remove tap highlight */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Prevent text size adjustment on orientation change */
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ── Slider mobile fix ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-slider { height: clamp(480px, 72vw, 620px); }
  .slide-content { padding: 0 5% 52px; }
  .slide-content h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); }
}

@media (max-width: 600px) {
  .hero-slider { height: clamp(520px, 100vw, 680px); }
  .slide-content { padding: 0 4.5% 48px; }
  .slide-content h2 { font-size: clamp(1.05rem, 4.5vw, 1.35rem); line-height: 1.25; }
  .slide-price { font-size: clamp(1rem, 3.5vw, 1.2rem); margin-bottom: 14px; }
  .slide-badge { font-size: 0.62rem; padding: 4px 10px; letter-spacing: 0.5px; }
  .slide-cta { gap: 8px; margin-top: 0; }
  .slide-cta .btn { padding: 10px 18px; font-size: 0.78rem; border-radius: 8px; }
  .slider-prev, .slider-next { width: 38px; height: 38px; font-size: 1rem; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .slider-dots { bottom: 14px; gap: 6px; }
  .slider-dot { width: 6px; height: 6px; }
  .slider-dot.active { width: 22px; }
}

/* ── Hero search bar mobile ──────────────────────────────────── */
@media (max-width: 600px) {
  .hero-search-bar {
    margin: -20px auto 0;
    padding: 14px 16px;
    border-radius: 14px;
    gap: 0;
    width: 92%;
  }
  .hsb-field { padding: 8px 0; }
  .hsb-field input { font-size: 0.88rem; }
  .hsb-field select { font-size: 0.85rem; }
  .hsb-btn { border-radius: 10px; font-size: 0.87rem; height: 46px; }
}

/* ── Navigation mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
  .pub-nav { height: 60px; padding: 0 4.5%; }
  .pub-nav-logo { width: 36px; height: 36px; font-size: 16px; }
  .pub-nav-title { font-size: 1.15rem; }
  .mob-nav-drawer { top: 60px; padding: 10px 12px 24px; }
  .mob-nav-drawer a { padding: 13px 14px; font-size: 0.92rem; font-weight: 600; border-radius: 10px; min-height: 48px; display: flex; align-items: center; }
  .mob-nav-actions { gap: 10px; padding-top: 16px; }
  .mob-nav-actions .btn { min-height: 46px; font-size: 0.88rem; border-radius: 10px; }
}

/* ── Category strip mobile ───────────────────────────────────── */
@media (max-width: 600px) {
  .cat-strip { padding: 10px 0 10px 4%; }
  .cat-strip-inner { padding-right: 4%; }
  .cat-pill { padding: 9px 16px; font-size: 0.78rem; border-radius: 20px; white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center; }
}

/* ── Stats strip mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .stats-strip { padding: 20px 4%; }
  .stats-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; justify-content: unset; }
  .stat-sep { display: none; }
  .stat-item { padding: 12px 8px; flex: none; text-align: center; flex-direction: column; align-items: center; gap: 4px; }
  .stat-item:first-child { padding-left: 8px; }
  .stat-item strong { font-size: 1.25rem; display: block; }
  .stat-item span { font-size: 0.63rem; display: block; line-height: 1.3; }
}

/* ── Maintenance strip mobile ────────────────────────────────── */
@media (max-width: 600px) {
  .maint-strip { padding: 22px 4%; }
  .maint-strip-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .maint-strip-head h3 { font-size: 1.05rem; }
  .maint-cards { gap: 8px; }
  .maint-card { padding: 9px 18px; font-size: 0.78rem; border-radius: 7px; min-height: 38px; }
}

/* ── Home sections mobile ────────────────────────────────────── */
@media (max-width: 600px) {
  .home-sec { padding: 36px 4.5%; }
  .home-sec-alt { padding: 36px 4.5%; }
  .home-sec-head { margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
  .home-sec-head h2 { font-size: 1.45rem; }
  .home-sec-head p { font-size: 0.84rem; }
  .center-head { text-align: center; }
  .center-head h2 { font-size: 1.4rem; }
}

/* ── Listing cards mobile ────────────────────────────────────── */
@media (max-width: 600px) {
  .listing-grid, .listing-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lcard { border-radius: 12px; }
  .lcard-img { height: 130px; border-radius: 12px 12px 0 0; }
  .lcard-body { padding: 10px 12px 12px; }
  .lcard-price { font-size: 1.05rem; }
  .lcard-title { font-size: 0.8rem; line-height: 1.4; }
  .lcard-loc { font-size: 0.72rem; }
  .lcard-specs { gap: 6px; font-size: 0.7rem; }
}
@media (max-width: 400px) {
  .listing-grid, .listing-grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .lcard-img { height: 180px; }
}

/* ── Steps row mobile ────────────────────────────────────────── */
@media (max-width: 600px) {
  .steps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .step-box { padding: 20px 16px; border-radius: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .step-box h3 { font-size: 0.88rem; }
  .step-box p { font-size: 0.78rem; }
}
@media (max-width: 400px) {
  .steps-row { grid-template-columns: 1fr; }
}

/* ── Why cards mobile ────────────────────────────────────────── */
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-card { padding: 18px 14px; border-radius: 14px; }
  .why-icon { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 10px; }
  .why-card h3 { font-size: 0.88rem; }
  .why-card p { font-size: 0.78rem; }
}

/* ── Maintenance service grid mobile ─────────────────────────── */
@media (max-width: 600px) {
  .maint-service-grid { grid-template-columns: 1fr; gap: 14px; }
  .maint-service-card { padding: 20px 18px; border-radius: 14px; }
  .msc-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 10px; }
  .msc-name { font-size: 1rem; }
}

/* ── CTA band mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .cta-band { border-radius: 16px; padding: 28px 20px; gap: 24px; flex-direction: column; }
  .cta-left h2 { font-size: 1.5rem; }
  .cta-left p { font-size: 0.85rem; }
  .cta-btns { gap: 10px; }
  .cta-btns .btn { flex: 1; justify-content: center; min-height: 48px; font-size: 0.88rem; }
  .cta-right { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ci-lbl { font-size: 0.68rem; }
  .ci-val { font-size: 0.82rem; }
}
@media (max-width: 400px) {
  .cta-right { grid-template-columns: 1fr; }
}

/* ── Dashboard sidebar mobile — bottom tab bar feel ─────────── */
@media (max-width: 768px) {
  .app-layout { flex-direction: column; min-height: 100vh; }
  .sidebar {
    width: 100%; height: auto; position: fixed; bottom: 0; left: 0; right: 0;
    top: auto; border-right: none; border-top: 1px solid var(--border);
    border-bottom: none; padding: 4px 0 calc(4px + var(--safe-bottom));
    display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; overflow-y: visible;
    z-index: 150; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  }
  .sidebar::-webkit-scrollbar { height: 0; width: 0; }
  .sidebar-section { flex: none; display: flex; }
  .sidebar-section .sidebar-label { display: none; }
  .sidebar-item {
    padding: 8px 14px 6px; font-size: 0.7rem; white-space: nowrap;
    border-left: none; border-bottom: none; border-top: 3px solid transparent;
    flex-direction: column; align-items: center; gap: 3px; min-width: 64px;
    text-align: center; line-height: 1.2; font-weight: 600; color: var(--muted);
  }
  .sidebar-item.active {
    border-left: none; border-bottom: none; border-top-color: var(--gold);
    color: var(--gold); background: var(--gold-bg);
  }
  .sidebar-item .icon { font-size: 1.2rem; }
  .content {
    padding: 18px 16px calc(80px + var(--safe-bottom));
    flex: 1;
  }
}

/* ── Dashboard content mobile ────────────────────────────────── */
@media (max-width: 600px) {
  .content { padding: 16px 14px calc(78px + var(--safe-bottom)); }
  .page-header { margin-bottom: 18px; }
  .page-header h2 { font-size: 1.35rem; }
  .stat-card { padding: 18px 16px; border-radius: 14px; }
  .stat-card-num { font-size: 1.8rem; }
  .card { padding: 16px; border-radius: 14px; }
  .form-box { padding: 20px 16px; border-radius: 14px; }
  .form-row { gap: 12px; }
  .form-input, .form-select, .form-textarea { padding: 12px 14px; font-size: 0.88rem; border-radius: 10px; }
  .btn { min-height: 44px; border-radius: 10px; }
  .btn-lg { min-height: 50px; font-size: 0.92rem; }
  .table-wrap { border-radius: 12px; }
  thead th { padding: 11px 14px; font-size: 0.68rem; }
  tbody td { padding: 11px 14px; font-size: 0.83rem; }
}

/* ── Footer mobile ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .footer { padding-bottom: calc(80px + var(--safe-bottom)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-name { font-size: 1.25rem; }
}

/* ── Login page mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
  .login-form-side { padding: 40px 20px; padding-top: calc(52px + var(--safe-top)); padding-bottom: calc(40px + var(--safe-bottom)); }
  .login-form-title { font-size: 1.55rem; }
  .login-box { padding: 28px 20px; border-radius: 16px; }
  .role-selector { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .role-card { padding: 12px 6px; border-radius: 10px; }
}

/* ── General touch improvements ──────────────────────────────── */
@media (max-width: 768px) {
  /* Ensure all interactive elements have adequate touch targets */
  .btn { min-height: 44px; }
  .form-input, .form-select { min-height: 48px; }
  select { min-height: 44px; }
  .lcard { border-radius: 14px; overflow: hidden; }
  
  /* Remove hover states that look odd on touch */
  .lcard:hover { transform: none; }
  .why-card:hover { transform: none; }
  
  /* Active states for touch feedback */
  .lcard:active { transform: scale(0.98); transition: transform 0.1s; }
  .btn:active { transform: scale(0.97); transition: transform 0.1s; }
  .maint-card:active { transform: scale(0.96); }
  .cat-pill:active { transform: scale(0.96); }
}

/* ── Breathing space improvements (all screens) ──────────────── */
.home-sec { padding: 52px 5%; }
.home-sec-alt { padding: 52px 5%; }
.home-sec-head { margin-bottom: 32px; }
.listing-grid { gap: 20px; }
.why-grid { gap: 16px; }
.maint-service-grid { gap: 16px; }
.steps-row { gap: 0; }
.why-card { padding: 26px 22px; }
.step-box { padding: 28px 24px; }
.maint-service-card { padding: 26px 24px; }

/* ── Remove maint-card icon column layout on mobile ──────────── */
@media (max-width: 768px) {
  .maint-card { flex: none; min-width: auto; flex-direction: row; text-align: left; padding: 9px 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   SVG ICON SYSTEM — Monochrome Professional Icons
   ═══════════════════════════════════════════════════════════════ */

/* Inline SVG icon base */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
/* Do NOT set fill:none globally — filled icons (stars, polygons) need fill:currentColor.
   Each SVG sets its own fill/stroke via attributes. We only set defaults for stroke-based icons. */
.svg-icon svg {
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Stroke-only icon contexts (most icons are stroke-based) */
.why-icon .svg-icon svg,
.msc-icon .svg-icon svg,
.ci-ico .svg-icon svg,
.stat-icon svg,
.hsb-field .svg-icon svg,
.home-sec-head .svg-icon svg,
.center-head .svg-icon svg,
.maint-strip-head .svg-icon svg,
.maint-card .mi .svg-icon svg,
.btn .svg-icon svg,
.lcard-loc svg,
.lcard-specs svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}
/* Filled icon contexts (stars, badges, polygons) */
.slide-badge .svg-icon svg,
.slide-loc .svg-icon svg,
.lcard-feat svg,
.sec-icon svg[fill="currentColor"],
.sec-icon svg[fill="currentColor"] polygon {
  fill: currentColor;
  stroke: none;
}

/* Why-choose icons */
.why-icon .svg-icon svg { width: 26px; height: 26px; }
.why-icon { color: var(--gold); }

/* Maintenance service card icons */
.msc-icon .svg-icon svg { width: 28px; height: 28px; }
.msc-icon { color: var(--teal); }

/* Slide badges / location pins — small inline icons */
.slide-badge .svg-icon svg { width: 13px; height: 13px; stroke-width: 2.2; }
.slide-loc .svg-icon svg { width: 13px; height: 13px; stroke-width: 2.2; }

/* Listing card icons */
.lcard-loc .svg-icon svg { width: 11px; height: 11px; stroke-width: 2.2; }
.lcard-specs .svg-icon svg { width: 11px; height: 11px; stroke-width: 2; }

/* CTA contact info icons */
.ci-ico .svg-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.12); border-radius: 10px; }
.ci-ico .svg-icon svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 1.8; }

/* CTA button icons */
.btn .svg-icon svg { width: 16px; height: 16px; stroke-width: 2; vertical-align: -2px; }

/* Search bar icon */
.hsb-field .svg-icon svg { width: 16px; height: 16px; stroke: var(--muted); stroke-width: 2; }

/* Section heading icons */
.home-sec-head .svg-icon svg,
.center-head .svg-icon svg { width: 22px; height: 22px; stroke-width: 1.8; color: var(--gold); }

/* Section heading icon wrapper */
.sec-icon { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); }

/* Filled star used in "Featured Properties" heading — must override fill:none */
.sec-icon .svg-icon svg[stroke="none"],
.sec-icon .svg-icon svg[stroke="none"] polygon { fill: currentColor; stroke: none; }

/* Maint strip heading icon */
.maint-strip-head .svg-icon svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }

/* Maint card mini icon */
.maint-card .mi .svg-icon svg { width: 14px; height: 14px; stroke-width: 2; }

/* Stats strip icons */
.stat-icon { display: inline-flex; color: var(--gold); margin-bottom: 2px; }
.stat-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }

/* Why card hover icon */
.why-card:hover .why-icon { color: var(--gold2); }

/* Step number stays as-is */

/* ── Professional polish: icon boxes & section icons ─────────── */
.sec-icon svg { vertical-align: -4px; }
.sec-icon { color: var(--gold); font-size: inherit; }

/* Stats strip: ensure 5-column layout on desktop */
@media (min-width: 601px) {
  .stats-strip-inner { flex-wrap: nowrap; justify-content: center; }
  .stat-item { flex: 1; text-align: center; flex-direction: column; align-items: center; gap: 3px; border-right: 1px solid var(--border2); padding: 10px 20px; }
  .stat-item:last-child { border-right: none; }
  .stat-sep { display: none; }
  .stat-item:first-child { padding-left: 20px; }
}

/* Improve why-card hover: icon gets lighter tint on hover */
.why-card:hover .why-icon { background: rgba(181,128,62,0.18); }

/* Slide badge: vertically center the star icon */
.slide-badge .svg-icon { vertical-align: -2px; margin-right: 4px; }
.slide-badge .svg-icon svg { width: 11px; height: 11px; fill: rgba(255,255,255,0.9); stroke: none; }
.slide-badge .svg-icon svg polygon { fill: rgba(255,255,255,0.9); }

/* Slide loc: icon inline with text */
.slide-loc { display: flex; align-items: center; gap: 5px; }
.slide-loc .svg-icon svg { width: 12px; height: 12px; fill: none; stroke: rgba(255,255,255,0.8); stroke-width: 2; flex-shrink: 0; }

/* lcard-loc inline icon */
.lcard-loc { display: flex; align-items: center; gap: 4px; }

/* CTA icon box size fix */
.ci-ico .svg-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.13); border-radius: 11px; padding: 0; display: flex; align-items: center; justify-content: center; }

/* Mobile: stats strip second row */
@media (max-width: 400px) {
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   FIXES & NEW FEATURES — Mobile Dashboard, Footer, Bottom Bar
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. DASHBOARD MOBILE ALIGNMENT FIX ──────────────────────── */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .stat-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .stat-card-num { font-size: 1.6rem; }
  .stat-card-label { font-size: 0.75rem; }
  .stat-card-change { font-size: 0.72rem; }
}
@media (max-width: 400px) {
  .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .stat-card-num { font-size: 1.4rem; }
}

/* ── 2. MAINTENANCE STRIP — show icon + name always ─────────── */
.maint-card {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.maint-card .mi {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .maint-cards { display: flex; flex-wrap: wrap; gap: 8px; }
  .maint-card {
    flex: 0 0 auto;
    flex-direction: row !important;
    gap: 6px !important;
    padding: 9px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

/* ── 3. FOOTER WITH LOGO — visible on all devices ───────────── */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  color: #fff; font-size: 18px; flex-shrink: 0;
}
.footer-logo-img {
  height: 40px; border-radius: 8px; object-fit: contain;
}
.footer { overflow: hidden; }
@media (max-width: 600px) {
  .footer-logo-wrap { margin-bottom: 10px; }
  .footer-logo-icon { width: 36px; height: 36px; font-size: 15px; border-radius: 8px; }
}

/* ── 4. RETURN TO HOME BUTTON ────────────────────────────────── */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1.5px solid rgba(181,128,62,0.25);
  border-radius: 9px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-home:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-home svg { flex-shrink: 0; }

/* Return to home in dashboard nav */
.nav-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 480px) {
  .nav-home-btn span { display: none; }
}

/* ── 5. PUBLIC BOTTOM BAR MENU (home/properties/maintenance pages) */
.pub-bottom-bar {
  display: none;
}
@media (max-width: 900px) {
  .pub-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    z-index: 200;
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }
  .pub-bottom-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 10px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: color 0.18s;
    position: relative;
  }
  .pub-bottom-bar a svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.18s;
  }
  .pub-bottom-bar a.active,
  .pub-bottom-bar a:hover {
    color: var(--gold);
  }
  .pub-bottom-bar a.active::after {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2.5px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
  }
  /* push page content above bottom bar */
  body.has-pub-bottom { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .footer { margin-bottom: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ── 6. DASHBOARD BOTTOM BAR (replaces sidebar on mobile) ────── */
/* The existing .sidebar handles this already via position:fixed  */
/* Ensure content doesn't hide behind bottom bar on all sizes     */
@media (max-width: 768px) {
  .content {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ── Sidebar "Website Home" item ─────────────────────────────── */
.sidebar-home-section {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.sidebar-item-home {
  color: var(--gold) !important;
  font-weight: 600;
}
.sidebar-item-home:hover {
  background: var(--gold-bg) !important;
  color: var(--gold) !important;
}

/* On mobile bottom bar, push home section to the end naturally */
@media (max-width: 768px) {
  .sidebar-home-section {
    border-top: none;
    border-left: 1px solid var(--border);
    margin-top: 0;
    padding-top: 0;
    margin-left: auto;
  }
  .sidebar-item-home {
    border-top: 3px solid transparent !important;
  }
}

/* Hide "Properties" label in dashboard nav on small screens */
@media (max-width: 520px) {
  .nav-home-btn-label { display: none; }
}

/* ── Image upload item refinements ───────────────────────────── */
.img-upload-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: border-color 0.2s;
  position: relative;
}
.img-upload-item:hover { border-color: var(--gold); }

/* Icon picker (maintenance service modal) */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg3);
}
.icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  background: #fff;
  gap: 4px;
  user-select: none;
}
.icon-option:hover { border-color: var(--teal); background: rgba(13,115,119,0.06); }
.icon-option.selected { border-color: var(--teal); background: rgba(13,115,119,0.12); box-shadow: 0 0 0 3px rgba(13,115,119,0.15); }

/* Settings role cards */
.role-perm-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
