/* ============================================================
   FLATZY — flatzy-light.css
   Light Mode: White & Blue Glassmorphism
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ============================================================
   DESIGN TOKENS — LIGHT
   ============================================================ */
:root {
  --primary:       #1A6FE8;
  --primary-dark:  #1250c4;
  --primary-deep:  #0c3d9e;
  --primary-light: #EBF2FF;
  --primary-glow:  rgba(26,111,232,0.22);

  --bg:            #ffffff;
  --bg2:           #F2F6FC;
  --bg3:           #E6EEF8;
  --card:          #ffffff;
  --card-body-bg:  #afd6e4;

  --border:        #D0DDEF;
  --border-strong: rgba(26,111,232,0.25);

  --text:          #0B1829;
  --text-mid:      #2d4263;
  --muted:         #627389;

  --accent:        #0EA5E9;
  --accent2:       #6366F1;
  --green:         #10B981;
  --red:           #EF4444;
  --gold:          #F59E0B;

  --shadow-xs:   0 1px 4px rgba(26,111,232,0.06);
  --shadow-sm:   0 2px 14px rgba(26,111,232,0.08);
  --shadow-md:   0 6px 28px rgba(26,111,232,0.13);
  --shadow-lg:   0 12px 48px rgba(26,111,232,0.20);
  --shadow-xl:   0 20px 64px rgba(26,111,232,0.28);
  --shadow-card: 0 2px 16px rgba(11,24,41,0.07), 0 1px 4px rgba(26,111,232,0.06);
  --shadow-blue: 0 6px 24px rgba(26,111,232,0.35);

  --grad-primary: linear-gradient(135deg, #1A6FE8 0%, #0EA5E9 100%);
  --grad-hero:    linear-gradient(135deg, #1A6FE8 0%, #6366F1 60%, #0EA5E9 100%);
  --grad-soft:    linear-gradient(135deg, #EBF2FF 0%, #F0F7FF 50%, #E6F0FB 100%);

  /* Nav & shimmer */
  --nav-bg:        rgba(255,255,255,0.82);
  --nav-border:    rgba(26,111,232,0.13);
  --nav-shimmer:   linear-gradient(90deg, transparent 0%, #1A6FE8 20%, #0EA5E9 50%, #a855f7 70%, #1A6FE8 85%, transparent 100%);

  /* Sidebar */
  --sidebar-bg:    #ffffff;
  --sidebar-header-bg: linear-gradient(135deg, #0F1C2E, #1A3A6E);
  --sidebar-logo-color: white;
  --sidebar-logo-span:  #60b4ff;

  /* Bottom nav */
  --bottom-nav-bg: rgba(255,255,255,0.95);
  --bottom-nav-border: rgba(26,111,232,0.12);

  /* Footer */
  --footer-bg:    linear-gradient(160deg, #0A1628 0%, #0F1C2E 60%, #0d2244 100%);
  --footer-text:  rgba(255,255,255,0.48);
  --footer-link:  rgba(255,255,255,0.48);
  --footer-link-hover: #60A5FA;
  --footer-copy:  rgba(255,255,255,0.35);

  /* Modal */
  --modal-bg:     rgba(255,255,255,0.98);
  --modal-overlay: rgba(10,22,40,0.65);

  /* Social strip */
  --strip-bg:     #ffffff;
  --strip-border: rgba(26,111,232,0.10);
  --strip-fade:   #ffffff;

  /* Scrollbar */
  --scrollbar-track: #F2F6FC;

  /* Dot grid */
  --dot-color: rgba(26,111,232,0.045);

  /* Property card */
  --card-border:  1.5px solid #D0DDEF;
  --card-hover-border: rgba(26,111,232,0.35);
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
}
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--grad-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ============================================================
   TOP NAV — light
   ============================================================ */
:root {
  --bottom-nav-h: 68px;
  --nav-h: 62px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
}

nav.topnav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--nav-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%; height: var(--nav-h);
  box-shadow: 0 1px 0 rgba(26,111,232,0.08), 0 4px 24px rgba(26,111,232,0.06);
}
nav.topnav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--nav-shimmer);
  background-size: 200% 100%;
  animation: navLineShimmer 3s linear infinite;
  box-shadow: 0 0 8px rgba(26,111,232,0.6), 0 0 16px rgba(14,165,233,0.4);
}
@keyframes navLineShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.logo {
  font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: var(--primary); letter-spacing: -1px; text-decoration: none;
  display: flex; align-items: center; gap: 8px; transition: filter 0.2s;
}
.logo:hover { filter: brightness(1.15); }
.logo span { color: var(--text); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2.5px; background: var(--grad-primary);
  border-radius: 3px; transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-btn {
  background: var(--grad-primary); color: white; border: none;
  padding: 0.48rem 1.1rem; border-radius: var(--r-sm);
  font-family: 'Syne', sans-serif; font-weight: 600; cursor: pointer;
  font-size: 0.85rem; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: all 0.22s; position: relative; overflow: hidden;
  box-shadow: 0 3px 12px rgba(26,111,232,0.28);
}
.nav-btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.15); opacity: 0; transition: opacity 0.2s; }
.nav-btn:hover::after { opacity: 1; }
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(26,111,232,0.38); }
.nav-btn:active { transform: scale(0.96); }
.nav-btn.outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); margin-right: 0.4rem; box-shadow: none;
}
.nav-btn.outline:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* BOTTOM NAV */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--bottom-nav-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--bottom-nav-border);
  display: none; align-items: center; justify-content: space-around;
  z-index: 500;
  box-shadow: 0 -6px 32px rgba(26,111,232,0.10);
  padding-bottom: env(safe-area-inset-bottom);
}
.bn-item {
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.65rem; color: var(--muted); cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 12px;
  transition: color 0.2s, transform 0.18s;
  text-decoration: none; min-width: 56px; position: relative;
}
.bn-item.active { color: var(--primary); }
.bn-item.active .bn-icon { filter: drop-shadow(0 2px 8px rgba(26,111,232,0.4)); }
.bn-item:active { transform: scale(0.86); }
.bn-icon { font-size: 1.35rem; line-height: 1; }
.bn-badge {
  position: absolute; top: 0; right: 6px;
  background: #e11d48; color: white; font-size: 0.58rem;
  font-weight: 800; border-radius: 50%; width: 15px; height: 15px;
  display: none; align-items: center; justify-content: center;
}
.bn-badge.show { display: flex; }

