/* Mô tả căn hộ thu gọn + nút Read more — đi kèm libs/description-toggle.php
   (max-height theo màn hình được in inline từ PHP) */

.hhv-desc-content {
    position: relative;
}

.hhv-desc.is-collapsed .hhv-desc-content {
    overflow: hidden;
}

/* Mờ dần ở cuối đoạn đang bị cắt */
.hhv-desc.is-collapsed .hhv-desc-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

.hhv-desc-toggle-wrap {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

/* Cùng kiểu với nút "Show N more floor plans" */
.hhv-desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 28px;
    border: 1px solid #b8976a;
    border-radius: 4px;
    background: #fff;
    color: #6e5530;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.hhv-desc-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.hhv-desc:not(.is-collapsed) .hhv-desc-toggle::after {
    transform: translateY(2px) rotate(-135deg);
}

.hhv-desc-toggle:hover,
.hhv-desc-toggle:focus-visible {
    background: #b8976a;
    color: #fff;
}

/* Nội dung ngắn hơn khung (JS phát hiện) → hiện bình thường, bỏ nút */
.hhv-desc.is-short .hhv-desc-content {
    max-height: none !important;
    overflow: visible;
}

.hhv-desc.is-short .hhv-desc-content::after,
.hhv-desc.is-short .hhv-desc-toggle-wrap {
    display: none !important;
}

@media (max-width: 767px) {
    .hhv-desc-toggle-wrap {
        padding-top: 12px;
    }
}

/* Bản in: hiện hết */
@media print {
    .hhv-desc .hhv-desc-content {
        max-height: none !important;
        overflow: visible !important;
    }

    .hhv-desc .hhv-desc-content::after,
    .hhv-desc-toggle-wrap {
        display: none !important;
    }
}
