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

/* --- luxury theme system --- */
:root {
  /* aureate beige (default) */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EFEA;
  --text-primary: #1A2332;
  --text-secondary: #5C6575;
  --accent: #C5A880;
  --accent-rgb: 197, 168, 128;
  --accent-dark: #A98D65;
  --panel-bg: rgba(250, 248, 245, 0.75);
  --border-color: rgba(197, 168, 128, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(26, 35, 50, 0.05);
  --transition-luxury: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --glow-color: rgba(197, 168, 128, 0.4);
}

:root.theme-navy {
  --bg-primary: #F4F6F8;
  --bg-secondary: #E8ECEF;
  --text-primary: #0F2038;
  --text-secondary: #4A5B70;
  --accent: #9EB2C0;
  --accent-rgb: 158, 178, 192;
  --accent-dark: #7A90A0;
  --panel-bg: rgba(244, 246, 248, 0.75);
  --border-color: rgba(15, 32, 56, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(15, 32, 56, 0.06);
  --glow-color: rgba(158, 178, 192, 0.4);
}

:root.theme-noir {
  --bg-primary: #0A0A0B;
  --bg-secondary: #121214;
  --text-primary: #FAF8F5;
  --text-secondary: #A0A0A5;
  --accent: #D4AF37;
  --accent-rgb: 212, 175, 55;
  --accent-dark: #B89321;
  --panel-bg: rgba(18, 18, 20, 0.85);
  --border-color: rgba(212, 175, 55, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glow-color: rgba(212, 175, 55, 0.3);
}

/* --- base and global styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Custom Scrollbar — desktop only */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* Hide scrollbar completely on mobile/touch devices */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }
  * {
    scrollbar-width: none !important;
  }
}

/* --- custom cursor element --- */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
  display: none;
}

@media (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor.hovered {
  width: 50px;
  height: 50px;
  background-color: rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent);
}

.custom-cursor.card-cursor {
  width: 90px;
  height: 90px;
  background-color: var(--accent);
  border-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A2332;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  mix-blend-mode: normal;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* --- glassmorphism utility kit --- */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-luxury);
}

.glass-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}

/* --- premium animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes clipReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes kenBurns {
  from { transform: scale(1.0); }
  to { transform: scale(1.15); }
}

@keyframes goldGlow {
  0% { box-shadow: 0 0 5px var(--border-color); }
  50% { box-shadow: 0 0 20px var(--glow-color); }
  100% { box-shadow: 0 0 5px var(--border-color); }
}

/* Animation triggers */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- architecture configurator panel --- */
#configurator-panel {
  position: fixed;
  top: 50%;
  right: -320px;
  transform: translateY(-50%);
  width: 320px;
  height: auto;
  max-height: 85vh;
  z-index: 1000;
  border-radius: 20px 0 0 20px;
  padding: 30px 24px;
  overflow-y: auto;
  border-right: none;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#configurator-panel.active {
  right: 0;
}

.config-toggle-btn {
  position: absolute;
  left: -50px;
  top: 40px;
  width: 50px;
  height: 50px;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.05);
}

.config-toggle-btn i {
  transition: transform 0.6s ease;
}

#configurator-panel.active .config-toggle-btn i {
  transform: rotate(180deg);
}

.config-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.config-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 600;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-option {
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-option:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
}

.config-option.active {
  background: var(--accent);
  color: #1A2332;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.config-option.active::after {
  content: '✓';
  font-weight: bold;
}

