/* =========================================================
   ELEVATE REALTY — Design System v6 (Production-Ready)
   A design language drawn from Lucknow's Nawabi heritage:
   arched gateways (Rumi Darwaza), jali lattice screens,
   reflecting pools, and chikankari's fine linework.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Work+Sans:wght@300;400;500;600&display=swap');

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Color Palette */
  --ink:        #ffffff;
  --ivory:      #050811;
  --card:       #0A1121;
  --card-2:     #0D1628;
  --emerald:    #1D4ED8;
  --emerald-2:  #2563EB;
  --gold:       #EAB308;
  --gold-soft:  #FEF08A;
  --stone:      #94A3B8;
  --stone-line: rgba(148, 163, 184, 0.12);
  --glass:      rgba(10, 17, 33, 0.72);

  /* Alias: --primary maps to --emerald for backward compat */
  --primary:    #1D4ED8;
  /* Alias: --font-sans maps to --font-body for backward compat */
  --font-sans:  'Work Sans', system-ui, sans-serif;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Work Sans', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;

  /* Spacing — mobile first base */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  36px;
  --sp-5:  56px;
  --sp-6:  80px;
  --sp-7:  120px;

  /* Spacing aliases for backward compatibility (var(--space-N) used in career.php etc.) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 36px;
  --space-5: 56px;
  --space-6: 80px;
  --space-7: 120px;

  /* Section padding (overridden at breakpoints) */
  --section-pad: 64px;

  /* Animation easing */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius-s:  8px;
  --radius-m:  16px;
  --radius-l:  24px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.5), 0 4px 16px rgba(29,78,216,0.15);
  --shadow-gold:  0 0 30px rgba(234,179,8,0.2);

  /* Transition durations */
  --dur-fast: 180ms;
  --dur-mid:  350ms;
  --dur-slow: 650ms;
}

@media (min-width: 768px) {
  :root {
    --section-pad: 96px;
    --sp-6: 96px;
    --space-6: 96px;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1320px;
    --section-pad: 120px;
  }
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
}
svg { flex-shrink: 0; }

/* Fix select arrow visibility on dark backgrounds */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px !important;
}

select option {
  background: #0A1121;
  color: #ffffff;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

/* =========================================================
   TYPOGRAPHY — FLUID MOBILE FIRST
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 1.8vw, 1.2rem); }

p { 
  color: var(--stone); 
  line-height: 1.75; 
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow em {
  font-style: italic;
  color: var(--stone);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.lede {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--stone);
  max-width: 54ch;
  line-height: 1.8;
}

.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================
   GRADIENT TEXT UTILITY
   ========================================================= */
.text-gradient {
  background: linear-gradient(135deg, var(--emerald-2) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   BUTTONS — touch-optimized (min 44px target)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--dur-mid) var(--ease-bounce),
              box-shadow var(--dur-mid) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast);
  white-space: nowrap;
  cursor: pointer;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, background-color;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.btn:active {
  transform: scale(0.96) !important;
  transition-duration: 80ms !important;
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 0 18px rgba(29,78,216,0.3);
}
.btn-primary:hover {
  background: var(--emerald-2);
  box-shadow: 0 0 32px rgba(37,99,235,0.6);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--stone-line);
}
.btn-ghost:hover {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  box-shadow: 0 0 20px rgba(29,78,216,0.35);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 18px rgba(234,179,8,0.3);
}
.btn-gold:hover {
  background: #FDE047;
  color: #000;
  box-shadow: 0 0 32px rgba(234,179,8,0.6);
  transform: translateY(-2px);
}

.btn-on-dark { border-color: rgba(148,163,184,0.35); color: var(--ink); }
.btn-on-dark:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(234,179,8,0.5);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.72rem; min-height: 40px; }
.btn-lg { padding: 16px 36px; font-size: 0.9rem; min-height: 56px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(234,179,8,0.25);
  padding-bottom: 4px;
  transition: gap var(--dur-mid) var(--ease), color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--gold-soft); border-color: var(--gold-soft); gap: 14px; }

/* =========================================================
   TOPBAR — hidden
   ========================================================= */
