/* Complete Styles for Samacon Developments */
:root {
  --primary-color: #AD976E;
  --primary-hover: #9c8661;
  --samacon-gold: #AD976E;
  --samacon-gold-light: #c4af8a;
  --samacon-gold-dark: #9c845f;
  --samacon-dark: #212529;
  --samacon-light: #f8f9fa;
  --samacon-gray: #6c757d;
  --dark-color: #212529;
  --dark-gray: #6c757d;
  --white-color: #ffffff;
  --text-color: #333;
  --border-color: #dee2e6;
  --shadow-light: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background-color: var(--white-color);
  color: var(--text-color);
  line-height: 1.6;
}

body:not(.is-property-page) {
  padding-top: 64px;
}

main {
  background-color: var(--white-color);
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 0;
}

html.smooth-scroll {
  scroll-behavior: smooth;
}

/* Prevent initial scroll to top on refresh */
html.scroll-restore {
  scroll-behavior: auto !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.125rem;
  }

  h6 {
    font-size: 1rem;
  }
}

/* Navigation */
.navbar {
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background-color: var(--dark-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  /* Ensure navbar appears above everything */
}

.navbar .nav-link {
  color: var(--white-color);
  font-weight: 500;
  font-family: inherit;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: var(--transition);
  position: relative;
}

.navbar .nav-link:hover {
  color: var(--white-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
  color: var(--white-color);
  font-weight: 600;
  font-family: inherit;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link:focus {
  outline: none;
  box-shadow: none;
}

.navbar-brand {
  font-weight: 700;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  max-height: 38px;
  transition: var(--transition);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.375rem 0.75rem;
  background-color: transparent;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler:hover {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--dark-color);
    border-radius: 0.25rem;
    margin-top: 1rem;
    padding: 0;
    box-shadow: var(--shadow-medium);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    color: var(--white-color) !important;
    padding: 0.75rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    display: block;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color) !important;
  }

  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white-color) !important;
    font-weight: 600;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand img {
    height: 30px;
    width: auto;
  }

  /* Move call and flag icons to left of hamburger */
  .navbar-nav .nav-item:last-child,
  .navbar-nav .nav-item:nth-last-child(2) {
    display: none;
  }

  .navbar .d-flex.align-items-center {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar .d-flex.align-items-center .nav-link {
    padding: 0.375rem 0.5rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.25rem;
    margin: 0;
    width: auto;
  }

  .navbar .d-flex.align-items-center .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .navbar-toggler {
    padding: 0.375rem 0.75rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.375rem;
  }

  .navbar-toggler:hover {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
  }

  .navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
  }

  .navbar-collapse {
    margin: 0.5rem;
    padding: 0.75rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 0;
  }
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 0.375rem;
  padding: 0.625rem 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  border: none;
}

.btn-primary,
.btn-success {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white !important;
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}



/* Cards */
.card {
  border: none;
  border-radius: 0.5rem;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: var(--white-color);
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 1.2rem;
  background-color: var(--white-color);
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.card-text {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

/* Property Cards Specific */
.property-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--white-color);
}

.property-card .card-footer {
  background: transparent;
  border-top: none;
  padding-top: 0;
  margin-top: auto;
}

/* Search/Filter Section */
.search-section {
  background: var(--white-color);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.search-section h3 {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.form-control,
.form-select {
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  font-size: 0.95rem;
  background-color: var(--white-color);
  color: var(--dark-color);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(173, 151, 110, 0.25);
  outline: none;
}

/* Carousel */
.carousel {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.carousel-item img {
  object-fit: cover;
  height: 400px;
}

@media (min-width: 768px) {
  .carousel-item img {
    height: 500px;
  }
}

.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 1rem;
}

/* Breadcrumbs */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "›";
  color: var(--primary-color);
  font-weight: bold;
}

.breadcrumb-item.active {
  color: var(--dark-color);
  font-weight: 600;
}

/* Contact Section */
.contact-info {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.contact-info h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark-gray);
}

