@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700&display=swap');

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

:root {
  color-scheme: light;
  --bg:       #ffffff;
  --bg2:      #ffffff;
  --bg3:      #e8f6f5;
  --bg4:      #d4efee;
  --border:   #b8e0de;
  --border2:  #8ecfcc;
  --text:     #0d2b2b;
  --text2:    #1a4a4a;
  --muted:    #4a8a86;
  --gold:     #008a8a;
  --gold2:    #20b1aa;
  --gold3:    #20b1aa;
  --gold-bg:  rgba(0,138,138,0.09);
  --gold-bg2: rgba(0,138,138,0.16);
  --green:    #2d7a4f;
  --green-bg: rgba(45,122,79,0.08);
  --red:      #c0392b;
  --red-bg:   rgba(192,57,43,0.08);
  --amber:    #f59e0b;
  --amber-bg: rgba(196,124,26,0.10);
  --blue:     #2563a8;
  --blue-bg:  rgba(37,99,168,0.08);
  --teal:     #008a8a;
  --teal-bg:  rgba(0,138,138,0.09);
  --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: #ffffff; color-scheme: light; scroll-behavior: smooth;
  overflow-x: clip; /* clip prevents breaking position:fixed unlike hidden */
  max-width: 100vw;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip prevents breaking position:fixed unlike hidden */
  max-width: 100vw;
}
h1,h2,h3,h4 { font-family: 'Poppins', 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: 'Poppins', 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 — defined in includes/pub_nav.php inline styles */
/* Fixed nav offset handled by margin-top:90px on first content element of each page */
/* .pub-nav — defined in includes/pub_nav.php inline style */
.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: 'Poppins', sans-serif; font-weight: 900; font-size: 18px;
  color: #fff; flex-shrink: 0;
}
.pub-nav-title { font-family: 'Poppins', 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: fixed; top: 0; left: 0; right: 0; z-index: 300; 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: 'Poppins', sans-serif; font-weight: 900; color: #fff; font-size: 16px; flex-shrink: 0; }
.nav-title { font-family: 'Poppins', 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: 'Poppins', 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-developer { background: var(--red-bg); color: var(--red); }
.rb-manager    { background: var(--gold-bg2); color: var(--gold); }
.rb-staff      { background: var(--blue-bg); color: var(--blue); }
.rb-agent      { background: rgba(0,138,138,0.08); color: #008a8a; }
.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, 65vw, 740px); background: #008a8a; width: 100%; max-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%; flex-wrap: nowrap; }
.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; background-repeat: no-repeat; transition: transform 9s ease-out; width: 100%; height: 100%; will-change: transform; }
.slide.active .slide-bg { transform: scale(1.07); }
/* Banner slides: no zoom animation, strict cover, no transform ever */
.banner-slide .slide-bg,
.banner-slide.active .slide-bg {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
  transition: none !important;
  z-index: 1;
}
/* Blurred fill layer — covers the black bars behind the contained image */
.banner-slide .slide-bg-fill {
  display: none; /* hidden — banner uses cover so no fill needed */
}
.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: 100%; 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: 'Poppins', 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: 'Poppins', 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 SPLIT LAYOUT */
.split-slider { height: clamp(650px, 85vh, 980px) !important; width: 100% !important; border-radius: 0; }
.split-slider-label {
  position: absolute; top: 14px; left: 18px; z-index: 20;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.67rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.18);
}
/* .split-slider-label-right — removed, both panels use same label style */
/* Banner slide customizations */
.banner-overlay { display: none !important; }
.banner-content {
  padding: 0 7% 56px !important;
  max-width: 100% !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55), 0 2px 18px rgba(0,0,0,0.35);
}
.banner-badge {
  display: inline-block; background: rgba(0,0,0,0.32); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.32); color: #fff;
  padding: 5px 14px; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px; margin-bottom: 14px; text-shadow: none;
}
.banner-title {
  font-family: 'Poppins', sans-serif; font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  color: #fff; font-weight: 800; line-height: 1.25; margin-bottom: 10px;
}
.banner-subtitle { color: rgba(255,255,255,0.92); font-size: clamp(0.78rem, 1.2vw, 0.92rem); line-height: 1.6; margin-bottom: 22px; max-width: 380px; }
.banner-cta { margin-top: 0; text-shadow: none; }
/* Divider line between the two halves — right edge of left (banner) panel */
.hero-split-right .hero-slider::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  z-index: 15; pointer-events: none;
}

/* 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: 0 auto; 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: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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(0,138,138,0.35); }

/* CATEGORY STRIP — buttons, NO icons */
.cat-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 5%; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100vw; box-sizing: border-box; }
.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: 'Poppins', 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(0,138,138,0.25); }
.cat-pill.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.cat-pill.maint { border-color: rgba(0,138,138,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(0,138,138,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: 'Poppins', 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, #008a8a 0%, #20b1aa 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: 'Poppins', 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: 'Poppins', 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: min(1280px, 100vw); 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: 'Poppins', 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: #008a8a; }
.lcard-feat { position: absolute; top: 12px; right: 12px; background: rgba(0,138,138,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: 'Poppins', 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: stretch; 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; display: flex; flex-direction: column; align-items: center; }
.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: 'Poppins', 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: 'Poppins', 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(0,138,138,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--gold); }
.why-card h3 { font-family: 'Poppins', 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, #008a8a 0%, #20b1aa 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: 'Poppins', 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(0,138,138,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: 'Poppins', 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(0,138,138,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: 'Poppins', 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: 'Poppins', 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(0,138,138,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: 'Poppins', 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);
  margin-top: 64px;
}

.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 10px 0 8px;
  flex-shrink: 0;
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  z-index: 250;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* Content must be offset by sidebar width since sidebar is now fixed */
.content {
  flex: 1;
  margin-left: 240px;
  padding: 30px 34px;
  background: var(--bg);
  min-width: 0;
  min-height: calc(100vh - 64px);
  width: calc(100% - 240px);
  box-sizing: border-box;
}
.sidebar-section { margin-bottom: 2px; }
.sidebar-label { padding: 10px 18px 4px; font-size: 0.58rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--border2); font-weight: 700; font-family: 'Poppins', sans-serif; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 8px 18px; cursor: pointer; font-size: 0.82rem; color: var(--muted); transition: all 0.15s; border-left: 3px solid transparent; overflow: hidden; font-family: 'Poppins', 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: 0.95rem; width: 18px; 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 7px; font-size: 0.62rem; font-weight: 700; flex-shrink: 0; }

/* PAGE HEADER */
.page-header { margin-bottom: 28px; }
.page-header h2 { font-family: 'Poppins', sans-serif; font-size: 1.65rem; font-weight: 800; color: var(--text); }
.page-header h3 { font-family: 'Poppins', 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; height: 100%; }
.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; min-height: 0; }
.card-title { font-family: 'Poppins', 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: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--gold); }
.card-meta { display: flex; gap: 8px; margin-top: 9px; font-size: 0.77rem; color: var(--muted); align-items: center; flex-wrap: wrap; }
.grid-3 > * { display: flex; flex-direction: column; }

/* 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: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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(0,138,138,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(0,138,138,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: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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: 'Poppins', sans-serif; }
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; font-family: 'Poppins', 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); overflow-y: auto; }
.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); max-height: calc(100dvh - 48px); overflow-y: auto; margin: auto; }
.modal h3 { font-family: 'Poppins', 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: 'Poppins', 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 sits below the pub-nav (70px tall, sticky) */
.login-screen { padding-top: 70px; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }

