/* Custom link styling */
a {
  color: var(--accent-gold);
}

a:hover {
  color: #e6c58a;
}

/* Ensure all text elements have sufficient contrast */
.text-dark,
.card-text,
.property-card p,
.card-body p,
.description-section p,
.form-label,
.badge {
  color: var(--text-main) !important;
}

/* Enhanced header styling for better visibility */
h1, h2, h3, h4, h5, h6 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
}
/* Luxury Dark Navy Blue Theme for Procista Real Estate Platform */

:root {
  /* Color Palette */
  --bg-navy: #0a192f;       /* Deep Navy */
  --bg-slate: #112240;      /* Lighter Navy for cards */
  --accent-gold: #c5a059;   /* Luxury Gold */
  --text-main: #e6f1ff;     /* High contrast white */
  --text-muted: #8892b0;    /* Muted grey-blue */
  --text-header: #e6f1ff;   /* Dedicated header color */
  --primary-navy: #0a192f;  /* Primary navy color for headers */
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --success-green: #28a745;
  --danger-red: #dc3545;
  --warning-yellow: #ffc107;
  --card-bg: var(--bg-slate);
  --text-primary: var(--text-main);
  --text-light: var(--text-main);
  --border-radius: 12px;
  --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  
  /* Typography */
  --font-header: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-navy);
  color: var(--text-main);
  line-height: 1.6;
  padding-top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--text-header);
  letter-spacing: 0.5px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Additional header styling for better visibility */
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.card-header,
.card-title,
.property-card h5,
.section-title,
.display-4 {
  color: var(--text-header) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
  background-color: var(--primary-navy) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  color: var(--text-main) !important;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  margin-right: 0.75rem;
  color: var(--accent-gold);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--text-main) !important;
  border-radius: 30px;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--accent-gold) !important;
}