/* Footer */
.footer,
.footer-dark {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer a,
.footer-dark a {
  color: var(--white-color);
  text-decoration: none;
}

.footer a:hover,
.footer-dark a:hover {
  color: var(--primary-color);
  padding-left: 2px;
  text-decoration: none;
}

.footer-heading {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links li a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links li a:hover,
.footer-contact a:hover {
  color: var(--primary-color);
}

.footer-social a {
  color: var(--white-color);
  font-size: 1.25rem;
  margin-right: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Focus States */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: var(--white-color);
}

/* Stats Section */
.stats-section {
  background-color: var(--dark-color);
  color: var(--white-color);
}

/* Text color utilities */
.text-primary {
  color: var(--primary-color) !important;
}

/* Breadcrumb Link Styling */
.breadcrumb-link {
  color: #ad976e !important;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out;
}

.breadcrumb-link:hover {
  color: #9c8661 !important;
  text-decoration: none !important;
}

/* Article Page Styles */
.article-content {
  max-width: 100%;
}

.article-title {
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.3;
}

.article-image {
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px !important;
  box-shadow: var(--shadow-medium);
}

.article-meta {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--dark-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
}

.article-footer {
  border-top: 1px solid var(--border-color);
}

.article-tags .badge {
  background-color: var(--primary-color) !important;
  color: white !important;
  font-weight: 500;
}

/* Article Image Overlay */
.article-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(180deg, rgba(173, 151, 110, 0.2) 0%, rgba(173, 151, 110, 0.05) 50%, transparent 100%);
  border-radius: 0.375rem 0.375rem 0 0;
  pointer-events: none;
}

/* Article Footer Info Styling */
.article-footer-info {
  background: transparent;
  padding: 1rem;
  margin-top: 2rem;
  bottom: 0px;
}

.article-footer-info .fas {
  color: var(--dark-gray);
}

.article-footer-info .text-muted {
  color: #6c757d !important;
}

/* Badge styles */
.badge {
  border-radius: 0.25rem !important;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
}

.badge.bg-light {
  background-color: #f8f9fa !important;
  color: var(--dark-color) !important;
}

/* Related Articles */
.related-articles h3 {
  color: var(--dark-color);
  font-weight: 600;
}

.related-articles .card {
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.related-articles .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.related-articles .card-title a {
  color: var(--dark-color);
  transition: var(--transition);
}

.related-articles .card-title a:hover {
  color: var(--primary-color);
}

/* Articles Page Styles */
.article-card {
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.article-card .card-title a {
  color: var(--dark-color);
  transition: var(--transition);
}

.article-card .card-title a:hover {
  color: var(--primary-color);
}

.article-card .card-img-top {
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

/* Articles Filter Section */
.articles-filter {
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.articles-filter .form-control,
.articles-filter .form-select {
  border-color: var(--border-color);
}

.articles-filter .form-control:focus,
.articles-filter .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(173, 151, 110, 0.25);
}

/* Articles Header */
.articles-header {
  text-align: center;
  margin-bottom: 3rem;
}

.articles-header h1 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.articles-header p {
  color: var(--dark-gray);
  font-size: 1.1rem;
}

/* Border radius standardization */
.rounded {
  border-radius: 0.375rem !important;
}

.rounded-circle {
  border-radius: 50% !important;
}











/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent horizontal scrolling */
.row {
  margin-left: 0;
  margin-right: 0;
}

.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-lg,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-md,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-sm,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Ensure sections don't have dark backgrounds */
section {
  background-color: transparent;
}

section.bg-white {
  background-color: var(--white-color) !important;
}

section.bg-light {
  background-color: #f8f9fa !important;
}

/* Advanced Filter Styles */
.filter-card {
  background: var(--white-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  z-index: 1000;
  position: sticky;
  top: 80px;
  margin-top: 0;
}

/* Sticky filter positioning */
.sticky-lg-top {
  position: sticky !important;
  top: 64px !important;
  z-index: 1000;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  transition: all 0.3s ease;
  /* Add space below header */
}

/* Ensure parent containers don't break sticky positioning */
#filters {
  overflow: visible;
}

#filters .container {
  overflow: visible;
}

#filters .row {
  overflow: visible;
}

#filters .col-lg-4 {
  overflow: visible;
}

/* Ensure proper sticky behavior on different screen sizes */
@media (min-width: 992px) {
  .sticky-lg-top {
    top: 64px !important;
    /* Ensure it doesn't go above the header */
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  .sticky-lg-top {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

.filter-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 2rem;
}

.advanced-filter-form {
  display: flex;
  flex-direction: column;
}

.filter-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  position: relative;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: var(--white-color);
  font-size: 0.875rem;
  color: var(--dark-color);
  transition: all 0.3s ease;
  appearance: none;
  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");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(173, 151, 110, 0.1);
}

.filter-select:hover {
  border-color: #9ca3af;
}

/* Range Slider Styles */
.range-slider-container {
  position: relative;
  padding: 1rem 0;
  height: 40px;
  --range-min: 0%;
  --range-max: 100%;
  margin-bottom: 0.5rem;
}

.range-slider-container::before {
  content: '';
  position: absolute;
  top: calc(50% - 8px);
  left: 0;
  right: 0;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: 1;
}

.range-slider-container::after {
  content: '';
  position: absolute;
  top: calc(50% - 8px);
  left: var(--range-min);
  right: calc(100% - var(--range-max));
  height: 6px;
  background: var(--primary-color);
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: 1;
  transition: all 0.3s ease;
}

.range-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 3px;
  outline: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  z-index: 2 !important;
  top: 40%;
  transform: translateY(-50%);
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid #fff;
  margin-top: -9px;
}

.range-slider::-webkit-slider-thumb:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-top: -9px;
  pointer-events: auto;
}

