/* Property Detail Page Styles */

.property-detail-section {
  padding: 40px 20px;
  min-height: 60vh;
}

.property-detail-section .container-fluid {
  padding-left: 40px;
  padding-right: 40px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: #B90909;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #8b0707;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #666;
}

/* Property Title Section */
.property-title {
  font-size: 36px;
  font-weight: 700;
  color: #1B1B1B;
  margin-bottom: 10px;
  line-height: 1.3;
}

.property-location {
  font-size: 18px;
  color: #666;
  margin-bottom: 0;
  font-weight: 500;
}

.property-location i {
  color: #B90909;
  margin-right: 8px;
  font-size: 20px;
}

.property-price {
  font-size: 32px;
  font-weight: 700;
  color: #B90909;
  margin-bottom: 10px;
}

.property-badges .badge {
  font-size: 14px;
  padding: 10px 18px;
  margin-right: 10px;
  font-weight: 600;
  border-radius: 6px;
  background: #f8f9fa;
  color: #1B1B1B;
  border: 2px solid #e0e0e0;
}

.property-badges .badge.bg-primary {
  background: #B90909 !important;
  color: #fff;
  border-color: #B90909;
}

.property-badges .badge.bg-success {
  background: #25d366 !important;
  color: #fff;
  border-color: #25d366;
}

/* Gallery Styles */
.property-gallery {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-image-container {
  width: 100%;
  height: 550px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.featured-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.featured-image-container:hover img {
  transform: scale(1.05);
}

.gallery-images-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.gallery-images-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.gallery-image-item {
  flex: 0 0 auto;
  width: 200px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-image-item:hover {
  border-color: #B90909;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(185, 9, 9, 0.2);
}

.gallery-image-item.active {
  border-color: #B90909;
  box-shadow: 0 4px 15px rgba(185, 9, 9, 0.3);
}

.gallery-image-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-image-item:hover img {
  transform: scale(1.1);
}

/* Detail Cards */
.detail-card {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.detail-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1B1B1B;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #B90909;
  display: inline-block;
}

.detail-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #666;
  position: relative;
  padding-left: 35px;
  transition: all 0.3s ease;
}

.feature-list li:hover {
  color: #B90909;
  padding-left: 40px;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Property Features */
.property-features {
  text-align: center;
}

.feature-box {
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  border: 2px solid #e0e0e0;
}

.feature-box:hover {
  background: linear-gradient(135deg, #B90909 0%, #8b0707 100%);
  color: #fff;
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(185, 9, 9, 0.4);
  border-color: #B90909;
}

.feature-box i {
  font-size: 42px;
  color: #B90909;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.feature-box:hover i {
  color: #fff;
  transform: scale(1.2);
}

.feature-box h5 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1B1B1B;
  transition: color 0.3s ease;
}

.feature-box:hover h5,
.feature-box:hover p {
  color: #fff;
}

.feature-box p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Amenities Grid */
.amenities-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.amenity-item i {
  font-size: 22px;
  color: #B90909;
  transition: all 0.3s ease;
}

/* Floor Plans */
.floor-plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.floor-plan-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floor-plan-item:hover {
  box-shadow: 0 8px 30px rgba(185, 9, 9, 0.2);
  transform: translateY(-8px);
  border-color: #B90909;
}

.floor-plan-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 12px;
  margin-right: auto;
  margin-left: auto;
}

.floor-plan-item:hover img {
  transform: scale(1.05);
}

/* Contact Form Card */
.contact-form-card {
  position: sticky;
  top: 100px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: #1B1B1B;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #B90909;
}

.contact-form-card .form-control {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
  border-color: #B90909;
  box-shadow: 0 0 0 0.2rem rgba(185, 9, 9, 0.15);
  transform: translateY(-2px);
}

.quick-contact {
  text-align: center;
}

.quick-contact h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #1B1B1B;
}

.contact-btn {
  display: block;
  padding: 14px 24px;
  background: linear-gradient(135deg, #B90909 0%, #8b0707 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(185, 9, 9, 0.2);
}

.contact-btn:hover {
  background: linear-gradient(135deg, #8b0707 0%, #B90909 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(185, 9, 9, 0.4);
}

.contact-btn i {
  margin-right: 10px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #1da851 0%, #25d366 100%);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Floating Buttons */
.floating-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  background: linear-gradient(135deg, #B90909 0%, #8b0707 100%);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 24px;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(185, 9, 9, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.15);
  color: #fff;
  box-shadow: 0 10px 30px rgba(185, 9, 9, 0.5);
}

.call-btn {
  right: 40px;
}

.whatsapp-btn.floating-btn {
  right: 120px;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn.floating-btn:hover {
  background: linear-gradient(135deg, #1da851 0%, #25d366 100%);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .property-detail-section .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .property-title {
    font-size: 28px;
  }

  .property-price {
    font-size: 24px;
    margin-top: 15px;
  }

  .featured-image-container {
    height: 400px;
  }

  .contact-form-card {
    position: relative;
    top: 0;
    margin-top: 30px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
  }

  .call-btn {
    right: 20px;
    bottom: 20px;
  }

  .whatsapp-btn.floating-btn {
    right: 85px;
    bottom: 20px;
  }
}

@media (max-width: 575px) {
  .property-detail-section {
    padding: 30px 10px;
  }

  .property-detail-section .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .property-title {
    font-size: 24px;
  }

  .property-price {
    font-size: 20px;
  }

  .featured-image-container {
    height: 280px;
  }

  .gallery-image-item {
    width: 150px;
    height: 110px;
  }

  .detail-card {
    padding: 20px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .floor-plans-container {
    grid-template-columns: 1fr;
  }
}

/* Loading and Error States */
#loading-state,
#error-state {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}
