/* Image lightbox — property detail page (.pd-gallery) only */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pd-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.pd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, 0.96);
  cursor: pointer;
}

.pd-lightbox__panel {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 1rem 0;
}

.pd-lightbox__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 10;
  pointer-events: auto;
}

.pd-lightbox__counter {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.02em;
}

.pd-lightbox__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pd-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
}

.pd-lightbox__stage {
  position: relative;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.pd-lightbox__img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 85%;
  max-height: 65vh;
}

.pd-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pd-lightbox__img.is-visible {
  opacity: 1;
  transform: scale(1);
}

.pd-lightbox__nav {
  pointer-events: auto;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.pd-lightbox__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) scale(1.05);
}

.pd-lightbox__nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.pd-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.pd-lightbox__nav--prev {
  left: 2rem;
}

.pd-lightbox__nav--next {
  right: 2rem;
}

/* Bottom Thumbnails Slider */
.pd-lightbox__thumbs-wrap {
  width: 100%;
  max-width: 700px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.5rem 1.5rem;
  pointer-events: auto;
  z-index: 10;
}

.pd-lightbox__thumbs-wrap::-webkit-scrollbar {
  display: none;
}

.pd-lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

.pd-lightbox__thumb-item {
  width: 60px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.pd-lightbox__thumb-item.is-active {
  opacity: 1;
  border-color: #ffffff;
  transform: scale(1.05);
}

.pd-lightbox__thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-lightbox__thumb-item:hover {
  opacity: 0.8;
}

body.pd-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

/* Detail gallery — cursor indicator */
.pd-detail-page .pd-main-photo,
.pd-detail-page .pd-grid-photo-wrap img {
  cursor: zoom-in;
}

@media (max-width: 991.98px) {
  .pd-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .pd-lightbox__nav--prev {
    left: 0.75rem;
  }

  .pd-lightbox__nav--next {
    right: 0.75rem;
  }

  .pd-lightbox__header {
    padding: 0.75rem 1.25rem;
  }

  .pd-lightbox__thumbs-wrap {
    padding: 0.5rem 1rem;
  }
}