/* BUTTONS */
.btn-primary {
  background: var(--grad-primary); color: white; border: none;
  padding: 0.88rem 2.2rem; border-radius: var(--r-md);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all 0.22s;
  box-shadow: 0 4px 18px rgba(26,111,232,0.32);
  text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 0.5rem; position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.45s ease;
}
.btn-primary:hover::before { left: 140%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,111,232,0.42); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  background: white; color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.88rem 2.2rem; border-radius: var(--r-md);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all 0.22s;
  text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 0.5rem;
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,111,232,0.18); }
.btn-outline:active { transform: scale(0.97); }

.btn-full {
  width: 100%; padding: 0.9rem; font-size: 1rem; border-radius: var(--r-md);
  font-family: 'Syne', sans-serif; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.22s;
}
.btn-full.primary { background: var(--grad-primary); color: white; box-shadow: 0 4px 18px rgba(26,111,232,0.30); }
.btn-full.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.btn-full.secondary { background: var(--bg2); color: var(--text); border: 1.5px solid var(--border); margin-top: 0.8rem; }

/* FORMS */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--border); color: var(--text);
  padding: 0.88rem 1rem; border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif; font-size: 1rem;
  outline: none; transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(26,111,232,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* TOAST */
.toast {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 1rem);
  right: 1rem; left: 1rem;
  background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
  color: white; padding: 1rem 1.4rem; border-radius: var(--r-lg); font-weight: 600; z-index: 9999;
  transform: translateY(200px); transition: transform 0.3s;
  font-family: 'Syne', sans-serif; box-shadow: 0 6px 28px rgba(16,185,129,0.35);
  text-align: center; max-width: 400px; margin: 0 auto;
}
@media(min-width: 769px) { .toast { left: auto; right: 2rem; bottom: 2rem; max-width: 340px; } }
.toast.show { animation: toastBounce 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes toastBounce { from{transform:translateY(120px);opacity:0} to{transform:translateY(0);opacity:1} }
.toast.error { background: linear-gradient(135deg, var(--red) 0%, #dc2626 100%); box-shadow: 0 6px 28px rgba(239,68,68,0.35); }

/* PROPERTY CARD */
.property-card {
  background: var(--card); border: var(--card-border); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.28s ease, border-color 0.22s;
  cursor: pointer; box-shadow: var(--shadow-card); animation: fadeUp 0.4s ease both;
  background-image: linear-gradient(160deg, #ffffff 0%, #F8FBFF 100%); position: relative;
  box-shadow: 0 4px 10px rgb(93,112,190), 0 10px 25px rgba(65,91,104,0.897);
}
.property-card::before {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 3px;
  background: var(--grad-primary); border-radius: 0 3px 3px 0; opacity: 0; transition: opacity 0.25s ease;
}
.property-card:hover::before { opacity: 1; }
.property-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--card-hover-border);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08), 0 24px 50px rgba(26,111,232,0.18);
}
.property-card:hover .card-title { color: var(--primary); }

.card-img { height: 188px; background: var(--grad-soft); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.property-card:hover .card-img img { transform: scale(1.08); }
.card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; transition: transform 0.25s; }
.property-card:hover .card-img-placeholder { transform: scale(1.18); }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,111,232,0.08) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; }
.property-card:hover .card-img::after { opacity: 1; }

