body {
  background: #f8f9fa;
}

.text-orange {
  color: #eb8944;
}

.btn-orange {
  background-color: #eb8944;
  color: white;
  border: none;
}

.btn-orange:hover {
  background-color: #d4783a;
  color: white;
}

.btn-orange-outline {
  border: 2px solid #eb8944;
  color: #eb8944;
  background: white;
  font-weight: 600;
}

.btn-orange-outline:hover {
  background: #eb8944;
  color: white;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.property-gallery-card {
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.property-gallery-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.property-gallery-count {
  font-size: 0.82rem;
  color: #6b7280;
}

.property-gallery-main .carousel-inner {
  border-radius: 14px;
  overflow: hidden;
}

.property-main-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.property-main-preview.is-empty {
  min-height: 300px;
}

.property-main-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: #eef2f7;
  cursor: zoom-in;
}

.property-main-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.14) 100%);
  pointer-events: none;
}

.property-main-preview-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

.gallery-slide-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  cursor: zoom-in;
  background: #eef2f7;
}

.property-gallery-thumbs {
  position: relative;
  margin-top: 0.9rem;
}

.gallery-thumb-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.gallery-thumb-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.gallery-thumb-track::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: calc((100% - 3rem) / 5);
  min-width: 110px;
  max-width: 170px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.gallery-thumb.is-active {
  border-color: #eb8944;
  box-shadow: 0 10px 24px rgba(235, 137, 68, 0.2);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.gallery-thumb-nav:hover {
  background: #eb8944;
}

.gallery-thumb-nav.prev {
  left: -12px;
}

.gallery-thumb-nav.next {
  right: -12px;
}

.badge-sharing {
  background: #e8f4fd;
  color: #2980b9;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

.property-tabs a {
  color: #555;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
}

.property-tabs a.active {
  color: #eb8944;
  border-bottom-color: #eb8944;
}

/* Lightbox / Image Modal */
.lightbox-img {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-lightbox .modal-body {
  padding: 0;
  background: #000;
}

.modal-lightbox .modal-content {
  background: #000;
  border: none;
}

.modal-lightbox img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.modal-lightbox .btn-close {
  filter: invert(1);
}

.modal-backdrop.show {
  opacity: 0.35;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-popup-dialog {
  width: min(86vw, 960px);
  max-width: min(86vw, 960px);
  margin: 1.5rem auto;
}

.lightbox-popup-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

.lightbox-popup-body {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.lightbox-popup-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 760px);
  position: relative;
}

.lightbox-popup-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.15);
}

@media (max-width: 991.98px) {
  .lightbox-popup-dialog {
    width: min(94vw, 860px);
    max-width: min(94vw, 860px);
    margin: 1rem auto;
  }

  .lightbox-popup-body {
    border-radius: 20px;
    padding: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .lightbox-popup-dialog {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .lightbox-popup-body {
    border-radius: 14px;
    padding: 0.5rem;
  }

  .lightbox-popup-image-wrap {
    min-height: 72vh;
  }

  .lightbox-popup-image {
    max-height: 72vh;
    border-radius: 10px;
  }
}

.modal-lightbox .modal-header {
  border-bottom: 1px solid #333;
}

.lightbox-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.lightbox-close-btn:hover {
  background: rgba(235, 137, 68, 0.9);
}

.rule-allowed {
  background: #eafaf1;
  border: 1px solid #d4efdf;
  color: #1e8449;
}

.rule-blocked {
  background: #fdf2f8;
  border: 1px solid #f1c6e1;
  color: #c0392b;
}

.landmark-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.map-container {
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: #fff8f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.bg-green-light {
  background: #eafaf1;
  color: #1a6637;
}

.bg-blue-light {
  background: #eaf0ff;
  color: #1a4fa8;
}

.bg-purple-light {
  background: #f4eaff;
  color: #7b3fbd;
}

/* Sticky Contact Sidebar */
.contact-sidebar {
  position: sticky;
  top: 100px;
}

.contact-sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Similar properties */
.similar-properties-section {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.similar-scroll-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.similar-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.similar-scroll-track {
  display: flex;
  gap: 0.9rem;
}

.similar-scroll-item {
  flex: 0 0 calc((100% - 1.8rem) / 3);
  min-width: 0;
}

.similar-property-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.similar-property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.similar-property-media {
  position: relative;
  background: #eef2f7;
}

.similar-property-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.similar-property-media-empty {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
}

.similar-property-type {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 11px;
  font-weight: 700;
}

.similar-property-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.similar-property-title {
  color: #111827;
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.5em;
}

.similar-property-location {
  color: #6b7280;
  font-size: 0.82rem;
}

.similar-property-price {
  color: #eb8944;
  font-size: 0.98rem;
  font-weight: 800;
}

.similar-property-link {
  color: #2c6e91;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .similar-properties-section {
    padding: 1rem;
  }

  .similar-scroll-item {
    flex-basis: 88%;
  }

  .similar-property-media img,
  .similar-property-media-empty {
    height: 165px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .similar-scroll-item {
    flex-basis: calc((100% - 0.9rem) / 2);
  }
}