/*
 * Property description written with CKEditor 5 (admin / PSR / Seller forms), shown on the
 * public property details page inside .property-description. Only the bits CKEditor writes
 * as classes need styling here; colours, font sizes and alignment come as inline styles.
 */

.property-description ul {
    list-style: disc;
    padding-left: 1.6em;
    margin-bottom: 1em;
}

.property-description ol {
    list-style: decimal;
    padding-left: 1.6em;
    margin-bottom: 1em;
}

.property-description li {
    list-style: inherit;
}

.property-description blockquote {
    border-left: 4px solid #26ae61;
    margin: 1em 0;
    padding: .4em 1em;
    color: #444;
    font-style: italic;
    background: #f6faf7;
}

.property-description hr {
    margin: 1.2em 0;
}

/* ---------- images */
.property-description figure.image {
    display: table;
    clear: both;
    margin: 1em auto;
    text-align: center;
    max-width: 100%;
}

.property-description figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.property-description figure.image.image_resized {
    display: block;
    box-sizing: border-box;
}

.property-description figure.image.image_resized img {
    width: 100%;
}

.property-description img.image_resized {
    height: auto;
}

.property-description .image-inline {
    display: inline-flex;
    max-width: 100%;
    align-items: flex-start;
}

.property-description .image-inline img {
    max-width: 100%;
    height: auto;
}

/* "figure.image" in the selector so these win over the centred block-image rule above */
.property-description figure.image.image-style-side,
.property-description figure.image.image-style-align-right,
.property-description .image-style-side,
.property-description .image-style-align-right {
    float: right;
    margin: .3em 0 1em 1.5em;
    max-width: 50%;
}

.property-description figure.image.image-style-align-left,
.property-description .image-style-align-left {
    float: left;
    margin: .3em 1.5em 1em 0;
    max-width: 50%;
}

.property-description figure figcaption {
    font-size: .875em;
    color: #666;
    padding: .5em;
    text-align: center;
    caption-side: bottom;
}

/* ---------- tables */
.property-description figure.table {
    margin: 1em auto;
    display: table;
    max-width: 100%;
    overflow-x: auto;
}

.property-description table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px double #b3b3b3;
}

.property-description table td,
.property-description table th {
    min-width: 2em;
    padding: .4em .6em;
    border: 1px solid #bfbfbf;
    text-align: left;
}

.property-description table th {
    font-weight: 600;
    background: rgba(0, 0, 0, .05);
}

/* ---------- embedded video (YouTube etc.) */
.property-description figure.media {
    clear: both;
    margin: 1em 0;
    display: block;
    min-width: 15em;
}

@media (max-width: 575.98px) {

    .property-description figure.image.image-style-side,
    .property-description figure.image.image-style-align-left,
    .property-description figure.image.image-style-align-right,
    .property-description .image-style-side,
    .property-description .image-style-align-left,
    .property-description .image-style-align-right {
        float: none;
        max-width: 100%;
        margin: 1em auto;
    }

    /* wide tables scroll sideways instead of breaking the page */
    .property-description figure.table {
        display: block;
        overflow-x: auto;
    }
}