@media (max-width: 768px) {
  /* pub-nav collapses slightly on mobile */
  .login-screen { padding-top: 64px; }
}

.login-visual { background: linear-gradient(160deg, #008a8a 0%, #007070 50%, #005a5a 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(0,70,70,0.96) 20%, rgba(0,100,100,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: 'Poppins', sans-serif; font-weight: 900; font-size: 20px; color: #fff; }
.login-visual-logo-name { font-family: 'Poppins', sans-serif; font-size: 1.35rem; font-weight: 900; color: #fff; }
.login-visual-logo-name span { color: var(--gold3); }
.login-visual-quote { font-family: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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: 'Poppins', sans-serif; font-weight: 900; font-size: 24px; color: #fff; margin: 0 auto 20px; }
.login-title { font-family: 'Poppins', 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: #008a8a; }
.pub-card-featured { position: absolute; top: 12px; right: 12px; background: rgba(0,138,138,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: 'Poppins', 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: #008a8a; color: rgba(255,255,255,0.72); padding: 56px 5% 26px; margin-top: 64px; }
.footer-desc { font-size:0.83rem; line-height:1.75; max-width:260px; color:rgba(255,255,255,0.55); margin-top:12px; }
.footer-logo-wrap { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-logo-icon { 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:'Poppins', sans-serif; font-weight:900; font-size:18px; color:#fff; flex-shrink:0; }
.footer-logo-img  { height:40px; border-radius:8px; object-fit:contain; }
.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: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 0; }
.footer-brand-name span { color: var(--gold3); }
.footer h4 { font-family: 'Poppins', 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: #ffffff; transition: color 0.2s; }
.footer ul li a:hover { color: var(--gold3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.79rem; color: #ffffff; 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; }
  .app-layout::before { width: 216px; }
  .content { margin-left: 216px; width: calc(100% - 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) {
  /* sidebar + content handled in mobile dashboard redesign block below */
  .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%; }
  .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: #ffffff !important; --bg2: #ffffff !important; --bg3: #e8f6f5 !important;
    --border: #b8e0de !important; --border2: #8ecfcc !important;
    --text: #0d2b2b !important; --text2: #1a4a4a !important; --muted: #4a8a86 !important;
    --gold: #008a8a !important; --gold2: #20b1aa !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: #ffffff !important; color: #0d2b2b !important; }
  .pub-nav, .cat-strip, .stats-strip,
  .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: #0d2b2b !important;
  }
  .footer { background: #008a8a !important; color: rgba(255,255,255,0.72) !important; }
  .footer h4 { color: #fff !important; }
  .footer ul li a { color: #ffffff !important; }
  .footer-bottom { color: #ffffff !important; }
  .cta-band { background: linear-gradient(135deg, #008a8a 0%, #20b1aa 100%) !important; }
  .home-sec-alt { background-color: #e8f6f5 !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%; }

/* ── Hero split: banner is first in DOM (shows first on mobile)
   On desktop, CSS order flips it: featured=left, banner=right ── */
.hero-split-wrap {
  display: flex; align-items: stretch; width: 100%; overflow: hidden;
  isolation: isolate; min-height: 600px;
}
.hero-split-right {
  order: 1; flex: 0 0 50%; width: 50%;
  position: relative; overflow: hidden;
} /* announcement banner — left on desktop */
.hero-split-left {
  order: 2; flex: 0 0 50%; width: 50%;
  position: relative; overflow: hidden;
} /* featured properties — right on desktop */

/* Desktop/mobile image switching for banners */
.slide-bg-desktop { display: block; }
.slide-bg-mobile  { display: none; }

/* ── Slider tablet fix (900px and below, side-by-side still) ── */
@media (max-width: 900px) {
  .hero-slider { height: clamp(300px, 50vh, 560px); }
  .hero-split-right .split-slider,
  .hero-split-right .hero-slider { height: clamp(420px, 62vh, 720px) !important; }
  .hero-split-left  .split-slider,
  .hero-split-left  .hero-slider { height: clamp(420px, 62vh, 720px) !important; }
  .slide-content { padding: 0 5% 48px; }
  .slide-content h2 { font-size: clamp(1.1rem, 3.5vw, 1.6rem); }
  .banner-title { font-size: clamp(1rem, 3vw, 1.35rem); }
  .banner-subtitle { display: none; }
  .banner-content { padding: 0 5% 48px !important; }
}

/* ── Mobile stacked layout (700px and below) ── */
@media (max-width: 700px) {
  .hero-split-wrap { flex-direction: column !important; min-height: unset !important; }
  .hero-split-right { order: unset !important; width: 100% !important; flex: none !important; overflow: hidden !important; }
  .hero-split-left  { order: unset !important; width: 100% !important; flex: none !important; overflow: hidden !important; }

  /* Banner: proportional to viewport height on mobile — fills the screen nicely */
  .hero-split-right .split-slider,
  .hero-split-right .hero-slider {
    height: clamp(260px, 52svh, 480px) !important;
    max-height: none !important;
  }

  /* Featured listing below */
  .hero-split-left .split-slider,
  .hero-split-left .hero-slider { height: clamp(300px, 65vw, 440px) !important; }

  /* Use portrait mobile image */
  .slide-bg-desktop { display: none !important; }
  .slide-bg-mobile  { display: block !important; }

  /* Banner: cover on mobile too */
  .hero-split-right .banner-slide .slide-bg {
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Hide decorative divider */
  .hero-split-right .hero-slider::before { display: none !important; }

  /* Show full banner content */
  .banner-subtitle { display: block !important; font-size: .84rem !important; max-width: 300px; }
  .banner-cta      { display: inline-flex !important; }
  .banner-content  { padding: 0 5% 36px !important; }
  .banner-title    { font-size: 1.3rem !important; margin-bottom: 10px; }
  .banner-badge    { font-size: 0.7rem; padding: 5px 12px; margin-bottom: 12px; }
  .split-slider-label { font-size: 0.6rem; padding: 4px 10px; top: 10px; left: 12px; }
}

@media (max-width: 600px) {
  /* Only applies to the standalone featured hero, not split-slider */
  .hero-slider:not(.split-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; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE DASHBOARD — Single menu button + slide-up drawer
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-layout { flex-direction: column; min-height: 100vh; overflow-x: hidden; }

  /* ── Hide desktop sidebar, show nothing by default ── */
  .sidebar {
    display: none !important;
  }
  .app-layout::before {
    display: none !important;
  }

  /* ── Content takes full width when sidebar is gone ── */
  .content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* ── Content takes full width, leaves room for bottom bar ── */
  .content {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px 16px calc(74px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
  }

  /* ── Bottom bar: just one Menu button + key shortcuts ── */
  .dash-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 300;
    display: flex !important;
    align-items: stretch;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .dash-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--muted);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.2px;
  }
  .dash-bottom-btn .dbb-icon { font-size: 1.3rem; line-height: 1; }
  .dash-bottom-btn:hover,
  .dash-bottom-btn.active { color: var(--gold); }
  .dash-bottom-btn.menu-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #fff;
    border-radius: 0;
    flex: 1.4;
  }
  .dash-bottom-btn.menu-btn:hover { color: #fff; opacity: 0.92; }

  /* ── Mobile nav drawer (slide up from bottom) ── */
  .dash-nav-drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 400;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32,0,0.15,1);
    max-height: 82vh;
    overflow-y: auto;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
  }
  .dash-nav-drawer.open { transform: translateY(0); }
  .dash-nav-drawer-handle {
    width: 38px; height: 4px;
    background: var(--border2);
    border-radius: 99px;
    margin: 14px auto 8px;
  }
  .dash-nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
  }
  .dash-nav-drawer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem; font-weight: 800; color: var(--text);
  }
  .dash-drawer-close {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid var(--border2); background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; color: var(--muted);
    -webkit-tap-highlight-color: transparent;
  }
  .dash-nav-drawer-body { padding: 10px 12px 16px; }
  .drawer-section-label {
    font-size: 0.6rem; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--border2);
    padding: 10px 8px 4px;
  }
  .drawer-nav-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem; font-weight: 600; color: var(--text2);
    text-decoration: none; transition: all 0.15s;
    cursor: pointer; border: none; background: transparent; width: 100%;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }
  .drawer-nav-item:hover,
  .drawer-nav-item.active { background: var(--gold-bg); color: var(--gold); }
  .drawer-nav-item .dnav-icon { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }
  .drawer-nav-item .dnav-badge {
    margin-left: auto; background: var(--gold); color: #fff;
    font-size: 0.65rem; font-weight: 800; padding: 2px 7px;
    border-radius: 99px; min-width: 18px; text-align: center;
  }

  /* ── Overlay behind drawer ── */
  .dash-drawer-overlay {
    position: fixed; inset: 0; z-index: 390;
    background: rgba(0,0,0,0.45);
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s;
  }
  .dash-drawer-overlay.open { opacity: 1; pointer-events: all; }

  /* ── Page header ── */
  .page-header { margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
  .page-header h2 { font-size: 1.25rem; line-height: 1.25; }
  .page-header p  { font-size: 0.8rem; margin-top: 2px; }

  /* ── Stat cards ── */
  .stat-cards-row { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat-card { padding: 14px 12px; border-radius: 12px; }
  .stat-card-num { font-size: 1.7rem; }

  /* ── Cards ── */
  .card { padding: 14px; border-radius: 12px; }
  .form-box { padding: 16px 14px; border-radius: 12px; }

  /* ── Forms ── */
  .form-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .form-input, .form-select, .form-textarea { padding: 10px 12px; font-size: 0.87rem; border-radius: 9px; min-height: 44px; }

  /* ── Tables ── */
  .table-wrap { border-radius: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; }
  thead th { padding: 9px 11px; font-size: 0.67rem; white-space: nowrap; }
  tbody td { padding: 9px 11px; font-size: 0.81rem; }

  /* ── Buttons ── */
  .btn { min-height: 42px; border-radius: 9px; font-size: 0.84rem; }
  .btn-lg { min-height: 48px; font-size: 0.9rem; }
  .btn-sm { min-height: 34px; font-size: 0.77rem; padding: 0 11px; }

  /* ── Grid collapses ── */
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  /* ── Chat ── */
  .chat-layout { flex-direction: column; height: auto; min-height: 480px; }
  .chat-sidebar { width: 100%; height: 180px; border-right: none; border-bottom: 1px solid var(--border); }

  /* ── Nav ── */
  .nav { padding: 0 14px; height: 56px; }
  .nav-title { font-size: 1.02rem; }
  .nav-btn { padding: 5px 10px; font-size: 0.76rem; }
  .nav-right .role-badge { display: none; }
  .nav-home-btn-label { display: none; }

  /* ── Flash ── */
  .flash { border-radius: 9px; font-size: 0.84rem; padding: 10px 13px; margin-bottom: 14px; }
}

@media (max-width: 420px) {
  .content { padding: 14px 12px calc(70px + env(safe-area-inset-bottom, 0px)); }
  .page-header h2 { font-size: 1.1rem; }
  .stat-card-num { font-size: 1.45rem; }
  .dash-bottom-btn .dbb-icon { font-size: 1.15rem; }
  .dash-bottom-btn { font-size: 0.55rem; }
}

/* ── 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(0,138,138,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;
  }
}

/* ── 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(0,138,138,0.25);
  border-radius: 9px;
  font-family: 'Poppins', 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: 'Poppins', 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(84px + env(safe-area-inset-bottom, 0px)); }
  .footer { margin-bottom: 0; padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Sidebar "Website Home" item ─────────────────────────────── */
.sidebar-home-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-item-home {
  color: var(--gold) !important;
  font-weight: 600;
}
.sidebar-item-home:hover {
  background: var(--gold-bg) !important;
  color: var(--gold) !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(0,138,138,0.06); }
.icon-option.selected { border-color: var(--teal); background: rgba(0,138,138,0.12); box-shadow: 0 0 0 3px rgba(0,138,138,0.15); }

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

/* ═══════════════════════════════════════════════════
   MOBILE DASHBOARD REDESIGN — Perfect Alignment Fix
   ═══════════════════════════════════════════════════ */

/* Dashboard welcome banner */
.dash-welcome {
  background: linear-gradient(135deg, rgba(0,138,138,0.1) 0%, rgba(0,138,138,0.03) 100%);
  border: 1px solid rgba(0,138,138,0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dash-welcome-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.dash-welcome-text h2 { font-size: 1.25rem; margin: 0 0 3px; color: var(--text); }
.dash-welcome-text p  { font-size: 0.82rem; margin: 0; color: var(--muted); }

/* Stats grid — mobile-first 2-col → 4-col */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.stat-card-m {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card-m:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 1.55rem; font-weight: 900; line-height: 1.1; margin-bottom: 5px; }
.stat-lbl { font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.2px; line-height: 1.4; }
.stat-chg { font-size: 0.68rem; margin-top: 4px; font-weight: 500; }

/* 4-col on tablet+ */
@media (min-width: 540px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stat-num { font-size: 1.8rem; }
}
/* 8-col on desktop — 2 rows of 4 */
@media (min-width: 1024px) {
  .stats-grid-8 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat-num { font-size: 2rem; }
}

/* Section headers */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-section-title {
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Quick-action buttons — 2 cols mobile, 4 cols tablet+ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 480px) {
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}
.qa-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: block;
  font-family: 'Poppins', sans-serif;
}
.qa-btn:hover { background: var(--gold-bg); border-color: var(--gold); color: var(--gold); }
.qa-btn-icon { font-size: 1.4rem; display: block; margin-bottom: 5px; }

/* Featured properties horizontal scroll on mobile */
.featured-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .featured-scroll {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .featured-scroll::-webkit-scrollbar { display: none; }
  .featured-property-card { min-width: 230px; scroll-snap-align: start; flex-shrink: 0; }
}

/* Featured property card */
.featured-property-card {
  background: #fff;
  border: 1.5px solid rgba(0,138,138,0.3);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.featured-property-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,138,138,0.15); }
.featured-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--gold); color: #fff;
  font-size: 0.62rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px;
}
.featured-pkg-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 0.6rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}
.featured-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.featured-img-placeholder {
  width: 100%; height: 150px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}
.featured-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.featured-title { font-weight: 700; font-size: 0.87rem; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-loc   { font-size: 0.74rem; color: var(--muted); margin-bottom: 8px; }
.featured-price { font-size: 1rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.featured-actions { display: flex; gap: 8px; margin-top: auto; }

/* Ad package promo grid */
.ad-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.ad-pkg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.15s;
}
.ad-pkg-card:hover { transform: translateY(-2px); }
.ad-pkg-name  { font-weight: 800; font-size: 0.92rem; margin-bottom: 4px; }
.ad-pkg-price { font-size: 1.25rem; font-weight: 900; color: var(--text); margin-bottom: 2px; }
.ad-pkg-dur   { font-size: 0.73rem; color: var(--muted); margin-bottom: 10px; }
.ad-pkg-feat  { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; }
.ad-pkg-feat li { font-size: 0.74rem; color: var(--muted); padding: 3px 0; display: flex; gap: 6px; align-items: flex-start; }
.ad-pkg-feat li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Pending items list */
.pending-list { display: flex; flex-direction: column; gap: 10px; }
.pending-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pending-item-info  { flex: 1; min-width: 0; }
.pending-item-title { font-weight: 700; font-size: 0.86rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-item-sub   { font-size: 0.73rem; color: var(--muted); margin-top: 2px; }
.pending-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Mobile content padding fix */
@media (max-width: 480px) {
  .content { padding: 14px 12px !important; }
  .dash-welcome { padding: 14px; gap: 10px; }
  .dash-welcome-avatar { width: 44px; height: 44px; font-size: 1.2rem; }
  .dash-welcome-text h2 { font-size: 1.1rem; }
  .stat-card-m { padding: 12px 8px; }
  .stat-num { font-size: 1.35rem; }
  .stat-lbl { font-size: 0.67rem; }
  .qa-btn { padding: 12px 6px; font-size: 0.72rem; }
  .qa-btn-icon { font-size: 1.2rem; }
  .featured-img, .featured-img-placeholder { height: 130px; }
}

/* Grid fixes for mobile dashboard */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .package-grid { grid-template-columns: 1fr !important; }
}

/* Property page — stack sidebar on mobile */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   OMANIREALTY v9 — OMAN EDITION
   Mobile-First Native App Feel + Login Fix + sqm + OMR
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL MOBILE FOUNDATIONS ──────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, select, textarea, button { font-family: 'Poppins', sans-serif; -webkit-appearance: none; }
img { max-width: 100%; display: block; }

/* Safe area insets (notch / home indicator) */
.pub-nav         { padding-left: max(4%, env(safe-area-inset-left)); padding-right: max(4%, env(safe-area-inset-right)); }
.dash-bottom-bar { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.content         { padding-bottom: max(20px, env(safe-area-inset-bottom)); }

/* ── 2. PUB-NAV MOBILE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .pub-nav { height: 58px; }
  .pub-nav-logo { gap: 8px; }
  .pub-nav-logo-icon { width: 30px; height: 30px; font-size: 13px; border-radius: 7px; }
  .pub-nav-title { font-size: 1.05rem; }
  .pub-nav-links { display: none; }
  .pub-nav-actions .btn { padding: 7px 13px; font-size: 0.78rem; }
  .pub-nav-actions .btn:first-child { display: none; } /* hide Sign In, keep Post */
  .mob-menu-btn { display: flex; }
}

/* ── 3. HERO / HOME PAGE MOBILE ─────────────────────────────────── */
@media (max-width: 600px) {
  .hero-section { min-height: 92vw; max-height: 420px; }
  .hero-overlay-content { padding: 0 5% 24px; }
  .hero-title { font-size: 1.55rem; line-height: 1.2; }
  .hero-sub   { font-size: 0.82rem; }
  .hero-search-bar { margin: -20px 4% 0; width: 92%; border-radius: 14px; }
  .hero-search-bar input { height: 48px; font-size: 0.88rem; }
  .hero-search-bar button { height: 48px; padding: 0 18px; font-size: 0.85rem; }
}

/* ── 4. PROPERTY CARDS MOBILE ───────────────────────────────────── */
@media (max-width: 600px) {
  .listing-grid     { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 4%; }
  .listing-grid-4   { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lcard            { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
  .lcard-img        { height: 120px; }
  .lcard-body       { padding: 10px 11px 12px; }
  .lcard-price      { font-size: 1rem; font-weight: 800; }
  .lcard-title      { font-size: 0.78rem; line-height: 1.35; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .lcard-location   { font-size: 0.7rem; }
  .lcard-meta span  { font-size: 0.68rem; }
}
@media (max-width: 400px) {
  .listing-grid, .listing-grid-4 { grid-template-columns: 1fr; }
  .lcard-img { height: 180px; }
}

/* ── 5. DASHBOARD MOBILE LAYOUT ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Full-screen content, sidebar hidden, bottom bar nav */
  .nav           { position: sticky; top: 0; left: auto; right: auto; }
  .app-layout    { margin-top: 0; }
  .dash-layout   { flex-direction: column; }
  .sidebar       { display: none; }
  .content       {
    margin: 0; padding: 16px 16px 80px;
    width: 100%; max-width: 100%;
    min-height: 100vh;
  }
  /* Page header */
  .page-header   { margin-bottom: 16px; }
  .page-header h2 { font-size: 1.25rem; }
  .page-header p  { font-size: 0.8rem; }
  /* Stat cards — 2 per row on mobile */
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 14px 12px; border-radius: 12px; }
  .stat-card-num  { font-size: 1.5rem; }
  .stat-card-label { font-size: 0.72rem; }
  /* Tables → horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
  .table-wrap table { min-width: 540px; }
  /* Forms */
  .form-box { padding: 16px 14px; border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-input, .form-select { font-size: 16px !important; /* prevent iOS zoom */ padding: 11px 12px; border-radius: 9px; }
  textarea.form-input { font-size: 16px !important; }
  .form-label { font-size: 0.78rem; }
  /* Buttons */
  .btn { min-height: 42px; border-radius: 9px; }
  .btn-lg { min-height: 50px; font-size: 0.92rem; }
  /* Grid-2 → stacked */
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── 6. BOTTOM NAV BAR — NATIVE APP STYLE ──────────────────────── */
.dash-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-top: 1px solid #b8e0de;
  display: flex; align-items: stretch;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  height: calc(60px + env(safe-area-inset-bottom));
}
.dash-bottom-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: 0.6rem; font-weight: 700; color: #4a8a86;
  text-decoration: none; background: none; border: none;
  cursor: pointer; padding: 8px 4px; text-transform: uppercase;
  letter-spacing: 0.3px; transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}
.dbb-icon { font-size: 1.3rem; line-height: 1; }
.dash-bottom-btn.active, .dash-bottom-btn:active { color: #008a8a; }
.dash-bottom-btn.active .dbb-icon { filter: drop-shadow(0 1px 3px rgba(0,138,138,0.4)); }

/* Desktop: hide bottom bar */
@media (min-width: 769px) { .dash-bottom-bar { display: none; } }

/* ── 7. DRAWER / MOBILE SIDEBAR ────────────────────────────────── */
.dash-nav-drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(85vw, 320px);
  background: #fff;
  z-index: 200; box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.dash-nav-drawer.open { transform: translateX(0); }
.dash-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 199; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.dash-drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ── 8. LISTING CARDS — DASHBOARD ──────────────────────────────── */
@media (max-width: 600px) {
  .card        { border-radius: 13px; }
  .card-image  { height: 150px; }
  .card-body   { padding: 12px 13px; }
  .card-title  { font-size: 0.85rem; }
  .card-price  { font-size: 1.05rem; }
  .card-meta span { font-size: 0.7rem; }
  .card-actions .btn { font-size: 0.72rem; padding: 7px 11px; min-height: 34px; }
}

/* ── 9. LISTING DETAIL MOBILE ───────────────────────────────────── */
@media (max-width: 768px) {
  .listing-detail { padding: 0; }
  .listing-hero { flex-direction: column; gap: 0; border-radius: 0; }
  .listing-hero-image { width: 100%; height: 200px; border-radius: 0; }
  .listing-hero-body { padding: 16px 14px; }
  .listing-price-big { font-size: 1.4rem; }
  .listing-specs { flex-wrap: wrap; gap: 8px; }
  .spec-item { font-size: 0.78rem; padding: 5px 9px; border-radius: 6px; }
  /* Gallery tabs scroll */
  .img-gallery-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
  .img-tab { white-space: nowrap; flex-shrink: 0; }
  /* Image grid */
  .img-gallery-panel.show { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* ── 10. PROPERTY PUBLIC PAGE MOBILE ────────────────────────────── */
@media (max-width: 768px) {
  .property-layout { flex-direction: column; }
  .property-main  { width: 100%; }
  .property-aside { width: 100%; position: static !important; }
  .pub-prop-gallery { border-radius: 12px; overflow: hidden; }
}

/* ── 11. HOME PAGE SECTIONS ─────────────────────────────────────── */
@media (max-width: 600px) {
  .home-sec  { padding: 28px 4%; }
  .home-sec h2 { font-size: 1.35rem; }
  .cat-strip { padding: 10px 4% 10px; gap: 8px; }
  .cat-pill  { padding: 8px 14px; font-size: 0.77rem; border-radius: 99px; }
  .why-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-card  { padding: 16px 14px; border-radius: 12px; }
  .step-grid { grid-template-columns: 1fr; gap: 14px; }
  .step-box  { padding: 18px 16px; border-radius: 12px; }
  .step-num  { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-logo-wrap { flex-direction: row; }
  .stats-strip { padding: 14px 4%; gap: 0; }
  .stat-item { padding: 8px 12px; }
  .cta-band  { border-radius: 14px; margin: 0 4%; padding: 22px 18px; gap: 20px; }
  .cta-left h2 { font-size: 1.35rem; }
  .cta-right { grid-template-columns: 1fr 1fr; gap: 8px; }
  .maint-strip { padding: 24px 4%; }
  .maint-cards { gap: 10px; }
  .maint-card  { padding: 14px 12px; border-radius: 12px; font-size: 0.8rem; }
}

/* ── 12. FORMS MOBILE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-box      { padding: 16px 14px; border-radius: 14px; margin-bottom: 14px; }
  .form-grid     { grid-template-columns: 1fr; gap: 0; }
  /* Prevent iOS zoom on focus (font-size >= 16px) */
  input.form-input, select.form-select, textarea.form-input {
    font-size: 16px !important;
  }
  /* Image upload grid */
  .img-upload-grid  { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .img-upload-area  { padding: 24px 14px; border-radius: 12px; }
  /* Facility rows */
  .facility-row { grid-template-columns: 1fr 1fr !important; grid-template-rows: auto auto; }
  .facility-row select { grid-column: 1/-1; }
}

/* ── 13. ENQUIRY / CHAT MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .chat-layout { flex-direction: column; height: auto; }
  .chat-list   { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-window { height: 400px; }
  .enquiry-box { border-radius: 14px; }
}

/* ── 14. MODALS MOBILE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .modal-overlay { align-items: flex-end; padding: 0; overflow-y: auto; }
  .modal {
    border-radius: 20px 20px 0 0;
    width: 100%; max-width: 100%;
    max-height: 92dvh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px 18px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    flex-shrink: 0;
  }
  .modal::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: #b8e0de; border-radius: 2px;
    margin: 0 auto 16px;
  }
}

/* ── 15. ROLE BADGE MOBILE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .role-badge { font-size: 0.62rem; padding: 3px 8px; }
  .rb-agent { background: rgba(0,138,138,0.08); color: #008a8a; }
}

/* ── 16. MAINTENANCE PAGE MOBILE ────────────────────────────────── */
@media (max-width: 600px) {
  .maint-service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .maint-service-card { padding: 14px 12px; border-radius: 12px; }
}

/* ── 17. ANALYTICS / CHARTS MOBILE ─────────────────────────────── */
@media (max-width: 600px) {
  .analytics-grid { grid-template-columns: 1fr; }
}

/* ── 18. TABLE IMPROVEMENTS MOBILE ─────────────────────────────── */
@media (max-width: 600px) {
  .table-wrap th { font-size: 0.68rem; padding: 9px 10px; }
  .table-wrap td { font-size: 0.78rem; padding: 10px 10px; }
  .table-wrap .btn-sm { font-size: 0.68rem; padding: 5px 9px; min-height: 28px; }
}

/* ── 19. BANNER / SLIDER MOBILE ─────────────────────────────────── */
@media (max-width: 600px) {
  .slide-content { padding: 16px 5% 20px; }
  .slide-content h2 { font-size: 1.1rem; line-height: 1.25; }
  .slide-sub  { font-size: 0.78rem; }
  .slide-price { font-size: 1rem; }
  .slide-badge { font-size: 0.63rem; padding: 4px 10px; border-radius: 6px; }
  .slide-cta { gap: 8px; margin-top: 12px; }
  .slide-cta .btn { padding: 9px 14px; font-size: 0.78rem; min-height: 38px; }
}

/* ── 20. SEARCH / FILTER BAR ────────────────────────────────────── */
@media (max-width: 600px) {
  .search-filter-bar { flex-direction: column; gap: 8px; padding: 12px; }
  .search-filter-bar input { font-size: 16px !important; }
  .filter-group { flex-wrap: wrap; gap: 6px; }
  .filter-group select { font-size: 14px; padding: 8px 10px; border-radius: 8px; flex: 1; min-width: 120px; }
}

/* ── 21. PERM NOTICE MOBILE ─────────────────────────────────────── */
@media (max-width: 600px) {
  .perm-notice { padding: 12px 14px; border-radius: 10px; font-size: 0.81rem; }
}

/* ── 22. AGENT REGISTER MOBILE ──────────────────────────────────── */
@media (max-width: 600px) {
  .agent-reg-wrap { margin: 0; padding: 0; }
  .agent-reg-box  { border-radius: 0; min-height: 100vh; padding: 20px 16px; }
}

/* ── 23. SCROLLBAR POLISH ───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #8ecfcc; border-radius: 99px; }

/* ── 24. FOCUS STYLES — accessible but clean ────────────────────── */
:focus-visible {
  outline: 2px solid #008a8a;
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* ── 25. LOADING / TRANSITIONS ──────────────────────────────────── */
.btn { transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s; }
.btn:active { transform: scale(0.97); opacity: 0.9; }
.card, .lcard, .form-box { transition: box-shadow 0.2s; }

/* ── 26. UTILITY: prevent iOS input zoom site-wide ─────────────── */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select, textarea, input[type="text"], input[type="email"],
  input[type="tel"], input[type="number"], input[type="password"],
  input[type="search"], input[type="url"] {
    font-size: 16px;
  }
}

/* ── 27. OMAN / ARABIC RTL SUPPORT (future-ready) ──────────────── */
/* Sidebar intentionally stays on the LEFT in both LTR and RTL dashboard modes */
[dir="rtl"] .sidebar { left: 0; right: auto; }
[dir="rtl"] .content { margin-left: 240px; margin-right: 0; }
[dir="rtl"] .dash-nav-drawer { inset: 0 auto 0 0; transform: translateX(-100%); }
[dir="rtl"] .dash-nav-drawer.open { transform: translateX(0); }

/* ── 28. PRINT / DARK MODE FORCED OFF ──────────────────────────── */
@media print {
  .sidebar, .dash-bottom-bar, .pub-nav, .footer { display: none !important; }
  .content { padding: 0 !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   OMANIREALTY v10 — OVERFLOW FIX + MOBILE HOME + NAV REDESIGN
   ═══════════════════════════════════════════════════════════════════ */

/* ── GLOBAL OVERFLOW KILL ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; max-width: 100vw; }
body { overflow-x: clip; max-width: 100vw; }
section, .home-sec, .home-sec-alt, .cat-strip, .stats-strip,
.hero-slider, .footer, .hero-search-bar, .cta-band,
.listing-grid, .listing-grid-4, .steps-row, .why-grid {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── ALL INPUTS/SELECTS: prevent iOS zoom (must be ≥16px) ──────── */
input, select, textarea {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

/* ── SAFE AREA / NOTCH ─────────────────────────────────────────── */
.pub-nav, nav.nav {
  padding-left: max(4%, env(safe-area-inset-left, 0px));
  padding-right: max(4%, env(safe-area-inset-right, 0px));
}

/* ── REMOVE OLD BOTTOM BAR CONFLICTS ──────────────────────────── */
.pub-bottom-bar { display: none !important; } /* replaced by pub-bbar in nav */
.mob-nav-drawer { display: none !important; } /* replaced by pub-drawer */

/* ═══ MOBILE HOME PAGE ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero slider */
  .hero-slider { height: clamp(300px, 60vw, 480px); }
  .slide-content { padding: 0 5% 56px; max-width: 100%; }
  .slide-content h2 { font-size: clamp(1.1rem, 4.5vw, 1.6rem); line-height: 1.2; }
  .slide-sub  { font-size: clamp(.75rem, 2.5vw, .9rem); }
  .slide-price { font-size: clamp(.9rem, 3vw, 1.1rem); }
  .slide-badge { font-size: .62rem; padding: 4px 10px; }
  .slide-cta { gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .slide-cta .btn { padding: 9px 14px; font-size: .78rem; min-height: 38px; }

  /* Search bar — stack on mobile */
  .hero-search-bar {
    flex-direction: column; gap: 0;
    margin: -14px 4% 0; width: 92%;
    padding: 14px 16px; border-radius: 12px;
  }
  .hsb-sep { display: none; }
  .hsb-field { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .hsb-field:last-of-type { padding-bottom: 0; border-bottom: none; }
  .hsb-field input, .hsb-field select { width: 100%; font-size: 15px; }
  .hsb-btn { width: 100%; margin-top: 10px; height: 46px; border-radius: 9px; }

  /* Cat strip — horizontal scroll, no wrap, no overflow */
  .cat-strip { padding: 10px 4% 10px; }
  .cat-strip-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .cat-strip-inner::-webkit-scrollbar { display: none; }
  .cat-pill { flex-shrink: 0; padding: 7px 14px; font-size: .76rem; white-space: nowrap; }

  /* Stats strip */
  .stats-strip { padding: 12px 4%; overflow-x: auto; }
  .stats-strip-inner { flex-wrap: nowrap; min-width: max-content; padding-right: 4%; }
  .stat-item { padding: 6px 16px; flex-shrink: 0; }
  .stat-sep { width: 1px; }

  /* Section padding */
  .home-sec, .home-sec-alt > * { padding: 32px 4%; }
  .home-sec h2 { font-size: clamp(1.2rem, 4vw, 1.7rem); }
  .home-sec p { font-size: .83rem; }

  /* Featured property grid */
  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 0; }
  .listing-grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

  /* Why cards */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-card { padding: 16px 14px; border-radius: 12px; }
  .why-card h3 { font-size: .88rem; }
  .why-card p { font-size: .76rem; }

  /* Steps */
  .steps-row { flex-direction: column; gap: 0; align-items: stretch; }
  .step-box { flex: 1; min-width: 0; padding: 16px 14px; border-radius: 10px; }
  .step-arrow { display: none; }
  .step-num { font-size: 1.4rem; }
  .step-box h3 { font-size: .88rem; }
  .step-box p { font-size: .76rem; }

  /* CTA band */
  .cta-band {
    flex-direction: column; gap: 20px; border-radius: 14px;
    margin: 0 4%; padding: 22px 18px;
  }
  .cta-left h2 { font-size: 1.35rem; }
  .cta-left p { font-size: .81rem; }
  .cta-right { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Maintenance */
  .maint-strip { padding: 20px 4%; }
  .maint-strip-inner h3 { font-size: 1rem; }
  .maint-cards { flex-wrap: wrap; gap: 8px; }
  .maint-card { padding: 12px 14px; border-radius: 10px; font-size: .78rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 4% 0; }
  .footer-bottom { padding: 16px 4%; font-size: .72rem; flex-direction: column; gap: 4px; text-align: center; }
}

@media (max-width: 600px) {
  /* Hero */
  .hero-slider { height: clamp(260px, 55vw, 360px); }
  .slide-content { padding: 0 4% 50px; }
  .slide-content h2 { font-size: 1.05rem; }

  /* Cards: 2-col then 1-col at 380 */
  .listing-grid,
  .listing-grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lcard-img { height: 120px; }
  .lcard-body { padding: 9px 10px 11px; }
  .lcard-price { font-size: .95rem; font-weight: 800; }
  .lcard-title { font-size: .76rem; line-height: 1.3;
    overflow: hidden; display: -webkit-box;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .lcard-location { font-size: .68rem; }
  .lcard-meta { flex-wrap: wrap; gap: 4px; }
  .lcard-meta span { font-size: .65rem; }
  .lcard-meta .lcard-badge { margin-left: 0; }

  /* Why grid: 1 col */
  .why-grid { grid-template-columns: 1fr; }

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

  /* Steps horizontal on 600 */
  .steps-row { flex-direction: row; flex-wrap: wrap; }
  .step-box { flex: 1; min-width: 140px; }
}

@media (max-width: 400px) {
  .listing-grid,
  .listing-grid-4 { grid-template-columns: 1fr; }
  .lcard-img { height: 180px; }
  .cta-right { grid-template-columns: 1fr; }
}

/* ═══ DASHBOARD MOBILE — extra refinements ═══════════════════════ */
@media (max-width: 768px) {
  .page-header h2 { font-size: 1.2rem; }
  .page-header p  { font-size: .78rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .stat-card { padding: 14px 12px; border-radius: 12px; }
  .stat-card-num { font-size: 1.45rem; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 520px; }
  .form-box { padding: 14px 12px; border-radius: 12px; margin-bottom: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn { min-height: 42px; }
  .btn-lg { min-height: 50px; }
}

/* ═══ DASHBOARD BOTTOM BAR ════════════════════════════════════════ */
.dash-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #b8e0de;
  box-shadow: 0 -3px 16px rgba(0,0,0,.07);
  display: flex; align-items: stretch;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  min-height: calc(56px + env(safe-area-inset-bottom, 0px));
}
.dash-bottom-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: .56rem; font-weight: 700; color: #4a8a86;
  text-decoration: none; background: none; border: none;
  cursor: pointer; padding: 8px 4px;
  text-transform: uppercase; letter-spacing: .3px;
  transition: color .15s; min-width: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Poppins', sans-serif;
}
.dbb-icon { font-size: 1.25rem; line-height: 1; }
.dash-bottom-btn.active, .dash-bottom-btn:active { color: #008a8a; }
@media (min-width: 769px) { .dash-bottom-bar { display: none; } }

/* ═══ MODALS MOBILE ══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .modal-overlay { align-items: flex-end; padding: 0; overflow-y: auto; }
  .modal {
    border-radius: 20px 20px 0 0;
    width: 100%; max-width: 100%; max-height: 92dvh;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 22px 18px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    flex-shrink: 0;
  }
  .modal::before {
    content: ''; display: block; width: 40px; height: 4px;
    background: #b8e0de; border-radius: 2px; margin: 0 auto 18px;
  }
}

/* ═══ LISTING DETAIL MOBILE ══════════════════════════════════════ */
@media (max-width: 768px) {
  .listing-detail { max-width: 100%; padding: 0; }
  .listing-hero { flex-direction: column; }
  .listing-hero-image { width: 100%; height: 180px; }
  .listing-hero-body { padding: 14px 12px; }
  .listing-price-big { font-size: 1.3rem; }
  .listing-specs { flex-wrap: wrap; gap: 6px; }
  .img-gallery-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .img-tab { display: inline-flex; flex-shrink: 0; }
}

/* ═══ PROPERTY PAGE MOBILE ════════════════════════════════════════ */
@media (max-width: 768px) {
  .property-layout, .pub-prop-layout { flex-direction: column; }
  .property-aside, .pub-prop-aside { position: static !important; width: 100% !important; }
}

/* ═══ SCROLLBARS ════════════════════════════════════════════════ */
* { scrollbar-width: thin; scrollbar-color: #8ecfcc transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #8ecfcc; border-radius: 99px; }

/* ═══ TAP / FOCUS ════════════════════════════════════════════════ */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
.btn:active, button:active { transform: scale(.97); }
:focus-visible { outline: 2px solid #008a8a; outline-offset: 2px; border-radius: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ═══ PREVENT TEXT RESIZE ON ROTATION ══════════════════════════ */
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }


/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
.whatsapp-fab {
  position: fixed !important;
  bottom: 24px !important;
  right: 20px !important;
  z-index: 99999 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #25D366 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(0,0,0,0.15) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  gap: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
}

.whatsapp-fab svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.whatsapp-fab-label {
  display: none;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.15);
  color: #fff !important;
  text-decoration: none !important;
}

/* Mobile: float above the bottom nav bar (56px) + safe area inset */
@media (max-width: 900px) {
  .whatsapp-fab {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 14px) !important;
    right: 14px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    aspect-ratio: 1 / 1 !important;
  }
}

@media (max-width: 400px) {
  .whatsapp-fab {
    right: 10px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Entrance animation */
@keyframes fabEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.whatsapp-fab {
  animation: fabEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}


/* ══════════════════════════════════════════════════════════════════
   ALIGNMENT & SPACING FIXES — ALL DEVICES
   ══════════════════════════════════════════════════════════════════ */

/* ── CONTAINER CONSISTENCY ──────────────────────────────────────── */
.home-sec,
.home-sec-alt { box-sizing: border-box; width: 100%; }

/* Inner content max-width alignment */
.home-sec > *:not(.listing-grid):not(.listing-grid-4):not(.why-grid):not(.steps-row):not(.maint-service-grid),
.home-sec-alt > *:not(.listing-grid):not(.listing-grid-4):not(.why-grid):not(.steps-row):not(.maint-service-grid) {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HERO SEARCH BAR CENTERING ───────────────────────────────────── */
.hero-search-bar {
  box-sizing: border-box;
}

/* ── SECTION HEADING ALIGNMENT ───────────────────────────────────── */
.home-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

/* ── LISTING GRIDS — consistent gutters ─────────────────────────── */
.listing-grid,
.listing-grid-4 {
  box-sizing: border-box;
  width: 100%;
}

/* ── STATS STRIP — centered items ───────────────────────────────── */
.stats-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── STEP ROW — even spacing ─────────────────────────────────────── */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.step-box { flex: 1; min-width: 180px; max-width: 260px; }

/* ── WHY GRID — balanced columns ────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── CTA BAND — full contained width ───────────────────────────── */
.home-sec .cta-band,
.home-sec-alt .cta-band {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: 100%;
}

/* ── FOOTER GRID — even column gaps ─────────────────────────────── */
.footer-grid {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ── NAV ALIGNMENT ───────────────────────────────────────────────── */
.pub-nav {
  max-width: 100vw;
  box-sizing: border-box;
}

/* ── CARD GRIDS — uniform height cards ──────────────────────────── */
.listing-grid .lcard,
.listing-grid-4 .lcard {
  height: 100%;
}

/* ── PAGE HEADER — consistent bottom spacing ───────────────────── */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 0;
}

/* ── TABLE WRAPPER — full width ─────────────────────────────────── */
.table-wrap {
  width: 100%;
  box-sizing: border-box;
}

/* ── FORM GRID — proper gap ──────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ── BUTTON ALIGNMENT IN FLEX CONTAINERS ───────────────────────── */
.page-header,
.home-sec-head {
  align-items: center;
}

/* ── MODAL CENTERING FIX ─────────────────────────────────────────── */
.modal-overlay {
  box-sizing: border-box;
}
.modal {
  box-sizing: border-box;
  margin: auto;
}

/* ── SIDEBAR ITEM ALIGNMENT ──────────────────────────────────────── */
.sidebar-item {
  box-sizing: border-box;
  width: 100%;
}

/* ── CONTENT AREA FULL WIDTH ─────────────────────────────────────── */
.content {
  box-sizing: border-box;
  min-width: 0;
}

/* ── MAINT SERVICE GRID — proper alignment ──────────────────────── */
.maint-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

/* ── RESPONSIVE FORM GRID ────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-sec-head { margin-bottom: 18px; }
  .steps-row { gap: 10px; }
  .step-box { max-width: 100%; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .maint-service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .page-header { margin-bottom: 16px; }
}

@media (max-width: 400px) {
  .why-grid { grid-template-columns: 1fr; }
  .maint-service-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 10px; }
}


/* ══════════════════════════════════════════════════════════════════
   TARGETED FIXES: HEADER · CONTACT · HOW-IT-WORKS · FOOTER
   ══════════════════════════════════════════════════════════════════ */

/* ── 1. MOBILE HEADER ALIGNMENT ─────────────────────────────────── */
/* Nav is 58px tall on mobile; logo + ham button must sit centred */
@media (max-width: 900px) {
  .pub-nav {
    height: 60px;
    padding: 0 16px;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  /* Brand: logo + name side-by-side, vertically centred */
  .pub-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  /* Shrink logo image so it fits inside 60px bar */
  .pub-nav-brand img {
    height: 36px !important;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
  }
  /* Icon fallback (letter mark) */
  .pub-nav-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
    border-radius: 7px !important;
    flex-shrink: 0;
  }
  .pub-nav-name {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  /* Push hamburger to the right without extra gap */
  .pub-nav-ham {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }
  /* Hide desktop-only elements */
  .pub-nav-links,
  .pub-nav-actions { display: none !important; }
}

@media (max-width: 600px) {
  .pub-nav {
    height: 56px;
    padding: 0 14px;
  }
  .pub-nav-brand img {
    height: 32px !important;
    max-width: 110px;
  }
  .pub-nav-name { font-size: 0.95rem; max-width: 130px; }
}

/* ── 2. HOW IT WORKS — equal height cards ────────────────────────── */
/* Desktop: flexbox stretch so all cards match the tallest */
.steps-row {
  align-items: stretch !important;
}
.step-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
/* Push paragraph to fill remaining height so numbers+headings align */
.step-box p {
  flex: 1;
  margin-bottom: 0;
}
/* Arrow aligns to number vertically */
.step-arrow {
  align-self: center;
  margin-top: 0 !important;
  padding-top: 52px; /* offset to align with step number circle */
}

/* On mobile grid: equal height per row via grid auto rows */
@media (max-width: 900px) {
  .steps-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .step-arrow { display: none !important; }
  .step-box { min-width: 0 !important; max-width: 100% !important; }
}
@media (max-width: 480px) {
  .steps-row { grid-template-columns: 1fr !important; }
}

/* ── 3. CONTACT US — mobile alignment ───────────────────────────── */
/* Stack left + right columns cleanly on mobile */
@media (max-width: 900px) {
  .cta-band {
    flex-direction: column !important;
    padding: 28px 22px !important;
    gap: 24px !important;
    border-radius: 14px !important;
  }
  .cta-left,
  .cta-right {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
  .cta-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .cta-info {
    padding: 12px 14px !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }
  .ci-ico { margin-top: 2px; }
  .ci-val { font-size: 0.82rem !important; word-break: break-word; }
  .cta-btns {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .cta-btns .btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-width: 130px;
    min-height: 46px !important;
  }
  .cta-left h2 { font-size: 1.45rem !important; }
  .cta-left p  { font-size: 0.85rem !important; margin-bottom: 20px !important; }
}

@media (max-width: 540px) {
  .cta-right {
    grid-template-columns: 1fr !important;
  }
  .cta-band {
    padding: 22px 16px !important;
    gap: 20px !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }
  .cta-info { padding: 10px 12px !important; }
  .cta-btns .btn { min-width: 0 !important; }
}

/* ── 4. FOOTER — white policy links ─────────────────────────────── */
/* Override any inherited opacity on footer-bottom text */
.footer-bottom,
.footer-bottom span,
.footer-bottom a {
  color: #ffffff !important;
  opacity: 1 !important;
}
.footer-bottom a:hover { color: #20b1aa !important; }
/* Remove the faded white line on footer bottom border */
.footer-bottom {
  border-top-color: rgba(255,255,255,0.25) !important;
}


/* ══════════════════════════════════════════════════════════════════
   MOBILE FIXES: EQUAL CARD HEIGHT · CONTACT SECTION · WHITE SPACE
   ══════════════════════════════════════════════════════════════════ */

/* ── EQUAL HEIGHT CARDS ON MOBILE ───────────────────────────────── */
/* Grid stretches cells to equal height automatically;
   cards must fill that height with flex-column */
.listing-grid,
.listing-grid-4 {
  align-items: stretch;
}
.lcard,
.pub-card {
  height: 100%;
  box-sizing: border-box;
}
/* Body fills remaining space so specs always sit at the bottom */
.lcard-body,
.pub-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lcard-specs,
.pub-card-specs {
  margin-top: auto;
}

/* ── CONTACT SECTION MOBILE — full width, no clipping ───────────── */
/* Ensure the contact section (#contact) never clips or overflows */
#contact,
#contact .home-sec,
section#contact {
  overflow: visible !important;
  padding-left: 4% !important;
  padding-right: 4% !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 900px) {
  #contact .cta-band {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 14px !important;
  }
  /* Prevent any overflow clipping on parent sections */
  section.home-sec {
    overflow: visible !important;
  }
}

/* ── WHITE SPACE AFTER FOOTER ON MOBILE — remove spacer ─────────── */
.pub-page-bottom-spacer {
  display: none !important;
  height: 0 !important;
}

/* Footer bottom padding: just enough for the bottom nav bar */
@media (max-width: 900px) {
  .footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 0 !important;
  }
  /* Remove any margin after the footer */
  footer + *,
  .footer + * {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════════════
   AUTHORITATIVE FIX — HOW IT WORKS EQUAL HEIGHT CARDS
   Overrides all previous conflicting rules
   ══════════════════════════════════════════════════════════════════ */

/* Desktop: flex row, all cards stretch to same height */
.steps-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 16px !important;
  max-width: 1100px;
  margin: 0 auto;
}
.step-arrow {
  display: none !important;
}
.step-box {
  flex: 1 1 180px !important;
  min-width: 180px !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  padding: 32px 22px !important;
  box-sizing: border-box !important;
}
/* Paragraph fills remaining space — forces all cards to equal height */
.step-box p {
  flex: 1 !important;
  margin-bottom: 0 !important;
}

/* Mobile: 2-column grid — grid enforces equal height per row */
@media (max-width: 900px) {
  .steps-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .step-box {
    flex: none !important;
    min-width: 0 !important;
    padding: 20px 16px !important;
  }
}

@media (max-width: 480px) {
  .steps-row {
    grid-template-columns: 1fr !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
   FINAL FIX — STEP CARDS EQUAL HEIGHT (grid with arrow columns)
   ══════════════════════════════════════════════════════════════════ */

/* Desktop: grid with 4 card columns + 3 arrow columns between them.
   All card cells are in the same row → browser enforces equal height. */
.steps-row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr !important;
  grid-template-rows: 1fr !important;
  align-items: stretch !important;
  gap: 0 !important;
  max-width: 1100px;
  margin: 0 auto;
}

/* Arrows: vertically centred, not stretched */
.step-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  padding: 0 12px !important;
  font-size: 1.2rem !important;
  color: var(--gold2) !important;
  opacity: 0.7 !important;
  flex: none !important;
}

/* Cards: fill their grid cell height fully */
.step-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 32px 22px !important;
  height: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.step-box p {
  flex: 1 !important;
  margin-bottom: 0 !important;
}

/* Mobile: 2×2 grid — arrows hidden */
@media (max-width: 900px) {
  .steps-row {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
  }
  .step-arrow {
    display: none !important;
  }
  .step-box {
    padding: 20px 16px !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .steps-row {
    grid-template-columns: 1fr !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
   PROPERTIES PAGE — MOBILE SEARCH BAR & FILTER FIX
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Search bar: stack vertically so button is always fully visible */
  .props-search-bar {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .props-search-bar input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .props-search-bar button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  /* Topbar: stack filter button row and sort row */
  .props-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .props-topbar-left {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .filter-mob-btn {
    flex: 1 !important;
    justify-content: center !important;
  }
  .props-sort {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .props-sort select {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
  }
}