/* --- header layout --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 30px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0);
  background: rgba(0, 0, 0, 0);
  transition: padding 0.5s ease, background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, border-bottom 0.5s ease;
}

/* Default dynamic scrolled state: 85% translucent glassmorphism */
header.scrolled {
  padding: 15px 6% !important;
  background-color: rgba(26, 35, 50, 0.85) !important;
  background: rgba(26, 35, 50, 0.85) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
header.scrolled .logo,
header.scrolled .logo span,
header.scrolled .nav-links a,
header.scrolled .menu-toggle {
  color: #FAF8F5 !important;
}
header.scrolled .header-cta {
  color: #FAF8F5 !important;
  border-color: rgba(250, 248, 245, 0.3) !important;
}

/* 1. Aureate Beige Theme (Scrolled: 85% translucent dark background) */
.theme-beige header.scrolled {
  background-color: rgba(26, 35, 50, 0.85) !important;
  background: rgba(26, 35, 50, 0.85) !important;
}
.theme-beige header.scrolled .logo,
.theme-beige header.scrolled .logo span,
.theme-beige header.scrolled .nav-links a,
.theme-beige header.scrolled .menu-toggle {
  color: #FAF8F5 !important;
}
.theme-beige header.scrolled .header-cta {
  color: #FAF8F5 !important;
  border-color: rgba(250, 248, 245, 0.3) !important;
}

/* 2. Oceanic Navy Theme (Scrolled: 85% translucent navy background) */
.theme-navy header.scrolled {
  background-color: rgba(15, 32, 56, 0.85) !important;
  background: rgba(15, 32, 56, 0.85) !important;
}
.theme-navy header.scrolled .logo,
.theme-navy header.scrolled .logo span,
.theme-navy header.scrolled .nav-links a,
.theme-navy header.scrolled .menu-toggle {
  color: #FAF8F5 !important;
}
.theme-navy header.scrolled .header-cta {
  color: #FAF8F5 !important;
  border-color: rgba(250, 248, 245, 0.3) !important;
}

/* 3. Monolithic Noir Theme (Scrolled: 85% translucent light background) */
.theme-noir header.scrolled {
  background-color: rgba(250, 248, 245, 0.85) !important;
  background: rgba(250, 248, 245, 0.85) !important;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08) !important;
}
.theme-noir header.scrolled .logo,
.theme-noir header.scrolled .logo span,
.theme-noir header.scrolled .nav-links a,
.theme-noir header.scrolled .menu-toggle {
  color: #1A2332 !important;
}
.theme-noir header.scrolled .header-cta {
  color: #1A2332 !important;
  border-color: rgba(26, 35, 50, 0.3) !important;
}

/* Preserving beautiful link hover colors when header is scrolled */
header.scrolled .nav-links a:hover {
  color: var(--accent) !important;
  opacity: 1 !important;
}

/* Smooth color/border transition for all header contents during scroll changes */
header,
header.scrolled,
.logo,
.logo span,
.nav-links a,
.header-cta,
.menu-toggle {
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              -webkit-backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.logo {
  font-size: 1.6rem;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  position: relative;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 12px 28px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  transform: skewX(-15deg);
}

.header-cta:hover {
  color: #1A2332;
  border-color: var(--accent);
}

.header-cta:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  /* Hide the Book Showing CTA on tablet/mobile — hamburger handles navigation */
  .header-cta {
    display: none !important;
  }
  /* Tighten header so logo + hamburger sit flush */
  header {
    padding: 20px 5% !important;
    gap: 0;
  }
  /* Hide standard nav entirely on mobile — handled by fullscreen overlay */
  header nav {
    display: none !important;
  }
}

/* --- hero layouts --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* Layout 1: Split Cinematic */
.hero.layout-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero.layout-split .hero-content {
  padding: 120px 8% 60px 12%;
  z-index: 10;
}

.hero.layout-split .hero-visual {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero.layout-split .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s infinite alternate;
}

.hero.layout-split .hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  transition: background 0.8s ease;
}

/* Layout 2: Fullscreen Panoramic */
.hero.layout-fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10%;
}

.hero.layout-fullscreen .hero-content {
  max-width: 900px;
  z-index: 10;
  color: #FAF8F5; /* Keep hero readable on dark image overlay */
}

.hero.layout-fullscreen .hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero.layout-fullscreen .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.layout-fullscreen .hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.4) 0%, rgba(26, 35, 50, 0.75) 100%);
  pointer-events: none;
}

/* Hero elements styling */
.hero-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero.layout-split h1 {
  color: var(--text-primary);
}

.hero.layout-fullscreen h1 {
  color: #FAF8F5;
}

.hero-desc {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero.layout-fullscreen .hero-desc {
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 248, 245, 0.8);
}

.hero-actions {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero.layout-fullscreen .hero-actions {
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #1A2332 !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary) !important;
  border-color: var(--accent);
}

.hero.layout-fullscreen .btn-primary:hover {
  color: #FAF8F5 !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 36px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero.layout-fullscreen .btn-secondary {
  color: #FAF8F5;
  border-color: rgba(250, 248, 245, 0.868);
}

.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.05);
  border-color: var(--accent);
}

.hero.layout-fullscreen .btn-secondary:hover {
  background: rgba(250, 248, 245, 0.1);
  border-color: #FAF8F5;
}

@media (max-width: 992px) {
  .hero.layout-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
  }
  .hero.layout-split .hero-visual {
    height: 450px;
  }
  .hero.layout-split .hero-content {
    padding: 60px 8%;
  }
}

/* --- property search UI layout options --- */
.search-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

/* Option 1: Glass Floating Bar */
.search-container.layout-floating-bar {
  margin-top: -60px;
}

.search-bar-inner {
  padding: 30px 40px;
  border-radius: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
}

/* Option 2: Side Panel / Architectural Panel */
.search-container.layout-side-panel {
  margin-top: 40px;
  margin-bottom: 40px;
}