.card-badge { position: absolute; top: 10px; left: 10px; background: var(--grad-primary); color: white; padding: 0.24rem 0.7rem; border-radius: 6px; font-size: 0.73rem; font-weight: 700; box-shadow: 0 2px 8px rgba(26,111,232,0.30); }
.card-type { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); color: var(--primary); padding: 0.24rem 0.7rem; border-radius: 6px; font-size: 0.73rem; font-weight: 700; border: 1px solid rgba(26,111,232,0.2); }

.card-body { padding: 1.1rem; background-color: var(--card-body-bg); }
.card-title { font-family: 'Syne', sans-serif; font-size: 0.96rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text); transition: color 0.2s; }
.card-location { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.8rem; }
.card-details { display: flex; gap: 0.55rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.card-detail { font-size: 0.77rem; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; background: var(--bg2); padding: 0.24rem 0.58rem; border-radius: 6px; border: 1px solid var(--border); transition: background 0.2s, border-color 0.2s; }
.property-card:hover .card-detail { background: var(--primary-light); border-color: rgba(26,111,232,0.2); }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.card-price { font-family: 'Syne', sans-serif; font-size: 1.08rem; font-weight: 800; color: var(--primary); }
.card-price span { font-size: 0.72rem; color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 400; }
.contact-btn { background: var(--grad-primary); color: white; border: none; padding: 0.42rem 1rem; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(26,111,232,0.22); }
.contact-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,111,232,0.36); }
.card-action-btns { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.schedule-btn { flex: 1; background: var(--primary-light); color: var(--primary); border: 1.5px solid rgba(26,111,232,0.3); padding: 0.5rem 0.4rem; border-radius: var(--r-sm); font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.22s; }
.schedule-btn:hover { background: var(--primary); color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,111,232,0.28); }
.enquire-btn { flex: 1; background: white; color: var(--primary); border: 1.5px solid rgba(26,111,232,0.3); padding: 0.5rem 0.4rem; border-radius: var(--r-sm); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.22s; }
.enquire-btn:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(26,111,232,0.14); }

