html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  letter-spacing: -0.01em;
  background: #ffffff;
}

.site-header {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid #e5e5e5;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 0;
  background: #1a1a1a;
  color: #e5e5e5;
  border-top: 3px solid #dc143c;
}

/* Hero Section - Black & White with Red Accent */
.hero-section {
  padding: 120px 0 100px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-background-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-image.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 1px 8px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #e5e5e5;
}

.hero-search {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 0;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e5e5;
  border-top: 3px solid #dc143c;
}

.search-form .form-control,
.search-form .form-select {
  border: 1px solid #d4d4d4;
  border-radius: 0;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  background: #ffffff;
  color: #1a1a1a;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
  border-color: #dc143c;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
  outline: none;
}

/* Buttons - Black & White with Red Accent */
.btn {
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
  padding: 12px 24px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: #dc143c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
  background: #b01030;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.btn-outline-primary {
  border: 2px solid #dc143c;
  color: #dc143c;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #dc143c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
  border-color: #dc143c;
}

.btn-outline-primary:focus {
  outline: none;
  box-shadow: none;
  border-color: #dc143c;
}

.btn-light {
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid #ffffff;
}

.btn-light:hover {
  background: #f5f5f5;
  color: #dc143c;
  border-color: #f5f5f5;
}

/* Property Cards - Black & White */
.property-card {
  border: 1px solid #d4d4d4;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #dc143c;
}

.property-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.property-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover .property-image::after {
  opacity: 1;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.property-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 16px;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.03em;
}

.badge-featured {
  background: #dc143c;
  color: #ffffff;
}

.badge-pending {
  background: #4a4a4a;
  color: #ffffff;
}

.badge-sold {
  background: #1a1a1a;
  color: #ffffff;
}

.property-details {
  padding: 24px;
}

.property-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: #dc143c;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.property-address {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.property-location {
  color: #666666;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 400;
}

.property-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #4a4a4a;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.property-features i {
  color: #1a1a1a;
  font-size: 1rem;
}

/* Property Detail Page - Black & White */
.property-detail-carousel-compact {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #d4d4d4;
}

.property-detail-carousel-compact .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.property-detail-carousel-compact .carousel-control-prev,
.property-detail-carousel-compact .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.property-detail-carousel-compact .carousel-control-prev-icon,
.property-detail-carousel-compact .carousel-control-next-icon {
  filter: invert(1);
}

.property-detail-carousel-compact:hover .carousel-control-prev,
.property-detail-carousel-compact:hover .carousel-control-next {
  opacity: 1;
}

.property-detail-carousel-compact .carousel-control-prev:hover,
.property-detail-carousel-compact .carousel-control-next:hover {
  background: #dc143c;
  transform: translateY(-50%) scale(1.1);
}

.property-detail-carousel-compact .carousel-control-prev {
  left: 15px;
}

.property-detail-carousel-compact .carousel-control-next {
  right: 15px;
}

.property-detail-carousel-compact .carousel-indicators {
  margin-bottom: 12px;
}

.property-detail-carousel-compact .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 0;
  margin: 0 4px;
  border: 2px solid white;
  opacity: 0.6;
  transition: all 0.3s ease;
  background-color: #666666;
}

.property-detail-carousel-compact .carousel-indicators button.active {
  opacity: 1;
  width: 24px;
  border-radius: 0;
  background-color: #dc143c;
}

/* Compact Thumbnail Gallery - Black & White */
.property-thumbnails-compact {
  margin-top: 12px;
  background: white;
  padding: 12px;
  border-radius: 0;
  border: 1px solid #d4d4d4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.thumbnail-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 0;
}

.thumbnail-scroll::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 0;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
  background: #666666;
  border-radius: 0;
}

.thumbnail-scroll::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}

.property-thumbnail-compact {
  flex: 0 0 auto;
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 0;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0.7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.property-thumbnail-compact:hover {
  opacity: 0.9;
  border-color: #666666;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.property-thumbnail-compact.active {
  opacity: 1;
  border-color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.property-detail-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #dc143c;
  letter-spacing: -0.02em;
}

.property-quick-stats i {
  margin-right: 10px;
  color: #1a1a1a;
}

/* Cards - Black & White */
.card {
  border: 1px solid #d4d4d4;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  background: #ffffff;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #dc143c;
}

.bg-primary {
  background-color: #1a1a1a !important;
  border-top: 3px solid #dc143c;
}

.text-primary {
  color: #dc143c !important;
}

/* Section Styling - Black & White */
.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #666666;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.featured-section {
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

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

/* Feature Boxes - Black & White */
.feature-box {
  padding: 40px 30px;
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: #dc143c;
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 3.5rem;
  color: #dc143c;
}

/* Contact Info */
.contact-info i {
  font-size: 1.5rem;
  margin-right: 10px;
  vertical-align: middle;
  color: #dc143c;
}

/* Form Elements - Black & White */
.form-control,
.form-select {
  border-radius: 0;
  border: 1px solid #d4d4d4;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #1a1a1a;
}

.form-control:focus,
.form-select:focus {
  border-color: #dc143c;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
  outline: none;
}

/* Alerts - Black & White */
.alert {
  border-radius: 0;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-info {
  background: #f5f5f5;
  color: #1a1a1a;
  border-left: 3px solid #dc143c;
}

/* Navbar - Black & White */
.navbar {
  padding: 0.75rem 1rem;
  background: #ffffff !important;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  color: #1a1a1a !important;
}

.navbar-brand:hover {
  transform: translateY(-1px);
  color: #dc143c !important;
}

.navbar-brand i {
  margin-right: 8px;
  color: #dc143c;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px !important;
  color: #1a1a1a !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #dc143c;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #dc143c !important;
}

.nav-link:hover::after {
  width: 60%;
}

.text-dark {
  color: #1a1a1a !important;
}

.text-muted {
  color: #999999 !important;
}

.site-footer .text-muted {
  color: #999999 !important;
}

.site-footer a.text-muted:hover {
  color: #dc143c !important;
}

.site-footer h5,
.site-footer h6 {
  color: grey;
}

.site-footer .text-primary {
  color: #dc143c !important;
}

/* Responsive - Black & White */
@media (max-width: 767px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  
  .navbar-brand i {
    margin-right: 4px;
    font-size: 0.9rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: 1px solid #d4d4d4;
  }
  
  .nav-link {
    padding: 10px 16px !important;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-search {
    padding: 20px;
  }

  .property-detail-carousel-compact .carousel-item img {
    height: 300px;
  }
  
  .property-thumbnail-compact {
    width: 70px;
    height: 52px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  animation: fadeInUp 0.5s ease forwards;
}

