/*
 * Property description rich-text integration.
 * Quill's official Snow theme provides the editor UI. These rules only align
 * the editor with the existing Lahomes/Smile Property dashboard and style the
 * sanitized description when it is rendered on the public listing page.
 */
.property-description-editor {
    width: 100%;
}

.property-description-editor__quill {
    display: none;
}

.property-description-editor--ready .property-description-editor__quill {
    display: block;
}

.property-description-editor--ready .property-description-editor__fallback {
    display: none;
}

.property-description-editor__fallback {
    min-height: 210px;
    resize: vertical;
}

.property-description-editor .ql-toolbar.ql-snow {
    border-color: var(--bs-border-color, #e5e7eb);
    border-radius: 0.375rem 0.375rem 0 0;
    background: var(--bs-body-bg, #fff);
    padding: 10px 12px;
}

.property-description-editor .ql-container.ql-snow {
    border-color: var(--bs-border-color, #e5e7eb);
    border-radius: 0 0 0.375rem 0.375rem;
    background: var(--bs-body-bg, #fff);
    font-family: inherit;
    font-size: 0.875rem;
}

.property-description-editor .ql-editor {
    min-height: 210px;
    padding: 16px;
    line-height: 1.65;
}

.property-description-editor .ql-editor.ql-blank::before {
    color: var(--bs-secondary-color, #8b8f97);
    font-style: normal;
    left: 16px;
    right: 16px;
}

.property-description-editor .ql-snow .ql-picker {
    color: inherit;
}

.property-description-editor__help {
    margin-top: 0.5rem;
}

/* Public listing description. */
.property-description-content {
    line-height: 1.75;
}

.property-description-content p,
.property-description-content ul,
.property-description-content ol,
.property-description-content blockquote {
    margin-bottom: 1rem;
}

.property-description-content h2,
.property-description-content h3 {
    margin: 1.25rem 0 0.65rem;
    line-height: 1.3;
}

.property-description-content ul,
.property-description-content ol {
    padding-left: 1.5rem;
}

.property-description-content blockquote {
    padding-left: 1rem;
    border-left: 3px solid #e8452e;
    color: #667085;
}

.property-description-content a {
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.property-description-content > :last-child {
    margin-bottom: 0;
}
