/* JetBrains Real Estate - Advanced Styling */

/* CSS Variables for Theme System */
:root {
/* Light Theme Colors (New Default) */
--bg-primary: #ffffff;
--bg-secondary: #fef7f7;
--bg-tertiary: #fed7d7;
--text-primary: #2d1b1b;
--text-secondary: #6b4444;
--accent-red: #dc2626;
--accent-red-light: #ef4444;
--accent-red-dark: #b91c1c;
--accent-blue: #667eea;
--accent-purple: #764ba2;
--primary-green: #34d399;
--border-color: #fecaca;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --backdrop-blur: blur(20px);

  /* Animation Timings */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
  --bg-primary: #1e1f22;
  --bg-secondary: #2b2d30;
  --bg-tertiary: #313438;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --accent-red: #ef4444;
  --accent-red-light: #f87171;
  --accent-red-dark: #dc2626;
  --accent-blue: #7c9fff;
  --accent-purple: #9370db;
  --primary-green: #4ade80;
  --border-color: #3c3f41;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all var(--transition-normal);
  overflow-x: hidden;
}

/* App Container */
.app-container {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    var(--bg-secondary) 50%, 
    var(--bg-tertiary) 100%);
}

/* Animated Background */
.app-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, var(--accent-red) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--accent-red-light) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--accent-red-dark) 0%, transparent 50%);
  opacity: 0.1;
  animation: backgroundFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes backgroundFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Article Styles */
.content-article {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
  transform: translateY(0);
}

.content-article:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Typography */
.article-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  animation: titleSlideIn 1s var(--transition-normal);
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Unit Details Enhancement */
.unit-details {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--backdrop-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  margin: 2rem 0 !important;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal) !important;
}

.unit-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.6s ease-in-out;
}

.unit-details:hover::before {
  left: 100%;
}

.unit-details:hover {
  transform: scale(1.02);
  border-color: var(--accent-red);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(73, 156, 84, 0.3);
}

.unit-details h3 {
  color: var(--accent-red);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.unit-details h3::before {
  content: 'ðŸ ';
  font-size: 1.2rem;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.unit-details p {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  position: relative;
}

.unit-details p:hover {
  padding-left: 1rem;
  color: var(--accent-red);
}

.unit-details p strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 120px;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
  
  .content-article {
    padding: 1.5rem;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .unit-details {
    padding: 1.5rem !important;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red-light);
}

/* Loading Animation */
.loading {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
/* Theme Toggle Button*/
.theme-toggle {
  position: fixed !important;
  top: 100px !important;
  right: 30px !important;
  z-index: 999 !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 1.2rem !important;
  backdrop-filter: blur(20px) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Dark theme button styles */
body:not(.light-theme) .theme-toggle {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Light theme button styles */
body.light-theme .theme-toggle {
  background: rgba(0, 0, 0, 0.15) !important;
  color: #2b2d30 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* Hover effects */
.theme-toggle:hover {
  transform: scale(1.1) !important;
}

body:not(.light-theme) .theme-toggle:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

body.light-theme .theme-toggle:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}
/* Investment Page Styles */

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light), var(--accent-red-dark));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: heroTitleSlide 1.2s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  animation: heroSubtitleSlide 1.2s ease-out 0.3s both;
}

/* Hero Description Formatting */
.hero-description {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  animation: heroSubtitleSlide 1.2s ease-out 0.3s both;
  line-height: 1.8;
}

.hero-description p {
  margin-bottom: 1rem;
}

.hero-description p:last-child {
  margin-bottom: 0;
}

/* Text alignment support from WYSIWYG editor */
.hero-description .alignleft,
.hero-description p[style*="text-align: left"] {
  text-align: left;
}

.hero-description .aligncenter,
.hero-description p[style*="text-align: center"] {
  text-align: center;
}

.hero-description .alignright,
.hero-description p[style*="text-align: right"] {
  text-align: right;
}

.hero-description .alignjustify,
.hero-description p[style*="text-align: justify"] {
  text-align: justify;
}

@keyframes heroTitleSlide {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Pills */
.nav-pills {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: pillsSlideIn 1.2s ease-out 0.6s both;
}

.nav-pill {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-pill:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 30px rgba(73, 156, 84, 0.3);
}

.nav-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-pill:hover::before {
  left: 100%;
}

.pill-icon {
  font-size: 1.2rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pillsSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Background Elements */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  opacity: 0.1;
}

.element-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation: float1 8s ease-in-out infinite;
}

.element-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation: float2 10s ease-in-out infinite;
}

.element-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 60%;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, -30px) rotate(180deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-40px, 20px) rotate(-180deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -40px) rotate(180deg); }
}

/* Section Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-icon {
  font-size: 2rem;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Unit Finder Section */
.unit-finder-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.unit-finder-interface {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.finder-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.control-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.control-select {
  width: 100%;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  color: #f1f5f9 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 5 !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 8px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  padding-right: 40px !important;
}

.control-select:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(73, 156, 84, 0.1);
}

/* Building Selector */
.building-selector {
  margin-top: 2rem;
}

.building-visual {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  border: 2px dashed var(--border-color);
  transition: all var(--transition-normal);
}

.building-visual:hover {
  border-color: var(--accent-red);
  background: var(--bg-secondary);
}

.building-placeholder {
  color: var(--text-secondary);
}

.building-subtitle {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Units Grid */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.unit-card {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.unit-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-red);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.unit-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.unit-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.unit-details-grid span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.unit-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-red);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: #3d7c47;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.btn-secondary:hover {
  background: var(--accent-red);
  color: var(--text-primary);
}

