.bp-single {
  --bp-bg: #f6f7f4;
  --bp-surface: #ffffff;
  --bp-surface-muted: #f4f6f1;
  --bp-border: rgba(22, 31, 22, 0.09);
  --bp-border-strong: rgba(22, 31, 22, 0.14);
  --bp-text: #18201b;
  --bp-text-soft: #5b675f;
  --bp-text-muted: #7b857e;
  --bp-accent: #1f6b57;
  --bp-accent-soft: #e3f0eb;
  --bp-shadow: 0 16px 40px rgba(19, 27, 20, 0.08);
  --bp-shadow-soft: 0 12px 30px rgba(19, 27, 20, 0.05);
  color: var(--bp-text);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at top left, rgba(223, 235, 227, 0.7), transparent 28rem),
    linear-gradient(180deg, var(--bp-bg) 0, #fff 26rem);
}

.bp-single__shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.bp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.bp-back--bottom {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Hero (single thumbnail) */
.bp-hero {
  margin-bottom: 2rem;
  border-radius: 24px;
  overflow: hidden;
  background: #e8ece8;
  box-shadow: var(--bp-shadow-soft);
}

.bp-hero__link {
  display: block;
  position: relative;
  cursor: pointer;
}

.bp-hero__link img {
  width: 100%;
  height: clamp(320px, 36vw, 520px);
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bp-hero__link:hover img {
  transform: scale(1.025);
}

.bp-hero__count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Masonry gallery */
.bp-gallery-section {
  overflow: hidden;
}

.bp-gallery__count {
  color: var(--bp-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.bp-masonry {
  columns: 3;
  column-gap: 0.75rem;
}

.bp-masonry__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  background: #e8ece8;
  position: relative;
  cursor: pointer;
}

.bp-masonry__item--hidden {
  display: none;
}

.bp-masonry--expanded .bp-masonry__item--hidden {
  display: block;
}

.bp-masonry__item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.bp-masonry__item:hover img {
  transform: scale(1.04);
}

.bp-masonry__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.65rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
}

.bp-gallery__toggle {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--bp-border-strong);
  border-radius: 14px;
  background: var(--bp-surface-muted);
  color: var(--bp-accent);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.bp-gallery__toggle:hover {
  background: var(--bp-accent-soft);
  border-color: var(--bp-accent);
}

.bp-single__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.75rem;
  align-items: start;
}

.bp-single__left {
  display: grid;
  gap: 1.25rem;
}

.bp-panel,
.bp-pricing-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 26px;
  box-shadow: var(--bp-shadow-soft);
}

.bp-panel {
  padding: clamp(1.2rem, 2vw, 1.75rem);
}

.bp-single__intro {
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

.bp-single__intro-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bp-single__intro-copy {
  min-width: 0;
}

.bp-single__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--bp-text);
}

.bp-single__location,
.bp-map-card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  color: var(--bp-text-soft);
  line-height: 1.5;
}

.bp-single__location svg,
.bp-map-card__location svg {
  color: var(--bp-accent);
  flex: 0 0 auto;
}

.bp-single__price-chip {
  min-width: 190px;
  align-self: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(145deg, #173e34, #265f50);
  color: #fff;
  box-shadow: 0 18px 36px rgba(23, 62, 52, 0.18);
}

.bp-single__price-chip-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.bp-single__price-chip strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #fff;
}

.bp-single__price-chip small {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.82);
}

.bp-single__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.bp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.bp-badge--primary {
  background: var(--bp-accent-soft);
  color: var(--bp-accent);
}

.bp-badge--muted {
  background: var(--bp-surface-muted);
  color: var(--bp-text-soft);
}

.bp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.bp-stats:empty {
  display: none;
}

.bp-stat {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: var(--bp-surface-muted);
  border: 1px solid rgba(31, 107, 87, 0.08);
}

.bp-stat__label,
.bp-detail__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-text-muted);
}

.bp-stat__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bp-text);
}

.bp-single__desc {
  color: var(--bp-text-soft);
  line-height: 1.8;
  font-size: 1rem;
}

.bp-section {
  display: grid;
  gap: 1rem;
}

.bp-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bp-section__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-text);
}

.bp-section__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bp-accent);
  text-decoration: none;
}

