/* ==========================================================================
   Du Lịch Nga Theme – Custom component styles
   Loaded after assets/css/style.css; augments the Bootstrap 5 base.
   ========================================================================== */

:root {
    --dln-primary: #c8102e;
    --dln-dark: #10233f;
    --dln-text: #334155;
    --dln-muted: #64748b;
    --dln-border: #e2e8f0;
    --dln-bg-soft: #f8fafc;
    --dln-radius: 16px;
}

body {
    font-family: 'Google Sans Flex', 'Playfair Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--dln-text);
    background-color: #ffffff;
}

[x-cloak] {
    display: none !important;
}

/* `hidden` is a (0,1,0) attribute selector, tied with `.hero-quick-actions`
   (0,1,0) in style.css; the author rule there wins the tie by source order, so
   the panel would stay visible. Bump specificity via the ancestor class.
   See hero_banner.blade.php + assets/js/main.js (initHeroSearch). */
.hero-search-group [hidden] {
    display: none !important;
}

/* ---------- Hero search suggestion dropdown ---------- */
.hero-search-wrap {
    position: relative;
}

.hero-search__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}

.hero-search__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-search__dropdown-item {
    padding: 10px 24px;
    font-size: 16px;
    color: #111;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hero-search__dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ---------- Generic page sections ---------- */
.page-section {
    padding: 72px 0;
}

.page-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.page-header__title {
    font-size: 38px;
    font-weight: 800;
    color: var(--dln-dark);
    margin: 0 0 12px;
    line-height: 1.25;
}

.page-header__subtitle {
    font-size: 16px;
    color: var(--dln-muted);
    line-height: 1.7;
    margin: 0;
}

.page-card {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--dln-border);
    border-radius: var(--dln-radius);
    padding: 40px;
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.15);
}

.page-card__title {
    font-size: 30px;
    font-weight: 800;
    color: var(--dln-dark);
    margin: 0 0 20px;
}

.page-card__media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.page-card__media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.page-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dln-text);
}

.page-content-body img {
    max-width: 100%;
    height: auto;
}

.page-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dln-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-breadcrumb a {
    color: var(--dln-muted);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: var(--dln-primary);
}

.page-breadcrumb strong {
    color: var(--dln-primary);
}

/* ---------- Post grid & cards ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.post-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--dln-muted);
    padding: 60px 0;
    font-size: 17px;
}

.post-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--dln-border);
    border-radius: var(--dln-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.25);
}

.post-card__media {
    position: relative;
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.06);
}

.post-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 35, 63, 0.55);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-card__overlay {
    opacity: 1;
}

.post-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--dln-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    text-decoration: none;
}

.post-card__body {
    padding: 22px 22px 0;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--dln-muted);
    margin-bottom: 12px;
}

.post-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__title a {
    color: var(--dln-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card__title a:hover {
    color: var(--dln-primary);
}

.post-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--dln-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__footer {
    padding: 20px 22px 22px;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dln-primary);
    background-color: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-card__link:hover {
    background-color: var(--dln-primary);
    color: #ffffff;
}

/* ---------- Single post ---------- */
.post-single {
    max-width: 860px;
    margin: 0 auto;
}

.post-single__header {
    text-align: center;
    margin-bottom: 32px;
}

.post-single__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dln-dark);
    line-height: 1.3;
    margin: 16px 0 18px;
}

.post-single__header .post-card__meta {
    justify-content: center;
}

.post-single__media {
    border-radius: var(--dln-radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.post-single__media img {
    width: 100%;
    display: block;
}

.post-single__body {
    font-size: 17px;
}

/* ---------- Contact block ---------- */
/* Form đã tách ra dải ngang bên dưới (`.gc-form`) ⇒ lưới còn 1 cột: thẻ thông tin liên hệ. */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 769px) {
    .contact-grid .contact-card {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }

    .contact-grid .contact-card__item {
        margin-bottom: 0;
    }

    .contact-grid .contact-card__social {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

.contact-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--dln-border);
    border-radius: var(--dln-radius);
    padding: 32px;
    box-shadow: 0 16px 32px -24px rgba(15, 23, 42, 0.25);
}

.contact-card__item {
    margin-bottom: 24px;
}

.contact-card__item h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dln-muted);
    margin: 0 0 6px;
}

