/* =====================================================
   ĐOẠN GIỚI THIỆU DƯỚI BREADCRUMB
   Dùng cho cả trang Dự án và các trang For Rent / For Sale.
   ===================================================== */

.jr-archive-intro {
  margin: 0 0 26px;
  width: 100%;
}

.jr-archive-intro-text {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

.jr-archive-intro-text p {
  margin: 0 0 12px;
}

.jr-archive-intro-text p:last-child {
  margin-bottom: 0;
}

.jr-archive-intro-text a {
  color: var(--justhome-theme-color, #b79663);
  text-decoration: underline;
}

/* Trạng thái thu gọn: hiện 3 dòng đầu. */
.jr-archive-intro-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jr-archive-intro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--justhome-theme-color, #b79663);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.jr-archive-intro-toggle:hover {
  text-decoration: underline;
}

/* Mũi tên xoay khi mở rộng. */
.jr-archive-intro-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.jr-archive-intro-toggle[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

/* Chỉ hiện đúng một nhãn tuỳ trạng thái. */
.jr-archive-intro-toggle .jr-less,
.jr-archive-intro-toggle[aria-expanded="true"] .jr-more {
  display: none;
}

.jr-archive-intro-toggle[aria-expanded="true"] .jr-less {
  display: inline;
}

@media (max-width: 640px) {

  .jr-archive-intro {
    margin-bottom: 20px;
  }

  .jr-archive-intro-text {
    font-size: 14px;
  }
}
