/* ============================================================================
   CJ4K PROPERTIES REDESIGN 2026 - visual overhaul layer
   Loaded AFTER style.css so it overrides the original look without touching
   any original rules or page structure.
   Design language: deep slate + refined royal blue, Plus Jakarta Sans,
   layered soft shadows, glass surfaces, premium real-estate feel.
   ========================================================================== */

/* ---- Design tokens -------------------------------------------------------- */
:root {
  --nav-dark:   #16263d;
  --accent:     #2b5ce6;
  --accent-h:   #1d47c4;
  --accent-grad: linear-gradient(135deg, #1d47c4 0%, #3f74f5 100%);
  --slate-grad:  linear-gradient(135deg, #101d30 0%, #1c3252 60%, #24436c 100%);
  --bg:         #f2f4f8;
  --border:     #e2e7ef;
  --r-card:     16px;
  --r-btn:      10px;
  --r-input:    9px;
  --shadow-sm:  0 1px 2px rgba(16,29,48,.06), 0 3px 10px rgba(16,29,48,.06);
  --shadow:     0 2px 6px rgba(16,29,48,.07), 0 8px 24px rgba(16,29,48,.09);
  --shadow-lg:  0 6px 14px rgba(16,29,48,.10), 0 22px 48px rgba(16,29,48,.16);
  --ring:       0 0 0 3px rgba(43,92,230,.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  background:
    radial-gradient(1100px 520px at 88% -240px, rgba(63,116,245,.10), transparent 60%),
    radial-gradient(900px 480px at -200px 12%, rgba(22,38,61,.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  letter-spacing: .004em;
}

::selection { background: rgba(63,116,245,.28); }
button, input, select, textarea { font-family: inherit; }

* { scrollbar-width: thin; scrollbar-color: #b8c2d2 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #b8c2d2; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #93a1b8; background-clip: content-box; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---- Top strip + header ---------------------------------------------------- */
.top-strip {
  background: var(--slate-grad);
  border-bottom: 1px solid rgba(63,116,245,.35);
}

.site-header {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(226,231,239,.9);
  box-shadow: 0 4px 20px rgba(16,29,48,.06);
}
.brand-name { font-weight: 800; letter-spacing: -.015em; }
.nav-link { font-weight: 600; border-radius: 999px; }
.nav-link:hover { background: rgba(43,92,230,.08); color: var(--accent); }
.nav-cta {
  background: var(--accent-grad);
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(43,92,230,.35);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.nav-cta:hover { background: var(--accent-grad); filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43,92,230,.4); }
.nav-wa { border-radius: 999px; }
.user-pill { border: 1px solid var(--border); background: #fff; }
.user-pill .avatar { background: var(--accent-grad); box-shadow: 0 0 0 2px rgba(63,116,245,.25); }

/* ---- Buttons ---------------------------------------------------------------- */
.btn { border-radius: var(--r-btn); font-weight: 700; letter-spacing: .01em; }
.btn-primary {
  background: var(--accent-grad);
  box-shadow: 0 2px 10px rgba(43,92,230,.30);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover { background: var(--accent-grad); filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43,92,230,.38); }
.btn-outline:hover { box-shadow: 0 3px 10px rgba(16,29,48,.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) !important; }

/* ---- Hero ------------------------------------------------------------------- */
.hero-eyebrow {
  background: rgba(43,92,230,.10);
  border: 1px solid rgba(43,92,230,.22);
  letter-spacing: .12em;
}
.hero-title { font-weight: 800; letter-spacing: -.025em; }
.hero-title em {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-logo { border-radius: 14px; box-shadow: 0 10px 30px rgba(16,29,48,.14); }
.trust-icon { background: rgba(43,92,230,.10); }

.hero-panel {
  border-radius: 20px;
  border: 1px solid rgba(226,231,239,.9);
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat-box { background: #f6f8fc; border-radius: 13px; border: 1px solid #eef1f7; }
.stat-val.accent { color: var(--accent); }

/* ---- Filter pills ------------------------------------------------------------ */
.pill { border-radius: 999px; font-weight: 600; background: #fff; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(16,29,48,.08); }
.pill.active {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(43,92,230,.35);
}
/* Status pills keep their semantic colours, just softened corners + lift */
.pill.status-available.active,
.pill.status-let.active,
.pill.status-soon.active { box-shadow: 0 3px 10px rgba(16,29,48,.10); }

.filter-section-title { font-weight: 800; letter-spacing: -.02em; }

/* ---- Property cards ------------------------------------------------------------ */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.properties-grid { gap: 26px; }
.prop-card {
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  animation: cardIn .4s ease both;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
}
.prop-card:nth-child(2) { animation-delay: .05s; }
.prop-card:nth-child(3) { animation-delay: .10s; }
.prop-card:nth-child(4) { animation-delay: .15s; }
.prop-card:nth-child(5) { animation-delay: .20s; }
.prop-card:nth-child(6) { animation-delay: .25s; }
.prop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(63,116,245,.55);
  box-shadow: var(--shadow-lg);
}
.card-photo { height: 220px; }
.prop-card:hover .card-photo img { transform: scale(1.06); }

.status-badge { border-radius: 999px; padding: 4px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.photo-count-badge { backdrop-filter: blur(4px); border-radius: 999px; }

.card-name { font-weight: 700; letter-spacing: -.01em; }
.price-val { font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.card-enquire {
  background: var(--accent-grad);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(43,92,230,.28);
  transition: filter .15s, transform .15s;
}
.card-enquire:hover { background: var(--accent-grad); filter: brightness(1.12); transform: translateY(-1px); }

/* ---- Modal / gallery ------------------------------------------------------------ */
.modal-overlay { background: rgba(10,18,30,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { border-radius: 20px; box-shadow: 0 32px 80px rgba(10,18,30,.45); }
.modal-title { font-weight: 800; letter-spacing: -.015em; }
.gallery-main { border-radius: 14px; }
.gallery-thumb { border-radius: 9px; }
.gallery-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(43,92,230,.25); }
.feature-chip { border-radius: 999px; background: rgba(43,92,230,.08); color: #1e3a8a; }
.private-note { border-left: 3px solid var(--accent); border-radius: 10px; }

/* ---- Contact strip ---------------------------------------------------------------- */
.contact-strip {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(63,116,245,.25), transparent 60%),
    var(--slate-grad);
  padding: 52px 24px;
}
.c-btn { border-radius: 999px; }
.c-btn-phone, .c-btn-email { backdrop-filter: blur(6px); }

/* ---- Enquiry card ------------------------------------------------------------------- */
.enquiry-card { border-radius: 18px; border: 1px solid var(--border); }

/* ---- Auth pages ----------------------------------------------------------------------- */
@keyframes authDrift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.auth-page {
  background:
    radial-gradient(900px 460px at 82% 10%, rgba(63,116,245,.22), transparent 55%),
    radial-gradient(720px 420px at 8% 90%, rgba(36,67,108,.35), transparent 60%),
    linear-gradient(135deg, #0b1626 0%, #14283f 45%, #1e3d61 80%, #16263d 100%);
  background-size: 160% 160%;
  animation: authDrift 24s ease-in-out infinite;
}
.auth-card {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(4,10,20,.55), 0 0 0 1px rgba(63,116,245,.15);
  animation: cardIn .5s ease both;
}
.auth-title { font-weight: 800; }
.form-input {
  padding: 12px 15px;
  border-radius: var(--r-input);
  background: #f8fafc;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-input:focus { border-color: var(--accent); box-shadow: var(--ring); background: #fff; }

/* ---- Dark mode refinements ---------------------------------------------------------------- */
html.dark {
  --bg:      #0e1319;
  --surface: #161d28;
  --border:  #27303e;
  --text:    #e8eaef;
  --muted:   #97a1b2;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.3);
  --shadow:    0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 6px 14px rgba(0,0,0,.4), 0 22px 48px rgba(0,0,0,.5);
}
html.dark body {
  background:
    radial-gradient(1100px 520px at 88% -240px, rgba(63,116,245,.08), transparent 60%),
    radial-gradient(900px 480px at -200px 12%, rgba(36,67,108,.15), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
html.dark .site-header { background: rgba(18,24,33,.88); border-bottom-color: rgba(39,48,62,.9); }
html.dark .nav-link:hover { background: rgba(63,116,245,.12); }
html.dark .user-pill { background: var(--surface); }
html.dark .pill { background: var(--surface); }
html.dark .pill.active { background: var(--accent-grad); color: #fff; }
html.dark .stat-box { background: #1b2431; border-color: #27303e; }
html.dark .hero-panel { background: rgba(22,29,40,.92); }
html.dark .auth-card { background: rgba(22,29,40,.94); border-color: rgba(255,255,255,.08); color: var(--text); }
html.dark .feature-chip { background: rgba(63,116,245,.14); color: #9db8f5; }
html.dark * { scrollbar-color: #3a4454 transparent; }
html.dark *::-webkit-scrollbar-thumb { background: #3a4454; background-clip: content-box; }

/* ---- Reduced motion --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .prop-card, .auth-card { animation: none; }
  .auth-page { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---- Mobile tune-ups ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .properties-grid { gap: 16px; }
  .card-photo { height: 200px; }
}
