/* Property detail — Dacha-style layout, Siri Homes black & white system */

body.page-property-detail {
  background: #ffffff;
  color: #111111;
}

body.page-property-detail .header__nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #111111;
}

body.page-property-detail .header__nav a,
body.page-property-detail .header__nav button,
body.page-property-detail .header__nav .logo-text {
  color: #111111;
}

body.page-property-detail .header__menu-toggle span {
  background: #111111;
}

body.page-property-detail .header__enquire {
  padding: 0.625rem 1.25rem;
  font-size: 0.6875rem;
}

@media (max-width: 768px) {
  body.page-property-detail .header__links {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  }

  body.page-property-detail .header__links a {
    color: #111111;
  }
}

body.page-property-detail .header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
}

.property-detail {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.property-detail--loading {
  opacity: 0.55;
  pointer-events: none;
}

.property-detail__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: stretch;
  max-width: 1320px;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Full-width image gallery */

.property-gallery {
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-top: 0;
}

.property-gallery__stage {
  position: relative;
  width: 100%;
  height: clamp(280px, 58vh, 620px);
  background: #0a0a0a;
  overflow: hidden;
}

.property-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
  user-select: none;
}

.property-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.property-gallery__nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.property-gallery__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.property-gallery__nav--prev {
  left: clamp(1rem, 3vw, 2rem);
}

.property-gallery__nav--next {
  right: clamp(1rem, 3vw, 2rem);
}

.property-gallery__expand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.property-gallery__expand:hover {
  background: rgba(0, 0, 0, 0.75);
}

.property-gallery__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Fullscreen lightbox */

.property-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  padding: 1rem;
}

.property-gallery-lightbox[hidden] {
  display: none;
}

.property-gallery-lightbox__image {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.property-gallery-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.property-gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.property-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.property-gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.property-gallery-lightbox__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.property-gallery-lightbox__nav--prev {
  left: clamp(0.75rem, 3vw, 2rem);
}

.property-gallery-lightbox__nav--next {
  right: clamp(0.75rem, 3vw, 2rem);
}

.property-gallery-lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.property-gallery-open {
  overflow: hidden;
}

/* Two-column layout — shell grid defined above */

/* Intro / price block */

.property-detail__intro {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.property-detail__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.property-detail__price-value {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #111111;
}

.property-detail__currency {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  background: #ebe9e6;
  border: none;
}

.property-detail__tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6560;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.property-detail__title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: #333333;
  margin: 0 0 1.5rem;
  line-height: 1.45;
}

.property-detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.property-detail__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: #f5f5f5;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #333333;
}

.property-detail__stats svg {
  flex-shrink: 0;
  color: #111111;
  width: 16px;
  height: 16px;
}

.property-detail__ref {
  font-size: 0.75rem;
  color: #888888;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Sections */

.property-detail__section {
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.property-detail__section:last-child {
  margin-bottom: 0;
}

.property-detail__section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 600;
  color: #111111;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.property-detail__calc {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

.property-detail__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
}

.property-detail__features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #444444;
}

.property-detail__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000000;
}

.property-detail__description {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #555555;
}

.property-detail__description p {
  margin: 0 0 1rem;
}

.property-detail__description p:last-child {
  margin-bottom: 0;
}

.property-detail__map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f5;
  min-height: 320px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.property-detail__map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.property-detail__permit {
  font-size: 0.9375rem;
  color: #333333;
  margin: 0 0 0.5rem;
}

.property-detail__permit a,
.property-detail__permit strong {
  color: #111111;
  font-weight: 600;
}

.property-detail__permit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.property-detail__permit-note {
  font-size: 0.8125rem;
  color: #888888;
  margin: 0;
}

/* Calculators */

.property-calc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.property-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.property-calc__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555555;
}

.property-calc__input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 0.875rem;
  color: #111111;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.property-calc__input:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.property-calc__input-wrap {
  position: relative;
}

.property-calc__input-wrap .property-calc__input {
  padding-right: 2rem;
}

.property-calc__suffix {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  color: #888888;
}

.property-calc__result-label {
  display: block;
  font-size: 0.8125rem;
  color: #666666;
  margin-bottom: 0.25rem;
}

.property-calc__result-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.02em;
}

.property-calc__results-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

/* Sidebar */

.property-detail__sidebar {
  position: relative;
  align-self: stretch;
  height: 100%;
  min-height: 0;
}

.property-detail__sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: -webkit-sticky;
  position: sticky;
  top: 5.75rem;
  z-index: 10;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.property-detail__sidebar-inner::-webkit-scrollbar {
  width: 4px;
}

.property-detail__sidebar-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.property-detail__sidebar-card {
  padding: 1.25rem 1.375rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.property-detail__sidebar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
  margin: 0 0 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.property-detail__permit-card .property-detail__permit {
  margin-bottom: 0.375rem;
}

.property-detail__contact-card {
  padding: 1.375rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.property-detail__contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.property-detail__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.15s ease;
}

.property-detail__action-btn svg {
  display: block;
  flex-shrink: 0;
}

.property-detail__action-btn:hover {
  background: #2a2a2a;
}

.property-detail__viewing {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.property-detail__agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0.75rem;
}

.property-detail__agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.property-detail__agent-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 0.15rem;
}

.property-detail__agent-role {
  font-size: 0.8125rem;
  color: #888888;
}

.property-detail__share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  color: #666666;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.property-detail__share:hover {
  color: #111111;
}

.property-detail__promo {
  padding: 1.375rem;
  background: #ebe9e6;
  border: none;
  border-radius: 16px;
}

.property-detail__promo h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111111;
  margin: 0 0 0.5rem;
}

.property-detail__promo p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #555555;
  margin: 0 0 1.125rem;
}

.property-detail__promo-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-detail__empty {
  padding: clamp(8rem, 12vw, 10rem) 0 4rem;
  text-align: center;
}

.property-detail__empty h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.property-detail__empty p {
  color: #666666;
  margin-bottom: 1.5rem;
}

/* Responsive */

@media (max-width: 1100px) {
  .property-calc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .property-detail__shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .property-detail__sidebar-inner {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .property-gallery__stage {
    height: clamp(240px, 50vh, 400px);
  }

  .property-gallery__nav {
    width: 40px;
    height: 40px;
  }

  .property-gallery__nav--prev {
    left: 0.75rem;
  }

  .property-gallery__nav--next {
    right: 0.75rem;
  }

  .property-detail__stats {
    gap: 1rem 1.5rem;
  }

  .property-detail__title {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
  }

  .property-calc__grid {
    grid-template-columns: 1fr;
  }

  .property-detail__contact-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}