.search-container.layout-side-panel .search-bar-inner {
  border-radius: 20px;
  padding: 35px 40px;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.search-container.layout-side-panel .search-submit-col {
  grid-column: span 2;
  text-align: right;
}

.search-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-col label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.search-select-wrapper {
  position: relative;
}

.search-select-wrapper select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: var(--transition-fast);
}

.search-select-wrapper select:focus {
  border-bottom-color: var(--accent);
}

.search-select-wrapper::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--accent);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-submit-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A2332;
  font-size: 1.1rem;
  transition: var(--transition-luxury);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.25);
}

.search-submit-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

.search-container.layout-side-panel .search-submit-btn {
  border-radius: 8px;
  width: 100%;
  height: auto;
  padding: 16px 36px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  flex-direction: row;
  gap: 10px;
}

.search-container.layout-side-panel .search-submit-btn::before {
  content: 'SEARCH ESTATES';
}

@media (max-width: 992px) {
  .search-container.layout-floating-bar {
    margin-top: 40px;
  }
  .search-bar-inner {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 30px;
    gap: 20px;
  }
  .search-submit-btn {
    border-radius: 8px;
    width: 100%;
    height: 50px;
  }
  .search-submit-btn i {
    display: none;
  }
  .search-submit-btn::before {
    content: 'SEARCH PORTFOLIO';
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
  }
  .search-container.layout-side-panel .search-bar-inner {
    grid-template-columns: 1fr;
  }
  .search-container.layout-side-panel .search-submit-col {
    grid-column: span 1;
  }
}

/* --- sectional header styling --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 100px auto 50px;
  padding: 0 5%;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1rem;
}

/* --- property categories layouts --- */
.categories-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Style A: Accordion Flex (Dynamic Expand) */
.cat-flex-grid {
  display: flex;
  height: 500px;
  gap: 20px;
  width: 100%;
  margin-bottom: 60px;
}

.cat-flex-panel {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s ease;
  border: 1px solid var(--border-color);
}

.cat-flex-panel:hover, .cat-flex-panel.active {
  flex: 2.8;
  border-color: var(--accent);
}

.cat-flex-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-flex-panel:hover .cat-flex-img, .cat-flex-panel.active .cat-flex-img {
  transform: scale(1.08);
}

.cat-flex-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26,35,50,0) 40%, rgba(26,35,50,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px 25px;
  transition: opacity 0.5s ease;
}

.cat-flex-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FAF8F5;
  margin-bottom: 5px;
  white-space: nowrap;
}

.cat-flex-panel.active .cat-flex-overlay {
  background: linear-gradient(180deg, rgba(26,35,50,0.1) 0%, rgba(26,35,50,0.9) 100%);
}

.cat-flex-info {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(250, 248, 245, 0.8);
  font-size: 0.85rem;
}

.cat-flex-panel:hover .cat-flex-info, .cat-flex-panel.active .cat-flex-info {
  max-height: 120px;
  opacity: 1;
  margin-top: 12px;
}

.cat-flex-count {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(250, 248, 245, 0.15);
  border: 1px solid rgba(250, 248, 245, 0.25);
  color: #FAF8F5;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Style B: 3D Tilting Glass grid */
.cat-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  perspective: 1000px;
}

.cat-card-3d {
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
}

.cat-card-3d-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card-3d.flipped .cat-card-3d-inner {
  transform: rotateY(180deg);
}

.cat-3d-front, .cat-3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
}

.cat-3d-front {
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
}

.cat-3d-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(14,14,16,0.85) 100%);
  z-index: 1;
}

.cat-3d-front * {
  z-index: 2;
  color: #FAF8F5;
}

.cat-3d-back {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: rotateY(180deg);
  justify-content: space-between;
}

.cat-3d-back h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.cat-3d-back-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.cat-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.cat-stat-row span:first-child {
  color: var(--text-secondary);
}

.cat-stat-row span:last-child {
  font-weight: 600;
  color: var(--accent);
}

.cat-3d-btn {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: auto;
}

@media (max-width: 992px) {
  .cat-flex-grid {
    flex-direction: column;
    height: auto;
  }
  .cat-flex-panel {
    height: 180px;
  }
  .cat-flex-panel:hover, .cat-flex-panel.active {
    flex: none;
    height: 280px;
  }
}

/* --- featured properties section --- */
.featured-section {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 0;
}

