/* ════════════════════════════════
   EASYACRES — PARK FIVE (PROPERTY DETAIL) PAGE
   Page-specific additions only. Header, easyacres-cta and footer
   reuse common.css / style.css as-is.
   Load AFTER reset.css, common.css, style.css.
════════════════════════════════ */

/* ────────────────────────────────
   BREADCRUMB
──────────────────────────────── */
.pd-breadcrumb-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--surface);
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--graphite);
}

.pd-breadcrumb a {
  color: var(--graphite);
  transition: color var(--duration-fast);
}

.pd-breadcrumb a:hover {
  color: var(--navy);
}

.pd-breadcrumb span:last-child {
  color: var(--navy);
  font-weight: 600;
}

/* ────────────────────────────────
   GALLERY
──────────────────────────────── */
.pd-gallery-section {
  padding: 28px 0 0;
}

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

/* Single photo: no side column exists, so the main image takes the
   full width instead of leaving an empty 1fr gap next to it. */
.pd-gallery--single {
  grid-template-columns: 1fr;
}

/* Two photos: only one thumb renders (never a duplicate of the main
   image), so it fills the whole side column instead of half of it. */
.pd-gallery--double .pd-gallery__side {
  grid-template-rows: 1fr;
}

.pd-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.pd-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-gallery__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.pd-gallery__thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-gallery__more {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 47, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* ────────────────────────────────
   SUMMARY — title, badges, price, actions
──────────────────────────────── */
.pd-summary-section {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--surface);
}

.pd-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.pd-summary__badge {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.pd-summary__main {
  width: calc(100% - 370px);
}

.pd-summary__main h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 12px;
}

.pd-summary__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--graphite);
  margin-bottom: 16px;
}

.pd-summary__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-summary__tags span {
  padding: 8px 16px;
  border: 1px solid var(--surface);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--graphite);
}

.pd-summary__price {
  text-align: right;
  flex-shrink: 0;
}

.pd-summary__price-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}

.pd-summary__price-value {
  display: block;
  font-size: 34px;
  color: var(--navy);
  margin-bottom: 16px;
}

.pd-summary__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ────────────────────────────────
   BODY LAYOUT — content + sticky sidebar
──────────────────────────────── */
.pd-body {
  padding-top: 70px;
  padding-bottom: 70px;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.pd-content {
  min-width: 0;
}

.pd-block {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--surface);
}

.pd-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pd-block h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

.pd-block p {
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 14px;
}

.pd-block p:last-child {
  margin-bottom: 0;
}

.pd-highlights {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.pd-highlights li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--graphite);
  line-height: 1.5;
}

.pd-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
}

.pd-table th,
.pd-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--surface);
  white-space: nowrap;
}

.pd-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.pd-table th:first-child,
.pd-table td:first-child {
  padding-left: 0;
}

.pd-table td {
  color: var(--graphite);
}

.pd-table td:last-child {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  border-bottom: 0px;
}

.pd-note {
  font-size: 12.5px;
  color: var(--steel);
  font-style: italic;
}

.pd-payplan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.pd-payplan__step {
  text-align: center;
  padding: 26px 16px;
  background: var(--ivory);
  border-radius: var(--radius-md);
}

.pd-payplan__step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 6px;
}

.pd-payplan__step span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}

.pd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.pd-stats__item {
  text-align: center;
  padding: 22px 14px;
  background: var(--ivory);
  border-radius: var(--radius-md);
}

.pd-stats__item strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}

.pd-stats__item span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}

.pd-regulatory {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-regulatory__fields {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.pd-regulatory__fields .pd-regulatory__field:not(:last-child){
  margin-right: 40px;
}
.pd-regulatory__field span {
  display: block;
  font-size: 12px;
  color: var(--graphite);
  margin-bottom: 6px;
}

.pd-regulatory__field strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.pd-regulatory__qr {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  object-fit: contain;
  border: 1px solid var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.pd-floorplan img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface);
}

.pd-listed-via {
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 8px;
}

.pd-callout {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 36px;
  border-bottom: none !important;
}

.pd-location-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-location-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--graphite);
}

.pd-location-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
}

.pd-location-list strong {
  color: var(--navy);
}

/* ────────────────────────────────
   SIDEBAR — agent card + enquiry form
──────────────────────────────── */
.pd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 110px;
}

.pd-agent-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.pd-agent-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

.pd-agent-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.pd-agent-card span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}

.pd-agent-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-agent-card__actions .btn {
  width: 100%;
}

.pd-enquiry-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: var(--white);
}

.pd-enquiry-card h3 {
  color: var(--white);
  font-size: 19px;
  margin-bottom: 8px;
}

.pd-enquiry-card p {
  color: var(--surface);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.pd-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-enquiry-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--white);
}