.topbar { display: none !important; }

/* =========================================================
   NAVBAR — Mobile-first slide-in menu
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5,8,17,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--stone-line);
  transition: box-shadow var(--dur-mid) var(--ease), background var(--dur-mid);
}

.navbar.scrolled {
  background: rgba(5,8,17,0.96);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { height: 52px; width: auto; object-fit: contain; }

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--stone-line);
  gap: 5px;
  transition: all var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  z-index: 201;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease), width var(--dur-mid) var(--ease);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 960px) {
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(5,8,17,0.98) !important;
  }
  .nav-cta .btn { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5,8,17,0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--sp-3);
    padding: max(120px, 12vh) var(--sp-4) 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 199;
    border-left: 1px solid var(--stone-line);
    overflow-y: auto;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--stone);
    transition: color var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
    opacity: 0;
    transform: translateX(30px);
    text-align: center;
  }

  .nav-links.open a {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger each link */
  .nav-links.open a:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.12s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.16s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.20s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.24s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.28s; }
  .nav-links.open a:nth-child(7) { transition-delay: 0.32s; }
  .nav-links.open a:nth-child(8) { transition-delay: 0.36s; }

  .nav-links a:hover, .nav-links a.active { color: var(--gold); transform: translateX(6px); }

  .nav-links .btn {
    margin-top: var(--sp-2);
    display: inline-flex !important;
    width: 100%;
    max-width: 280px;
  }
}

/* Desktop Nav */
@media (min-width: 961px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.4); /* Dark translucent background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #a1a1aa; /* Muted text for inactive */
    text-decoration: none;
  }

  .nav-links a:not(.btn):hover { 
    color: #ffffff; 
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-links a:not(.btn).active { 
    color: #ffffff; 
    background: rgba(255, 255, 255, 0.1); /* Lighter pill background for active */
  }

  /* The Glowing Top Border for Active State */
  .nav-links a:not(.btn).active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 2px 12px 2px rgba(255, 255, 255, 0.8); /* Glow effect */
    border-radius: 4px;
  }
  
  .nav-links .btn { 
    display: inline-flex !important; 
    margin-left: 16px;
  }
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* =========================================================
   CINEMATIC BACKGROUND EFFECTS
   ========================================================= */

/* Universal Film Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  mix-blend-mode: overlay;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Top ambient glow — fixed so it stays at top during scroll */
body::before {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 130vw;
  height: 80vh;
  background: radial-gradient(ellipse at top, rgba(29,78,216,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient cursor glow — desktop only */
.ambient-cursor {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,0.15) 0%, rgba(37,99,235,0.04) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .ambient-cursor { display: block; }
}

/* =========================================================
   JALI PATTERNS
   ========================================================= */
.jali-bg {
  background-image: radial-gradient(circle at 10px 10px, rgba(234,179,8,0.07) 1.4px, transparent 1.6px);
  background-size: 24px 24px;
}
.jali-dark {
  background-image: radial-gradient(circle at 10px 10px, rgba(29,78,216,0.09) 1.4px, transparent 1.6px);
  background-size: 24px 24px;
}

/* =========================================================
   ARCH MOTIF
   ========================================================= */
.arch-frame {
  position: relative;
  overflow: hidden;
  border-radius: 200px 200px 8px 8px;
  background: var(--emerald);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(234,179,8,0.45);
  border-radius: 190px 190px 4px 4px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .arch-frame {
    border-radius: 120px 120px 8px 8px;
    height: 300px !important;
  }
}

.arch-divider {
  width: 40px;
  height: 60px;
  margin: 0 auto var(--sp-3);
  border: 1.5px solid var(--gold);
  border-radius: 30px 30px 2px 2px;
  position: relative;
}
.arch-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  width: 1px;
  height: 30px;
  background: var(--gold);
  transform: translateX(-50%);
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.section-dark { background: var(--ivory); }
.section-card { background: var(--card); }
.section-emerald { background: var(--card); }

.hairline { height: 1px; background: var(--stone-line); border: none; margin: var(--sp-5) 0; }

/* Brass hairline thread */
.section-thread {
  max-width: 56rem;
  margin: 0 auto;
  height: 1px;
  background: #C9A36B;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 5;
}
.section-thread.in { transform: scaleX(1); }

/* =========================================================
   GRIDS — Mobile-first
   ========================================================= */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   STATS
   ========================================================= */
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  line-height: 1;
}
.stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 6px;
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.feature-card {
  background: var(--card);
  border: 1px solid var(--stone-line);
  padding: var(--sp-4);
  border-radius: var(--radius-m);
  transition: transform var(--dur-mid) var(--ease-bounce),
              box-shadow var(--dur-mid) var(--ease),
              border-color var(--dur-mid);
  will-change: transform, box-shadow;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(29,78,216,0.3);
}
.feature-card:active { transform: scale(0.98); transition-duration: 80ms; }

.feature-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  -webkit-text-stroke: 1px var(--gold);
  color: transparent;
}
.feature-card h3 { margin: var(--sp-2) 0 var(--sp-1); font-size: 1.3rem; }
.feature-card p { color: var(--stone); margin: 0; font-size: 0.9rem; line-height: 1.7; }