.featured-filters {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 50px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  opacity: 0.6;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.filter-btn:hover {
  opacity: 0.9;
}

.filter-btn.active {
  opacity: 1;
  color: var(--accent);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.filter-btn.active::after {
  width: 30px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
}

@media (max-width: 480px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Property card animation transitions */
.properties-grid > div {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Card Interaction Option A: Architectural Parallax */
.card-parallax {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.card-img-wrapper {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-parallax:hover .card-img {
  transform: scale(1.1);
}

.card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 10;
}

.card-price {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 10;
}

.card-body {
  padding: 30px;
  position: relative;
  z-index: 2;
}

.card-location {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.card-parallax:hover .card-title {
  color: var(--accent);
}

.card-meta {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.meta-item i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Card Interaction Option B: Cursor-Following Canvas */
.card-cursor-follow {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  cursor: none; /* Hide default cursor inside card area */
}

.card-cursor-follow .card-img-wrapper {
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  transition: border-color 0.5s ease;
}

.card-cursor-follow:hover .card-img-wrapper {
  border-color: var(--accent);
}

.card-cursor-follow .card-body {
  padding: 0 10px;
}

.card-cursor-follow .card-meta {
  border-top: none;
  padding-top: 10px;
  margin-top: 10px;
  gap: 25px;
}

.card-cursor-follow .card-title {
  font-size: 1.8rem;
}

/* --- agent profiles --- */
.agents-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

/* Option A: Editorial Magazine Grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
}

@media (max-width: 480px) {
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

.agent-card {
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.agent-img-wrapper {
  height: 420px;
  overflow: hidden;
  position: relative;
}

.agent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-card:hover .agent-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.agent-info {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.agent-role {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

.agent-name {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.agent-desc {
  font-size: 0.85rem;
  margin-bottom: 25px;
}

.agent-signature-svg {
  width: 100%;
  height: 45px;
  margin-top: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-signature-svg path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2s ease;
}

.agent-card:hover .agent-signature-svg path {
  stroke-dashoffset: 0;
}

/* Option B: Showcase Slider Layout */
.agents-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  min-height: 420px;
}

.agent-slide {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  animation: fadeIn 0.8s ease;
}

.agent-slide.active {
  display: grid;
}

.agent-slide .agent-img-wrapper {
  height: 460px;
}

.agent-slide .agent-img {
  filter: grayscale(0);
}

.agent-slide .agent-info {
  padding: 60px 8%;
}

.agent-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.agent-stat-box h4 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 500;
}

.agent-stat-box p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slider-nav {
  position: absolute;
  bottom: 40px;
  right: 8%;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-nav-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.slider-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .agent-card, .agent-slide {
    grid-template-columns: 1fr;
  }
  .agent-img-wrapper, .agent-slide .agent-img-wrapper {
    height: 300px;
  }
  .agent-info, .agent-slide .agent-info {
    padding: 30px;
  }
  .slider-nav {
    bottom: 20px;
    right: 20px;
  }
}

/* --- testimonials section --- */
.testimonials-section {
  width: 100%;
  padding: 100px 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.8s ease;
  overflow: hidden;
}

.testimonials-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Layout Option A: Staggered Floating Cards */
.testimonials-stack-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.testimonial-stack-card {
  width: 360px;
  border-radius: 16px;
  padding: 40px;
  cursor: pointer;
}

.testimonial-stack-card:nth-child(1) {
  transform: rotate(-1.5deg) translateY(10px);
}
.testimonial-stack-card:nth-child(2) {
  transform: rotate(1deg) translateY(-10px);
}
.testimonial-stack-card:nth-child(3) {
  transform: rotate(-0.5deg) translateY(15px);
}

.testimonial-stack-card:hover {
  transform: translateY(-20px) scale(1.03) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.test-rating {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.test-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.test-author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.test-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  object-fit: cover;
}

.test-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.test-author-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Layout Option B: Cinematic Quote Carousel */
.testimonials-carousel-fade {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
  position: relative;
  min-height: 380px;
}

.test-fade-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.test-fade-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.testimonials-carousel-fade .test-quote {
  font-size: 2.2rem;
  line-height: 1.35;
  margin-bottom: 40px;
}

.testimonials-carousel-fade .test-author-info {
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.testimonials-carousel-fade .test-author-name {
  font-size: 1.1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.3;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.5);
}

/* --- inquiry / contact form --- */
.inquiry-section {
  width: 90%;
  max-width: 1200px;
  margin: 100px auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--border-color);
}

.inquiry-brand {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FAF8F5;
}

.inquiry-brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(82, 139, 218, 0.4) 0%, rgba(10, 10, 11, 0.85) 100%);
}

.inquiry-brand-content {
  position: relative;
  z-index: 5;
}

.inquiry-brand-content h3 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.inquiry-brand-content p {
  color: rgba(250, 248, 245, 0.85);
  font-size: 1rem;
  max-width: 380px;
}

.inquiry-hours {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(250,248,245,0.2);
  padding-top: 30px;
  margin-top: 40px;
}

.inquiry-hours h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 10px;
}

.inquiry-hours p {
  color: rgba(250,248,245,0.7);
  font-size: 0.85rem;
}

.inquiry-form-wrapper {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 60px;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-full-width {
  grid-column: span 2;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 0;
  outline: none;
  transition: border-bottom-color 0.4s ease;
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-group label {
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.form-input:focus ~ label,
.form-input:not(:placeholder-shown) ~ label {
  transform: translateY(-24px);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Submit Button */
.inquiry-submit-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--text-primary);
  padding: 18px 40px;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 10px;
}

.inquiry-submit-btn:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.inquiry-success-message {
  display: none;
  animation: fadeIn 0.8s ease forwards;
  text-align: center;
  padding: 40px 0;
}

.inquiry-success-message i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.inquiry-success-message h4 {
  font-size: 2rem;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .inquiry-section {
    grid-template-columns: 1fr;
  }
  .inquiry-brand {
    padding: 40px;
    height: 350px;
  }
  .inquiry-form-wrapper {
    padding: 40px;
  }
}

@media (max-width: 576px) {
  .inquiry-form {
    grid-template-columns: 1fr;
  }
  .form-full-width {
    grid-column: span 1;
  }
}

/* --- footer --- */
footer {
  background-color: #0E0E10;
  color: #A0A0A5;
  padding: 80px 6% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 1.2rem;
  color: #FAF8F5;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: #A0A0A5;
  font-size: 0.9rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: #FAF8F5;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  margin-bottom: 25px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAF8F5;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent);
  color: #1A2332;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #A0A0A5;
}

.footer-links a:hover {
  color: #FAF8F5;
  padding-left: 5px;
}

.footer-contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-row i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-newsletter p {
  margin-bottom: 20px;
}

.newsletter-form {
  position: relative;
}

.newsletter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 50px 14px 20px;
  color: #FAF8F5;
  font-family: var(--font-sans);
  border-radius: 8px;
  outline: none;
}

.newsletter-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #1A2332;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--accent-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* --- immersive dynamic property details modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 14, 16, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content-container {
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 24px;
  overflow-y: auto;
  position: relative;
  transform: translateY(40px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: #FAF8F5;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent);
  color: #1A2332;
  border-color: var(--accent);
}

.modal-hero {
  height: 450px;
  position: relative;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(26,35,50,0.85) 100%);
}

.modal-header-info {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 5;
  color: #FAF8F5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.modal-header-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.modal-header-info p {
  color: rgba(250, 248, 245, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-header-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
}

.modal-body {
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 50px;
}

.modal-desc-col h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.modal-desc-col p {
  font-size: 1rem;
  margin-bottom: 30px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  margin-bottom: 40px;
}

.modal-spec-item {
  text-align: center;
}

.modal-spec-item i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-spec-item h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.modal-spec-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-gallery-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.modal-gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal-agent-box {
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.modal-agent-box h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.modal-agent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent);
  margin: 0 auto 15px;
  display: block;
}

.modal-agent-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-agent-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-agent-btn {
  width: 100%;
  background: var(--accent);
  color: #1A2332;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-agent-btn:hover {
  background: transparent;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .modal-hero {
    height: 300px;
  }
  .modal-header-info {
    bottom: 20px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .modal-body {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 30px;
  }
}

/* --- elite interactive card blueprints --- */
.card-blueprint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0c121e; /* Deep midnight blueprint navy */
  background-image: 
    linear-gradient(rgba(197, 168, 128, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 128, 0.04) 1px, transparent 1px);
  background-size: 15px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blueprint-svg {
  width: 85%;
  height: 85%;
  overflow: visible;
}

.blueprint-svg stroke {
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blueprint-svg rect,
.blueprint-svg line,
.blueprint-svg circle,
.blueprint-svg path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.blueprint-svg text {
  opacity: 0;
  transition: opacity 1s ease 1.2s;
}

/* Blueprint Toggle Active State */
.glass-card.blueprint-active .card-img {
  opacity: 0.08;
  filter: blur(8px) grayscale(100%);
}

.glass-card.blueprint-active .card-blueprint-overlay {
  opacity: 1;
  pointer-events: auto;
}

.glass-card.blueprint-active .blueprint-svg rect,
.glass-card.blueprint-active .blueprint-svg line,
.glass-card.blueprint-active .blueprint-svg circle,
.glass-card.blueprint-active .blueprint-svg path {
  stroke-dashoffset: 0;
}

.glass-card.blueprint-active .blueprint-svg text {
  opacity: 0.65;
}

/* Floating Action Triggers */
.card-blueprint-btn,
.card-curate-btn {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
}

.card-blueprint-btn {
  bottom: 20px;
  right: 20px;
}

.card-curate-btn {
  bottom: 20px;
  left: 20px;
}

.card-blueprint-btn:hover,
.card-curate-btn:hover {
  background: var(--accent);
  color: #1A2332;
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3);
}

.card-blueprint-btn.active {
  background: var(--accent);
  color: #1A2332;
  border-color: var(--accent);
  transform: rotate(45deg);
}

.card-curate-btn.active {
  background: var(--accent);
  color: #1A2332;
  border-color: var(--accent);
}

/* --- floating curation compare deck --- */
#curation-compare-deck {
  position: fixed;
  bottom: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  z-index: 950;
  border-radius: 20px 20px 0 0;
  padding: 24px 30px;
  border-bottom: none;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.18);
  transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#curation-compare-deck.active {
  bottom: 0;
}

.curation-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.curation-deck-header h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.curation-deck-actions {
  display: flex;
  gap: 12px;
}

.curation-deck-actions button {
  padding: 8px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.curation-deck-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.curation-deck-items {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  min-height: 60px;
  align-items: center;
}

.curation-deck-items::-webkit-scrollbar {
  height: 4px;
}

.curation-empty-msg {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.curation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 220px;
  animation: fadeInUp 0.4s ease forwards;
}

.curation-item-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.curation-item-details {
  display: flex;
  flex-direction: column;
}

.curation-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.curation-item-price {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-serif);
}

.curation-item-remove {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: auto;
  transition: var(--transition-fast);
}

.curation-item-remove:hover {
  color: #ff4d4d;
}

/* --- comparison matrix layout --- */
.compare-modal-body {
  max-height: 80vh;
  overflow-y: auto;
}

.compare-matrix-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 20px;
  align-items: stretch;
}