/* Modern cards */
.card {
  background-color: var(--card-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.card-img-top {
  border-radius: calc(var(--border-radius) - 2px) calc(var(--border-radius) - 2px) 0 0;
  height: 220px;
  object-fit: cover;
}

/* Modern buttons */
.btn {
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 12px 24px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-navy);
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-outline-primary {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-outline-primary:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 0.65rem 1.2rem;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Form controls */
.form-control, .form-select {
  background-color: var(--bg-slate);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-main);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.25);
  color: var(--text-main);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
}

/* Badges */
.badge {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: var(--bg-navy);
  color: var(--text-main);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.hero-section {
  background: linear-gradient(135deg, var(--bg-navy) 0%, #1a2a4a 100%);
  border-radius: 0 0 30px 30px;
  margin-bottom: 3rem;
  padding: 6rem 0;
}

/* Typography */
.display-4 {
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-navy);
}

body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4, 
body.dark-theme h5, 
body.dark-theme h6 {
  color: var(--text-light);
}

/* Card text contrast fixes */
.card-body {
  color: var(--text-main) !important;
}

.card-text {
  color: var(--text-main) !important;
}

.card .text-muted {
  color: var(--text-muted) !important;
}

.card .badge {
  color: #fff !important; /* Ensure badge text is white regardless of background */
}

/* Property specific contrast improvements */
.property-card {
  background-color: var(--bg-slate);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.property-card .card-body {
  padding: 1.5rem;
  color: var(--text-main) !important;
}

.property-card .card-footer {
  background-color: var(--bg-slate) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-main) !important;
}

.property-card h5,
.property-card .card-title {
  color: var(--text-main) !important;
}

.property-card .card-text,
.property-card p {
  color: var(--text-main) !important;
}

.property-card .text-primary {
  color: var(--accent-gold) !important;
}

.property-card .text-muted {
  color: var(--text-muted) !important;
}

.property-card .btn-outline-primary {
  color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
}

.property-card .btn-outline-primary:hover {
  background-color: var(--accent-gold) !important;
  color: var(--primary-navy) !important;
}

/* Featured badge */
.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: linear-gradient(45deg, var(--accent-gold), #e6c58a);
  color: var(--bg-navy);
  padding: 0.5rem 1rem;
  border-radius: 0 var(--border-radius) 0 var(--border-radius);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Login/Register forms */
.auth-form-container {
  max-width: 500px;
  margin: 3rem auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.auth-form-container .card {
  border: none;
  box-shadow: none;
}

.auth-form-container .card-header {
  background: linear-gradient(135deg, var(--bg-navy), #1a2a4a);
  color: var(--text-main);
  padding: 1.75rem;
  text-align: center;
  border: none;
  font-family: var(--font-header);
}

.auth-form-container .card-body {
  padding: 2rem;
}


/* Property detail enhancements */
.property-detail-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.property-detail-container .card {
  box-shadow: none;
  border: none;
  background-color: var(--card-bg) !important;
  color: var(--text-main);
}

/* Dashboard enhancements */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--bg-slate), #172a4d);
  color: var(--text-main);
}

.stat-card i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

/* Property list specific fixes */
.property-list .card,
.property-list .card-body {
  color: var(--text-main) !important;
  background-color: var(--card-bg) !important;
}

.property-list .card-footer {
  background-color: var(--bg-slate) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Enhanced property list styling */
.property-list .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.property-list .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.property-list .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-list .card-img-top:hover {
  transform: scale(1.05);
}

.property-list .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.property-list .card-text {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.property-list .price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 1rem 0;
}

.property-list .feature-icon {
  color: var(--accent-gold);
  margin-right: 0.5rem;
}

.property-list .property-features {
  margin: 1rem 0;
}

.property-list .property-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.property-list .property-features li:last-child {
  margin-bottom: 0;
}

.property-list .btn-primary {
  background-color: var(--accent-gold);
  border: none;
  color: var(--bg-navy);
  font-weight: 600;
  transition: all 0.3s ease;
}

.property-list .btn-primary:hover {
  background-color: #b28c4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* Specific fixes for property details */
.property-details-table td,
.property-details-table th {
  color: var(--text-main) !important;
}

.property-details-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Ensure property location text is readable */
.fa-map-marker-alt.text-danger {
  color: var(--accent-gold) !important;
}

/* WhatsApp button text contrast */
.whatsapp-btn,
.whatsapp-btn:hover {
  color: white !important;
}

/* Fix contrast for property meta info */
.property-card .text-muted,
.property-card .small,
.property-card .card-footer .text-muted,
.property-card .card-footer small {
  color: var(--text-muted) !important;
}

.property-card .text-primary {
  color: var(--accent-gold) !important;
}

/* Property code and posted time visibility */
.text-muted {
  color: var(--text-muted) !important;
}

.card-footer .text-muted {
  color: var(--text-main) !important;
}

/* Specific styling for property metadata */
.property-card .card-footer small,
.property-card .card-footer .text-muted,
.property-card .card-body .text-muted,
.property-card .card-body small {
  color: var(--text-main) !important;
}

/* Ensure specific elements like posted time and property code are visible */
.card-footer .text-muted,
.card-footer small,
.property-listings .text-muted,
.property-listings small {
  color: var(--text-main) !important;
  font-weight: 400;
}

/* Specific rule for the property card footer content */
.card-footer {
  color: var(--text-main) !important;
  background-color: var(--bg-slate) !important;
}

/* Override text-muted specifically in property cards */
.property-card .text-muted,
.property-card .small {
  color: var(--text-main) !important;
}

/* Most specific selector for property code in card footer */
.card-footer small.text-muted,
.card-footer .text-muted small,
.property-card .card-footer small.text-muted {
  color: var(--text-main) !important;
  font-weight: 500;
}

/* Even more specific selectors for property cards */
.property-card .card-body div.d-flex small.text-muted,
.property-card .card-footer div.d-flex small.text-muted,
.card-body .d-flex.justify-content-between.align-items-center small,
.card-footer .d-flex.justify-content-between small.text-muted {
  color: var(--text-main) !important;
  font-weight: 500;
}

/* Force the specific elements to be light colored */
.card-body small.text-muted,
.card-footer small.text-muted {
  color: var(--text-main) !important;
  opacity: 1 !important;
}

/* Ultimate specificity for property card elements */
div.row.g-4 div.col-md-6.col-lg-4 div.card div.card-body div.d-flex.justify-content-between.align-items-center small.text-muted,
div.row.g-4 div.col-md-6.col-lg-4 div.card div.card-footer div.d-flex.justify-content-between small.text-muted {
  color: var(--text-main) !important;
  background-color: transparent !important;
}

/* Final override for property cards specifically */
.property-card .card-body small,
.property-card .card-footer small,
.property-card .card-body .text-muted,
.property-card .card-footer .text-muted {
  color: #e6f1ff !important;  /* Explicit white color */
  background: transparent !important;
}

/* Target the specific elements in property cards with highest specificity */
.property-card .card-body div.d-flex.align-items-center small,
.property-card .card-footer div.d-flex small {
  color: #e6f1ff !important;
  background: transparent !important;
}

/* Ultimate override: Force all small and text-muted elements in property cards to be visible */
.property-card .card-body *,
.property-card .card-footer * {
  color: #e6f1ff !important;
}

/* Specific override for the exact elements that are still dark */
.card .card-footer .text-muted {
  color: #e6f1ff !important;
}

/* Override Bootstrap's default text-muted class specifically for property cards */
.property-card .text-muted,
.properties-page .text-muted,
[data-testid="property-card"] .text-muted {
  color: #e6f1ff !important;
}

/* Final override to ensure visibility */
.card-body small.text-muted,
.card-footer small.text-muted,
.card-body .text-muted,
.card-footer .text-muted {
  color: #e6f1ff !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* Specific override for property card details */
.property-list .card .card-body small,
.property-list .card .card-footer small,
.property-list .card .card-body .text-muted,
.property-list .card .card-footer .text-muted {
  color: #e6f1ff !important;
}

/* Override for the exact elements that are still dark */
.property-list .card .card-body div.d-flex.align-items-center small.text-muted,
.property-list .card .card-footer div.d-flex.justify-content-between small.text-muted {
  color: #e6f1ff !important;
  background: transparent !important;
}

/* Ultimate fix: force all text in property cards to be visible */
.property-card .card-body *,
.property-card .card-footer * {
  color: #e6f1ff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  h1, h2, h3 {
    font-size: 1.5rem;
  }
}

/* Animation for interactive elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Input group enhancements */
.input-group {
  border-radius: 50px;
  overflow: hidden;
}

/* Table styling */
.table {
  margin-bottom: 0;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: var(--text-muted);
}

.table td {
  color: var(--text-main);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b28c4d;
}