@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #050505;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --gold-primary: #D4A95F;
  --gold-champagne: #E7C98B;
  --gold-dark: #9E7A3E;
  --gold-muted: rgba(212, 169, 95, 0.15);
  --text-white: #FFFFFF;
  --text-soft-gray: #A0A0A0;
  --text-dim: #707070;
  --glass-bg: #00000047;
  --glass-border: #ffffff4d;
  --glass-border-subtle: rgba(255, 255, 255, 0.12);
  --glass-border-gold: rgba(212, 169, 95, 0.35);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial;
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
  background-color: var(--gold-primary);
  color: #050505;
}

::-moz-selection {
  background-color: var(--gold-primary);
  color: #050505;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
  border: 1px solid rgba(212, 169, 95, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Typography Helpers */
.font-bebas {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFF6E5 0%, #E7C98B 30%, #D4A95F 70%, #A67C33 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-silver-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 50%, #909090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tracking-luxury {
  letter-spacing: 0.15em;
}

.tracking-ultra {
  letter-spacing: 0.25em;
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-panel-subtle {
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-subtle);
}

.glass-nav {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 169, 95, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.glass-card-service {
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--gold-primary);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--transition-smooth), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card-service::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 169, 95, 0.20) 0%, rgba(212, 169, 95, 0.05) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 50%;
  z-index: 1;
}

.glass-card-service:hover::before {
  opacity: 1;
}

.glass-card-service:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 169, 95, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 169, 95, 0.15);
}

/* Luxury Interactive Buttons */
.btn-gold {
  background: linear-gradient(135deg, #F0D59E 0%, #D4A95F 50%, #B38947 100%);
  color: #050505;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid #F0D59E;
  transition: all 0.35s var(--transition-smooth);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 169, 95, 0.2);
  text-decoration: none;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 169, 95, 0.45);
  background: linear-gradient(135deg, #FFFFFF 0%, #E7C98B 40%, #D4A95F 100%);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.35s var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-glass:hover {
  border-color: var(--gold-primary);
  color: var(--gold-champagne);
  box-shadow: 0 0 25px rgba(212, 169, 95, 0.25);
  transform: translateY(-2px);
  background: rgba(212, 169, 95, 0.1);
}

/* Floating Luxury Hero Card */
.hero-flagship-card {
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 3px solid var(--gold-primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 169, 95, 0.15);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
}

.hero-flagship-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(212, 169, 95, 0.3);
}

/* Property Image Card */
.property-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-secondary);
  transition: transform 0.4s var(--transition-smooth), border-color 0.4s ease, box-shadow 0.4s ease;
}

.property-card:hover {
  border-color: rgba(212, 169, 95, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 169, 95, 0.25);
  transform: translateY(-6px);
}

.property-card .card-img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.property-card:hover .card-img {
  transform: scale(1.08);
}

.property-card .card-info-panel {
  transform: translateY(0);
  transition: transform 0.4s var(--transition-smooth), background-color 0.4s ease;
}

/* Card overlay badges — never allow tags/price to collide on any width */
.property-card .absolute.top-4.left-4 {
  flex-wrap: wrap;
  max-width: calc(100% - 1rem);
}
.property-card .absolute.bottom-4.right-4 {
  max-width: calc(100% - 1rem);
}