.compare-matrix-col {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 24px;
  background: rgba(var(--accent-rgb), 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-luxury);
}

.compare-matrix-col:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.compare-matrix-col img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.compare-col-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.compare-col-header p {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.compare-row-val {
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compare-row-val:last-child {
  border-bottom: none;
}

.compare-row-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  font-weight: 600;
}

.compare-row-data {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.compare-row-data.price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .compare-matrix-grid {
    grid-template-columns: 1fr;
  }

  /* --- Featured properties: clean vertical card stack on mobile --- */
  .properties-grid {
    display: flex !important;
    flex-direction: column !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
    gap: 20px !important;
    padding: 0 5% 30px !important;
    margin: 0 !important;
    width: 100% !important;
    scrollbar-width: none !important;
  }
  .properties-grid::-webkit-scrollbar {
    display: none !important;
  }
  .properties-grid > div {
    flex: none !important;
    width: 100% !important;
    scroll-snap-align: none !important;
    margin-bottom: 0 !important;
  }
  
  /* --- mobile-only horizontal scroll-snap testimonials reviews filmstrip --- */
  .testimonials-stack-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 20px !important;
    padding: 10px 5% 30px !important;
    margin: 0 -5% !important;
    scrollbar-width: none !important;
  }
  .testimonials-stack-grid::-webkit-scrollbar {
    display: none !important;
  }
  .testimonial-stack-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    transform: none !important; /* Remove desktop rotations on mobile */
    margin-bottom: 0 !important;
  }
  
  /* --- mobile-only interactive tap advisors experience --- */
  .agent-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition-luxury);
  }
  
  .agent-card::after {
    content: 'Tap to view profile';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(var(--accent-rgb), 0.15);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 10;
    opacity: 0.85;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .agent-card.agent-mobile-tapped::after {
    content: 'Active Profile';
    background: var(--accent);
    color: #1A2332;
    border-color: var(--accent);
  }
  
  .agent-card.agent-mobile-tapped .agent-img {
    filter: grayscale(0%) !important;
    transform: scale(1.05) !important;
  }
  
  .agent-card.agent-mobile-tapped .agent-signature-svg path {
    stroke-dashoffset: 0 !important;
  }
}