/* SECTION HEADERS */
section { padding: 3rem 5%; }
.section-header { margin-bottom: 2rem; }
.section-tag { font-size: 0.72rem; color: var(--primary); text-transform: uppercase; letter-spacing: 2.5px; font-weight: 700; margin-bottom: 0.5rem; display: inline-block; position: relative; }
.section-tag::before { content: ''; display: inline-block; width: 18px; height: 2.5px; background: var(--grad-primary); border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.section-sub { color: var(--muted); margin-top: 0.5rem; font-size: 0.9rem; }

/* FOOTER */
footer { background: var(--footer-bg); border-top: 1px solid rgba(26,111,232,0.18); padding: 3rem 5% 2rem; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(26,111,232,0.08) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
footer::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--accent) 70%, transparent); opacity: 0.6; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; position: relative; }
.footer-logo { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: white; margin-bottom: 0.8rem; }
.footer-logo span { color: var(--footer-link-hover); }
.footer-desc { font-size: 0.83rem; color: var(--footer-text); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; margin-bottom: 1rem; color: white; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 0.83rem; color: var(--footer-link); text-decoration: none; margin-bottom: 0.55rem; transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--footer-link-hover); padding-left: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; position: relative; }
.footer-copy { font-size: 0.78rem; color: var(--footer-copy); }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 2000; background: var(--modal-overlay); backdrop-filter: blur(8px); align-items: flex-end; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--modal-bg); backdrop-filter: blur(20px); border: 1px solid rgba(26,111,232,0.12); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 2rem; width: 100%; max-width: 520px; position: relative; animation: modalSlideUp 0.3s cubic-bezier(0.34,1.2,0.64,1); max-height: 90vh; overflow-y: auto; box-shadow: 0 -16px 64px rgba(26,111,232,0.18); }
@media(min-width: 600px) { .modal-overlay { align-items: center; } .modal { border-radius: var(--r-xl); max-width: 460px; animation: modalIn 0.3s cubic-bezier(0.34,1.2,0.64,1); } @keyframes modalIn { from{opacity:0;transform:scale(0.94) translateY(12px)} to{opacity:1;transform:scale(1) translateY(0)} } }
@keyframes modalSlideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--bg2); border: none; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.modal-close:hover { background: var(--border); transform: rotate(90deg); }
.modal-title { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--text); }
.modal-sub { font-size: 0.83rem; color: var(--muted); margin-bottom: 1.4rem; }
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 1.2rem; }

/* SOCIAL STRIP */
.social-link-strip { overflow: hidden; background: var(--strip-bg); border-top: 1px solid var(--strip-border); border-bottom: 1px solid var(--strip-border); padding: 0.55rem 0; position: relative; }
.social-link-strip::before, .social-link-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.social-link-strip::before { left: 0; background: linear-gradient(to right, var(--strip-fade) 0%, transparent 100%); }
.social-link-strip::after { right: 0; background: linear-gradient(to left, var(--strip-fade) 0%, transparent 100%); }
.social-link-track { display: flex; gap: 2.5rem; width: max-content; animation: socialLinkScroll 28s linear infinite; align-items: center; }
.social-link-track:hover { animation-play-state: paused; }
.social-link-track a, .social-link-track span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; white-space: nowrap; text-decoration: none; transition: color 0.2s; }
.social-link-track a { color: var(--primary); }
.social-link-track a:hover { color: var(--primary-dark); }
.social-link-track span.sls-sep { color: var(--border); font-size: 0.7rem; }
.social-link-track span.sls-welcome { color: var(--muted); }
@keyframes socialLinkScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* CHIPS */
.chip { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--bg2); color: var(--muted); font-size: 0.77rem; padding: 0.26rem 0.75rem; border-radius: 20px; font-weight: 500; border: 1px solid var(--border); transition: all 0.2s; cursor: default; }
.chip:hover { transform: scale(1.05); }
.chip.primary { background: var(--primary-light); color: var(--primary); border-color: rgba(26,111,232,0.2); }
.chip.primary:hover { background: var(--primary); color: white; }
.chip.green { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }

/* NAV AVATAR */
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--primary); box-shadow: 0 0 0 2px var(--primary-light); transition: box-shadow 0.2s; }
.nav-avatar:hover { box-shadow: 0 0 0 3px var(--primary-light), 0 0 0 5px rgba(26,111,232,0.15); }