/* Horizontal Showcase Rail Section */
.showcase-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.showcase-rail-container {
  display: flex;
  flex-wrap: nowrap;
  width: fit-content;
  will-change: transform;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.showcase-rail-container:active {
  cursor: grabbing;
}

.showcase-panel {
  width: 75vw;
  max-width: 1050px;
  height: 72vh;
  min-height: 500px;
  flex-shrink: 0;
  margin-right: 2.5rem;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.showcase-panel:hover {
  border-color: rgba(212, 169, 95, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 169, 95, 0.2);
}

.showcase-panel img {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  -webkit-user-drag: none;
}

.showcase-panel:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .showcase-panel {
    width: 88vw;
    height: 60vh;
    min-height: 420px;
    margin-right: 1.25rem;
  }
}

.showcase-indicator-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-dot-btn {
  height: 4px;
  width: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
}

.showcase-dot-btn.active {
  width: 36px;
  background-color: #D4A95F;
  box-shadow: 0 0 12px rgba(212, 169, 95, 0.5);
}

.showcase-dot-btn:hover:not(.active) {
  background-color: rgba(212, 169, 95, 0.5);
}

/* Pulsing Pulse Animation */
@keyframes goldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 169, 95, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(212, 169, 95, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 169, 95, 0);
    transform: scale(1);
  }
}

.pulse-gold {
  animation: goldPulse 2.5s infinite;
}

@keyframes liveDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.live-dot {
  animation: liveDot 1.8s infinite ease-in-out;
}

/* Form Styles with Floating Labels */
.luxury-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.luxury-input {
  width: 100%;
  padding: 1.25rem 1rem 0.5rem 1rem;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.luxury-input:focus {
  border-color: var(--gold-primary);
  background: rgba(15, 15, 15, 0.85);
  box-shadow: 0 0 15px rgba(212, 169, 95, 0.25);
}

.luxury-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23D4A95F'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
}

.luxury-select option {
  background: #111111;
  color: #FFFFFF;
  padding: 10px;
}

.luxury-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft-gray);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: all 0.25s ease;
}

.luxury-input:focus ~ .luxury-label,
.luxury-input:not(:placeholder-shown) ~ .luxury-label {
  top: 0.45rem;
  transform: translateY(0);
  font-size: 0.68rem;
  color: var(--gold-champagne);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

textarea.luxury-input {
  padding-top: 1.25rem;
  resize: vertical;
  min-height: 110px;
}

textarea.luxury-input ~ .luxury-label {
  top: 1.25rem;
  transform: translateY(0);
}

textarea.luxury-input:focus ~ .luxury-label,
textarea.luxury-input:not(:placeholder-shown) ~ .luxury-label {
  top: 0.35rem;
}

/* Custom Cursor */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212, 169, 95, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor-dot, .custom-cursor-follower {
    display: none !important;
  }
}

/* Modal Overlay */
.luxury-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.luxury-modal-container {
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--transition-smooth);
}

.luxury-modal-overlay.active .luxury-modal-container {
  transform: scale(1) translateY(0);
}

/* Subtle Gold Line Decorative Divider */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 169, 95, 0.6) 50%, transparent 100%);
  width: 100%;
}

.gold-divider-left {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-primary) 0%, rgba(212, 169, 95, 0.2) 60%, transparent 100%);
}

/* Section Watermark (kept ultra-faint so it never mixes with foreground text) */
.section-watermark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(8rem, 18vw, 20rem);
  color: rgba(255, 255, 255, 0.008);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Luxury Card Tag Badge */
.gold-badge {
  background: rgba(212, 169, 95, 0.12);
  border: 1px solid rgba(212, 169, 95, 0.4);
  color: var(--gold-champagne);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* Filter Buttons */
.filter-btn {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-soft-gray);
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: rgba(212, 169, 95, 0.4);
  color: #FFFFFF;
}

.filter-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-champagne);
  color: #050505;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(212, 169, 95, 0.3);
}

/* Stats Counter Box */
.stat-box {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.stat-box:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .stat-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
  }
  .stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Office Map Card Hover */
.office-map-panel {
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.office-map-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 169, 95, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.office-map-panel:hover::after {
  opacity: 1;
}

.office-map-panel:hover {
  border-color: rgba(212, 169, 95, 0.5);
  box-shadow: 0 0 35px rgba(212, 169, 95, 0.2);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #111111;
  border: 1px solid var(--gold-primary);
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 169, 95, 0.25);
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s var(--transition-smooth), opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