.contact-card__item p,
.contact-card__item a {
    font-size: 16px;
    color: var(--dln-dark);
    text-decoration: none;
    margin: 0;
}

.contact-card__social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.contact-card__social a {
    font-size: 13px;
    font-weight: 600;
    color: var(--dln-primary);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(200, 16, 46, 0.25);
    border-radius: 9999px;
}

.contact-form-card__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form-card__field {
    margin-bottom: 18px;
}

.contact-form-card__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dln-dark);
    margin-bottom: 7px;
}

.contact-form-card__field label span {
    color: var(--dln-primary);
}

.contact-form-card__field input,
.contact-form-card__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--dln-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--dln-text);
    background: var(--dln-bg-soft);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-card__field input:focus,
.contact-form-card__field textarea:focus {
    border-color: var(--dln-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.contact-form-card__error {
    color: #dc2626;
    font-size: 13px;
    margin: 6px 0 0;
}

.contact-form-card__alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form-card__alert--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.contact-form-card__alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* T-242 — trang Liên hệ (`/lien-he`, Figma PC `371:20835` · MB `378:23264`).
   Màu xám lấy đúng Figma, khai báo cục bộ cho block (chưa có token chung tương ứng). */
.contact-section {
    --contact-ink: #111;
    --contact-label: #333;
    --contact-muted: #666;
    --contact-placeholder: #9e9e9e;
    --contact-card-bg: #f6f6f6;
    --contact-card-border: #ebebeb;
    --contact-input-border: #dbdbdb;
}

.contact-section--lead {
    padding: 48px 0;
}

.contact-intro {
    margin: 0 0 32px;
    font-size: 14px;
    line-height: 18px;
    color: var(--contact-muted);
}

.contact-form-card__title {
    margin: 0 0 20px;
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.33;
    color: var(--contact-ink);
}

.contact-form-card__note {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 18px;
    color: var(--contact-muted);
}

/* ---------- Form "Gửi câu hỏi cho chúng tôi" (guest-contact) ----------
   Figma `1173:10779` (PC; không có bản MB). Màu lấy đúng Figma, khai báo cục bộ vì component
   dùng được ở mọi trang. `.is-blocked` = chưa đồng ý cookie "Chức năng" (reCAPTCHA) — xem
   `initGuestContactForm` trong main.js. */
.gc-form {
    --gc-bg: #f6f6f6;
    --gc-ink: #111;
    --gc-text: #333;
    --gc-placeholder: #9e9e9e;
    --gc-input-border: #dbdbdb;
    --gc-notice-bg: #fff6e0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
    padding: 40px;
    border-radius: 16px;
    background: var(--gc-bg);
}

.gc-form__title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    line-height: normal;
    color: var(--gc-ink);
}

.gc-form__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.gc-form__field input,
.gc-form__field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 14px 20px;
    border: 1px solid var(--gc-input-border);
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 20px;
    color: var(--gc-ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gc-form__field textarea {
    height: 50px;
    max-height: 240px;
    resize: none;
    overflow-y: auto;
}

.gc-form__field input::placeholder,
.gc-form__field textarea::placeholder {
    color: var(--gc-placeholder);
    opacity: 1;
}

.gc-form__field input:focus,
.gc-form__field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(214, 21, 25, 0.12);
}

.gc-form__field.has-error input,
.gc-form__field.has-error textarea {
    border-color: var(--red);
}

.gc-form__error {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--red);
}

.gc-form__notice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--yl);
    border-radius: 12px;
    background: var(--gc-notice-bg);
}

.gc-form__notice[hidden] {
    display: none;
}

.gc-form__notice-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.gc-form__notice-text {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gc-text);
}

.gc-form__notice-text a {
    font-weight: 500;
    color: var(--red);
    text-decoration: underline;
    text-underline-position: from-font;
}

.gc-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.gc-form__submit {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.16px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gc-form__submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gc-form__legal {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gc-placeholder);
}

.gc-form__legal a {
    color: inherit;
    text-decoration: underline;
}