/* =========================================================
   PROPERTY CARDS
   ========================================================= */
.property-card {
  background: var(--card);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform, box-shadow;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.property-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-20deg);
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 20;
  pointer-events: none;
}
.property-card:hover::after {
  left: 200%;
}
.property-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8), 0 0 30px rgba(234,179,8,0.15);
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(234,179,8,0.4);
}
.property-card:active { transform: scale(0.98); transition-duration: 80ms; }

/* Favorite Button */
.btn-fav {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-fav:hover {
  background: rgba(234,179,8,0.9);
  border-color: var(--gold);
  transform: scale(1.15);
}
.btn-fav.active {
  background: #ef4444;
  border-color: #ef4444;
  fill: currentColor;
}
.btn-fav svg { width: 18px; height: 18px; pointer-events: none; transition: fill 0.3s ease; }

.property-media {
  aspect-ratio: 4/3;
  position: relative;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-2));
  border-radius: 130px 130px 0 0;
  margin: 14px 14px 0;
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .property-media { border-radius: 80px 80px 0 0; }
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s var(--ease);
}
.property-card:hover .property-media img { transform: scale(1.04); }

.property-media .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #000;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 10;
}
.property-media .price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  z-index: 10;
}
.property-body { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.property-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.property-loc { color: var(--stone); font-size: 0.82rem; margin-bottom: var(--sp-2); }
.property-meta {
  display: flex;
  gap: var(--sp-2);
  font-size: 0.78rem;
  color: var(--stone);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--stone-line);
  flex-wrap: wrap;
  margin-top: auto;
}
.property-meta span { display: flex; align-items: center; gap: 5px; }

/* Property condition badge (replaces emoji) */
.condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.condition-badge.fresh {
  background: rgba(34,197,94,0.12);
  color: #22C55E;
  border: 1px solid rgba(34,197,94,0.25);
}
.condition-badge.fresh::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
}
.condition-badge.resale {
  background: rgba(234,179,8,0.12);
  color: var(--gold);
  border: 1px solid rgba(234,179,8,0.25);
}
.condition-badge.resale::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* =========================================================
   BLOG CARDS
   ========================================================= */
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--stone-line);
  transition: transform var(--dur-mid) var(--ease-bounce), box-shadow var(--dur-mid) var(--ease), border-color var(--dur-mid);
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(234,179,8,0.2);
}
.blog-card:active { transform: scale(0.98); transition-duration: 80ms; }

