/* Property detail — Santina Homes */

.pd {
  padding-top: 170px;
  padding-bottom: 60px;
}

.pd .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.pd-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.pd-breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

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

.pd-breadcrumb span {
  margin: 0 6px;
}

/* Top bar: title + price */
.pd-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.pd-badges {
  position: static;
  margin-bottom: 8px;
}

.pd-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.pd-location {
  font-size: 15px;
  color: var(--text-light);
}

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

.pd-price {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.pd-price-reduced {
  font-size: 13px;
  color: #d4534b;
  margin-top: 4px;
  text-decoration: line-through;
}

.pd-ref {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Gallery */
.pd-gallery {
  margin-bottom: 32px;
}

.pd-gallery-main {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--sand);
  margin-bottom: 10px;
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.pd-gallery-prev,
.pd-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--navy);
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pd-gallery-prev:hover,
.pd-gallery-next:hover {
  background: #fff;
}

.pd-gallery-prev { left: 12px; }
.pd-gallery-next { right: 12px; }

.pd-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.pd-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: .6;
}

.pd-thumb:hover {
  opacity: .85;
}

.pd-thumb-active {
  border-color: var(--navy);
  opacity: 1;
}

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

/* Content: main + sidebar */
.pd-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

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

/* Specs bar */
.pd-specs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 24px;
  background: #f8f7f5;
  border-radius: 6px;
  margin-bottom: 32px;
}

.pd-spec {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-spec svg {
  width: 20px;
  height: 20px;
  fill: var(--brown);
  opacity: .7;
}

.pd-spec-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.pd-spec-label {
  font-size: 13px;
  color: var(--text-light);
}

/* Sections */
.pd-section {
  margin-bottom: 32px;
}

.pd-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Description */
.pd-description {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

/* Features grid */
.pd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-features li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 16px;
}

.pd-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

/* Details table — 2 column layout */
.pd-section .pd-details-table {
  display: block;
  width: 100%;
}

.pd-section .pd-details-table tbody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.pd-details-table tr {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pd-details-table th,
.pd-details-table td {
  padding: 0;
  border: none;
  font-size: 14px;
  text-align: left;
}

.pd-details-table th {
  color: var(--text-light);
  font-weight: 400;
}

.pd-details-table td {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* Sidebar */
.pd-sidebar {
  position: sticky;
  top: 120px;
}

.pd-contact-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.pd-contact-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.pd-contact-ref {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.pd-form-field {
  margin-bottom: 14px;
}

.pd-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.pd-form-field input,
.pd-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.pd-form-field input:focus,
.pd-form-field textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.pd-form-field textarea {
  resize: vertical;
}

.pd-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: .3px;
}



.pd-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.pd-form-status {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.pd-form-status.success {
  color: #2d8a4e;
}

.pd-form-status.error {
  color: #d4534b;
}

.pd-back-link {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
  transition: color var(--transition);
}

.pd-back-link:hover {
  color: var(--navy);
}

/* Similar properties */
.pd-similar {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.pd-similar h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.pd-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Responsive */
@media (max-width: 960px) {
  .pd-content {
    grid-template-columns: 1fr;
  }
  .pd-sidebar {
    position: static;
    max-width: 500px;
  }
  .pd-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .pd {
    padding-top: 140px;
  }
  .pd-top {
    flex-direction: column;
    gap: 12px;
  }
  .pd-top-right {
    text-align: left;
  }
  .pd-specs-bar {
    gap: 16px;
    padding: 16px;
  }
  .pd-features {
    grid-template-columns: 1fr;
  }
  .pd-section .pd-details-table tbody {
    grid-template-columns: 1fr;
  }
  .pd-similar-grid {
    grid-template-columns: 1fr;
  }
  .pd-gallery-main {
    aspect-ratio: 4/3;
  }
  .pd-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 45px;
  }
  .pd-contact-card {
    padding: 20px;
  }
}

/* Mobile gallery thumbs — bigger touch targets */
@media (max-width: 680px) {
  .pd-gallery-thumbs {
    gap: 8px;
    padding-bottom: 8px;
  }
  .pd-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
  }
  .pd-gallery-prev,
  .pd-gallery-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .pd-form-field input,
  .pd-form-field textarea {
    min-height: 44px;
    font-size: 16px;
    padding: 12px;
  }
  .pd-submit-btn {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Description collapse */
.pd-description--collapsed {
  max-height: calc(1.75em * 8);
  overflow: hidden;
  position: relative;
}
.pd-description--collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.pd-description--expanded {
  max-height: none;
  overflow: visible;
}
.pd-description--expanded::after {
  display: none;
}
.pd-readmore-wrap {
  text-align: center;
  margin-top: 16px;
}
.pd-readmore-wrap.hidden {
  display: none;
}

/* Agent card in contact form */
.pd-agent-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8e4df;
}
.pd-agent-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #e8e4df;
}
.pd-agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-agent-info {
  display: flex;
  flex-direction: column;
}
.pd-agent-name {
  font-family: var(--font-serif, 'The Seasons', serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy, #031A61);
  line-height: 1.3;
}
.pd-agent-role {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light, #666);
  margin-top: 3px;
}

/* Consent checkboxes */
.pd-form-consent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pd-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light, #666);
  cursor: pointer;
  line-height: 1.4;
}
.pd-checkbox input[type=checkbox] {
  margin-top: 2px;
  flex-shrink: 0;
}
.pd-checkbox a {
  color: var(--navy, #031A61);
  text-decoration: underline;
  text-underline-offset: 2px;
}