/* =====================================================
   MOBILE-ONLY PREMIUM ENHANCEMENTS (max-width: 768px)
   ===================================================== */

/* 1. Hide search section completely on mobile */
@media (max-width: 768px) {
  #search-section {
    display: none !important;
  }

  /* Hide desktop agent grid, show orbs */
  #agents-container {
    display: none !important;
  }
  .mobile-agent-orbs {
    display: flex !important;
  }

  /* Hide desktop testimonial stack, show mobile */
  .testimonials-stack-grid {
    display: none !important;
  }
  .mobile-testimonials {
    display: block !important;
  }

  /* Portfolio categories: horizontal snap filmstrip on mobile */
  .categories-container {
    display: block !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .categories-container::-webkit-scrollbar { display: none; }

  .cat-flex-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 0 5% 24px !important;
    width: max-content !important;
  }

  /* Each panel: fixed card size, full detail always visible */
  .cat-flex-panel {
    flex: 0 0 220px !important;
    height: 300px !important;
    scroll-snap-align: start;
    border-radius: 16px !important;
    overflow: hidden;
    flex-basis: 220px !important;
  }
  /* Always show overlay on mobile (no hover) */
  .cat-flex-panel .cat-flex-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .cat-flex-panel .cat-flex-img {
    transform: scale(1) !important;
  }
  /* Active panel same size — no expansion on mobile */
  .cat-flex-panel.active {
    flex: 0 0 220px !important;
  }

  #mobile-cat-pills {
    display: flex !important;
  }

  /* General mobile hero fix */
  .hero.layout-split {
    grid-template-columns: 1fr !important;
    min-height: 100svh;
    position: relative;
  }
  .hero.layout-split .hero-visual {
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
  }
  .hero.layout-split .hero-visual::after {
    background: linear-gradient(180deg, rgba(26,35,50,0.45) 0%, rgba(10,10,11,0.82) 100%) !important;
  }
  .hero.layout-split .hero-content {
    position: relative;
    z-index: 2;
    padding: 110px 6% 60px !important;
    color: #FAF8F5;
  }
  .hero.layout-split h1 { color: #FAF8F5 !important; }
  .hero.layout-split .hero-desc { color: rgba(250,248,245,0.8) !important; }
  .hero-actions { flex-direction: column; gap: 12px !important; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }

  /* Section headers mobile */
  .section-header { margin: 60px auto 30px !important; }

  /* Curation deck mobile */
  #curation-compare-deck {
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
  }

  /* General padding/margins */
  .agents-section { padding: 40px 0 !important; }
  .testimonials-section { padding: 60px 0 !important; }
  .inquiry-section {
    grid-template-columns: 1fr !important;
  }
  .inquiry-brand { display: none !important; }
  .inquiry-form-wrapper { padding: 40px 24px !important; }
  .inquiry-form { grid-template-columns: 1fr !important; }
  .form-full-width { grid-column: span 1 !important; }

  /* ---- Kill all right-side overflow sources ---- */
  /* Hide the desktop-only design configurator entirely on mobile */
  #configurator-panel,
  #configurator-panel .config-toggle-btn {
    display: none !important;
  }

  /* Ensure every section and wrapper is capped to viewport */
  main, footer {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  header {
    max-width: 100vw !important;
  }
  /* Sections: cap width but DON'T clip content (overflow:hidden hides cards) */
  section {
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  /* Property cards: full width on mobile, no overflow clipping */
  .glass-card.card-parallax {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
  }

  /* Featured section: full width container on mobile */
  .featured-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 40px 0 !important;
    overflow: visible !important;
  }

  /* Featured filter chips: scrollable row, no wrapping overflow */
  .featured-filters {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding: 0 5% 20px !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
  }
  .featured-filters::-webkit-scrollbar { display: none; }

  /* Footer grid: single column */
  .footer-grid {
    grid-template-columns: 1fr !important;
    padding: 40px 6% !important;
  }

  /* Comparison deck: flush to edges on mobile */
  /* Comparison deck: full-width bottom drawer on mobile */
  #curation-compare-deck {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
    border-radius: 24px 24px 0 0 !important;
    bottom: -100% !important;
    padding: 20px 16px 30px !important;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.35) !important;
  }
  #curation-compare-deck.active {
    bottom: 0 !important;
  }
  /* Deck header compact */
  .curation-deck-header {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }
  .curation-deck-header h4 {
    font-size: 1rem !important;
  }
  /* Stack action buttons vertically on mobile */
  .curation-deck-actions {
    flex-direction: row !important;
    gap: 8px !important;
  }
  .curation-deck-actions button {
    padding: 8px 14px !important;
    font-size: 0.65rem !important;
  }
  /* Items: snap horizontal scroll row */
  .curation-deck-items {
    gap: 10px !important;
    min-height: 56px !important;
    padding-bottom: 4px !important;
  }
  .curation-item {
    min-width: 160px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .curation-item-name {
    max-width: 90px !important;
    font-size: 0.72rem !important;
  }
  .curation-item-price {
    font-size: 0.68rem !important;
  }
  /* Compare matrix: vertical scroll on mobile */
  .compare-matrix-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .compare-matrix-col {
    padding: 16px !important;
  }
}