.gc-form__alert {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.gc-form__alert--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.gc-form__alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Bẫy bot: ra khỏi màn hình (không dùng display:none để bot đơn giản vẫn điền). */
.gc-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* reCAPTCHA v3: ẩn badge góc màn hình — form đã hiện dòng chú thích Google (`.gc-form__legal`). */
.grecaptcha-badge {
    visibility: hidden;
}

/* Không có thiết kế tablet/MB: tablet 2 ô + nội dung full hàng; MB xếp 1 cột. */
@media (max-width: 991px) {
    .gc-form {
        padding: 32px;
    }

    .gc-form__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gc-form__field:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .gc-form {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .gc-form__title {
        font-size: 22px;
    }

    .gc-form__fields {
        grid-template-columns: 1fr;
    }

    .gc-form__notice {
        align-items: flex-start;
    }
}

/* Banner khi block đứng đầu trang: dùng khung `.trip-hero` (250px mobile), PC thấp 300px. */
@media (min-width: 992px) {
    .contact-hero {
        min-height: 300px;
    }

    .contact-hero .trip-hero__caption {
        padding: 48px 0 32px;
    }

    .contact-hero .trip-hero__title {
        font-size: 40px;
    }
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background-color: var(--dln-dark);
    padding: 64px 0;
    margin: 64px 0;
}

.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-banner__headline {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

.cta-banner__subheadline {
    font-size: 16px;
    color: #cbd5e1;
    margin: 0;
}

/* ---------- Hero extras ---------- */
.hero-content__badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 9999px;
    background: rgba(200, 16, 46, 0.15);
    border: 1px solid rgba(200, 16, 46, 0.3);
    color: var(--dln-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-content__phone {
    display: inline-flex;
    flex-direction: column;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.hero-content__phone small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.hero-widgets-section {
    padding: 0 0 64px;
}

.hero-widget__row {
    text-decoration: none;
    color: inherit;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    

    .contact-form-card__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* T-242 — Figma MB `378:23264`: 4 thẻ thông tin riêng (nền xám, bo 12, cách 16) + form thẻ viền bo 16. */
    .page-section.contact-section--lead {
        padding: 32px 0 48px;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-card {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .contact-card__item {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 0;
        padding: 20px 24px;
        border-radius: 12px;
        background: var(--contact-card-bg);
    }

    .contact-card__item h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 18px;
        letter-spacing: 0;
        text-transform: none;
        color: var(--contact-muted);
    }

    .contact-card__item p,
    .contact-card__item a {
        font-size: 20px;
        font-weight: 600;
        line-height: 25px;
        color: var(--contact-ink);
    }

    .contact-card__item--phone a {
        color: var(--red);
    }

    .contact-form-card {
        padding: 24px 16px;
        border: 1px solid var(--contact-card-border);
        border-radius: 16px;
        box-shadow: none;
    }

    .contact-form-card__field {
        margin-bottom: 20px;
    }

    .contact-form-card__field label {
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        line-height: 18px;
        color: var(--contact-label);
    }

    .contact-form-card__field input,
    .contact-form-card__field textarea {
        padding: 0 16px;
        border: 1px solid var(--contact-input-border);
        border-radius: 12px;
        background: #ffffff;
        font-size: 16px;
        color: var(--contact-ink);
    }

    .contact-form-card__field input {
        height: 52px;
    }

    .contact-form-card__field textarea {
        height: 140px;
        padding-top: 14px;
        resize: vertical;
    }

    .contact-form-card__field input::placeholder,
    .contact-form-card__field textarea::placeholder {
        color: var(--contact-placeholder);
    }

    .contact-form-card .site-header__cta {
        font-size: 16px;
    }

    .page-section {
        padding: 48px 0;
    }

    .page-header__title {
        font-size: 28px;
    }

    .page-card {
        padding: 26px 20px;
    }

    .post-single__title {
        font-size: 26px;
    }

    .cta-banner__headline {
        font-size: 22px;
    }
}

/* ==========================================================================
   Place detail – gallery zoom affordance (Phase 22B)

   Modal xem ảnh lớn nằm trong bản cắt (`scss/components/_gallery-modal.scss`,
   đã compile vào assets/css/style.css) nên theme.css chỉ còn phần con trỏ:
   mỗi ô ảnh là một link mở modal, không phải ảnh tải về.
   Markup: views/components/lightbox.blade.php · JS: assets/js/main.js
   ========================================================================== */


/* Section "Những lịch trình tối ưu nhất" giữ alias neo `#lich-trinh-de-xuat`
   của bản cắt; phần tử chỉ để nhận hash nên không chiếm chỗ. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Trip chapter – block "Đoạn văn" soạn bằng RichEditor

   `.trip-chapter__text` trong `assets/css/style.css` vốn là một thẻ <p> đơn
   (margin: 0; text-align: justify). Từ khi admin soạn HTML, nó là <div> chứa
   <p>/<h3>/<ul>/<img>… nên cần luật cho các con, nếu không mọi đoạn sẽ dính
   liền nhau (margin: 0) và chữ bị canh đều từng dòng rất khó đọc.

   Class `trip-chapter__text` vẫn được gắn để CSS cũ (cỡ chữ, line-height,
   letter-spacing) tiếp tục áp dụng; chỉ ghi đè `text-align`.
   ========================================================================== */

.trip-chapter__text {
    text-align: left;
}

.trip-chapter__text > *:first-child {
    margin-top: 0;
}

.trip-chapter__text > *:last-child {
    margin-bottom: 0;
}

.trip-chapter__text p,
.trip-chapter__text ul,
.trip-chapter__text ol,
.trip-chapter__text blockquote,
.trip-chapter__text figure,
.trip-chapter__text pre,
.trip-chapter__text table {
    margin: 0 0 1em;
}

.trip-chapter__text h1,
.trip-chapter__text h2,
.trip-chapter__text h3,
.trip-chapter__text h4,
.trip-chapter__text h5,
.trip-chapter__text h6 {
    margin: 1.4em 0 0.6em;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.4;
}

.trip-chapter__text h1 {
    font-size: 30px;
}

.trip-chapter__text h2 {
    font-size: 26px;
}

.trip-chapter__text h3 {
    font-size: 22px;
}

.trip-chapter__text h4,
.trip-chapter__text h5,
.trip-chapter__text h6 {
    font-size: 18px;
}

.trip-chapter__text ul,
.trip-chapter__text ol {
    padding-left: 1.4em;
}

.trip-chapter__text li + li {
    margin-top: 0.4em;
}

.trip-chapter__text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.trip-chapter__text a {
    color: var(--red);
    text-decoration: underline;
}

/* Trích dẫn trong block "Đoạn văn": admin chèn bằng nút blockquote của
   RichEditor (`Mod-Shift-b`). Đây là kiểu trích dẫn CHÍNH từ Phase 25g, nên
   được nâng lên đúng dáng của `.trip-chapter__quote` (chữ lớn hơn, Playfair,
   nghiêng) thay vì kế thừa cỡ chữ thân bài 18px.

   `.trip-chapter__quote` (style.css) vẫn còn cho block legacy `type = 'quote'`.
   Cả hai dùng chung biến `--red` nên nhìn như một hệ thống. */
.trip-chapter__text blockquote {
    padding: 0 16px;
    border-left: 4px solid var(--red);
    color: #111;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .trip-chapter__text blockquote {
        font-size: 24px;
    }
}

/* Trích dẫn nhiều đoạn: nhịp dòng trong khối phải chặt hơn khoảng cách giữa các
   block (1em), nếu không một trích dẫn 2 đoạn trông như hai trích dẫn rời. */
.trip-chapter__text blockquote > *:first-child {
    margin-top: 0;
}

.trip-chapter__text blockquote > *:last-child {
    margin-bottom: 0;
}

.trip-chapter__text blockquote p {
    margin: 0 0 0.5em;
}

.trip-chapter__text pre {
    padding: 16px;
    overflow-x: auto;
    border-radius: 12px;
    background-color: var(--dln-bg-soft);
}

.trip-chapter__text table {
    width: 100%;
    border-collapse: collapse;
}

.trip-chapter__text th,
.trip-chapter__text td {
    padding: 8px 12px;
    border: 1px solid var(--dln-border);
    text-align: left;
}

/* ==========================================================================
   Định dạng chữ do admin đặt trong RichEditor (Phase 25i)

   Ba nút "Phông chữ / Cỡ chữ / Màu chữ" ghi `style` inline qua mark TextStyle,
   và `Experience::richContent()` chỉ cho qua `font-size`, `color`,
   `font-family`. Vì là inline nên chúng **tự thắng** các luật ở trên — phần
   dưới chỉ xử lý những chỗ mà inline một mình gây ra vấn đề.

   Chỉ ba thuộc tính này cần luật; đừng thêm `background`/`padding`/… ở đây vì
   sanitizer sẽ gỡ chúng trước khi tới trang.
   ========================================================================== */

/* `line-height: 1.4` (và 1.6 ở >=992px) của `.trip-chapter__text` là số không
   đơn vị, nên nó nhân theo cỡ chữ **của chính phần tử đó**. Khi cỡ chữ được ghim
   bằng inline style lên `<span>`, span vẫn thừa hưởng `line-height` đã tính của
   khối cha, nên chữ 2rem nằm trong nhịp dòng của chữ 18px — các dòng chồng lên
   nhau. Đặt lại theo `em` cho đúng tỉ lệ của khối văn bản.

   Không dùng `!important`: inline style vẫn thắng, và ở đây ta chỉ muốn đổi giá
   trị kế thừa chứ không tranh chấp với admin. */
.trip-chapter__text [style*="font-size"] {
    line-height: 1.35;
}

/* `var(--red)` là biến của theme, và biến đó khai trên `:root` (xem `style.css`)
   nên inline style luôn resolve được — không cần luật dự phòng. Ghi chú lại để
   lần sau không ai thêm `.trip-chapter__text [style*="color"] { color: inherit }`
   với ý "chống hụt biến": luật đó **luôn thắng** inline `color`, tức là huỷ đúng
   màu admin vừa chọn. */

/* Chữ trong bảng vẫn phải đọc được khi admin đặt cỡ chữ lớn: cho phép xuống dòng
   trong ô thay vì đẩy bảng tràn ngang cả trang. */
.trip-chapter__text table [style*="font-size"] {
    display: inline-block;
    max-width: 100%;
}


/* ==========================================================================
   Bảng và danh sách trong nội dung bài viết (Phase 42b)

   `.news-article__content` (style.css) là cột flex `gap: 30px` và đặt
   `margin: 0` cho mọi con trực tiếp — đủ cho đoạn văn / heading / ảnh, nhưng
   bảng hiện không viền, không padding và tràn ngang trên mobile; danh sách lồng
   (bài "Đăng nhanh" từ Google Docs) không thụt lề. Theo mẫu `.trip-chapter__text`.
   ========================================================================== */

.news-article__content ul,
.news-article__content ol {
    padding-left: 1.4em;
    text-align: left;
}

.news-article__content li > p {
    margin: 0;
}

.news-article__content li + li,
.news-article__content li > ul,
.news-article__content li > ol {
    margin-top: 0.4em;
}

/* Bảng rộng hơn khung (mobile) cuộn ngang trong chính nó, không đẩy cả trang:
   `table` thành khối cuộn, `tbody` giữ vai trò bảng và vẫn rộng tối thiểu 100%. */
.news-article__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    text-align: left;
    -webkit-overflow-scrolling: touch;
}

.news-article__content table > tbody {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.news-article__content th,
.news-article__content td {
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid var(--dln-border);
    vertical-align: top;
}

.news-article__content th {
    background-color: var(--dln-bg-soft);
    font-weight: 600;
}

.news-article__content th > p,
.news-article__content td > p {
    margin: 0;
}

.news-article__content th > * + *,
.news-article__content td > * + * {
    margin-top: 0.5em;
}

.news-article__content td img {
    border-radius: 4px;
}

/* T-51: chú thích "Đã sao chép liên kết" nổi trên nút sao chép liên kết */
.copy-link-wrap {
    position: relative;
    display: inline-flex;
}

.copy-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 6px;
    background-color: var(--dln-dark);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

.copy-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dln-dark);
}

.copy-tip[hidden] {
    display: none;
}
