/* Card wrapper for content sections inside pp-main */
.hp-card {
  background: #fff;
  border: 1px solid var(--mirka-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.hp-section-sub {
  color: var(--mirka-text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.hp-highlights-section .gr-feature-list ul,
.hp-facilities-section .gr-feature-list ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}
.hp-highlights-section .gr-feature-list li,
.hp-facilities-section .gr-feature-list li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: #1f2937;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}
.hp-highlights-section .gr-feature-list li p,
.hp-facilities-section .gr-feature-list li p {
  margin: 0;
}
.hp-highlights-section .gr-feature-list .gr-feature-icon,
.hp-facilities-section .gr-feature-list .gr-feature-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}
.hp-highlights-section .gr-feature-list .gr-feature-icon svg,
.hp-facilities-section .gr-feature-list .gr-feature-icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}
.hp-facilities-section.is-hp-facilities-moved [data-hp-facilities-source] {
  display: none;
}
.hp-facilities-section .gr-feature-list > ul {
  display: none !important;
}
.hp-facilities-section.is-hp-facilities-moved .gr-feature-list > ul {
  display: none !important;
}

.property-page-overlay .pp-amenity .is-gr-feature-strike-text-part,
.property-page-overlay .pp-amenity.is-gr-feature-strike-text > span:last-child {
  text-decoration-line: line-through !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.8;
}

.property-page-overlay .pp-amenity .is-gr-feature-strike-icon-part,
.property-page-overlay .pp-amenity.is-gr-feature-strike-icon > span:first-child {
  position: relative;
  opacity: 0.65;
}

.property-page-overlay .pp-amenity .is-gr-feature-strike-icon-part::after,
.property-page-overlay .pp-amenity.is-gr-feature-strike-icon > span:first-child::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 50%;
  border-top: 1.5px solid currentColor;
  transform: rotate(-8deg);
  transform-origin: center;
  opacity: 0.9;
}

.gr-btn.hp-brochure-btn,
.hp-brochure-btn {
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  width: 100%;
  color: #ffffff !important;
}

.gr-btn.hp-brochure-btn:link,
.gr-btn.hp-brochure-btn:visited,
.gr-btn.hp-brochure-btn:hover,
.gr-btn.hp-brochure-btn:active,
.hp-brochure-btn:link,
.hp-brochure-btn:visited,
.hp-brochure-btn:hover,
.hp-brochure-btn:active {
  color: #ffffff !important;
}

.gr-btn.hp-brochure-btn *,
.hp-brochure-btn * {
  color: inherit !important;
}

.hp-location-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.hp-location-content .gr-rich p {
  margin: 0 0 12px;
}
.hp-poi-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.hp-poi-item {
  border-bottom: 1px solid #e8edf4;
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hp-poi-name {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.hp-poi-name::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--mirka-accent);
  flex: 0 0 auto;
}
.hp-poi-distance {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.hp-location-map {
  border: 1px solid var(--mirka-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  min-height: 220px;
}
.hp-location-map img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Available Units Carousel ─── */
.hp-units-carousel {
  position: relative;
}
.hp-unit {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.hp-unit.active {
  display: grid;
}
.hp-unit-image {
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--mirka-border);
}
.hp-unit-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.hp-unit-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--mirka-primary);
  margin-bottom: 12px;
}
.hp-unit-info table {
  width: 100%;
  border-collapse: collapse;
}
.hp-unit-info tr {
  border-bottom: 1px solid #eef2f7;
}
.hp-unit-info td {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
  vertical-align: top;
}
.hp-unit-info td:first-child {
  color: #475569;
  font-weight: 600;
  width: 45%;
}
.hp-units-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}
.hp-units-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--mirka-border);
  background: #fff;
  color: var(--mirka-primary);
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.hp-units-btn:hover {
  background: var(--mirka-accent);
  border-color: var(--mirka-accent);
  color: #fff;
}
.hp-units-counter {
  font-size: 15px;
  font-weight: 600;
  color: var(--mirka-text-muted);
  min-width: 60px;
  text-align: center;
}

/* ─── Floor-plan lightbox ─── */
.hp-plan-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: calc(env(safe-area-inset-top, 0px) + 132px) 16px 16px;
  box-sizing: border-box;
}
.hp-plan-lightbox.open {
  display: flex;
}
.hp-plan-lightbox img {
  max-width: 95vw;
  max-height: calc(95vh - 132px);
  object-fit: contain;
}
.hp-plan-lightbox-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 142px);
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(19, 27, 67, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}
.hp-plan-lightbox-close:hover {
  background: rgba(26, 36, 86, 0.95);
}

@media (max-width: 900px) {
  .hp-plan-lightbox {
    padding-top: calc(env(safe-area-inset-top, 0px) + 124px);
  }
  .hp-plan-lightbox img {
    max-height: calc(95vh - 124px);
  }
  .hp-plan-lightbox-close {
    top: calc(env(safe-area-inset-top, 0px) + 132px);
  }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hp-unit.active {
    grid-template-columns: 1fr;
  }
  .hp-location-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hp-card {
    padding: 14px;
  }
  .hp-unit-info h3 {
    font-size: 18px;
  }
  .hp-units-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .hp-highlights-section .gr-feature-list ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hp-poi-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hp-poi-item {
    padding: 10px 0;
  }
  .hp-poi-distance {
    font-size: 12px;
  }
  #hpUnitTypeCards {
    grid-template-columns: 1fr;
  }
}
