/* v2.9.42 — property detail extras: sticky anchor nav, area & pricing
   table, inline EMI calculator layout, video frame, FAQ accordion and
   related projects. Light theme, golden #CCA814 accents. No glass, no
   animation: state changes are instant, so there is nothing for
   reduced-motion settings to suppress. All selectors are v42-scoped
   (plus .page-property anchor targets) so this sheet is safe to load
   site-wide. */

/* Sticky anchor nav: sits directly under the 2-row fixed header
   (measured heights 130px desktop / 97px mobile, v2.9.46). Links match the
   header nav typography; the active link gets the same gold underline.
   v2.9.44: the sticky top follows the header's CURRENT height via
   --header-h (see the v2.9.44 block at the end of this file). */
.v42-anchor-nav {
  position: sticky; top: 130px; z-index: 20;
  background: #fff; border-top: 1px solid #e5e8eb; border-bottom: 1px solid #e5e8eb;
}
.v42-anchor-nav-inner { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.v42-anchor-nav-inner::-webkit-scrollbar { display: none; }
.v42-anchor-nav a {
  display: inline-block; padding: 13px 2px 12px; white-space: nowrap;
  font-size: 13px; font-weight: 650; color: #33342f; position: relative;
}
.v42-anchor-nav a:hover { color: #7A5F00; }
.v42-anchor-nav a.is-active { color: #20211f; font-weight: 750; }
.v42-anchor-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: #CCA814; border-radius: 2px;
}
.v42-anchor-nav a:focus-visible { outline: 2px solid #CCA814; outline-offset: 2px; }

/* Anchor targets clear header + nav + 12px (190px desktop, 149px
   mobile, v2.9.45). Fragment scrolling ADDS scroll-margin-top to the html
   scroll-padding-top already set by style-refinement.css (151px
   desktop / 110px mobile, v2.9.45) — verified in the harness: a 190px
   margin landed the target at 341px (190 + 151). So the margin here
   is the remainder: 39px at both widths (39 + 151 = 190 desktop,
   39 + 110 = 149 mobile). */
.page-property #overview,
.page-property #price,
.page-property #floor-plan,
.page-property #amenities,
.page-property #gallery { scroll-margin-top: 39px; }

/* Area & pricing + EMI sidebar. */
.v42-price-section h2 { margin: 8px 0 10px; }
.v42-price-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px; margin-top: 28px; align-items: start;
}
.v42-price-grid--single { grid-template-columns: minmax(0, 1fr); }
.v42-price-grid--emi-only .v42-emi-card { max-width: 560px; }
.v42-table-wrap { overflow-x: auto; border: 1px solid #e5e8eb; border-radius: 14px; background: #fff; }
.v42-price-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.v42-price-table th,
.v42-price-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #ece9e0; vertical-align: top; }
.v42-price-table thead th { background: #f7f5ee; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #64655f; }
.v42-price-table tbody tr:last-child td { border-bottom: 0; }
.v42-price-table td:last-child,
.v42-price-table th:last-child { white-space: nowrap; font-weight: 700; color: #20211f; }
.v42-price-note { font-size: 12px; color: #72746b; margin: 12px 2px 0; }

/* EMI card reuses the site-wide .calculator / .field / .form-grid /
   .result styles and the app.js data-calculator="emi" handler; only
   the heading size and result stacking are scoped here. */
.v42-emi-card h3 { margin: 6px 0 14px; font-size: 20px; }
.v42-emi-card [data-result] span { display: block; font-size: 12px; }
.v42-emi-card [data-result] strong { display: block; font-size: 24px; margin: 6px 0; }
.v42-emi-card .small { margin-top: 14px; }

/* Video. */
.v42-video-section h2 { margin: 8px 0 10px; }
.v42-video-frame {
  max-width: 880px; margin-top: 28px; aspect-ratio: 16 / 9;
  background: #141512; border: 1px solid #e5e8eb; border-radius: 16px; overflow: hidden;
}
.v42-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* FAQs: accessible accordion, all panels closed by default. */
.v42-faq-section h2 { margin: 8px 0 10px; }
.v42-faq-list { display: grid; gap: 12px; margin-top: 28px; max-width: 860px; }
.v42-faq-item { background: #fff; border: 1px solid #e5e8eb; border-radius: 12px; overflow: hidden; }
.v42-faq-item h3 { margin: 0; }
.v42-faq-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; padding: 17px 20px; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 15px; font-weight: 700; color: #20211f;
}
.v42-faq-toggle:focus-visible { outline: 2px solid #CCA814; outline-offset: -2px; }
.v42-faq-chevron { color: #7A5F00; font-weight: 800; flex: none; }
.v42-faq-panel { padding: 0 20px 18px; font-size: 14px; color: #4a4b45; }
.v42-faq-panel p { margin: 0; }
.v42-faq-panel[hidden] { display: none; }

/* Related projects reuse the listing card markup; only section
   spacing is scoped here. */
.v42-related-section h2 { margin: 8px 0 10px; }
.v42-related-section .grid { margin-top: 28px; }

@media (max-width: 980px) {
  .v42-price-grid { grid-template-columns: minmax(0, 1fr); }
  .v42-price-grid--emi-only .v42-emi-card { max-width: none; }
}
@media (max-width: 760px) {
  .v42-anchor-nav { top: 97px; }
  .v42-anchor-nav-inner { gap: 22px; justify-content: flex-start; }
  .page-property #overview,
  .page-property #price,
  .page-property #floor-plan,
  .page-property #amenities,
  .page-property #gallery { scroll-margin-top: 39px; }
}
/* Phones: the price table must fit the viewport — the price column is
   the primary data and must never be the clipped one. Drop the 480px
   min-width, tighten padding/type, let config labels wrap. The wrapper
   keeps overflow-x:auto as a safety net for unusually long labels. */
@media (max-width: 560px) {
  .v42-price-table { min-width: 0; font-size: 13px; }
  .v42-price-table th,
  .v42-price-table td { padding: 12px 10px; }
}

/* v2.9.44 — anchor nav follows the header's CURRENT height (full when
   the nav row shows, short when row 2 is hidden) via --header-h, set
   live by assets/header-scroll.js. Fallbacks are the full heights, so
   no-JS renders exactly as before. The 39px scroll-margin-top above is
   UNCHANGED on purpose: it composes with the now-dynamic
   scroll-padding-top (current header height + 21px), so anchor targets
   still land at header + nav + clearance in both nav states. The
   active-link calculation in v42-detail.js already measures the live
   header height and needs no change. */
.v42-anchor-nav { top: var(--header-h, 130px); }
@media (max-width: 760px) {
  /* v2.9.45: mobile fallback 151px → 89px (slim mobile header).
     v2.9.46: mobile fallback 89px → 97px (bigger logo). */
  .v42-anchor-nav { top: var(--header-h, 97px); }
}
