/* ================================================================
   PROPERTY DETAILS PAGE — 99acres-Inspired Layout
   Append this to style.css
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&display=swap');

/* ── Page Shell ─────────────────────────────────────────────── */
.pd-page {
  background: #f4f6fb;
  min-height: 100vh;
  padding: 24px 0 60px;
  font-family: 'Nunito Sans', sans-serif;
}

.pd-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #666;
  margin-bottom: 18px;
}

.pd-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.pd-breadcrumb a:hover { text-decoration: underline; }

.pd-breadcrumb span:last-child { color: #333; font-weight: 600; }

/* ── Top Meta Row ───────────────────────────────────────────── */
.pd-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  border: 1px solid #e8ecf5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pd-price-big {
  font-size: 32px;
  font-weight: 800;
  color: #1a56db;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 6px;
}

.pd-config-label {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.pd-address {
  font-size: 13px;
  color: #6b7280;
}

.pd-status-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pd-status-rent {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pd-status-sale {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.pd-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 10px 10px 0 0;
  border: 1px solid #e8ecf5;
  border-bottom: none;
  overflow: hidden;
  width: fit-content;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.pd-tab {
  padding: 11px 28px;
  background: none;
  border: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.pd-tab.active {
  color: #1a56db;
  border-bottom-color: #1a56db;
  background: #f0f5ff;
}

.pd-tab:hover:not(.active) { color: #374151; }

/* ── Body: Two Columns ──────────────────────────────────────── */
.pd-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

/* ── Section Cards ──────────────────────────────────────────── */
.pd-section-card,
.pd-gallery-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  overflow: hidden;
}

.pd-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f0f2f8;
}

/* ── Gallery ────────────────────────────────────────────────── */
.pd-gallery-main {
  position: relative;
  background: #111;
  overflow: hidden;
}

.pd-gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: opacity 0.16s ease;
}

.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}

.pd-arrow:hover { background: rgba(0,0,0,0.8); }

.pd-arrow-left { left: 14px; }
.pd-arrow-right { right: 14px; }

.pd-img-counter {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Nunito Sans', sans-serif;
}

/* Thumbnails strip */
.pd-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: #fafafa;
  border-top: 1px solid #f0f2f8;
}

.pd-thumb {
  flex: 0 0 82px;
  height: 62px;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.pd-thumb.active { opacity: 1; border-color: #1a56db; }

.pd-no-image {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9ca3af;
  background: #f9fafb;
}

/* ── Specs Grid (99acres style) ─────────────────────────────── */
.pd-specs-grid {
  padding: 8px 22px 20px;
}

.pd-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #f3f4f8;
}

.pd-spec-row:last-child { border-bottom: none; }

.pd-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-right: 1px solid #f3f4f8;
}

.pd-spec-item:last-child { border-right: none; padding-left: 20px; }

.pd-spec-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.pd-spec-label {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.pd-spec-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

.pd-spec-price {
  color: #1a56db;
  font-size: 16px;
}

.pd-unit-link {
  font-size: 11px;
  color: #1a56db;
  text-decoration: none;
  margin-left: 6px;
  font-weight: 400;
}

/* ── Description ────────────────────────────────────────────── */
.pd-description-text {
  padding: 16px 22px 22px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
}

/* ── Right Column: Contact Card ─────────────────────────────── */
.pd-right { position: sticky; top: 20px; }

.pd-contact-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  overflow: hidden;
  margin-bottom: 16px;
}

.pd-contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8faff;
  border-bottom: 1px solid #e8ecf5;
}

.pd-contact-avatar {
  width: 44px;
  height: 44px;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.pd-contact-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.pd-contact-sub {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pd-contact-sub::before {
  content: '✓';
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.pd-contact-price-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #f0f5ff;
  border-bottom: 1px solid #e8ecf5;
}

.pd-cp-label {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pd-cp-price {
  font-size: 18px;
  font-weight: 800;
  color: #1a56db;
}

/* Contact Form */
.pd-contact-form {
  padding: 16px 20px;
}

.pd-form-group {
  margin-bottom: 14px;
}

.pd-form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-form-group input,
.pd-form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13.5px;
  color: #1f2937;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}

.pd-form-group input:focus,
.pd-form-group textarea:focus {
  border-color: #1a56db;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.pd-form-group input::placeholder,
.pd-form-group textarea::placeholder {
  color: #d1d5db;
}

.pd-contact-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1a56db, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26,86,219,0.3);
}

.pd-contact-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1a56db);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.4);
}

.pd-contact-btn:active { transform: translateY(0); }

.pd-contact-note {
  font-size: 10.5px;
  color: #9ca3af;
  text-align: center;
  padding: 10px 20px 16px;
  line-height: 1.5;
}

.pd-social-proof {
  background: #fff7ed;
  border-top: 1px solid #fed7aa;
  padding: 10px 20px;
  font-size: 12.5px;
  color: #92400e;
  font-weight: 600;
  text-align: center;
}

/* Price Summary Card */
.pd-price-summary-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 16px 20px;
}

.pd-ps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13.5px;
  color: #4b5563;
  border-bottom: 1px dashed #e5e7eb;
}

.pd-ps-row:last-child { border-bottom: none; }

.pd-ps-total {
  font-weight: 700;
  font-size: 15px;
  color: #1f2937;
}

.pd-ps-emi {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #f3f4f8;
}

/* Alerts */
.alert {
  padding: 11px 14px;
  border-radius: 8px;
  margin: 0 20px 14px;
  font-size: 13px;
  font-weight: 600;
}

.alert-success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pd-body {
    grid-template-columns: 1fr;
  }

  .pd-right { position: static; }

  .pd-gallery-main img { height: 280px; }

  .pd-top-meta {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .pd-spec-row { grid-template-columns: 1fr; }
  .pd-spec-item { border-right: none; padding-left: 0; }
  .pd-spec-item:last-child { padding-left: 0; border-top: 1px solid #f3f4f8; }
  .pd-price-big { font-size: 26px; }
}