/* ==========================================================================
   PROPERTY DETAIL PAGE ENHANCEMENTS (Housing.com style)
   ========================================================================== */

/* Immersive Gallery */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.property-gallery .gallery-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative;
}
.property-gallery .gallery-item {
  position: relative;
  background: var(--paper-soft);
  cursor: pointer;
  overflow: hidden;
}
.property-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.property-gallery .gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
@media (max-width: 980px) {
  .property-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: 16/10;
  }
  .property-gallery .gallery-item:not(.gallery-main) { display: none; }
}

/* Sticky Nav Bar */
.property-nav-bar {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 60px; /* Below main header */
  background: rgba(251,248,244,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  padding: 16px 0 0;
  margin-bottom: 32px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.property-nav-bar::-webkit-scrollbar { display: none; }
.property-nav-bar a {
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.property-nav-bar a:hover,
.property-nav-bar a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Highlights Row */
.property-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 140px;
}
.highlight-item .hl-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-item .hl-icon svg { width: 22px; height: 22px; }
.highlight-item > div {
  display: flex;
  flex-direction: column;
}
.highlight-item span {
  font-size: 0.76rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 650;
}
.highlight-item b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

/* Floor Plans Table */
.fp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-top: 16px; }
.fp-card-header { padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.fp-table { width: 100%; border-collapse: collapse; }
.fp-table th, .fp-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.fp-table th { background: var(--paper-soft); font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.fp-table td { font-size: 0.95rem; color: var(--ink-soft); }
.fp-table tr:last-child td { border-bottom: none; }
.fp-table .view-plan-link { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.fp-table .view-plan-link:hover { color: var(--red); }

/* EMI Calculator */
.emi-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .emi-box { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
.emi-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.emi-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emi-control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.emi-control input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}
.emi-result {
  background: var(--paper-soft);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
}
.emi-result span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.emi-result .emi-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--red-deep);
  font-weight: 650;
  margin: 10px 0;
}

/* Redesigned Contact Card */
.sticky-contact-card {
  position: sticky;
  top: 140px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.card-header {
  background: var(--paper-soft);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.card-header .builder-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red-deep);
}
.card-header .seller-type {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  font-weight: 650;
  margin-bottom: 2px;
}
.card-header b {
  font-size: 1.1rem;
  color: var(--ink);
}
.card-price-band {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.card-price-band span {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.card-price-band .price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--red-deep);
  font-weight: 650;
}
.contact-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form h4 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}
.contact-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.contact-form input:focus {
  border-color: var(--red);
  outline: none;
  background: #fff;
}
.contact-form .btn {
  margin-top: 8px;
  padding: 16px;
  font-size: 1rem;
}
/* Redesigned Amenities Grid */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 24px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-top: 16px; }
.amenity { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.amenity .am-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.amenity .am-icon svg { width: 32px; height: 32px; color: var(--ink-soft); stroke-width: 1.5; fill: none; stroke: currentColor; }
.amenity span { font-size: 0.84rem; color: var(--ink); line-height: 1.3; font-weight: 500; }
/* Overview Section Enhancements */
.overview-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; margin: 24px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.overview-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.overview-header h2 { font-size: 1.3rem; margin: 0; }
.overview-header .brochure-btn { color: #6228d7; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
@media(max-width: 768px) { .overview-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px) { .overview-grid { grid-template-columns: 1fr; } }
.overview-item { display: flex; align-items: flex-start; gap: 12px; }
.overview-item .ov-icon { width: 24px; height: 24px; color: var(--ink-soft); flex-shrink: 0; margin-top: 2px; }
.overview-item .ov-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.overview-item .ov-text { display: flex; flex-direction: column; }
.overview-item .ov-label { font-size: 0.85rem; color: var(--ink-faint); font-weight: 500; margin-bottom: 4px; }
.overview-item .ov-value { font-size: 1rem; color: var(--ink); font-weight: 500; }
.overview-actions { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
@media(max-width: 600px) { .overview-actions { grid-template-columns: 1fr; } }
.btn-action-light { background: #e9e5f5; color: #6228d7; font-weight: 600; padding: 12px; border-radius: var(--radius-sm); border: none; display: flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; transition: background 0.2s; }
.btn-action-light:hover { background: #dcd6f0; }
.btn-action-primary { background: #6228d7; color: #fff; font-weight: 600; padding: 12px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: background 0.2s; text-align: center; }
.btn-action-primary:hover { background: #4b1bad; }\n/* Floor Plan Table Redesign */\n.fp-box { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-md); overflow: hidden; margin-top: 16px; }\n.fp-box-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-strong); cursor: pointer; }\n.fp-box-header h3 { margin: 0; font-size: 1.25rem; color: #000; }\n.fp-table { width: 100%; border-collapse: collapse; }\n.fp-table th, .fp-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink); }\n.fp-table th { background: #f8f9fa; font-weight: 700; color: #000; }\n.fp-table tr:last-child td { border-bottom: none; }\n.fp-view-link { color: #5a738e; font-weight: 500; text-decoration: none; transition: color 0.2s; }\n.fp-view-link:hover { color: var(--red); }\n@media(max-width:600px){ .fp-table th, .fp-table td { padding: 12px 16px; font-size: 0.85rem; } }\n