/* SIDEBAR */
.sidebar-toggle { display: none; align-items: center; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 0.3rem 0.6rem; border-radius: 8px; transition: background 0.15s; margin-right: 0.4rem; order: -1; }
.sidebar-toggle:hover { background: var(--primary-light); }
.sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1099; backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.sidebar-overlay.show { opacity: 1; pointer-events: all; }
.sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background: var(--sidebar-bg); z-index: 1100; transform: translateX(-100%); visibility: hidden; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.3s; box-shadow: 4px 0 32px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow-y: auto; }
.sidebar.open { transform: translateX(0); visibility: visible; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.2rem 1rem; border-bottom: 1.5px solid var(--border); background: var(--sidebar-header-bg); flex-shrink: 0; }
.sidebar-logo { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--sidebar-logo-color); }
.sidebar-logo span { color: var(--sidebar-logo-span); }
.sidebar-close { background: rgba(255,255,255,0.15); border: none; color: white; width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.sidebar-close:hover { background: rgba(255,255,255,0.3); }
.sidebar-nav { flex: 1; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.15rem; overflow-y: auto; }
.sb-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1rem; border-radius: 10px; text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--text); transition: all 0.15s; }
.sb-link:hover { background: var(--primary-light); color: var(--primary); }
.sb-link.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.sb-divider { height: 1px; background: var(--border); margin: 0.4rem 0.5rem; }
.sidebar-social { padding: 1rem 1.2rem; border-top: 1.5px solid var(--border); display: flex; gap: 0.8rem; align-items: center; flex-shrink: 0; }
.sidebar-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--bg2); border-radius: 10px; transition: transform 0.15s, background 0.15s; }
.sidebar-social a:hover { transform: scale(1.1); background: var(--primary-light); }

/* MOBILE SEARCH STICKY */
.mobile-search-sticky { display: none; position: sticky; top: var(--nav-h); z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); padding: 0.7rem 4%; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(26,111,232,0.07); }
.mobile-search-sticky input { width: 100%; background: var(--bg2); border: 1.5px solid var(--border); color: var(--text); padding: 0.7rem 1rem 0.7rem 2.5rem; border-radius: 24px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; transition: all 0.22s; }
.mobile-search-sticky input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(26,111,232,0.10); }
.mss-wrap { position: relative; }
.mss-icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); font-size: 1rem; pointer-events: none; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes shimmer { 0%{background-position:-200% center} 100%{background-position:200% center} }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.ptr-hint { text-align: center; padding: 0.5rem; font-size: 0.75rem; color: var(--muted); display: none; }
@media (max-width: 768px) { .ptr-hint { display: block; } }

/* RESPONSIVE */
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .nav-links { display: none; }
  .nav-btn { display: none; }
  #navGuest .nav-btn:last-child { display: inline-flex; }
  .sidebar-toggle { display: flex; }
  body.has-bottom-nav { padding-bottom: var(--bottom-nav-h); }
  .toast { bottom: calc(var(--bottom-nav-h) + 0.8rem); }
  section { padding: 2rem 4%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-desc { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .card-img { height: 165px; }
  .mobile-search-sticky { display: block; }
}
@media (min-width: 769px) and (max-width: 1024px) { nav.topnav { padding: 0 3%; } section { padding: 3rem 4%; } }
@media (min-width: 769px) { .bottom-nav { display: none !important; } body { padding-bottom: 0 !important; } }
@media (hover: none) {
  .property-card:hover { transform: none; box-shadow: var(--shadow-card); }
  .btn-primary:hover { transform: none; }
  .btn-outline:hover { transform: none; }
  .nav-btn:hover { transform: none; box-shadow: none; }
  .schedule-btn:hover { transform: none; }
  .enquire-btn:hover { transform: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .sidebar-toggle { display: flex !important; }
  #navGuest .nav-btn.outline { display: none !important; }
  #navGuest .nav-btn:not(.outline) { display: inline-flex !important; }
}
