.pd-page {
  color: #1f2937;
}

.pd-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.pd-crumbs {
  margin-bottom: 16px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #526071;
}

.pd-crumbs a {
  color: #1f4f8f;
  text-decoration: none;
}

.pd-crumbs a:hover {
  text-decoration: underline;
}

.pd-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.pd-gallery-main {
  min-height: 430px;
}

.pd-gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pd-thumb {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  background: #cfd6df;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}

.pd-thumb:hover img {
  transform: scale(1.03);
}

.pd-gallery-main .pd-thumb,
.pd-gallery-main .pd-thumb img {
  min-height: 430px;
}

.pd-gallery-side .pd-thumb,
.pd-gallery-side .pd-thumb img {
  min-height: 209px;
}

.pd-header {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pd-panel {
  border-radius: 0;
  background: #fff;
  border: 1px solid #d6dce5;
  padding: 22px 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.pd-price {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  color: #0f4d2f;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pd-status {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ecf4ed;
  color: #1f6f43;
  border: 1px solid #cde2d2;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pd-address {
  margin-top: 14px;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.pd-meta {
  margin-top: 14px;
  font-size: 16px;
  color: #4b5563;
}

.pd-facts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pd-facts.pd-facts--with-lot {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pd-fact {
  border: 1px solid #dce2ea;
  border-radius: 0;
  padding: 11px 9px;
  text-align: center;
  background: #f8fafb;
}

.pd-fact img {
  width: 21px;
  height: 21px;
  margin: 0 auto 8px;
  opacity: 0.86;
}

.pd-fact strong {
  display: block;
  font-size: clamp(17px, 1.45vw, 20px);
  color: #0f172a;
  line-height: 1.15;
  word-break: break-word;
}

.pd-fact span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #596779;
}

.pd-tours {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-tour-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.pd-tour-link.bg-greenBrand {
  background: #006938;
  border-color: #006938;
  color: #ffffff;
}

.pd-tour-link.bg-greenBrand:hover {
  background: #005b30;
  border-color: #005b30;
  color: #ffffff;
}

.pd-tour-button {
  cursor: pointer;
  font-family: inherit;
}

.pd-section {
  margin-top: 16px;
}

.pd-section h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.pd-remarks {
  margin-top: 12px;
  color: #384453;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-line;
}

.pd-groups {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pd-group h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 14px;
  align-items: start;
}

.pd-item {
  border-top: 1px solid #edf2f7;
  padding-top: 4px;
}

.pd-item label {
  display: block;
  color: #6b7280;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-item span {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.pd-rooms-table {
  margin-top: 12px;
}

.pd-room-row {
  display: grid;
  grid-template-columns: 170px 1fr 1.25fr 0.85fr;
  gap: 18px;
  align-items: center;
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1.35;
  border-bottom: 1px solid #edf2f7;
}

.pd-room-level,
.pd-room-type,
.pd-room-size,
.pd-room-area {
  color: #111827;
}

.pd-room-area {
  text-align: right;
  white-space: nowrap;
}

.pd-map {
  margin-top: 12px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #d5dbe5;
}

.pd-map-tabs {
  display: inline-flex;
  gap: 8px;
}

.pd-map-tab {
  border: 1px solid #d4dce8;
  background: #f7fafc;
  color: #1f2937;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.pd-map-tab.is-active {
  background: #006938;
  border-color: #006938;
  color: #ffffff;
}

.pd-map iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.pd-gallery-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 80;
  display: none;
  background: #ffffff;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.pd-gallery-modal.open {
  display: flex;
}

.pd-gallery-shell {
  width: 100%;
  height: 100%;
  max-width: 1120px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.pd-gallery-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
}

.pd-gallery-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #006938;
  background: #006938;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  line-height: 1;
}

.pd-gallery-modal #pdGallerySlider {
  position: relative;
  width: 100%;
  height: min(84vh, 860px);
  --swiffy-slider-item-count: 1;
  --swiffy-slider-item-gap: 0;
  --swiffy-slider-item-reveal: 0;
}

.pd-gallery-modal #pdGallerySlider .slider-container {
  display: grid !important;
  grid-auto-columns: 100% !important;
  grid-auto-rows: 100% !important;
  height: 100% !important;
  align-items: stretch !important;
  overflow-x: auto !important;
}

.pd-gallery-modal #pdGallerySlider .slider-container {
  border-radius: 14px;
}

.pd-gallery-modal #pdGallerySlider .slider-container > li {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.pd-gallery-modal #pdGallerySlider .slider-container img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.pd-gallery-modal .slider-nav {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c7d3c6;
  color: #006938;
}

.pd-gallery-modal .slider-nav::after {
  color: #006938;
}

.pd-gallery-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  pointer-events: none;
}

.pd-empty {
  border-radius: 0;
  border: 1px dashed #bdc8d7;
  background: #f5f8fc;
  color: #526071;
  padding: 28px;
}

@media (max-width: 1024px) {
  .pd-gallery-grid {
    grid-template-columns: 1fr;
  }

  .pd-header,
  .pd-groups {
    grid-template-columns: 1fr;
  }

  .pd-gallery-main .pd-thumb,
  .pd-gallery-main .pd-thumb img {
    min-height: 310px;
  }

  .pd-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .pd-gallery-side {
    display: none;
  }
}

@media (max-width: 640px) {
  .pd-wrap {
    padding: 18px 12px 42px;
  }

  .pd-gallery-main {
    min-height: 0;
  }

  .pd-gallery-side {
    display: none;
  }

  .pd-gallery-side .pd-thumb,
  .pd-gallery-side .pd-thumb img {
    min-height: 230px;
  }

  .pd-gallery-main .pd-thumb,
  .pd-gallery-main .pd-thumb img {
    min-height: 260px;
    height: auto;
  }

  .pd-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-room-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px;
    font-size: 16px;
  }

  .pd-room-level {
    font-weight: 700;
  }

  .pd-room-area {
    text-align: left;
  }

  .pd-gallery-shell {
    padding: 10px;
  }

  .pd-gallery-header {
    top: 10px;
    right: 10px;
  }

  .pd-gallery-modal #pdGallerySlider {
    height: 82vh;
  }
}