/* Enhanced Gallery Styles */
.gallery-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px dashed #ccc;
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.gallery-item.placeholder:hover .gallery-placeholder {
    background: linear-gradient(135deg, #e8eaed 0%, #dadce0 100%);
    border-color: #999;
}

/* Lightbox enhancements */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-info {
    padding: 1rem;
    background: white;
    text-align: center;
}

.lightbox-info p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Location Section */
.location-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.map-placeholder {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 4rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.5rem;
  border: 2px dashed var(--border-color);
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.about-content {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-pills {
    flex-direction: column;
    align-items: center;
  }
  
  .units-grid {
    grid-template-columns: 1fr;
  }
  
  .finder-controls {
    grid-template-columns: 1fr;
  }
}

/* Building Tabs */
.building-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.building-tab {
  padding: 1rem 2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 600;
  font-size: 1rem;
}

.building-tab:hover {
  transform: translateY(-2px);
  border-color: var(--accent-red);
  color: var(--text-primary);
}

.building-tab.active {
  background: var(--accent-red);
  color: var(--text-primary);
  border-color: var(--accent-red);
  box-shadow: 0 5px 15px rgba(73, 156, 84, 0.3);
}

/* Building Layout */
.building-layout {
  display: none;
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  min-height: 400px;
}

.building-layout.active {
  display: block;
  animation: buildingSlideIn 0.5s ease-out;
}

@keyframes buildingSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.building-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.building-info h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 0;
}

/* Floors Container */
.floors-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}

.floor {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  transition: all var(--transition-normal);
}

.floor:hover {
  border-color: var(--accent-red);
  box-shadow: 0 5px 15px rgba(73, 156, 84, 0.2);
}

.floor-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.1rem;
}