/* ---- 2. Mobile Category Pill Strip ---- */
.mobile-cat-pills {
  display: none; /* shown via media query */
  gap: 10px;
  padding: 0 5% 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.mobile-cat-pills::-webkit-scrollbar { display: none; }

.mob-cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 80px;
}
.mob-cat-pill.active {
  background: var(--accent);
  color: #1A2332;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
}
.mob-cat-pill:not(.active):hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mob-cat-icon {
  font-size: 1.2rem;
}

/* ---- 3. Mobile Agent Glowing Orbs ---- */
.mobile-agent-orbs {
  display: none; /* shown via media query */
  flex-direction: column;
  align-items: center;
  padding: 20px 6% 50px;
  gap: 20px;
}
.orb-hint {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.8;
}
.orbs-stage {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 30px 0;
}

/* The Orb itself */
.agent-orb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.orb-core {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 3;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5), inset 0 0 20px rgba(var(--accent-rgb), 0.1);
  transition: var(--transition-luxury);
}
.orb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(40%);
  transition: filter 0.6s ease;
}
.orb-label {
  display: none; /* fallback */
}
.agent-orb:active .orb-img {
  filter: grayscale(0%);
}

/* Glow rings */
.orb-glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring-1 {
  width: 130px; height: 130px;
  animation: orbPulse 2.5s ease-in-out infinite;
}
.ring-2 {
  width: 155px; height: 155px;
  animation: orbPulse 2.5s ease-in-out 0.6s infinite;
  border-color: rgba(var(--accent-rgb), 0.2);
}
.ring-3 {
  width: 182px; height: 182px;
  animation: orbPulse 2.5s ease-in-out 1.2s infinite;
  border-color: rgba(var(--accent-rgb), 0.1);
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.08); }
}

