/**
 * Findar V46110 — Premium PDP additions SAFE.
 * Scoped strictly to elements introduced by this patch; does not redefine
 * or override any existing .fmp-trulia-* rule so nothing else regresses.
 * Reuses the --ftv3-* tokens already defined in findar-mobile-premium.css.
 */

/* Sticky anchor tab bar */
.fmp-pdp-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid var(--ftv3-line, #dfe5ee);
  margin: 18px 0 6px;
  padding: 4px 2px;
}
/* Intentionally not position:sticky — the theme already stacks several
   fixed/sticky elements (mobile nav, contact panel); a non-sticky strip
   avoids z-index/overlap regressions while keeping the same visual tabs. */
.fmp-pdp-tabs::-webkit-scrollbar { display: none; }
.fmp-pdp-tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ftv3-muted, #5f6b7a);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.fmp-pdp-tabs a:hover,
.fmp-pdp-tabs a.is-active {
  color: var(--ftv3-ink, #111827);
  border-bottom-color: var(--ftv3-blue, #164bff);
}

/* Key info chips row */
.fmp-pdp-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 4px 0 24px;
}
.fmp-pdp-chip {
  border: 1px solid var(--ftv3-line, #dfe5ee);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--ftv3-soft, #f7f9fc);
}
.fmp-pdp-chip span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ftv3-muted, #5f6b7a);
  margin-bottom: 4px;
}
.fmp-pdp-chip strong {
  font-size: 15px;
  font-weight: 900;
  color: var(--ftv3-ink, #111827);
}

/* Checklist-style detail grid: adds a check glyph without altering layout rules */
.fmp-pdp-checklist div {
  position: relative;
}
.fmp-pdp-checklist div strong::before {
  content: "✓";
  color: var(--ftv3-green, #10983f);
  font-weight: 900;
  margin-right: 6px;
}

/* Sun exposure panel */
.fmp-pdp-sun h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fmp-pdp-badge-new {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: var(--ftv3-green, #10983f);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.fmp-pdp-sun-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.fmp-pdp-sun-stats div {
  border: 1px solid var(--ftv3-line, #dfe5ee);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.fmp-pdp-sun-stats span { font-size: 20px; display: block; margin-bottom: 6px; }
.fmp-pdp-sun-stats strong { display: block; font-size: 17px; font-weight: 900; color: var(--ftv3-ink, #111827); }
.fmp-pdp-sun-stats em { font-size: 12px; font-style: normal; color: var(--ftv3-muted, #5f6b7a); }
.fmp-pdp-sun-note {
  font-size: 14px;
  color: var(--ftv3-ink, #111827);
  background: var(--ftv3-soft, #f7f9fc);
  border-radius: 8px;
  padding: 10px 12px;
}
.fmp-pdp-sun-disclaimer {
  font-size: 12px;
  color: var(--ftv3-muted, #5f6b7a);
  margin-top: 8px;
}

/* Quartier explorer sub-tabs (visual category strip) */
.fmp-pdp-quartier-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
}
.fmp-pdp-quartier-tabs span {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ftv3-line, #dfe5ee);
  font-size: 13px;
  font-weight: 800;
  color: var(--ftv3-muted, #5f6b7a);
  white-space: nowrap;
}
.fmp-pdp-quartier-tabs span.is-active {
  color: #fff;
  background: var(--ftv3-ink, #111827);
  border-color: var(--ftv3-ink, #111827);
}
.fmp-pdp-quartier-note {
  font-size: 13px;
  color: var(--ftv3-muted, #5f6b7a);
  margin-top: 10px;
}

/* Sidebar premium badge */
.fmp-pdp-premium-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
  color: var(--ftv3-green, #10983f);
  background: rgba(16, 152, 63, .08);
  border: 1px solid rgba(16, 152, 63, .25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* Sidebar trust list */
.fmp-pdp-trust-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ftv3-line, #dfe5ee);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fmp-pdp-trust-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fmp-pdp-trust-list strong {
  font-size: 13px;
  font-weight: 850;
  color: var(--ftv3-ink, #111827);
}
.fmp-pdp-trust-list span {
  font-size: 12px;
  color: var(--ftv3-muted, #5f6b7a);
}

@media (max-width: 780px) {
  .fmp-pdp-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fmp-pdp-sun-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
