/*
 * CSS สำหรับ block พิเศษที่ฝังอยู่ในเนื้อหาบทความจาก WordPress
 * (คัดมาจาก Additional CSS ของธีมบน WordPress ให้หน้า /content ที่ render โดย CI แสดงเหมือนเดิม)
 * - slider ทัวร์แนะนำ (.tz-tour-*)  - กล่องไฮไลต์ (.highlight-box)  - บล็อกรูปคู่ข้อความ (.row-block)
 */

.tzc-article .wp-caption { max-width: 100% !important; width: auto !important; }
.tzc-article .wp-caption img { max-width: 100% !important; height: auto !important; }

/* ===== slider ทัวร์แนะนำ ===== */
/* กันสไตล์ของตัวบทความ (.tzc-article a/img/h3) ไปทับการ์ดทัวร์ */
.tzc-article .tz-tour-card-v2 a { text-decoration: none; color: inherit; }
.tzc-article .tz-tour-card-v2 img { border-radius: 0; }
.tzc-article .tz-tour-card-v2__title { margin: 0 0 14px; font-size: 18px; line-height: 1.45; padding: 0; border: 0; }
.tzc-article .tz-tour-section-head h2 { margin-top: 0; }
.tz-tour-card-v2 .label, .tz-tour-card-v2 .value, .tz-tour-card-v2__price-wrap, .tz-tour-card-v2__title { overflow-wrap: normal; word-break: normal; }
/* คอลัมน์บทความกว้าง ~780px การ์ดจึงแคบกว่าบน WordPress: จัด meta เป็น 2 คอลัมน์ และวางปุ่มไว้ใต้ราคาเสมอ */
.tzc-main .tz-tour-card-v2__meta { grid-template-columns: repeat(2, 1fr); }
.tzc-main .tz-tour-card-v2__meta-item:nth-child(2) { border-right: 0; }
.tzc-main .tz-tour-card-v2__meta-item:nth-child(1),
.tzc-main .tz-tour-card-v2__meta-item:nth-child(2) { border-bottom: 1px solid #ededed; }
.tzc-main .tz-tour-card-v2__footer { flex-direction: column; align-items: stretch; gap: 10px; }
.tzc-main .tz-tour-card-v2__price-wrap { flex-direction: row; align-items: baseline; gap: 8px; }
.tzc-main .tz-tour-card-v2__price-wrap .price-value { font-size: 20px; }
.tzc-main .tz-tour-card-v2__btn { min-width: 0; width: 100%; padding: 10px 14px; font-size: 14px; }
.tz-tour-card-v2, .tz-tour-card-v2 * { box-sizing: border-box; }
.tzc-main .tz-tour-card-v2__title { font-size: 16px; min-height: 0; }
.tz-tour-section { margin: 32px 0; }
.tz-tour-section-head { margin-bottom: 16px; }
.tz-tour-section-head h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 600; }
.tz-tour-swiper-wrap { position: relative; padding: 0 8px 30px; }
.tz-tour-swiper-wrap .swiper { overflow: hidden; }
/* Swiper 8 ตั้ง .swiper-slide { height:100% } ซึ่งทำให้การ์ด (height:100%) ยุบเหลือเท่ารูป ให้สไลด์สูงตามเนื้อหาและยืดเท่ากัน */
.tz-tour-swiper-wrap .swiper-slide { height: auto; display: flex; }
.tz-tour-swiper-wrap .tz-tour-card-v2 { width: 100%; }
.tz-tour-swiper-wrap .tz-tour-card-v2__image img { aspect-ratio: 16 / 9; }
.tz-tour-card-v2 { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); border: 1px solid #ececec; height: 100%; }
.tz-tour-card-v2 a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tz-tour-card-v2__image { width: 100%; height: auto; overflow: hidden; background: #f5f5f5; line-height: 0; }
.tz-tour-card-v2__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; margin: 0; padding: 0; border-radius: 0; }
.tz-tour-card-v2__body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.tz-tour-card-v2__title { margin: 0 0 14px; font-size: 20px; line-height: 1.45; font-weight: 600; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 58px; }
.tz-tour-card-v2__meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ededed; border-bottom: 1px solid #ededed; margin-bottom: 16px; }
.tz-tour-card-v2__meta-item { padding: 10px 8px; text-align: center; border-right: 1px solid #ededed; }
.tz-tour-card-v2__meta-item:last-child { border-right: 0; }
.tz-tour-card-v2__meta-item .label { display: block; font-size: 12px; color: #777; margin-bottom: 6px; line-height: 1.3; }
.tz-tour-card-v2__meta-item .value { display: block; font-size: 14px; font-weight: 600; color: #333; line-height: 1.35; }
.tz-tour-card-v2__meta-item .value.code { color: #ef5b21; }
.tz-tour-card-v2__footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; }
.tz-tour-card-v2__price-wrap { display: flex; flex-direction: column; gap: 4px; }
.tz-tour-card-v2__price-wrap .price-label { font-size: 14px; color: #666; }
.tz-tour-card-v2__price-wrap .price-value { font-size: 22px; font-weight: 800; color: #ef5b21; line-height: 1.1; }
.tz-tour-card-v2__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 12px 18px; border-radius: 10px; background: #ff6a2a; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.tz-airline-logo { max-width: 58px; max-height: 24px; object-fit: contain; display: inline-block; vertical-align: middle; border-radius: 0; }
.tz-airline-name { font-size: 13px; font-weight: 600; color: #333; }
.hotel-stars { white-space: nowrap; }
.tz-star { color: #f8b400; font-size: 15px; line-height: 1; }
.tz-tour-swiper-button { position: absolute; top: 38%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 28px; color: #333; user-select: none; }
.tz-tour-swiper-button:hover { background: #f8f8f8; }
.tz-tour-swiper-button-prev { left: -8px; }
.tz-tour-swiper-button-next { right: -8px; }
.tz-tour-swiper-wrap .swiper-pagination { position: static; margin-top: 16px; text-align: center; }
.tz-tour-swiper-wrap .swiper-pagination-bullet { width: 8px; height: 8px; opacity: 1; background: #d0d0d0; }
.tz-tour-swiper-wrap .swiper-pagination-bullet-active { background: #ff6a2a; }

@media (max-width: 991px) {
    .tz-tour-card-v2__title { font-size: 18px; min-height: 56px; }
    .tz-tour-card-v2__meta { grid-template-columns: repeat(2, 1fr); }
    .tz-tour-card-v2__meta-item:nth-child(2) { border-right: 0; }
    .tz-tour-card-v2__meta-item:nth-child(1),
    .tz-tour-card-v2__meta-item:nth-child(2) { border-bottom: 1px solid #ededed; }
}
@media (max-width: 767px) {
    .tz-tour-section-head h2 { font-size: 20px; }
    .tz-tour-card-v2__footer { flex-direction: row; align-items: center; }
    .tz-tour-card-v2__btn { min-width: 110px; padding: 10px 14px; font-size: 14px; }
    .tz-tour-swiper-button { display: none; }
}
@media (max-width: 575px) {
    .tz-tour-card-v2__body { padding: 12px; }
    .tz-tour-card-v2__title { font-size: 17px; min-height: auto; }
    .tz-tour-card-v2__price-wrap .price-value { font-size: 20px; }
    .tz-tour-card-v2__btn { min-width: auto; }
}

/* ===== บล็อกรูปคู่ข้อความ ===== */
.row-block { display: flex; flex-wrap: nowrap; align-items: stretch; padding: 10px 0; }
.row-block.reverse { flex-direction: row-reverse; }
.row-block .image-block, .row-block .text-block { width: 50%; }
.image-block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-block .image-block img { border-radius: 10px 0 0 10px; }
.row-block .text-block { border-radius: 0 10px 10px 0; }
.row-block.reverse .image-block img { border-radius: 0 10px 10px 0; }
.row-block.reverse .text-block { border-radius: 10px 0 0 10px; }
.text-block { padding: 30px; background-color: #fff; display: flex; flex-direction: column; justify-content: center; text-align: center; }
span.text-detail { color: #555; padding: 0 3rem; }
@media (max-width: 540px) {
    .row-block { display: block; }
    .row-block .image-block, .row-block .text-block { width: 100%; }
    .row-block .image-block img, .row-block.reverse .image-block img, .row-block .text-block, .row-block.reverse .text-block { border-radius: 0; }
    span.text-detail { padding: 0; }
}

/* ===== กล่องไฮไลต์ ===== */
.highlight-box { background: #fff7ec; border-left: 6px solid #d4a017; padding: 20px 24px; margin: 24px 0; border-radius: 12px; }
.highlight-box h2 { color: #8b5a00; font-size: 20px; margin: 0 0 10px; }
.highlight-box p { line-height: 1.7; margin-bottom: 12px; }
.highlight-box ul { padding-left: 0; margin: 0; }
.highlight-box li { list-style: none; margin-bottom: 6px; }