.bp-section__link:hover {
  text-decoration: underline;
}

.bp-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.bp-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--bp-surface-muted);
  border: 1px solid rgba(22, 31, 22, 0.06);
}

.bp-detail--text {
  background: var(--bp-surface-muted);
}

.bp-detail__value {
  color: var(--bp-text);
  font-weight: 600;
  line-height: 1.6;
}

.bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--bp-surface-muted);
  border: 1px solid rgba(22, 31, 22, 0.08);
  color: var(--bp-text);
  font-size: 0.92rem;
}

.bp-tag--check::before {
  content: "\2713";
  color: var(--bp-accent);
  font-weight: 700;
}

.bp-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.bp-map-card--empty {
  grid-template-columns: 1fr;
}

.bp-map-card--full {
  grid-template-columns: 1fr;
}

.bp-map-card__frame {
  min-height: 320px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--bp-border);
  background: #dde6e1;
}

.bp-map-card__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bp-map-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6f8f5, #eef2ee);
  border: 1px solid var(--bp-border);
}

.bp-map-card__location {
  margin: 0;
  color: var(--bp-text);
  font-weight: 600;
}

.bp-map-card__notice {
  margin: 0;
  color: var(--bp-text-soft);
  line-height: 1.65;
}

.bp-floorplans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.bp-floorplan {
  padding: 0.75rem;
  border-radius: 22px;
  background: var(--bp-surface-muted);
  border: 1px solid rgba(22, 31, 22, 0.08);
  text-align: center;
}

.bp-floorplan img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.bp-floorplan span {
  display: block;
  margin-top: 0.75rem;
  color: var(--bp-text-soft);
  font-size: 0.9rem;
}


/* Lightbox */
.bp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.bp-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 120px);
  max-height: calc(100% - 80px);
}

.bp-lightbox__stage img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

.bp-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}

.bp-lightbox__close:hover {
  opacity: 1;
}

.bp-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.8rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}

.bp-lightbox__arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.22);
}

.bp-lightbox__arrow--prev {
  left: 16px;
}

.bp-lightbox__arrow--next {
  right: 16px;
}

.bp-lightbox__footer {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 80%;
}

.bp-lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.4;
}

.bp-lightbox__counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .bp-lightbox__stage {
    max-width: calc(100% - 24px);
  }

  .bp-lightbox__arrow {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .bp-lightbox__arrow--prev {
    left: 6px;
  }

  .bp-lightbox__arrow--next {
    right: 6px;
  }
}

.bp-pricing-card {
  position: sticky;
  top: 2rem;
  overflow: hidden;
}

.bp-pricing-card__header {
  padding: 1.45rem 1.5rem 1.35rem;
  background: linear-gradient(150deg, #173e34, #265f50);
  color: #fff;
}

.bp-pricing-card__header h3 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.bp-pricing-price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
}

.bp-pricing-price span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.bp-pricing-card__body {
  padding: 1rem 1.5rem;
}

.bp-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(22, 31, 22, 0.08);
  color: var(--bp-text-soft);
  line-height: 1.5;
}

.bp-pricing-row:last-child {
  border-bottom: 0;
}

.bp-pricing-row strong,
.bp-pricing-row a {
  color: var(--bp-text);
  font-weight: 700;
  text-decoration: none;
}

.bp-pricing-row a:hover {
  text-decoration: underline;
}

.bp-pricing-card__cta {
  padding: 0 1.5rem 1.5rem;
}

.bp-pricing-card__cta .btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 1080px) {
  .bp-single__body {
    grid-template-columns: 1fr;
  }

  .bp-pricing-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .bp-masonry {
    columns: 2;
  }

  .bp-single__intro-head,
  .bp-section__heading,
  .bp-map-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .bp-single__price-chip {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .bp-single__shell {
    width: min(100% - 1rem, 1180px);
  }

  .bp-panel,
  .bp-pricing-card {
    border-radius: 22px;
  }

  .bp-hero {
    border-radius: 18px;
  }

  .bp-masonry {
    columns: 1;
  }

  .bp-masonry__item,
  .bp-map-card__frame,
  .bp-map-card__body,
  .bp-floorplan {
    border-radius: 14px;
  }

  .bp-pricing-row {
    flex-direction: column;
    gap: 0.2rem;
  }
}
