/* components/rich-description.css — описания отеля/номера на детальных страницах (этап 9.2) */

.hotel-name {
    font-size: var(--section-title-size);
    font-weight: var(--font-weight-card);
    margin-bottom: 1rem;
    color: var(--dark);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.hotel-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.hotel-name-link:hover {
    color: var(--primary-dark);
}

.hotel-description,
.room-description {
    color: var(--text-muted);
    line-height: var(--line-height-loose);
    font-size: var(--text-base);
    margin-bottom: 1rem;
    max-width: none;
}

.hotel-details .hotel-info .hotel-description,
.room-details .room-info .room-description {
    width: 100%;
}

.hotel-description p,
.room-description p {
    margin-bottom: 1rem;
}

.hotel-description p:last-child,
.room-description p:last-child {
    margin-bottom: 0;
}

.public-rich-description-fold:not(.is-expanded) .public-rich-description-fold__inner {
    position: relative;
    max-height: 15rem;
    overflow: hidden;
}

.public-rich-description-fold:not(.is-expanded) .public-rich-description-fold__inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
}

.public-rich-description-fold.is-expanded .public-rich-description-fold__inner::after {
    display: none;
}

.public-rich-description-fold .public-rich-description-fold__toggle {
    font-weight: var(--font-weight-card);
}

.public-rich-description-fold__toggle-icon {
    transition: transform 0.25s ease;
    font-size: 0.65rem;
    opacity: 0.9;
}

.public-rich-description-fold.is-expanded .public-rich-description-fold__toggle-icon {
    transform: rotate(180deg);
}

.hotel-description ul,
.hotel-description ol,
.room-description ul,
.room-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.hotel-description li,
.room-description li {
    margin-bottom: 0.5rem;
}

/*
 * Quill: маркеры как <ol><li data-list="bullet">…</li></ol>.
 */
.hotel-description ol > li[data-list="bullet"],
.room-description ol > li[data-list="bullet"] {
    list-style-type: disc;
}

.hotel-description ol > li[data-list="ordered"],
.room-description ol > li[data-list="ordered"] {
    list-style-type: decimal;
}

.hotel-description ol ol,
.room-description ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.hotel-description strong,
.room-description strong {
    font-weight: var(--font-weight-card);
    color: var(--dark);
}

.hotel-description--rich h1,
.room-description--rich h1 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-section);
    font-family: var(--font-heading);
    color: var(--dark);
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
    text-align: left;
    line-height: var(--line-height-heading);
}

.hotel-description--rich h2,
.room-description--rich h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-section);
    font-family: var(--font-heading);
    color: var(--dark);
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
    text-align: left;
    line-height: var(--line-height-heading);
}

.hotel-description--rich h3,
.room-description--rich h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-card);
    font-family: var(--font-heading);
    color: var(--dark);
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: left;
    line-height: var(--line-height-heading);
}

.hotel-description--rich h4,
.room-description--rich h4 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-card);
    color: var(--dark);
    margin-top: 1rem;
    margin-bottom: 0.45rem;
    text-align: left;
}

.hotel-description--rich blockquote,
.room-description--rich blockquote {
    margin: 1rem 0;
    padding: 0 0 0 1rem;
    border-left: 3px solid var(--neutral-warm);
    font-style: normal;
    color: var(--text-muted);
}

.hotel-description--rich .public-rich-description-fold__inner > :first-child,
.room-description--rich .public-rich-description-fold__inner > :first-child {
    margin-top: 0;
}