.range-slider::-moz-range-thumb:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.range-slider::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
  border: none;
}

/* Price Range Slider */
#price_min {
  z-index: 4;
}

#price_max {
  z-index: 3;
}

#size_min {
  z-index: 4;
}

#size_max {
  z-index: 3;
}

.range-values {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.filter-search-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.filter-search-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(173, 151, 110, 0.3);
}

.filter-clear-btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.filter-clear-btn:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
}





/* Responsive Design */
@media (max-width: 768px) {
  .filter-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .filter-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-actions {
    flex-direction: column;
    align-items: center;
  }

  .filter-search-btn,
  .filter-clear-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .filter-card {
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .filter-title {
    font-size: 1.5rem;
  }

  .range-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }

  .range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 991.98px) {
  .filter-card {
    margin-bottom: 2rem;
  }

  .row-cols-md-2>.col-lg-6,
  .row-cols-md-2>.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Ensure proper alignment for properties layout */

#filters .col-lg-8 {
  padding-top: 0;
}

/* Better spacing for filter card on desktop */
@media (min-width: 992px) {
  #filters .col-lg-4 {
    padding-right: 2rem;
  }

  #filters .col-lg-8 {
    padding-left: 1rem;
  }
}

@media (min-width: 992px) {

  .row-cols-md-2>.col-lg-6,
  .row-cols-md-2>.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .card-body {
    padding: 1rem;
  }

  .search-section {
    padding: 1rem;
  }

  .property-card .card-img-top {
    height: 200px;
  }

  .property-card {
    margin-bottom: 1rem;
    min-height: 350px;
  }

  .row.g-4>[class^='col-'] {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

/* Print Styles */
@media print {

  .navbar,
  .footer,
  .footer-dark,
  .btn,
  .search-section {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd !important;
  }
}

/* Sections */
section {
  background-color: transparent;
}

section:first-of-type {
  padding-top: 0;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--samacon-dark) !important;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--samacon-gold);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--samacon-gray);
}

/* Homepage-specific Buttons */
.btn-gold {
  background-color: var(--samacon-gold);
  color: var(--white-color) !important;
  border-color: var(--samacon-gold);
  box-shadow: 0 4px 15px rgba(173, 151, 110, 0.3);
}

.btn-gold:hover {
  background-color: var(--samacon-gold-dark);
  color: var(--white-color) !important;
  box-shadow: 0 6px 20px rgba(173, 151, 110, 0.4);
}

/* Dark CTA Button for better visibility */
.btn-dark-cta {
  background-color: var(--dark-color);
  color: var(--white-color) !important;
  border-color: var(--dark-color);
  box-shadow: 0 4px 15px rgba(52, 58, 64, 0.3);
}