.orb-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  text-align: center;
  position: relative;
  z-index: 3;
}
.orb-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  position: relative;
  z-index: 3;
}

/* ---- 4. Agent Orb Popup Modal ---- */
.orb-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.orb-popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.orb-popup {
  width: 100%;
  max-width: 480px;
  border-radius: 28px 28px 0 0;
  padding: 40px 30px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transform: translateY(60px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.orb-popup-overlay.active .orb-popup {
  transform: translateY(0);
}
.orb-popup-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.orb-popup-close:hover { color: var(--text-primary); border-color: var(--text-primary); }

.orb-popup-img-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: hidden;
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.5);
  margin-bottom: 4px;
}
.orb-popup-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.orb-popup-role {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.orb-popup-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-primary);
}
.orb-popup-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}
.orb-popup-stats {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  margin: 4px 0 8px;
  width: 100%;
  justify-content: center;
}
.orb-stat h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
}
.orb-stat p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.orb-popup-cta {
  width: 100%;
  margin-top: 4px;
  border: none;
  padding: 16px;
  font-size: 0.8rem;
}

/* ---- 5. Mobile Testimonial — Cinematic Vertical Slider ---- */
.mobile-testimonials {
  display: none; /* shown via media query */
  position: relative;
  overflow: hidden;
  padding: 0 6% 50px;
}
.mob-test-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.mob-test-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 4px;
}
.mob-test-quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: -20px;
}
.mob-test-body {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
}
.mob-test-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.mob-test-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mob-test-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent);
  flex-shrink: 0;
}
.mob-test-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mob-test-author span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.mob-test-stars { color: var(--accent); font-size: 0.8rem; letter-spacing: 2px; }

/* Dots */
.mob-test-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.mob-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.3;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-block;
}
.mob-dot.active {
  background: var(--accent);
  opacity: 1;
  width: 22px;
  border-radius: 4px;
}

/* Arrows */
.mob-test-arrows {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.mob-arr {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.mob-arr:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- FULLSCREEN MOBILE OVERLAY MENU --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height to prevent mobile browser chrome clipping */
  background: rgba(10, 10, 11, 0.98); /* Luxury deep carbon backdrop */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: 30px;
  right: 6%;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: rgba(250, 248, 245, 0.8); /* Lighter off-white close button */
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
  color: var(--accent);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 450px;
  gap: 40px;
  transform: translateY(40px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

.mobile-menu-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #FAF8F5; /* Beautiful crisp off-white branding text */
  text-decoration: none;
}

.mobile-menu-logo span {
  color: var(--accent);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.mobile-nav-links li {
  width: 100%;
}

.mobile-nav-links a {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.85); /* Lighter off-white navigation links */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-links a:active,
.mobile-nav-links a:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.mobile-menu-cta {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 40px;
  border: 1px solid var(--accent);
  color: #1A2332; /* High contrast dark charcoal typography on gold button */
  background: var(--accent);
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(197, 168, 128, 0.25);
  transition: background 0.3s, transform 0.3s;
}

.mobile-menu-cta:active {
  transform: scale(0.98);
}

/* Prevent page scrolling when overlay is active */
body.mobile-menu-active {
  overflow: hidden !important;
}

/* --- MOBILE SECTION DYNAMIC SCROLL FADES --- */
@media (max-width: 768px) {
  .mobile-fade-section {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  
  .mobile-fade-section.mobile-in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


