/* premium.css - Consolidated High-End Styles for UNIDAR */

:root {
  --bento-gap: var(--space-xl);
  --profile-width: 280px;
}

/* =========================================================================
   Animations
   ========================================================================= */

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, -30px) rotate(5deg) scale(1.02); }
  50% { transform: translate(-20px, 20px) rotate(-5deg) scale(0.98); }
  75% { transform: translate(20px, 30px) rotate(3deg) scale(1.01); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

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

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* =========================================================================
   Background Elements
   ========================================================================= */

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}

/* =========================================================================
   Hero Sections
   ========================================================================= */

.hero {
  background: linear-gradient(135deg,
      var(--color-primary-700) 0%,
      var(--color-primary-600) 25%,
      #7c3aed 50%,
      var(--color-primary-500) 75%,
      var(--color-primary-600) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
  animation: slideInDown 0.8s ease-out;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: white;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  letter-spacing: -0.03em;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero h1 span {
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--font-size-lg);
  max-width: 550px;
  opacity: 0.9;
  line-height: 1.7;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.hero-stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  display: block;
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* Roommate Hero */
.roommate-hero {
  background: linear-gradient(135deg, var(--color-brand) 0%, #4f46e5 100%);
  border-radius: 32px;
  padding: 4rem 3rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================================
   Bento Grid & Dashboard
   ========================================================================= */

.dashboard-container {
  display: grid;
  grid-template-columns: var(--profile-width) 1fr;
  gap: var(--bento-gap);
  padding: var(--space-xl) 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: var(--bento-gap);
}

.bento-tile {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  border: 1px solid var(--color-surface-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bento-tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-brand-200);
  z-index: 10;
}

.tile-hero {
  grid-column: span 6;
  background: linear-gradient(135deg, var(--color-surface-900), #1e1b4b);
  color: white;
  border: none;
}

.tile-map { grid-column: span 6; grid-row: span 1; padding: 0; }
.tile-stats { grid-column: span 1; grid-row: span 1; }
.tile-contracts { grid-column: span 4; grid-row: span 1; }
.tile-roommates { grid-column: span 2; grid-row: span 1; }
.tile-messages { grid-column: span 2; grid-row: span 1; }
.tile-saved { grid-column: span 4; grid-row: span 1; }

.profile-side-card {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--color-surface-100);
  box-shadow: var(--shadow-md);
  text-align: center;
  height: fit-content;
  overflow: hidden;
}

.profile-side-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, var(--color-brand-600), var(--color-brand-400));
  z-index: 0;
}

.profile-avatar-pro {
  width: 100px;
  height: 100px;
  border-radius: 30px;
  background: white;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-brand-600);
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  position: relative;
  z-index: 1;
}

/* =========================================================================
   Premium Cards & Components
   ========================================================================= */

.premium-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(31, 38, 135, 0.12);
  border-color: var(--color-primary-200);
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glow-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
  animation: glowRotate 10s linear infinite;
}

/* Roommate Match Cards */
.roommate-card-v2 {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--color-surface-100);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.roommate-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  border-color: var(--color-brand-200);
}

.comp-gauge {
  position: relative;
  width: 70px;
  height: 70px;
}

.comp-svg {
  transform: rotate(-90deg);
  width: 70px;
  height: 70px;
}

.comp-bg { fill: none; stroke: var(--color-surface-100); stroke-width: 4; }
.comp-fill {
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease;
}

.comp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-brand);
}

/* =========================================================================
   Visual Selectors & Modals
   ========================================================================= */

.visual-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
}

.visual-option {
  cursor: pointer;
  padding: 16px;
  border-radius: 20px;
  background: var(--color-surface-50);
  border: 2px solid transparent;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visual-option:hover { background: var(--color-surface-100); transform: translateY(-2px); }
.visual-option.active {
  background: white;
  border-color: var(--color-brand);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
}

.visual-option input { display: none; }

.modal-overlay {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}

.glow-card-premium {
  background: white;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.matching-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.matching-overlay.active { display: flex; }

.matching-pulse {
  width: 100px;
  height: 100px;
  background: var(--color-brand-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse-ring 2s infinite;
}

/* =========================================================================
   Visual Card Stacks (Home Page)
   ========================================================================= */

.visual-card-stack {
  position: relative;
  height: 400px;
}

.visual-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: var(--space-lg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-card-1 { left: 0; top: 50px; width: 280px; z-index: 3; animation: cardFloat 6s ease-in-out infinite; }
.visual-card-2 { right: 0; top: 0; width: 240px; z-index: 2; animation: cardFloat 6s ease-in-out infinite 1s; }
.visual-card-3 { left: 60px; bottom: 0; width: 260px; z-index: 1; animation: cardFloat 6s ease-in-out infinite 2s; }

/* =========================================================================
   Utility & Responsive
   ========================================================================= */

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

.page-transition {
  animation: slideInUp 0.8s ease-out forwards;
}

@media (max-width: 1024px) {
  .dashboard-container { grid-template-columns: 1fr; }
  .visual-card-stack { display: none; }
}

@media (max-width: 1280px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .tile-hero, .tile-map { grid-column: span 4; }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* =========================================================================
   Home Page Specific Premium Sections
   ========================================================================= */

/* Section Common Styles */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Features Section */
.features-section {
  background: var(--color-surface-50);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-500), #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-lg);
  position: relative;
}

.feature-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.feature-icon.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.feature-icon.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.feature-icon.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.feature-icon.pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.feature-icon.cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); }

/* Students Section */
.students-section {
  padding: var(--space-3xl) 0;
  background: white;
}

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split-visual { position: relative; }

.visual-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.visual-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-600));
}

