/* Premium CSS for LuxeLiving Real Estate - Charcoal + Emerald Theme */
:root {
  --charcoal: #1a1f2b;
  --charcoal-dark: #0d1117;
  --charcoal-light: #2d3748;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  --accent: #8b5cf6;
  --cream: #fef7ed;
  --light: #f8fafc;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--charcoal);
  overflow-x: hidden;
  background: var(--light);
}

/* Custom Utility Classes */
.text-charcoal { color: var(--charcoal); }
.bg-charcoal { background-color: var(--charcoal); }
.text-emerald { color: var(--emerald); }
.bg-emerald { background-color: var(--emerald); }
.bg-cream { background-color: var(--cream); }
.text-gray { color: var(--gray); }

/* Navbar */
.navbar {
  transition: all 0.4s ease;
  backdrop-filter: blur(15px);
  background: rgba(26, 31, 43, 0.95);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(26, 31, 43, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: white !important;
}

.navbar-brand i {
  color: var(--emerald);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald) !important;
  background: rgba(16, 185, 129, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 31, 43, 0.9), rgba(13, 17, 23, 0.95));
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search Form */
.search-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
}

/* Property Cards */
.property-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  overflow: hidden;
  background: white;
  border-radius: 20px;
  position: relative;
}

.property-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.property-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.property-image {
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Badges */
.badge {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  border: 2px solid transparent;
}

.badge-primary {
  background: var(--charcoal);
  color: white;
}

.badge-emerald {
  background: var(--emerald);
  color: white;
}

.badge-accent {
  background: var(--accent);
  color: white;
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--emerald), var(--accent));
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Stats Section */
.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--emerald);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--emerald);
  border-radius: 2px;
}

/* Team Section */
.team-card {
  text-align: center;
  transition: all 0.4s ease;
  padding: 2rem 1rem;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.team-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.team-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--emerald);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
  border-color: var(--accent);
}

/* Blog Cards */
.blog-card {
  transition: all 0.4s ease;
  border: none;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.1);
}

/* Forms */
.form-control {
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 0.3rem rgba(16, 185, 129, 0.15);
}

/* Buttons */
.btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: white;
}

.btn-primary:hover {
  background: var(--charcoal-dark);
  border-color: var(--charcoal-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(26, 31, 43, 0.3);
}

.btn-emerald {
  background: var(--emerald);
  border-color: var(--emerald);
  color: white;
}

.btn-emerald:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.btn-outline-primary {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: white;
  transform: translateY(-3px);
}

.btn-outline-emerald {
  border-color: var(--emerald);
  color: var(--emerald);
  background: transparent;
}

.btn-outline-emerald:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: white;
  transform: translateY(-3px);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid var(--gray-light);
  padding: 2rem 2rem 1rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-light);
  padding: 1rem 2rem 2rem;
}

/* Pagination */
.pagination .page-link {
  color: var(--charcoal);
  border: 2px solid var(--gray-light);
  padding: 0.75rem 1.25rem;
  margin: 0 0.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.pagination .page-link:hover {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
}

.pagination .page-item.active .page-link {
  background: var(--emerald);
  border-color: var(--emerald);
  color: white;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: white;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--emerald), var(--accent));
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer a:hover {
  color: var(--emerald);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--emerald);
  transform: translateY(-3px);
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-dark));
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2310b981' fill-opacity='0.05'%3E%3Cpath d='M0 0h40v40H0V0zm20 20a8 8 0 1 1 0-16 8 8 0 0 1 0 16z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
  position: relative;
  z-index: 2;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--emerald);
  color: white;
  border: none;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--emerald-dark);
  transform: translateY(-3px);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--emerald);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--gray);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--gray-light);
}

/* Property Single Page Styles */
.property-features {
  font-size: 0.9rem;
}

.property-features span {
  display: flex;
  align-items: center;
}

/* Agent Stats */
.agent-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.agent-stats h4, .agent-stats h6 {
  margin-bottom: 0.25rem;
}

/* Blog Content Styles */
.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-styles h2 {
  color: var(--charcoal);
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.content-styles h3 {
  color: var(--charcoal);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.content-styles p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.content-styles ul, .content-styles ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-styles li {
  margin-bottom: 0.5rem;
  color: var(--gray);
}

/* Table Styles */
.table-borderless td {
  padding: 0.5rem 0;
  border: none;
}

/* Accordion Styles */
.accordion-button {
  font-weight: 600;
  padding: 1.25rem;
  border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
  background: var(--emerald);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.accordion-body {
  padding: 1.25rem;
  color: var(--gray);
}

/* Sticky Sidebar */
.sticky-top {
  position: sticky;
  z-index: 10;
}

/* Agent Details Styles */
.agent-info p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

/* Property Grid Adjustments */
#propertyGrid, #similar-properties, #agent-listings {
  margin-top: 1rem;
}

/* Newsletter Form */
.newsletter-form .form-control {
  border-radius: 12px 0 0 12px;
}

.newsletter-form .btn {
  border-radius: 0 12px 12px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .team-image {
    width: 120px;
    height: 120px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .property-features {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .property-features span {
    justify-content: center;
  }
  
  .agent-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sticky-top {
    position: static;
  }
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Print Styles */
@media print {
  .navbar, .footer, .btn, .modal, .back-to-top {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .property-card, .blog-card, .testimonial-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}