.btn-dark-cta:hover {
  background-color: #23272b;
  color: var(--white-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 58, 64, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: calc(100vh + 16px);
  min-height: calc(100vh + 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
  margin-bottom: 0;
  padding: 0;
  margin-top: -80px;
  /* Negative margin to pull hero up behind header */
  padding-top: 80px;
  /* Add padding to compensate for the header height */
}

/* Home page specific hero styling */
body:has(.hero-section) .hero-section {
  margin-top: -80px;
  /* Ensure hero starts from top of body */
}

/* Fallback for browsers that don't support :has() */
.hero-section {
  margin-top: -80px;
  /* Ensure hero starts from top of body */
}

.hero-section .carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-section .carousel-item,
.hero-section .hero-bg {
  height: 100%;
  width: 100%;
}

.hero-section .hero-bg {
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-section .carousel-item {
  position: relative;
}

.hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-overlay * {
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
  max-width: 900px;
  padding: 120px 20px 0 20px;
  /* Increased top padding to account for header */
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white-color);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-content .lead {
  font-size: 1.5rem;
  color: var(--white-color);
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

/* Search Form */
.search-section {
  padding: 0;
  margin-bottom: 3rem;
}

.search-form-container {
  background: #ffffff80;
  padding: 1.2rem;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-top: -180px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-form-container .form-select {
  height: 48px;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  width: 100%;
}

.search-form-container .form-select:focus {
  border-color: var(--samacon-gold);
  box-shadow: 0 0 0 0.2rem rgba(173, 151, 110, 0.25);
}

.search-form-container .btn {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form-container .row {
  align-items: stretch;
}

.search-form-container .col-lg-3,
.search-form-container .col-md-6 {
  display: flex;
  flex-direction: column;
}

/* Service Cards */
.service-card {
  background: var(--white-color);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 0.75rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition-default);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card .icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--samacon-gold), var(--samacon-gold-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white-color);
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(173, 151, 110, 0.3);
}

.service-card h3,
.service-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--samacon-dark);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--samacon-gray);
}

/* Why Choose Us */
.why-choose-us-section .icon-circle-small {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--samacon-gold), var(--samacon-gold-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(173, 151, 110, 0.3);
}

.why-choose-us-section .d-flex {
  margin-bottom: 1.5rem;
}

.why-choose-us-section h3 {
  font-size: 1.2rem;
  color: var(--samacon-dark);
}

/* Homepage-specific Card Overrides */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition-default);
}

.card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  height: 220px;
}

.card-title {
  font-size: 1.25rem;
  color: var(--samacon-dark);
}

/* Process Steps */
.process-step {
  text-align: center;
  padding: 1rem;
}

.process-step .step-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--samacon-gold), var(--samacon-gold-light));
  border-radius: 50%;
  color: var(--white-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(173, 151, 110, 0.3);
}

.process-step h3 {
  font-size: 1.3rem;
  color: var(--samacon-dark);
}

/* Pagination Styles */
.pagination {
  gap: 0;
}

.pagination .page-item .page-link {
  border: none;
  color: var(--dark-color);
  background-color: var(--white-color);
  padding: 0.75rem 1rem;
  margin: 0;
  border-radius: 0;
  transition: var(--transition);
}

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

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

.pagination .page-item.disabled .page-link {
  background-color: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

/* First and last page items */
.pagination .page-item:first-child .page-link {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.pagination .page-item:last-child .page-link {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

/* Properties Page Specific Styles */
.page-header {
  background-color: #f8f9fa;
  padding: 3rem 0;
}

.page-header h1 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--dark-gray);
  font-size: 1.1rem;
}

/* Properties Filter Card Styles - Consolidated */

/* Properties Card Styles */
.property-card {
  transition: var(--transition);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  /* Ensure minimum height for consistency */
}

/* Ensure all cards in a row have equal height */
.row .col-lg-4 .property-card,
.row .col-md-6 .property-card,
.row .col-lg-6 .property-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Force equal height for card containers */
.row .col-lg-4,
.row .col-md-6,
.row .col-lg-6 {
  display: flex;
  flex-direction: column;
}

/* Ensure rows with property cards maintain equal heights */
.row.g-4 {
  align-items: stretch;
}

.row.g-4>[class*='col-'] {
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-medium);
}

/* Override hover effects for property cards specifically */
.card.hover-lift:hover {
  transform: none !important;
}

/* Target the specific card structure used in properties.php */
.card.w-100.border-0.shadow-sm.hover-lift:hover {
  transform: none !important;
}