.blog-media {
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, #0F172A, #1e293b);
  background-size: cover;
  background-position: center;
  transition: transform 0.55s var(--ease);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Shimmer placeholder for empty blog media */
.blog-media:not([style*="background-image"])::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(148,163,184,0.06) 40%,
    rgba(148,163,184,0.1) 50%,
    rgba(148,163,184,0.06) 60%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.blog-card:hover .blog-media,
.blog-card:hover .blog-media img { transform: scale(1.04); }

.blog-card-body { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.blog-cat { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.blog-card h3 { font-size: 1.15rem; margin: 6px 0 auto; color: var(--ink); line-height: 1.3; padding-bottom: var(--sp-2); }
.blog-meta { color: var(--stone); font-size: 0.78rem; margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--stone-line); }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial {
  background: var(--card);
  border: 1px solid var(--stone-line);
  padding: var(--sp-4);
  border-radius: var(--radius-m);
  transition: border-color var(--dur-mid), box-shadow var(--dur-mid);
}
.testimonial:hover {
  border-color: rgba(234,179,8,0.25);
  box-shadow: var(--shadow-card);
}
.testimonial > p { font-family: var(--font-display); font-style: italic; font-size: clamp(1rem, 2vw, 1.15rem); color: var(--ink); line-height: 1.65; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-3); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.who-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.who-role { color: var(--stone); font-size: 0.75rem; }

/* =========================================================
   TEAM CARDS
   ========================================================= */
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  border-radius: 120px 120px 0 0;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  margin-bottom: var(--sp-2);
  overflow: hidden;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-role { color: var(--stone); font-size: 0.8rem; letter-spacing: 0.03em; }

/* =========================================================
   LOGOS STRIP / DEVELOPER MARQUEE
   ========================================================= */
.developer-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 32px 0;
}
.developer-marquee::before, .developer-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.developer-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--ivory), transparent);
}
.developer-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--ivory), transparent);
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  align-items: center;
}

.developer-marquee:hover .marquee-track { animation-play-state: paused; }

.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 22px;
  margin-right: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}

.logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  filter: blur(18px);
}

.logo-wrapper:hover {
  transform: translateY(-6px);
  border-color: rgba(234,179,8,0.3);
  background: rgba(255,255,255,0.05);
}
.logo-wrapper:hover::before { opacity: 0.5; }
.logo-wrapper:hover img { transform: scale(1.07); }
.marquee-track:hover .logo-wrapper:not(:hover) { opacity: 0.35; filter: grayscale(70%); }

.logo-wrapper img, .logo-wrapper .text-logo {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  transition: all 0.4s var(--ease);
}

