/* ==========================================================================
   SKYLINE INMO - LUXURY HIGH-TICKET DESIGN SYSTEM ($10K AGENCY STYLE)
   Palette: Obsidian Dark (#05080E), Rich Black (#030508), Slate Card (#0C111D),
   Warm Champagne Gold (#D4AF37, #E5C07B), Emerald Returns (#10B981)
   Typography: Playfair Display + Plus Jakarta Sans
   ========================================================================== */

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

:root {
  --bg-primary: #05080E;
  --bg-secondary: #090E18;
  --bg-card: rgba(14, 20, 32, 0.75);
  --bg-card-hover: rgba(20, 29, 46, 0.85);
  --bg-elevated: #111726;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-glow: rgba(212, 175, 55, 0.6);
  
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-muted: #AA8C2C;
  --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA8C2C 100%);
  
  --emerald: #10B981;
  --emerald-gradient: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  --crimson: #EF4444;
  --indigo-glow: rgba(99, 102, 241, 0.15);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-gold: #E5C07B;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-lux: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.emerald-text {
  color: var(--emerald);
}

/* Header & Navigation */
.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1A2436 0%, #0B101D 100%);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  color: var(--gold-primary);
  font-size: 20px;
  font-weight: 800;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-item:hover, .nav-item.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  border-bottom: 2px solid var(--gold-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-selector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.lang-selector option {
  background: var(--bg-secondary);
  color: #FFF;
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #05080E;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(212, 175, 55, 0.45);
}

.btn-outline {
  background: transparent;
  color: #FFF;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.btn-crm-toggle {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-crm-toggle:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 40px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: contrast(110%) brightness(85%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.6) 0%, rgba(5, 8, 14, 0.95) 85%, #05080E 100%);
  z-index: -1;
}

.hero-content {
  max-width: 1050px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* Master Search Bar */
.search-bar-luxury {
  background: rgba(14, 20, 32, 0.85);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lux), var(--shadow-gold);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 170px;
  text-align: left;
  border-right: 1px solid var(--border-subtle);
  padding-right: 14px;
}

.search-field:last-of-type {
  border-right: none;
}

.search-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.search-field select, .search-field input {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.search-field select option {
  background: var(--bg-secondary);
  color: #FFF;
}

/* Section Containers */
.section-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFF;
}

/* Filter Chips */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--gold-gradient);
  color: #05080E;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

/* Property Grid & Cards ($10K High Ticket Aesthetic) */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.property-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-lux), 0 0 30px rgba(212, 175, 55, 0.15);
}

.property-media {
  position: relative;
  height: 260px;
  overflow: hidden;
}

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

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

.badge-product-type {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}

.badge-roi {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(10px);
  color: #FFF;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 2;
}

.badge-offmarket {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(220, 38, 38, 0.9);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.property-price {
  font-size: 26px;
  font-weight: 800;
  color: #FFF;
}

.property-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.property-title {
  font-size: 19px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 10px;
  line-height: 1.3;
}

.property-location {
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.property-specs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.agent-thumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-gold);
}

.agent-name {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* VIP Off-Market Vault Highlight */
.vault-banner {
  background: linear-gradient(135deg, rgba(26, 36, 54, 0.7) 0%, rgba(11, 16, 29, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lux);
  position: relative;
  overflow: hidden;
}

.vault-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.vault-info h3 {
  font-size: 32px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 12px;
}

.vault-info p {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 15px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lux);
  position: relative;
  padding: 36px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #FFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--crimson);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(14, 20, 32, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  color: #FFF;
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* CRM & ERP Panel View */
.crm-container {
  display: none;
  padding: 120px 40px 80px;
  max-width: 1600px;
  margin: 0 auto;
}

.crm-container.active {
  display: block;
}

.crm-tabs-bar {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 32px;
  overflow-x: auto;
}

.crm-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.crm-tab-btn:hover, .crm-tab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: #FFF;
  margin-top: 6px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Data Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.luxury-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background: var(--bg-card);
}

.luxury-table th {
  background: rgba(14, 20, 32, 0.95);
  color: var(--gold-primary);
  padding: 16px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-subtle);
}

.luxury-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.luxury-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* AI Processor Box */
.ai-uploader-box {
  background: linear-gradient(135deg, rgba(20, 28, 44, 0.8) 0%, rgba(11, 16, 26, 0.9) 100%);
  border: 2px dashed var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 32px;
}

.ai-uploader-box:hover {
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.05);
}

/* Client Matching Badge */
.match-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-score {
  background: var(--emerald);
  color: #05080E;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Footer */
.footer-luxury {
  border-top: 1px solid var(--border-subtle);
  background: #030508;
  padding: 60px 40px 30px;
  margin-top: 100px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-title { font-size: 40px; }
  .header-glass { padding: 0 20px; }
  .nav-links { display: none; }
  .search-bar-luxury { flex-direction: column; }
  .search-field { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; }
  .vault-banner { flex-direction: column; text-align: center; gap: 24px; }
}
