/* ─── PROPERTY DETAIL MODAL ─── */
.property-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(26, 46, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  padding: 20px;
}
.property-overlay.active {
  opacity: 1;
  visibility: visible;
}

.property-modal {
  background: var(--snow);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.property-overlay.active .property-modal {
  transform: translateY(0) scale(1);
}

.property-modal::-webkit-scrollbar { width: 6px; }
.property-modal::-webkit-scrollbar-track { background: transparent; }
.property-modal::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 3px; }

/* ─── HERO IMAGE ─── */
.pm-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.pm-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,46,26,0.6) 0%, transparent 50%);
}
.pm-hero-text {
  position: absolute;
  bottom: 24px;
  left: 32px;
  right: 32px;
  color: #fff;
}
.pm-hero-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.pm-hero-text p {
  font-size: 0.88rem;
  opacity: 0.85;
}

/* ─── CLOSE BUTTON ─── */
.pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--forest);
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.pm-close:hover {
  background: #fff;
  transform: scale(1.1);
}

/* ─── QUICK STATS ─── */
.pm-stats {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(45,74,45,0.08);
}
.pm-stat {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid rgba(45,74,45,0.08);
}
.pm-stat:last-child { border-right: none; }
.pm-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--forest);
}
.pm-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-top: 4px;
}

/* ─── LOCATION ─── */
.pm-location {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  font-size: 0.88rem;
  color: var(--stone);
  border-bottom: 1px solid rgba(45,74,45,0.08);
}
.pm-location-icon {
  color: var(--sage);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── GALLERY ─── */
.pm-gallery {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(45,74,45,0.08);
}
.pm-gallery-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 14px;
}
.pm-gallery-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.pm-gallery-scroll::-webkit-scrollbar { height: 6px; }
.pm-gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.pm-gallery-scroll::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 3px; }
.pm-gallery-item {
  flex-shrink: 0;
  width: 220px;
  height: 165px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cloud);
  scroll-snap-align: start;
}
.pm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.pm-gallery-item:hover img {
  transform: scale(1.05);
  cursor: pointer;
}

/* ─── LIGHTBOX ─── */
.pm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.pm-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.pm-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  user-select: none;
  -webkit-user-drag: none;
}
.pm-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}
.pm-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.pm-lightbox-prev,
.pm-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}
.pm-lightbox-prev { left: 20px; }
.pm-lightbox-next { right: 20px; }
.pm-lightbox-prev:hover,
.pm-lightbox-next:hover { background: rgba(255,255,255,0.3); }
.pm-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .pm-lightbox-prev,
  .pm-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .pm-lightbox-prev { left: 10px; }
  .pm-lightbox-next { right: 10px; }
  .pm-lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }
}

/* ─── CONTENT SECTIONS ─── */
.pm-section {
  padding: 28px 32px;
  border-bottom: 1px solid rgba(45,74,45,0.08);
}
.pm-section:last-child { border-bottom: none; }

.pm-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 16px;
}
.pm-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(45,74,45,0.1);
}

.pm-about p {
  font-size: 0.92rem;
  color: var(--stone);
  line-height: 1.75;
  margin-bottom: 14px;
}
.pm-about p:last-child { margin-bottom: 0; }

/* ─── THINGS TO DO GRID ─── */
.pm-activities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pm-activity {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(45,74,45,0.06);
  transition: all 0.3s;
}
.pm-activity:hover {
  border-color: rgba(45,74,45,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.pm-activity-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138,154,108,0.1);
  border-radius: 10px;
}
.pm-activity-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 4px;
}
.pm-activity-text p {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.5;
}

/* ─── SUSTAINABILITY ─── */
.pm-sustain-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-sustain-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.6;
}
.pm-sustain-icon {
  color: var(--sage);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── BOOK CTA ─── */
.pm-cta {
  padding: 24px 32px 32px;
  display: flex;
  gap: 12px;
}
.pm-cta-book {
  flex: 1;
  padding: 16px;
  background: var(--warm);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.pm-cta-book:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,135,59,0.3);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .property-modal {
    border-radius: 16px 16px 0 0;
    max-height: 100vh;
    max-height: 100dvh;
    margin-top: auto;
  }
  .property-overlay {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }
  .pm-hero { height: 240px; border-radius: 16px 16px 0 0; }
  .pm-hero-text { left: 20px; right: 20px; bottom: 20px; }
  .pm-hero-text h2 { font-size: 1.5rem; }
  .pm-stats { flex-wrap: wrap; }
  .pm-stat { min-width: 33%; }
  .pm-location { padding: 16px 20px; }
  .pm-gallery { padding: 20px; }
  .pm-gallery-item { width: 180px; height: 135px; }
  .pm-section { padding: 24px 20px; }
  .pm-activities { grid-template-columns: 1fr; }
  .pm-cta { padding: 20px; }
}