.visual-card-title { font-weight: var(--font-weight-semibold); font-size: var(--font-size-sm); }
.visual-card-subtitle { font-size: var(--font-size-xs); color: var(--color-text-muted); }

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--font-size-md);
}

.benefit-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Owners Section */
.owners-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-surface-900) 0%, #1e1b4b 100%);
  color: white;
}

.owners-section h2 { color: white; }
.owners-section p { color: rgba(255, 255, 255, 0.7); }
.owners-section .benefit-list li { color: rgba(255, 255, 255, 0.9); }

.owners-section .btn-primary {
  background: linear-gradient(135deg, var(--color-primary-500), #7c3aed);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(90deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-xs);
}

/* How It Works Section */
.how-section {
  background: var(--color-surface-50);
  padding: var(--space-3xl) 0;
}

.steps-container {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary-200), transparent);
  z-index: 0;
}

.step-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  max-width: 300px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-500), #7c3aed);
  color: white;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Trust Section */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--color-surface-100);
  transition: all 0.3s ease;
  min-width: 180px;
}

.trust-badge:hover {
  background: var(--color-primary-50);
  transform: translateY(-5px);
}

.trust-badge-icon { font-size: 40px; }
.trust-badge-text { font-weight: var(--font-weight-semibold); color: var(--color-surface-700); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-600) 0%, #7c3aed 50%, var(--color-primary-700) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -300px;
  right: -200px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -200px;
  left: -100px;
}

.cta-content { position: relative; z-index: 1; }
.cta-section h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: var(--space-md);
}
.cta-section p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}
.cta-section .btn {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-lg);
  border-radius: 50px;
}
.cta-section .btn-primary {
  background: white !important;
  color: var(--color-primary-700) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.cta-section .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  background: var(--color-primary-50) !important;
}

/* Footer */
.footer {
  background: var(--color-surface-900);
  color: white;
  padding: var(--space-2xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand h3 { color: white; font-size: var(--font-size-2xl); margin-bottom: var(--space-md); }
.footer-brand p { color: rgba(255, 255, 255, 0.6); line-height: 1.7; }
.footer-links h4 { color: white; font-size: var(--font-size-md); margin-bottom: var(--space-md); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a { color: rgba(255, 255, 255, 0.6); transition: color 0.3s ease; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-sm);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .split-content { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-stats { flex-direction: column; gap: var(--space-lg); align-items: flex-start; }
  .steps-container::before { display: none; }
  .footer-content { grid-template-columns: 1fr; }
}

/* =========================================================================
   Listing Detail Page (gallery/layout/lightbox)
   Ported from legacy listing-detail.html inline styles
   ========================================================================= */

/* Listings filters (from listings.html) */
.filter-panel-pro {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-3xl);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .listing-layout { grid-template-columns: 1fr; }
}

.gallery-pro {
  position: relative;
  background: #000;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

.main-image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.main-image-pro {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.main-image-container:hover .main-image-pro { transform: scale(1.05); }

.thumbnails-strip {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100;
  max-width: 90%;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbnails-strip::-webkit-scrollbar { display: none; }

.thumb-pro {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  opacity: 0.6;
  filter: grayscale(0.5);
}

.thumb-pro:hover,
.thumb-pro.active {
  border-color: #fff;
  transform: translateY(-5px) scale(1.1);
  opacity: 1;
  filter: grayscale(0);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.gallery-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-md);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 101;
}

.gallery-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.gallery-btn:hover { background: var(--color-brand); transform: scale(1.1); }

/* Directions controls (from listing-detail.html) */
.map-mode-btn {
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.map-mode-btn:hover { border-color: var(--color-brand); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); }
.map-mode-btn.active {
  background: linear-gradient(135deg, var(--color-brand) 0%, #4f46e5 100%);
  color: white;
  border-color: var(--color-brand);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}
.compass-btn {
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.compass-btn:hover { border-color: var(--color-brand); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25); }
.compass-btn.active { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-color: #10b981; color: white; }
.compass-btn.active .compass-label { color: white; }

.sidebar-premium {
  position: sticky;
  top: 100px;
  padding: var(--space-xl);
  z-index: 10;
}

@media (max-width: 1024px) {
  .sidebar-premium { position: static; padding: 0; }
}

.description-content {
  line-height: 2;
  font-size: 1.05rem;
  color: var(--color-surface-800);
  white-space: pre-line;
  max-height: 160px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-surface-100);
}

.description-content.expanded { max-height: 2000px; }

.description-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.description-content.expanded::after { opacity: 0; }

.read-more-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--color-brand) 0%, #4f46e5 100%);
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* iPhoto-style lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-overlay.active { display: flex; opacity: 1; }

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-image { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover { background: var(--color-error); transform: rotate(90deg); }