@media (max-width: 768px) {
  .logo-wrapper { margin-right: 32px; padding: 10px 16px; }
  .logo-wrapper img, .logo-wrapper .text-logo { height: 28px; max-width: 100px; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
.process-step {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--sp-4);
}
.process-step .idx {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  z-index: 2;
  transition: background var(--dur-mid), color var(--dur-mid);
  flex-shrink: 0;
}
.process-step:hover .idx { background: var(--gold); color: #000; }
.process-line {
  position: absolute;
  left: 21px; top: 42px; bottom: 0;
  width: 1px;
  background: var(--stone-line);
  z-index: 1;
}
.process-step:last-child { padding-bottom: 0; }
.process-step:last-child .process-line { display: none; }
.process-step h3 { margin-bottom: 8px; font-size: 1.3rem; padding-top: 6px; }
.process-step p { color: var(--stone); font-size: 0.9rem; margin: 0; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--emerald) 0%, #1a43c8 100%);
  color: #fff !important;
  border-radius: var(--radius-l);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.cta-band h2 { color: #fff !important; max-width: 520px; font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
.cta-band .eyebrow { color: rgba(255,255,255,0.8) !important; }
.cta-band .eyebrow::before { background: rgba(255,255,255,0.5); }

@media (max-width: 640px) {
  .cta-band { text-align: center; justify-content: center; }
  .cta-band h2 { max-width: 100%; }
}

/* =========================================================
   SEARCH CARD
   ========================================================= */
.search-card {
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  padding: var(--sp-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: sticky;
  top: 90px; /* Below navbar */
  z-index: 50;
  transition: all 0.4s var(--ease);
}
@media (min-width: 600px) { .search-card { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .search-card { grid-template-columns: repeat(4, 1fr) auto; } }
@media (min-width: 1100px) { .search-card { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }

/* =========================================================
   FORMS
   ========================================================= */
.field { margin-bottom: var(--sp-3); }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--stone);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--stone-line);
  background: var(--card);
  border-radius: var(--radius-s);
  color: var(--ink);
  transition: border-color var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
  min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(148,163,184,0.55);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}

/* =========================================================
   PAGE HERO (interior pages)
   ========================================================= */
.page-hero {
  background: var(--card);
  padding: var(--sp-6) 0 var(--sp-5);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 100vw;
  background: radial-gradient(circle, rgba(29,78,216,0.15) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--gold-soft);
  margin-bottom: var(--sp-2);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--card);
  color: var(--stone);
  padding-top: var(--sp-6);
  position: relative;
  z-index: 1;
}
.footer .container { padding-bottom: var(--sp-4); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer h4 {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--stone); font-size: 0.88rem; opacity: 0.85; transition: color var(--dur-fast), opacity var(--dur-fast); }
.footer ul a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--stone-line);
  padding: var(--sp-3) 0;
  font-size: 0.75rem;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social { display: flex; gap: 14px; }
.footer-social a {
  color: var(--stone);
  transition: color var(--dur-fast), transform var(--dur-mid) var(--ease-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stone-line);
}
.footer-social a:hover { color: var(--gold); transform: translateY(-3px); border-color: rgba(234,179,8,0.35); }

/* =========================================================
   MOBILE FLOATING ACTION BAR
   ========================================================= */
.mobile-fab {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(10,17,33,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--stone-line);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: none;
  gap: 8px;
}

@media (max-width: 768px) {
  .mobile-fab { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

.mobile-fab a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-s);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast), opacity var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.mobile-fab a:active { transform: scale(0.93); opacity: 0.85; }
.mobile-fab .fab-call { background: var(--card); border: 1px solid var(--stone-line); color: var(--ink); }
.mobile-fab .fab-wa { background: #25D366; color: #fff; }
.mobile-fab .fab-book { background: var(--gold); color: #000; flex: 1.5; font-weight: 700; }

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-bounce);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Visible state — all types */
.reveal.in,
.reveal-up.in,
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  opacity: 1;
  transform: none;
}

/* Stagger helpers for grids */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.18s; }
.stagger > *:nth-child(4) { transition-delay: 0.26s; }
.stagger > *:nth-child(5) { transition-delay: 0.34s; }
.stagger > *:nth-child(6) { transition-delay: 0.42s; }

/* =========================================================
   READING PROGRESS BAR
   ========================================================= */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* =========================================================
   PAGE TRANSITION OVERLAY
   ========================================================= */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.page-transition.active { opacity: 1; pointer-events: all; }

/* =========================================================
   SCROLL PROGRESS INDICATOR (SIDEBAR DOTS — DESKTOP)
   ========================================================= */
.scroll-dots {
  display: none;
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 1200px) { .scroll-dots { display: flex; } }

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(234,179,8,0.4);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-bounce);
}
.scroll-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.4);
}

/* =========================================================
   STATS SECTION SPECIAL
   ========================================================= */
.stats-section {
  background: linear-gradient(180deg, var(--card) 0%, var(--ivory) 100%);
  padding: var(--section-pad) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item .counter {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
}
.stat-item p { font-size: 0.85rem; color: var(--stone); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

/* =========================================================
   PROCESS TIMELINE (about page specific)
   ========================================================= */
.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
@media (min-width: 640px) { .process-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .process-timeline { grid-template-columns: repeat(3, 1fr); } }

.process-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   SECTION LUXURY (about & other pages)
   ========================================================= */
.section-luxury {
  background: var(--ivory);
  padding: var(--section-pad) 0;
}
.section-luxury + .section-luxury {
  background: var(--card);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 768px) { .story-grid { grid-template-columns: 1fr 1fr; } }

.story-image {
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.story-image:hover img { transform: scale(1.04); }

/* =========================================================
   TEAM CARDS V2
   ========================================================= */
.team-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 600px) { .team-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team-grid-v2 { grid-template-columns: repeat(3, 1fr); } }

.team-card-v2 {
  background: var(--card);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-bounce), box-shadow var(--dur-mid) var(--ease), border-color var(--dur-mid);
  display: flex;
  flex-direction: column;
}
.team-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(234,179,8,0.2);
}
.team-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--card), var(--ivory));
  flex-shrink: 0;
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.team-card-v2:hover .team-card-img img { transform: scale(1.05); }