.pd-enquiry-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.pd-enquiry-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.pd-enquiry-form__phone {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pd-enquiry-form__phone span {
  padding: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.pd-enquiry-form__phone input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent;
}

.pd-enquiry-form .btn {
  margin-top: 6px;
  width: 100%;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}
.pd-enquiry-form .btn:hover {
  background: var(--ivory);
}
.pd-enquiry-form__status {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

.pd-enquiry-form__status:empty {
  display: none;
}

.pd-enquiry-form__status--success {
  color: #8fe3b0;
}

.pd-enquiry-form__status--error {
  color: #f3a6a6;
}

/* ────────────────────────────────
   LIGHTBOX — full-screen gallery overlay
──────────────────────────────── */
.pf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 26, 47, 0.96);
  align-items: center;
  justify-content: center;
}

.pf-lightbox.is-open {
  display: flex;
}

.pf-lightbox__stage {
  max-width: 88vw;
  max-height: 84vh;
}

.pf-lightbox__stage img {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.pf-lightbox__stage canvas {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--white);
}

.pd-brochure__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ────────────────────────────────
   BROCHURE VIEWER — toolbar + thumbnail rail + canvas stage,
   styled like a native PDF reader rather than a browser <iframe> embed
──────────────────────────────── */
.pf-lightbox--pdf {
  padding: 24px;
}

.pdv {
  width: 100%;
  max-width: 1200px;
  height: 88vh;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdv__toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 54px;
  background: var(--navy);
  color: var(--white);
}

.pdv__filename {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.pdv__pager,
.pdv__zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
}

.pdv__page-input {
  width: 40px;
  padding: 5px 2px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--white);
  font-size: var(--text-sm);
}

.pdv__zoom-level {
  width: 42px;
  text-align: center;
}

.pdv__icon-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.pdv__icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pdv__download {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pdv__body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.pdv__sidebar {
  flex: 0 0 130px;
  width: 130px;
  overflow-y: auto;
  background: var(--navy);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    width var(--duration-base),
    flex-basis var(--duration-base),
    padding var(--duration-base),
    opacity var(--duration-base);
}

.pdv--sidebar-collapsed .pdv__sidebar {
  flex-basis: 0;
  width: 0;
  padding: 14px 0;
  opacity: 0;
  overflow: hidden;
}

.pdv__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-xxs);
  cursor: pointer;
  transition:
    border-color var(--duration-fast),
    background var(--duration-fast);
}

.pdv__thumb:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pdv__thumb.is-active {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.pdv__thumb canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.pdv__stage {
  flex: 1;
  min-width: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--steel);
}

.pdv__stage canvas {
  display: none;
  background: var(--white);
  box-shadow: var(--shadow-md);
  flex: 0 0 auto;
}

.pdv__status {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 320px;
}

.pdv__status:empty {
  display: none;
}

@media (max-width: 767px) {
  .pf-lightbox--pdf {
    padding: 0;
  }

  .pdv {
    max-width: none;
    height: 100vh;
    border-radius: 0;
  }

  .pdv__toolbar {
    gap: 8px;
    padding: 0 10px;
  }

  .pdv__filename {
    display: none;
  }

  .pdv__sidebar {
    position: absolute;
    top: 54px;
    bottom: 0;
    left: 0;
    z-index: 5;
    box-shadow: 6px 0 16px rgba(0, 0, 0, 0.35);
  }

  .pdv--sidebar-collapsed .pdv__sidebar {
    display: none;
  }

  .pdv__stage {
    padding: 14px;
  }
}

.pf-lightbox__close,
.pf-lightbox__prev,
.pf-lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.pf-lightbox__close:hover,
.pf-lightbox__prev:hover,
.pf-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pf-lightbox__close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
}

.pf-lightbox__prev,
.pf-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}

.pf-lightbox__prev {
  left: 24px;
}

.pf-lightbox__next {
  right: 24px;
}

.pf-lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 991px) {
  .pf-lightbox__prev {
    left: 10px;
  }

  .pf-lightbox__next {
    right: 10px;
  }

  .pf-lightbox__prev,
  .pf-lightbox__next {
    width: 44px;
    height: 44px;
  }

  .pf-lightbox__close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
}

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pd-sidebar > * {
    flex: 1 1 280px;
  }

  .pd-gallery {
    grid-template-rows: 360px;
  }
}

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

  .pd-gallery__main {
    height: 260px;
  }

  .pd-gallery__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    height: 140px;
  }

  .pd-gallery--double .pd-gallery__side {
    grid-template-columns: 1fr;
  }

  .pd-summary {
    align-items: flex-start;
  }

  .pd-summary__price {
    text-align: left;
    width: 100%;
  }

  .pd-summary__actions {
    justify-content: flex-start;
  }

  .pd-highlights {
    grid-template-columns: 1fr;
  }

  .pd-payplan {
    grid-template-columns: 1fr;
  }

  .pd-regulatory {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-sidebar {
    flex-direction: column;
  }
  .pd-summary__main {
    width: 100%;
  }
}
