/**
 * Global Property Content Component
 * Presentation-only: wider desktop lists + tighter section spacing.
 * Does not alter stored content. Gallery styles are intentionally untouched.
 */

.fa-prop-richtext-section {
  margin: 0 0 1.75rem;
}

.fa-prop-richtext-section > h2,
.fa-prop-richtext-section > h3.fa-prop-richtext-section__title {
  font-size: clamp(1.3rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.95rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #c9a227;
  letter-spacing: -0.01em;
}

.fa-prop-richtext {
  --fa-pc-ink: rgba(255, 255, 255, 0.88);
  --fa-pc-muted: rgba(255, 255, 255, 0.72);
  --fa-pc-accent: #e8d48a;
  --fa-pc-gold: #c9a227;
  --fa-pc-line: rgba(201, 162, 39, 0.28);

  /* Default: full width of page content shell (no narrow prose column) */
  max-width: none;
  width: 100%;
  color: var(--fa-pc-ink);
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.125rem);
  line-height: 1.9;
  letter-spacing: 0.005em;
  text-align: right;
  box-sizing: border-box;
}

/* Specs / amenities / about: always span the full desktop content width */
.fa-layout--property-detail .fa-prop-about .fa-prop-richtext,
.fa-layout--property-detail .fa-prop-richtext-section--features .fa-prop-richtext,
.fa-layout--property-detail .fa-prop-richtext--wide,
.fa-layout--property-detail .fa-prop-specs,
.fa-layout--property-detail .fa-prop-specs.fa-prop-feature-grid {
  max-width: none !important;
  width: 100% !important;
}

.fa-prop-richtext__p,
.fa-prop-richtext p.fa-prop-richtext__p,
.fa-prop-richtext > p {
  margin: 0 0 0.95rem;
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: var(--fa-pc-ink);
}

.fa-prop-richtext__p:last-child,
.fa-prop-richtext > p:last-child {
  margin-bottom: 0;
}

.fa-prop-richtext__heading,
.fa-prop-richtext h2.fa-prop-richtext__heading,
.fa-prop-richtext h3.fa-prop-richtext__heading,
.fa-prop-richtext h4.fa-prop-richtext__heading {
  color: var(--fa-pc-accent);
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 1.25rem 0 0.6rem;
  padding: 0 0 0.35rem;
  border-bottom: 1px solid var(--fa-pc-line);
  letter-spacing: -0.01em;
  max-width: 100%;
}

.fa-prop-richtext__heading:first-child,
.fa-prop-richtext > .fa-prop-richtext__heading:first-child {
  margin-top: 0.1rem;
}

/* Desktop 2-col compact feature lists — full width of parent */
.fa-prop-richtext__list,
.fa-prop-richtext ul.fa-prop-richtext__list,
.fa-prop-richtext ol.fa-prop-richtext__list {
  list-style: none;
  margin: 0.2rem 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.9rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.fa-layout--property-detail .fa-prop-richtext__list {
  max-width: none !important;
  width: 100% !important;
}

.fa-prop-richtext__item,
.fa-prop-richtext li.fa-prop-richtext__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--fa-pc-ink);
  line-height: 1.6;
  font-size: 0.94em;
  min-height: 2.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fa-prop-richtext__item:hover {
  border-color: rgba(201, 162, 39, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.fa-prop-richtext__icon {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  border: 1.5px solid var(--fa-pc-gold);
  position: relative;
}

.fa-prop-richtext__icon::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0.26rem;
  height: 0.45rem;
  border: solid var(--fa-pc-gold);
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.fa-prop-richtext__item-text {
  flex: 1 1 auto;
  min-width: 0;
}

.fa-prop-richtext__item-text strong,
.fa-prop-richtext strong {
  color: #fff;
  font-weight: 700;
}

.fa-prop-about .fa-prop-richtext__list {
  max-width: 100%;
}

/* Tighter, even vertical rhythm (gallery untouched) */
.fa-prop-about.fa-prop-richtext-section {
  margin-bottom: 1.75rem;
}

.fa-prop-main > .fa-prop-richtext-section,
.fa-prop-main > section.fa-prop-richtext-section {
  margin-top: 0.15rem;
  margin-bottom: 1.75rem;
}

.fa-prop-specs-section.fa-prop-feature-grid-section {
  margin: 1.75rem 0;
}

.fa-prop-specs.fa-prop-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.9rem;
  width: 100%;
  max-width: 100%;
}

.fa-prop-specs.fa-prop-feature-grid .fa-prop-spec {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  gap: 0.7rem;
  min-height: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.fa-prop-specs.fa-prop-feature-grid .fa-prop-spec:hover {
  transform: none;
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.055);
}

.fa-prop-specs.fa-prop-feature-grid .fa-prop-spec-icon {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.fa-prop-specs.fa-prop-feature-grid .fa-prop-spec-body {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  line-height: 1.35;
}

.fa-prop-specs.fa-prop-feature-grid .fa-prop-spec-val {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.fa-prop-specs.fa-prop-feature-grid .fa-prop-spec-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

@media (max-width: 900px) {
  .fa-prop-richtext {
    font-size: 1.02rem;
    line-height: 1.85;
  }

  .fa-prop-richtext__list {
    gap: 0.45rem 0.65rem;
  }

  .fa-prop-richtext__item {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }

  .fa-prop-richtext-section {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 720px) {
  .fa-prop-richtext__list,
  .fa-prop-richtext ul.fa-prop-richtext__list,
  .fa-prop-richtext ol.fa-prop-richtext__list,
  .fa-prop-specs.fa-prop-feature-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 640px) {
  .fa-prop-richtext {
    font-size: 1rem;
    line-height: 1.85;
  }

  .fa-prop-richtext__p,
  .fa-prop-richtext > p {
    text-align: right;
    max-width: 100%;
    margin-bottom: 0.85rem;
  }

  .fa-prop-richtext__heading {
    font-size: 1.06rem;
    margin-top: 1.1rem;
  }

  .fa-prop-richtext__item {
    min-height: 0;
    padding: 0.5rem 0.6rem;
    font-size: 0.93em;
    line-height: 1.55;
  }

  .fa-prop-specs.fa-prop-feature-grid .fa-prop-spec {
    padding: 0.55rem 0.7rem;
  }

  .fa-prop-about.fa-prop-richtext-section,
  .fa-prop-main > .fa-prop-richtext-section,
  .fa-prop-specs-section.fa-prop-feature-grid-section {
    margin-bottom: 1.4rem;
  }
}