.linkedin-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(0,119,181,0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform var(--dur-mid) var(--ease-bounce), background var(--dur-fast);
  border: 1px solid rgba(255,255,255,0.15);
}
.linkedin-badge:hover { transform: scale(1.15); background: #0077B5; }

.team-card-content { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.team-card-content h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card-content .role { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.team-card-content .divider { height: 1px; background: var(--stone-line); margin: 12px 0; }
.team-card-content .bio {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.action-bar { display: flex; gap: 8px; margin-top: var(--sp-2); flex-wrap: wrap; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--dur-fast) var(--ease-bounce);
  border: 1px solid var(--stone-line);
  color: var(--stone);
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
}
.action-btn:active { transform: scale(0.95); }
.call-btn:hover { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.wa-btn:hover { background: #25D366; color: #fff; border-color: #25D366; }
.meet-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* =========================================================
   RADIANT BG
   ========================================================= */
.radiant-bg { position: relative; }
.radiant-bg::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 90vw; height: 90vw;
  background: radial-gradient(circle, rgba(29,78,216,0.12) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   BOTTOM BADGE
   ========================================================= */
.bottom-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid rgba(234,179,8,0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--stone);
  background: var(--card);
  letter-spacing: 0.03em;
}

/* =========================================================
   CAREER / JOB CARDS
   ========================================================= */
.job-card {
  background: var(--card);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
  transition: transform var(--dur-mid) var(--ease-bounce), box-shadow var(--dur-mid) var(--ease), border-color var(--dur-mid);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(29,78,216,0.25);
}

/* =========================================================
   BLOG HUB PAGE
   ========================================================= */
.blog-hub-hero {
  background: var(--card);
  padding: clamp(80px, 12vw, 120px) 0 clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.pill {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--stone-line);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--stone);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-bounce);
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
}
.pill:hover, .pill.active {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  transform: translateY(-2px);
}
.pill:active { transform: scale(0.95); }

/* Blog layout */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: start;
}
@media (min-width: 1024px) {
  .blog-layout-grid { grid-template-columns: 1fr 320px; }
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-auto { margin-top: auto !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.text-center { text-align: center; }
.text-gold { color: var(--gold) !important; }
.text-stone { color: var(--stone) !important; }
.text-ink { color: var(--ink) !important; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* =========================================================
   MOBILE: HORIZONTAL SCROLL CARDS
   ========================================================= */
@media (max-width: 640px) {
  .mobile-scroll {
    overflow-x: auto;
    display: flex;
    gap: var(--sp-3);
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-scroll::-webkit-scrollbar { display: none; }
  .mobile-scroll > * {
    flex-shrink: 0;
    width: 80vw;
    scroll-snap-align: start;
  }
}

/* =========================================================
   SWIPE INDICATOR (mobile carousels)
   ========================================================= */
.swipe-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--stone);
  margin-top: 8px;
  opacity: 0.7;
}
@media (max-width: 640px) { .swipe-hint { display: flex; } }

/* =========================================================
   SAFE AREA INSETS (iPhone notch/home-bar)
   ========================================================= */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* =========================================================
   SELECTION COLOR
   ========================================================= */
::selection {
  background: var(--gold);
  color: #000;
}

/* =========================================================
   SCROLLBAR STYLING (WebKit)
   ========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

/* =========================================================
   FOCUS STATES (Accessibility)
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* =========================================================
   SKELETON LOADING ANIMATION
   ========================================================= */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.is-loading .property-card {
  pointer-events: none;
}

.is-loading .property-card * {
  color: transparent !important;
  border-color: transparent !important;
  background: var(--card-2) !important;
  box-shadow: none !important;
}

.is-loading .property-card .property-media::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
  z-index: 30;
}

.is-loading .property-card h3,
.is-loading .property-card .property-loc,
.is-loading .property-card .property-meta span {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.is-loading .property-card h3::after,
.is-loading .property-card .property-loc::after,
.is-loading .property-card .property-meta span::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

/* ============================================================ */
/* PROPERTY CARD V2 - Premium High-Fidelity Design */
/* ============================================================ */
.property-card-v2 {
    display: flex;
    flex-direction: column;
    background: #0E121A;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: var(--stone);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.property-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 179, 8, 0.3); /* Gold tint on hover */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Media Box */
.pc2-media {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}
.pc2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.property-card-v2:hover .pc2-media img {
    transform: scale(1.05);
}

/* Badges on Media */
.pc2-badge-new {
    position: absolute;
    top: 0;
    left: 0;
    background: #E8C16A;
    color: #111;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 24px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.pc2-badge-new svg { width: 14px; height: 14px; }

.pc2-badge-price {
    position: absolute;
    top: 0;
    left: 95px; /* Adjust based on NEW badge width */
    background: rgba(20, 25, 35, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 0 0 16px 16px;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: none;
}
.pc2-badge-price .val { font-size: 1.25rem; font-weight: 600; color: #fff; line-height: 1.1; font-family: var(--font-display); }
.pc2-badge-price .lbl { font-size: 0.7rem; color: #94A3B8; margin-top: 2px; }

.pc2-fav-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 25, 35, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.pc2-fav-btn:hover { background: #E8C16A; color: #111; border-color: transparent; }

.pc2-status-badges {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.pc2-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(8px);
}
.pc2-status-badge.sale { color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); }
.pc2-status-badge.resale { color: #8B5CF6; border: 1px solid rgba(139, 92, 246, 0.3); }
.pc2-status-badge.rent { color: #3B82F6; border: 1px solid rgba(59, 130, 246, 0.3); }

.pc2-price-inc {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(20, 25, 35, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 10;
}
.pc2-price-inc .inc-val { color: #10B981; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.pc2-price-inc .inc-lbl { color: #fff; font-size: 0.75rem; font-weight: 500; margin-top: 4px; }
.pc2-price-inc .inc-sub { color: #94A3B8; font-size: 0.65rem; margin-top: 2px; }

/* Content Box */
.pc2-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.pc2-added-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-bottom: 20px;
}
.pc2-added-left { color: #10B981; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }
.pc2-added-left span { width: 6px; height: 6px; background: #10B981; border-radius: 50%; }
.pc2-added-right { color: #94A3B8; font-size: 0.7rem; }

.pc2-title { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin: 0 0 8px 0; font-weight: 400; line-height: 1.2; }
.pc2-location { color: #94A3B8; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.pc2-location svg { width: 14px; height: 14px; }

.pc2-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.pc2-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 0;
}
.pc2-spec-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background: rgba(255,255,255,0.1);
}
.pc2-spec-icon { color: #94A3B8; display: flex; align-items: center; flex-shrink: 0; }
.pc2-spec-icon svg { width: 22px; height: 22px; stroke-width: 1.5; fill: none; stroke: currentColor; }
.pc2-spec-info { display: flex; flex-direction: column; min-width: 0; }
.pc2-spec-val { color: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc2-spec-lbl { color: #94A3B8; font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pc2-divider { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 20px; }

.pc2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.pc2-btn-plan {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.pc2-btn-plan:hover { background: rgba(255,255,255,0.1); }
.pc2-btn-plan svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }

.pc2-amenities {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}
.pc2-amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94A3B8;
    text-align: center;
    flex: 1;
    min-width: 0;
}
.pc2-amenity svg { width: 18px; height: 18px; stroke: currentColor; fill: none; flex-shrink: 0; }
.pc2-amenity span { 
    font-size: 0.6rem; 
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .pc2-footer { flex-direction: column; gap: 20px; align-items: stretch; }
    .pc2-btn-plan { justify-content: center; }
    .pc2-amenities { justify-content: space-around; }
    .pc2-specs { grid-template-columns: 1fr 1fr; row-gap: 20px; }
    .pc2-spec-item:nth-child(2)::after { display: none; }
    .pc2-title { font-size: 1.4rem; }
    .pc2-badge-price { left: auto; right: 0; border-radius: 0 24px 0 16px; }
    .pc2-badge-new { border-radius: 24px 0 16px 0; }
    .pc2-price-inc { top: 60px; right: 16px; bottom: auto; } /* Move up if overlapping on small screens */
}