/* Units Row */
.units-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.unit {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

/* Unit Status Colors */
.unit.available {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.unit.available:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
  border-color: #16a34a;
}

.unit.reserved {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.unit.reserved:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  border-color: #b45309;
}

.unit.sold {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #d1d5db;
  cursor: not-allowed;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.unit.sold:hover {
  transform: none;
}

/* Unit Hover Effects */
.unit:not(.sold)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.unit:not(.sold):hover::before {
  left: 100%;
}

/* Unit Selection Animation */
.unit.selected {
  animation: unitPulse 1s ease-in-out infinite;
  border-color: var(--accent-red-light);
  box-shadow: 0 0 20px var(--accent-red-light);
}

@keyframes unitPulse {
  0%, 100% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Status Legend */
.status-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.status-indicator.available {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.status-indicator.reserved {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.status-indicator.sold {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Responsive Design for Building Finder */
@media (max-width: 768px) {
  .building-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .units-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .status-legend {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .units-row {
    grid-template-columns: 1fr;
  }
  
  .building-layout {
    padding: 1rem;
  }
}

/* Modal Overlay */
.lead-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lead-modal.active {
  opacity: 1;
  visibility: visible;
}

.lead-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

/* Modal Content */
.lead-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-modal.active .lead-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.lead-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.lead-modal-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.lead-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lead-modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Modal Body */
.lead-modal-body {
  padding: 2rem;
}

/* Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(73, 156, 84, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Consent Checkboxes */
.consent-group {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: 'âœ“';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-primary);
  font-weight: bold;
  font-size: 0.8rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.form-actions .btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

.btn-primary {
  background: var(--accent-red);
  color: var(--text-primary);
}

.btn-primary:hover:not(:disabled) {
  background: #3d7c47;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toast Notifications */
.lead-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  max-width: 400px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-toast.active {
  transform: translateX(0);
}

.lead-toast.success {
  border-color: var(--accent-red);
  background: rgba(73, 156, 84, 0.1);
}

.lead-toast.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.toast-content {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.2rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Unit Card Discount Button */
.unit-discount-btn {
  background: var(--accent-red-dark);
  color: var(--text-primary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
  width: 100%;
}

.unit-discount-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

/* Loading Animation */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .lead-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .lead-modal-header,
  .lead-modal-body {
    padding: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .lead-toast {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid {
  border-color: #ef4444;
}

.form-group input:valid,
.form-group textarea:valid {
  border-color: var(--accent-red);
}

/* Smooth Focus States */
.form-group input:focus,
.form-group textarea:focus,
.checkbox-label:focus-within .checkmark {
  box-shadow: 0 0 0 3px rgba(73, 156, 84, 0.1);
}
/* Price History Modal Styles */

.price-history-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.price-history-modal.active {
  opacity: 1;
  visibility: visible;
}

.price-history-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.price-history-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-history-modal.active .price-history-dialog {
  transform: translate(-50%, -50%) scale(1);
}

.price-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.price-history-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.price-history-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.price-history-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.price-history-body {
  padding: 2rem;
}

/* Price Statistics */
.price-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-value.price-increase {
  color: #10b981;
}

.stat-value.price-decrease {
  color: #ef4444;
}

.stat-value.price-stable {
  color: var(--accent-red);
}

/* Chart Container */
.chart-container {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  height: 300px;
  position: relative;
}

/* Timeline */
.history-timeline h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.timeline-items {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-width: 80px;
  font-weight: 600;
}

.timeline-content {
  flex: 1;
}

.timeline-price {
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 0.2rem;
}

.timeline-price-m2 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.timeline-reason {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Price History Button */
.price-history-btn {
  background: var(--accent-red-light);
  color: var(--text-primary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-history-btn:hover {
  background: #a855f7;
  transform: translateY(-1px);
}

/* Loading State */
.price-history-loading {
  text-align: center;
  padding: 3rem 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--glass-border);
  border-top: 4px solid var(--accent-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.price-history-loading p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Error State */
.price-history-error {
  text-align: center;
  padding: 3rem 2rem;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.price-history-error p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .price-history-dialog {
    width: 95%;
    max-height: 95vh;
  }
  
  .price-history-header,
  .price-history-body {
    padding: 1rem;
  }
  
  .price-stats {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 250px;
    padding: 1rem;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .timeline-date {
    min-width: auto;
  }
}

/* Scrollbar for timeline */
.timeline-items::-webkit-scrollbar {
  width: 6px;
}

.timeline-items::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.timeline-items::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 3px;
}

.timeline-items::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red-light);
}
/* Unit Gallery Styles */
.unit-gallery-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.unit-gallery-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.unit-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-label {
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
}

.gallery-item.floor-plan {
  border: 2px solid var(--accent-red);
}

.gallery-item.floor-plan .gallery-label {
  color: var(--accent-red);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
}

/* House Details Enhanced */
.house-details-enhanced {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem);
  margin: 2.5rem 0;
  color: var(--text-primary);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.house-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.house-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0 0 0.4rem;
}

.house-details-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--text-primary);
}

.house-heading-subtitle {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.house-status-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: var(--accent-blue);
}

.house-status-pill.status-sold {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.house-status-pill.status-reserved {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.house-key-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.house-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.house-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.house-stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.house-stat-card small {
  color: var(--text-secondary);
}

.house-detail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.house-detail-card h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.house-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem 1.2rem;
}

.house-detail-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.house-detail-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.house-detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.house-description-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.8rem;
  margin: 2.5rem 0;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.24);
}

.house-description-card h3 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.house-description-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.house-description-content p {
  margin-bottom: 1.2rem;
}

.house-description-content ul,
.house-description-content ol {
  margin: 0 0 1.2rem 1.4rem;
  padding-left: 1.4rem;
}

.house-description-content strong {
  color: var(--text-primary);
}

.house-detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.house-detail-card-header h4 {
  margin: 0;
}

.house-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.house-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.house-media-section .unit-gallery-grid {
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .house-details-header {
    flex-direction: column;
  }

  .house-detail-card {
    padding: 1.25rem;
  }

  .house-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
/* Enhanced Search Filters*/
.search-filters {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns for better spacing */
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(45, 52, 66, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-height: 180px;
}

/* Control group styling */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 5;
}

.control-group label {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

/* Grid placement - 2x3 layout */
.control-group:nth-child(1) { /* Price Range */
  grid-column: 1;
  grid-row: 1;
}

.control-group:nth-child(2) { /* Rooms */
  grid-column: 2;
  grid-row: 1;
}

.control-group:nth-child(3) { /* Area */
  grid-column: 1;
  grid-row: 2;
}

.control-group:nth-child(4) { /* Floor */
  grid-column: 2;
  grid-row: 2;
}

.control-group:nth-child(5) { /* Sort */
  grid-column: 1 / -1; /* Full width */
  grid-row: 3;
}

/* Range containers */
.price-range,
.area-range {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.price-input,
.area-input {
  flex: 1 !important;
  min-width: 80px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: #f1f5f9 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  height: 44px !important;
}

.control-select {
  width: 100% !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: #f1f5f9 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  padding-right: 44px !important;
  height: 44px !important;
}

.range-separator {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  min-width: 20px !important;
  text-align: center !important;
}

/* Focus states */
.price-input:focus,
.area-input:focus,
.control-select:focus {
  outline: none !important;
  border-color: #499c54 !important; /* green accent */
  background: rgba(30, 41, 59, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(73, 156, 84, 0.1) !important;
}

/* Search Actions */
.search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: -1px;
}

.results-counter {
  color: #94a3b8 !important;
  font-size: 1rem !important;
}

.results-counter strong {
  color: #499c54 !important;
  font-weight: 700 !important;
}

#clear-filters {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

#clear-filters:hover {
  background: rgba(73, 156, 84, 0.2) !important;
  border-color: #499c54 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(73, 156, 84, 0.3) !important;
}

/* Filter Active State Indicators */
.control-group.has-value label {
  color: var(--accent-red);
  font-weight: 600;
}

.control-group.has-value label::after {
  content: ' âœ“';
  color: var(--accent-red);
  font-size: 0.8rem;
}

/* Units List Enhancements */
.units-list {
  transition: all var(--transition-normal);
}

.units-list.filtering {
  opacity: 0.6;
  pointer-events: none;
}

.unit-card.hidden {
  display: none;
}

.unit-card.highlighted {
  border-color: var(--accent-red);
  box-shadow: 0 8px 25px rgba(73, 156, 84, 0.3);
  transform: translateY(-2px);
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  margin-top: 2rem;
}

.no-results h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.no-results p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.no-results .btn {
  background: var(--accent-red);
  color: var(--text-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.no-results .btn:hover {
  background: #3d7c47;
  transform: translateY(-2px);
}

/* Loading State */
.search-loading {
  position: relative;
}

.search-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid var(--glass-border);
  border-top: 3px solid var(--accent-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Search Section Z-Index Fix */
.search-section {
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.control-group {
  position: relative;
  z-index: 5;
}

/* Container spacing */
.container {
  max-width: 1400px !important;
  margin: 0 auto;
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .search-filters {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .control-group:nth-child(n) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 768px) {
  .search-filters {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .search-actions {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .price-range,
  .area-range {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  
  .range-separator {
    display: none !important;
  }
  
  .container {
    padding: 1rem;
  }
}
/* Advanced Location & Amenities Layout */
.location-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 30px;
}

.amenities-dashboard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
}

.amenities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amenities-header h3 {
    color: #499C54;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.amenities-legend {
    display: flex;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #999;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Amenities Tabs */
.amenities-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.amenity-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 8px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.amenity-tab:hover {
    background: rgba(73, 156, 84, 0.2);
    border-color: #499C54;
    color: var(--text-primary);
    transform: translateY(-1px);
}

.amenity-tab.active {
    background: #499C54;
    border-color: #499C54;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(73, 156, 84, 0.3);
}

.amenity-tab span {
    display: none;
}

/* Amenities Content */
.amenities-content {
    position: relative;
    min-height: 280px;
}

.amenity-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.amenity-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Enhanced Amenity Items */
.amenity-item {
    display: flex;
    align-items: center;
    margin: 0 0 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.amenity-item:hover {
    background: rgba(73, 156, 84, 0.1);
    border-left-color: #499C54;
    transform: translateX(4px);
}

.amenity-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.amenity-info {
    flex: 1;
}

.amenity-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 2px;
}

.amenity-distance {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Distance Color Coding */
.amenity-item[data-distance="close"] {
    border-left-color: #499C54;
}

.amenity-item[data-distance="medium"] {
    border-left-color: #f59e0b;
}

.amenity-item[data-distance="far"] {
    border-left-color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .location-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .amenities-dashboard {
        order: -1;
    }
    
    .amenities-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .amenity-tab span {
        display: inline;
    }
}

@media (max-width: 768px) {
    .amenities-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenity-tab {
        flex-direction: column;
        gap: 4px;
        padding: 12px 8px;
    }
}
/* Unit Comparison System*/
.compare-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.compare-btn:hover {
    background: rgba(73, 156, 84, 0.2);
    border-color: #499C54;
    color: var(--text-primary);
}

.compare-btn.active {
    background: #499C54;
    border-color: #499C54;
    color: var(--text-primary);
}

.unit-card.in-comparison {
    border: 2px solid #499C54 !important;
    box-shadow: 0 0 20px rgba(73, 156, 84, 0.3) !important;
}

/* Floating Comparison Bar*/
.comparison-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(73, 156, 84, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    z-index: 9998;
    transition: all 0.3s ease;
    min-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-bar.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
    pointer-events: none;
}

.comparison-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.comparison-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.comparison-icon {
    font-size: 18px;
}

.comparison-count {
    background: #499C54;
    color: var(--text-primary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin: 0 4px;
}

.comparison-actions {
    display: flex;
    gap: 10px;
}

.btn-compare, .btn-clear-comparison {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-compare {
    background: #499C54;
    color: var(--text-primary);
}

.btn-compare:hover:not(:disabled) {
    background: #5bb366;
    transform: translateY(-1px);
}

.btn-compare:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.btn-clear-comparison {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-clear-comparison:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: var(--text-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comparison-bar {
        left: 10px;
        right: 10px;
        transform: none;
        min-width: auto;
    }
    
    .comparison-bar.hidden {
        transform: translateY(100px);
    }
    
    .comparison-content {
        flex-direction: column;
        gap: 12px;
    }
}
/* Unit Card Button Alignment*/
.unit-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 1rem;
}

.unit-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.unit-content {
    flex: 1;
}

/* Standardize all buttons */
.unit-actions .btn,
.compare-btn,
.price-history-btn,
.unit-discount-btn {
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: center !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Button row layout */
.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.button-row:last-child {
    margin-bottom: 0;
}

.full-width-button {
    grid-column: 1 / -1;
}
/* Comparison Modal */
.comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comparison-modal.active {
    opacity: 1;
    visibility: visible;
}

.comparison-modal.hidden {
    display: none;
}

.comparison-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.comparison-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    min-width: 600px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
}

.comparison-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.comparison-body {
    padding: 2rem;
}

.comparison-table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
}

.property-label {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.unit-value {
    color: var(--text-primary);
}

.unit-value.empty {
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .comparison-modal-content {
        min-width: 95vw;
        max-width: 95vw;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}
/* Fixed Amenities Container Height */
.amenities-content {
    position: relative;
    min-height: 280px;
    max-height: 320px; /* Prevent overflow */
    overflow: hidden; /* Hide container overflow to prevent double scrollbars */
}

.amenity-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-height: 320px; /* Match container */
    overflow-y: auto; /* Only vertical scrolling in panels */
    overflow-x: hidden; /* No horizontal scroll */
}

.amenity-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.show-more-btn,
.show-less-btn {
    background: rgba(73, 156, 84, 0.2);
    border: 1px solid rgba(73, 156, 84, 0.4);
    border-radius: 6px;
    padding: 8px 16px;
    color: #499C54;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.show-more-btn:hover,
.show-less-btn:hover {
    background: rgba(73, 156, 84, 0.3);
    border-color: #499C54;
    transform: translateY(-1px);
}

/* Compact amenity items */
.amenity-item {
    margin-bottom: 8px;
    padding: 10px;
}

.amenity-name {
    font-size: 13px; /* Slightly smaller text */
    line-height: 1.3;
}

.amenity-distance,
.amenity-rating {
    font-size: 11px; /* Smaller secondary text */
}

/* Improved scrollbar for amenity panels */
.amenity-panel::-webkit-scrollbar {
    width: 4px;
}

.amenity-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.amenity-panel::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 2px;
}
/* Lead Details Modal */
.lead-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-dialog {
    background-color: #fefefe;
    margin: 5% auto;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 20px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-close:hover {
    color: black;
}

.modal-content {
    padding: 20px;
}

.lead-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.detail-section h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.lead-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .lead-details-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 10% auto;
    }
}
.lead-modal.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.lead-modal-content {
    position: relative !important;
    z-index: 10001 !important;
}
/* Form Validation Styles */
.lead-form input.valid,
.lead-form textarea.valid {
    border-color: var(--success-color, #10b981);
    background-color: rgba(16, 185, 129, 0.05);
}

.lead-form input.invalid,
.lead-form textarea.invalid {
    border-color: var(--error-color, #ef4444);
    background-color: rgba(239, 68, 68, 0.05);
}

.lead-form input.valid:focus,
.lead-form textarea.valid:focus {
    border-color: var(--success-color, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.lead-form input.invalid:focus,
.lead-form textarea.invalid:focus {
    border-color: var(--error-color, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: var(--warning-color, #f59e0b);
    font-weight: 600;
}

/* Enhanced Toast Notifications */
.lead-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    min-width: 300px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.lead-toast.active {
    opacity: 1;
    transform: translateX(0);
}

.lead-toast.success {
    border-left: 4px solid var(--success-color, #10b981);
}

.lead-toast.success .toast-content::before {
    content: "âœ“ ";
    color: var(--success-color, #10b981);
    font-weight: bold;
    margin-right: 0.5rem;
}

.lead-toast.error {
    border-left: 4px solid var(--error-color, #ef4444);
}

.lead-toast.error .toast-content::before {
    content: "âš  ";
    color: var(--error-color, #ef4444);
    font-weight: bold;
    margin-right: 0.5rem;
}

.toast-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-right: 1.5rem;
}

.toast-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Enhanced Consent Styling */
.consent-group {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.consent-item {
    margin: 0.75rem 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.consent-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    min-width: 18px;
    height: 18px;
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    position: relative;
    transition: all 0.2s ease;
}

.consent-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.consent-label input[type="checkbox"]:checked + .checkmark::after {
    content: "âœ“";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: bold;
}

.consent-label:hover .checkmark {
    border-color: var(--accent-red);
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Field Enhancements */
.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.required {
    color: var(--error-color, #ef4444);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Enhanced Modal Styling */
.lead-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) transparent;
}

.lead-modal-content::-webkit-scrollbar {
    width: 6px;
}

.lead-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.lead-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 3px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.form-actions .btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--text-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-blue-hover, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lead-modal-content {
        width: 95%;
        margin: 2rem auto;
        max-height: 95vh;
    }
    
    .lead-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .consent-label {
        font-size: 0.85rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .lead-toast,
    .lead-modal,
    .lead-modal-content,
    .checkmark,
    .btn {
        transition: none;
    }
    
    .spinner {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group textarea {
        border-color: var(--text-primary);
    }
    
    .consent-label {
        color: var(--text-primary);
    }
    
    .checkmark {
        border-color: var(--text-primary);
    }
}

/* Focus Visible for Keyboard Navigation */
.consent-label:focus-visible,
.btn:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* ============================
   GLOBAL NAVBAR STYLES
   Applied everywhere the navbar appears
   ============================ */

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.site-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    transition: all var(--transition-normal);
}

.navbar-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.navbar-menu a:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.navbar-menu a.active {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
    color: var(--text-primary);
}

.navbar-cta {
    padding: 12px 24px !important;
    background: llinear-gradient(135deg, var(--accent-red), var(--accent-red-light)) !important;
    color: white !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.navbar-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-spacer {
    height: 70px;
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: var(--backdrop-blur);
        border-top: 1px solid var(--glass-border);
        flex-direction: column;
        gap: 0;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: all var(--transition-normal);
    }
    
    .navbar-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu a {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .navbar-container {
        height: 60px;
    }
    
    .navbar-spacer {
        height: 60px;
    }
}
/* Theme toggle button in navbar */
.theme-toggle-navbar {
    background: transparent !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    color: var(--text-primary) !important;
}

.theme-toggle-navbar:hover {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    transform: scale(1.05) !important;
}

.investments-section {
    position: relative;
    overflow: hidden;
}

.global-bubble-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

.floating-bubble {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-red), var(--primary-green));
    border-radius: 50%;
    filter: blur(1px);
    animation: floatUp infinite linear;
    opacity: 0.15;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.5);
        opacity: 0;
    }
}

.interactive-bubble {
    position: fixed;
    background: radial-gradient(circle, rgba(73, 156, 84, 0.2) 0%, rgba(73, 156, 84, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(2px);
    transition: all 0.3s ease;
    animation: bobbing 8s infinite ease-in-out;
    cursor: pointer;
    pointer-events: auto;
}

.interactive-bubble:hover {
    transform: scale(1.4);
    filter: blur(0px);
    opacity: 0.8;
}

@keyframes bobbing {
    0%, 100% { 
        transform: translateY(0) scale(1) rotate(0deg); 
    }
    25% {
        transform: translateY(-30px) scale(1.1) rotate(90deg);
    }
    50% { 
        transform: translateY(-20px) scale(0.9) rotate(180deg); 
    }
    75% {
        transform: translateY(-40px) scale(1.05) rotate(270deg);
    }
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: orbFloat 25s infinite ease-in-out;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(100px, -100px) scale(1.2) rotate(72deg);
    }
    40% {
        transform: translate(-50px, -150px) scale(0.8) rotate(144deg);
    }
    60% {
        transform: translate(-120px, -50px) scale(1.1) rotate(216deg);
    }
    80% {
        transform: translate(80px, -200px) scale(0.9) rotate(288deg);
    }
}

.investment-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

.investment-card:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .floating-bubbles,
    .gradient-orbs {
        display: none;
    }
    
    .interactive-bubbles {
        opacity: 0.5;
    }
}
.global-bubble-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
  overflow: hidden;
}
.global-bubble-background .floating-bubbles,
.global-bubble-background .interactive-bubbles,
.global-bubble-background .gradient-orbs {
  position: absolute;
  inset: 0;
}
.interactive-bubble { pointer-events: none; }

.gradient-orb { mix-blend-mode: screen; opacity: 0.25; }
.floating-bubble { opacity: 0.10; }
/* === Investments grid styles (front page) === */
.investments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.investment-card {
  background: var(--panel, #2b2e34);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.investment-card .card-art {
  height: 210px;
  background: radial-gradient(120% 120% at 10% 10%, rgba(73,156,84,.35), rgba(147,112,219,.35));
  display: flex;
  align-items: center;
  justify-content: center;
}

.investment-card .card-body {
  padding: 20px;
}

.investment-card .card-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.investment-card .card-stats {
  display: flex;
  gap: 28px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 16px;
}

.investment-card .stat {
  min-width: 64px;
  text-align: center;
}

.investment-card .stat-num {
  font-weight: 700;
  font-size: 1.1rem;
}

.investment-card .stat-label {
  font-size: .8rem;
  color: var(--text-secondary, #9aa0a6);
}

.investment-card .btn.btn-primary {
  display: inline-block;
}

/* Investment Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--accent-red) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--accent-red-light) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

/* Investment Gallery Container */
.investment-gallery {
    margin-bottom: 3rem;
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.investment-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--glass-bg) 50%, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 0.75rem;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.gallery-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: 12px;
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.gallery-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: -1;
}

.gallery-tab.active {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(73, 156, 84, 0.4);
}

.gallery-tab.active::before {
    opacity: 1;
}

.gallery-tab:hover:not(.active) {
    background: var(--glass-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Gallery Content */
.gallery-content {
    position: relative;
    min-height: 350px;
    z-index: 2;
}

.gallery-panel {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.gallery-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-slow);
    background: var(--bg-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    transform-origin: center;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1;
    mix-blend-mode: overlay;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover::before {
    opacity: 0.1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
    position: relative;
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) contrast(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

/* Gallery Placeholder */
.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--glass-bg) 0%, var(--bg-tertiary) 100%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    border: 3px dashed var(--glass-border);
    border-radius: 20px;
    transition: all var(--transition-normal);
    padding: 2rem;
    text-align: center;
    backdrop-filter: var(--backdrop-blur);
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, var(--accent-red) 50%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all var(--transition-slow);
}

.gallery-item.placeholder:hover .gallery-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--glass-bg) 100%);
    border-color: var(--accent-red);
    color: var(--text-primary);
    transform: scale(1.02);
}

.gallery-item.placeholder:hover .gallery-placeholder::before {
    opacity: 0.1;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(45deg) translateX(-100%); }
    100% { transform: translate(-50%, -50%) rotate(45deg) translateX(100%); }
}

.gallery-placeholder small {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Enhanced Investment Map */
#investment-map {
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

#investment-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* Loading States */
.gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.gallery-loading::before {
    content: '🔄';
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .investment-gallery {
        padding: 2rem;
    }
    
    .gallery-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gallery-tabs {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .gallery-tab {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .investment-gallery {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .gallery-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .investment-gallery {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .gallery-tabs {
        border-radius: 12px;
    }
    
    .gallery-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .gallery-item {
        border-radius: 16px;
    }
    
    .gallery-placeholder {
        border-radius: 16px;
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .gallery-section {
        break-inside: avoid;
    }
    
    .gallery-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .gallery-overlay {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .gallery-item {
        border: 2px solid var(--text-primary);
    }
    
    .gallery-tab {
        border: 1px solid var(--text-primary);
    }
    
    .gallery-placeholder {
        border: 3px solid var(--text-primary);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-tab,
    .gallery-overlay,
    .gallery-panel {
        transition: none;
        animation: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}
/* House Detail Button */
.view-button, .unit-actions .view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-red);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    min-height: 44px;
    text-align: center;
}

.view-button:hover, .unit-actions .view-button:hover {
    background: #3d8547;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--text-primary);
}

.unit-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.unit-actions button,
.unit-actions .view-button {
    width: 100%;
    justify-content: center;
}

/* House Modal Button Improvements */
.house-modal .unit-actions {
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 0 0 16px 16px;
}

.house-modal .unit-actions button,
.house-modal .unit-actions .view-button {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

.house-modal .unit-actions button:last-child {
    margin-bottom: 0;
}

/* ========================================
   STEP 1: HIDE CARTOON & CREATE PROFESSIONAL IMAGE SECTION
======================================== */

/* Hide the cartoon emoji placeholder */
.unit-card.house-card .unit-placeholder span {
    display: none !important;
}

/* Transform the image container into a professional header */
.unit-card.house-card .unit-image {
    position: relative !important;
    height: 180px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}

/* Professional house icon */
.unit-card.house-card .unit-image::before {
    content: "🏠" !important;
    font-size: 3.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 2 !important;
}

/* Hide "Brak zdjęcia" text */
.unit-card.house-card .unit-placeholder p {
    display: none !important;
}

/* Style actual house images when available */
.unit-card.house-card .unit-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.unit-card.house-card:hover .unit-image img {
    transform: scale(1.1) !important;
}

/* ========================================
   STEP 2: SIMPLIFY & REORGANIZE BUTTONS
======================================== */

/* Hide the separate price history button */
.unit-card.house-card .price-history-btn {
    display: none !important;
}

/* Reorganize action buttons in a cleaner layout */
.unit-card.house-card .unit-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--glass-border, rgba(255,255,255,0.1)) !important;
}

/* Primary action button - Zobacz szczegóły */
.unit-card.house-card .view-button {
    grid-column: 1 / -1 !important; /* Full width */
    background: linear-gradient(135deg, #4f9c5c 0%, #3d8547 100%) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
}

.unit-card.house-card .view-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(79, 156, 92, 0.4) !important;
    background: linear-gradient(135deg, #3d8547 0%, #2d6333 100%) !important;
}

/* Secondary buttons in row */
.unit-card.house-card .unit-discount-btn,
.unit-card.house-card .contact-button {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary, #fff) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
}

.unit-card.house-card .unit-discount-btn:hover,
.unit-card.house-card .contact-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ========================================
   STEP 3: IMPROVE CARD DESIGN & SPACING
======================================== */

/* Enhanced card container */
.unit-card.house-card {
    background: linear-gradient(135deg, 
        var(--glass-bg, rgba(255,255,255,0.1)) 0%, 
        var(--bg-secondary, #374151) 100%) !important;
    border-radius: 20px !important;
    padding: 1.5rem !important;
    border: 1px solid var(--glass-border, rgba(255,255,255,0.15)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.unit-card.house-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    border-color: var(--accent-blue, #4f9c5c) !important;
}

/* Professional title styling */
.unit-card.house-card .unit-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--text-primary, #f9fafb) !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

/* Enhanced details section */
.unit-card.house-card .unit-details {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.unit-card.house-card .unit-details .detail {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.unit-card.house-card .unit-details .detail:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    transform: translateY(-2px) !important;
}

.unit-card.house-card .unit-details .detail .icon {
    font-size: 1.2rem !important;
    margin-bottom: 0.25rem !important;
    color: var(--accent-blue, #4f9c5c) !important;
}

.unit-card.house-card .unit-details .detail span:not(.icon) {
    font-size: 0.9rem !important;
    color: var(--text-secondary, #d1d5db) !important;
    font-weight: 500 !important;
}

/* Professional price styling */
.unit-card.house-card .unit-price {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--accent-blue, #4f9c5c) !important;
    text-align: center !important;
    padding: 0.75rem !important;
    background: linear-gradient(135deg, 
        rgba(79, 156, 92, 0.1) 0%, 
        rgba(79, 156, 92, 0.05) 100%) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(79, 156, 92, 0.2) !important;
    margin-bottom: 1rem !important;
}

/* Status badge improvements */
.unit-card.house-card .unit-status {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    z-index: 3 !important;
}

.unit-card.house-card .unit-status.status-available {
    background: rgba(34, 197, 94, 0.9) !important;
    color: white !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.unit-card.house-card .unit-status.status-reserved {
    background: rgba(251, 191, 36, 0.9) !important;
    color: white !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}

.unit-card.house-card .unit-status.status-sold {
    background: rgba(239, 68, 68, 0.9) !important;
    color: white !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* ========================================
   STEP 4: MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 768px) {
    .unit-card.house-card .unit-actions {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .unit-card.house-card .unit-details {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }
    
    .unit-card.house-card .unit-image {
        height: 150px !important;
        margin: -1.5rem -1.5rem 1rem -1.5rem !important;
    }
    
    .unit-card.house-card .unit-image::before {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    .unit-card.house-card {
        padding: 1rem !important;
    }
    
    .unit-card.house-card .unit-details {
        grid-template-columns: 1fr !important;
    }
    
    .unit-card.house-card .unit-details .detail {
        flex-direction: row !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .unit-card.house-card .unit-details .detail .icon {
        margin-bottom: 0 !important;
        margin-right: 0.5rem !important;
    }
}

/* ========================================
   STEP 5: ACCESSIBILITY & UX IMPROVEMENTS
======================================== */

/* Focus states for accessibility */
.unit-card.house-card .view-button:focus,
.unit-card.house-card .unit-discount-btn:focus,
.unit-card.house-card .contact-button:focus {
    outline: 2px solid var(--accent-blue, #4f9c5c) !important;
    outline-offset: 2px !important;
}

/* Smooth loading animation */
.unit-card.house-card {
    animation: fadeInUp 0.6s ease-out !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .unit-card.house-card {
        border: 2px solid var(--text-primary, white) !important;
    }
    
    .unit-card.house-card .unit-details .detail {
        border: 1px solid var(--text-primary, white) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .unit-card.house-card,
    .unit-card.house-card .view-button,
    .unit-card.house-card .unit-discount-btn,
    .unit-card.house-card .contact-button,
    .unit-card.house-card .unit-details .detail {
        transition: none !important;
        animation: none !important;
    }
    
    .unit-card.house-card:hover {
        transform: none !important;
    }
}

/* ========================================
   STEP 6: INTEGRATION WITH PRICE HISTORY
======================================== */
.unit-card.house-card .unit-price::after {
    content: "📊 Zobacz historię cen";
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary, #9ca3af);
    margin-top: 0.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.unit-card.house-card .unit-price:hover::after {
    opacity: 1;
    color: var(--accent-blue, #4f9c5c);
}

/* Add click handler to price section for price history */
.unit-card.house-card .unit-price {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.unit-card.house-card .unit-price:hover {
    transform: scale(1.02) !important;
    border-color: rgba(79, 156, 92, 0.4) !important;
}
/* SIMPLIFIED HOUSE CARD - SINGLE CONTACT BUTTON */

/* Update action layout for single button */
.unit-card.house-card .unit-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--glass-border, rgba(255,255,255,0.1)) !important;
}

/* Primary action button - Zobacz szczegóły (full width) */
.unit-card.house-card .view-button {
    background: linear-gradient(135deg, #4f9c5c 0%, #3d8547 100%) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
}

.unit-card.house-card .view-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(79, 156, 92, 0.4) !important;
    background: linear-gradient(135deg, #3d8547 0%, #2d6333 100%) !important;
    text-decoration: none !important;
    color: white !important;
}

/* Secondary contact button (full width) */
.unit-card.house-card .contact-button {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary, #fff) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    width: 100% !important;
}

.unit-card.house-card .contact-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Hide any remaining discount buttons */
.unit-card.house-card .unit-discount-btn {
    display: none !important;
}
/* Enhanced Checkbox Styling for Consent Buttons */
.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    user-select: none !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    position: relative !important;
}

.checkbox-label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.checkbox-label .checkmark {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    background: var(--bg-secondary, #2b2d30) !important;
    border: 2px solid var(--border-color, #3c3f41) !important;
    border-radius: 4px !important;
    margin-right: 12px !important;
    margin-top: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* Hover state */
.checkbox-label:hover .checkmark {
    border-color: var(--primary-green, #499c54) !important;
    background: rgba(73, 156, 84, 0.1) !important;
}

/* Checked state */
.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-green, #499c54) !important;
    border-color: var(--primary-green, #499c54) !important;
}

/* Checkmark icon */
.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓' !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: block !important;
}

/* Focus state for accessibility */
.checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid var(--primary-green, #499c54) !important;
    outline-offset: 2px !important;
}

/* Fix for specific form contexts */
#contact-lead-form .checkbox-label,
#discount-form .checkbox-label,
.lead-form .checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
}

.checkbox-group {
    margin-bottom: 20px !important;
}

.checkbox-group .checkbox-label {
    width: 100% !important;
    margin-bottom: 0 !important;
}
/* Light Mode Text Visibility Fixes */
.hero-subtitle {
    color: var(--text-secondary) !important;
}

.section-title {
    color: var(--text-primary) !important;
}

.investment-card h3,
.investment-card .card-title {
    color: var(--text-primary) !important;
}

.investment-card .card-description {
    color: var(--text-secondary) !important;
}

.card-price,
.stat-number {
    color: var(--accent-red) !important;
}

.stat-label {
    color: var(--text-secondary) !important;
}

/* Ensure buttons with colored backgrounds keep white text */
.btn-primary,
.hero-cta-primary,
.search-btn,
.card-cta,
.view-unit-btn,
.units-table th {
    color: white !important;
}

.btn-primary:hover,
.hero-cta-primary:hover,
.search-btn:hover,
.card-cta:hover,
.view-unit-btn:hover {
    color: white !important;
}

/* Gallery tab active state text fix */
.gallery-tab.active,
.gallery-tab:hover {
    color: white !important;
}

/* Investment card hover state text fix */
.investment-card:hover {
    color: var(--text-primary);
}

.investment-card:hover .card-title {
    color: var(--text-primary);
}

.investment-card:hover .card-description {
    color: var(--text-secondary);
}
/* Fix visibility for table action buttons in light mode */
.view-unit-btn {
    background: var(--accent-red) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    border: none !important;
}

.view-unit-btn:hover {
    background: var(--accent-red-dark) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* Table text visibility fixes for light mode */
.units-table {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.units-table th {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    padding: 12px 8px !important;
    border-bottom: 2px solid var(--border-color) !important;
}

.units-table td {
    color: var(--text-primary) !important;
    padding: 12px 8px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.status-badge {
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.status-badge.status-available {
    background: #22c55e !important;
    color: white !important;
}

.status-badge.status-reserved {
    background: #f59e0b !important;
    color: white !important;
}

.status-badge.status-sold {
    background: #6b7280 !important;
    color: white !important;
}
/* Smart Light Mode Fix - Preserve Navbar, Fix Content */

/* Set light mode CSS variables correctly */
body:not(.dark-theme) {
  --bg-primary: #ffffff;
  --bg-secondary: #fef7f7; 
  --bg-tertiary: #fed7d7;
  --text-primary: #2d1b1b;
  --text-secondary: #6b4444;
  --accent-red: #dc2626;
  --accent-red-light: #ef4444;
  --accent-red-dark: #b91c1c;
  --border-color: #fecaca;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(220, 38, 38, 0.2);
  --backdrop-blur: blur(20px);
  
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* Apply light gradient to app container */
body:not(.dark-theme) .app-container {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  min-height: 100vh;
}

/* Content article styling for light mode */
body:not(.dark-theme) .content-article {
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
}

/* Article title with red gradient */
body:not(.dark-theme) .article-title {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light)) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--accent-red) !important;
}

/* Article content text */
body:not(.dark-theme) .article-content {
  color: var(--text-primary) !important;
}

/* Content headings */
body:not(.dark-theme) .article-content h1,
body:not(.dark-theme) .article-content h2,
body:not(.dark-theme) .article-content h3,
body:not(.dark-theme) .article-content h4 {
  color: var(--accent-red) !important;
}
/* Simple, Clean Nearby Places Styling */
.nearby-places-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.places-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.places-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.places-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-red) !important;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.places-list {
    color: var(--text-primary) !important;
}

.place-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border-left: 3px solid var(--accent-red);
    font-size: 0.9rem;
}

.place-name {
    font-weight: 600;
    color: var(--text-primary) !important;
}

.place-distance {
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
    font-weight: 600;
}

.loading {
    color: var(--text-secondary) !important;
    font-style: italic;
    padding: 0.5rem;
    text-align: center;
}

/* Fix header text visibility */
.amenities-header h3 {
    color: var(--text-primary) !important;
    font-size: 1.2rem;
}

.legend-item {
    color: var(--text-primary) !important;
    font-size: 0.9rem;
}
/* Simple, Clean Nearby Places Styling */
.nearby-places-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.places-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.places-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.places-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-red) !important;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.places-list {
    color: var(--text-primary) !important;
}

.place-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border-left: 3px solid var(--accent-red);
    font-size: 0.9rem;
}

.place-name {
    font-weight: 600;
    color: var(--text-primary) !important;
}

.place-distance {
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
    font-weight: 600;
}

.loading {
    color: var(--text-secondary) !important;
    font-style: italic;
    padding: 0.5rem;
    text-align: center;
}
/* Fix Map Container Rendering */
#investment-map {
    width: 100% !important;
    height: 400px !important;
    background: #f0f0f0 !important;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.map-container {
    width: 100%;
    min-height: 400px;
    position: relative;
}

/* Ensure map loads properly */
.gm-style {
    border-radius: 12px !important;
}


/* Modern Layout */
.location-layout {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 2rem;
    align-items: start;
}

.amenities-dashboard {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.amenities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.amenities-header h3 {
    color: var(--accent-red) !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.amenities-legend {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Modern Category Cards */
.nearby-places-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.places-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--accent-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.places-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.places-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-red) !important;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.places-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Modern Place Items */
.place-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.place-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    border-color: var(--accent-red);
}

.place-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.place-item:hover::before {
    transform: scaleY(1);
}

.place-name {
    font-weight: 600;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    line-height: 1.3;
    flex: 1;
}

.place-distance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-red) !important;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    min-width: 60px;
    justify-content: center;
}

/* Enhanced Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text-secondary) !important;
    font-style: italic;
    text-align: center;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .location-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .amenities-dashboard {
        order: 2;
    }
    
    .map-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .amenities-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .amenities-legend {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .place-item {
        padding: 0.6rem;
    }
    
    .place-name {
        font-size: 0.9rem;
    }
    
    .place-distance {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
        min-width: 50px;
    }
}

/* Success Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.place-item {
    animation: slideInUp 0.5s ease-out;
}

.place-item:nth-child(2) { animation-delay: 0.1s; }
.place-item:nth-child(3) { animation-delay: 0.2s; }
.place-item:nth-child(4) { animation-delay: 0.3s; }