.property-card .card-img-top {
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

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

.property-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ensure card content fills available space properly */
.property-card .card-body>*:last-child {
  margin-top: auto;
}

/* Ensure property details section stays at bottom */
.property-card .property-details {
  margin-top: auto;
  padding-top: 1rem;
}

.property-card .card-title {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.3em;
  /* Ensure consistent height for titles */
  display: block;
}

/* Target the specific card title classes used in properties.php */
.card .card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure all card titles stay on one line */
.card-title.fw-semibold.mb-2.text-dark {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card .card-title:hover {
  color: var(--primary-color);
}

/* Ensure property details stay at bottom */
.property-card .mt-auto {
  margin-top: auto !important;
}

/* Property Detail Page Hero Section */
.property-hero {
  margin-top: -80px;
  /* Remove the body padding-top gap */
  padding-top: 80px;
  /* Add padding to account for fixed navbar */
  position: relative;
  overflow: hidden;
}

.property-hero .hero-img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
}

.property-hero .hero-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.property-hero .carousel {
  height: 70vh;
}

.property-hero .carousel-item {
  height: 70vh;
}

.property-hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Properties Page Badge and Button Styles */
.bg-gold {
  background-color: var(--primary-color) !important;
  color: white !important;
}

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

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

.text-gold {
  color: var(--primary-color);
}

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

/* Homepage Responsive */
@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .lead {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .search-form-container {
    padding: 1.5rem;
    margin-top: -40px;
  }

  .col-md-3 {
    margin-bottom: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  /* Tablet-specific improvements */
  .hero-content {
    padding: 100px 30px 0 30px;
  }

  .service-card {
    margin-bottom: 2rem;
  }

  .property-card .card-img-top {
    height: 220px;
  }

  /* Ensure cards maintain equal height on tablet */
  .property-card {
    min-height: 380px;
  }

  .cta-section {
    padding: 4rem 2rem;
  }

  .footer {
    padding: 3rem 0 1rem;
  }
}

/* Mobile-specific improvements */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-content .lead {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .search-form-container {
    padding: 1rem;
    margin: 0;
    border-radius: 0.5rem;
    max-width: 100%;
    overflow: hidden;
  }

  .search-form-container .form-control {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .search-form-container .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .card-body {
    padding: 1rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }

  .map-card {
    padding: 1.5rem;
  }

  .map-card iframe {
    height: 300px;
  }

  /* Additional mobile improvements */
  .hero-content {
    padding: 80px 15px 0 15px;
  }

  .hero-content .btn {
    margin-top: 1.5rem;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .service-card .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .why-choose-us-section .icon-circle-small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .property-card .card-img-top {
    height: 200px;
  }

  .cta-section {
    padding: 3rem 1rem;
  }

  .cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .cta-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .footer .col-lg-3 {
    margin-bottom: 2rem;
  }

  .footer-heading {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }

  .footer-social a {
    font-size: 1.1rem;
    margin-right: 0.75rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content .lead {
    font-size: 1rem;
  }

  .hero-content .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .search-form-container {
    margin: 0.5rem;
    padding: 0.75rem;
  }

  .search-form-container .form-control {
    padding: 0.625rem;
    font-size: 0.95rem;
  }

  .search-form-container .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1rem;
  }

  .map-card {
    padding: 1rem;
  }

  .map-card iframe {
    height: 250px;
  }

  .service-card .icon-circle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Property hero responsive adjustments for small mobile */
  .property-hero .hero-img,
  .property-hero .carousel,
  .property-hero .carousel-item {
    height: 40vh;
  }

  .why-choose-us-section .icon-circle-small {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }

  .property-card .card-img-top {
    height: 180px;
  }

  /* Ensure cards maintain equal height on mobile */
  .property-card {
    min-height: 350px;
  }

  /* Property hero responsive adjustments */
  .property-hero .hero-img,
  .property-hero .carousel,
  .property-hero .carousel-item {
    height: 50vh;
  }

  .cta-section {
    padding: 2rem 0.75rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section .lead {
    font-size: 1rem;
  }

  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer .col-lg-3 {
    margin-bottom: 1.5rem;
  }
}

/* EU Citizenship FAQ Styles */
.accordion-button:not(.collapsed) {
  color: #fff;
  background-color: #AD976E;
}

.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

.accordion-body {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid #e9ecef;
  padding: 1.5rem;
  font-style: italic;
  color: #6c757d;
}

/* Contact Page Styles */
.contact-info-card,
.contact-form-card {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form-card form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-card .row {
  flex: 1;
}

.contact-form-card .col-12:last-child {
  margin-top: auto;
}

.contact-form-card .btn {
  text-align: center;
}

.icon-circle-small {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #AD976E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: #212529;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #AD976E;
  color: #fff;
  transform: translateY(-2px);
}

.map-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.map-section {
  padding: 0;
}

.map-card {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.map-card iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 0.25rem;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--dark-color);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gray);
}

.container.mt-4 {
  margin-top: 2rem !important;
  position: relative;
  z-index: 1;
}

.hero-img-link::before {
  content: '\f06e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 15;
  pointer-events: none;
}

.hero-img-link:hover::before {
  opacity: 1;
}

/* Hero Carousel Fade Transition */
.hero-section .carousel-item {
  transition: opacity 1s ease-in-out;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.hero-section .carousel-item.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

/* Loading Overlay for AJAX */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}
