/* ==========================================================================
   refine.css — Hệ typography / màu / khoảng cách thống nhất toàn site
   --------------------------------------------------------------------------
   - 1 họ chữ chính: Poppins (tiêu đề + nội dung). Caveat chỉ dùng cho
     dòng "kicker" nhỏ phía trên tiêu đề section.
   - Thang chữ: 46 / 32 / 22 / 18 / 16 / 14 px (co giãn theo màn hình).
   - Load sau cùng (sau polish.css, Elementor) nên override an toàn.
   ========================================================================== */

:root {
    --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
    --font-body:    "Poppins", "Helvetica Neue", Arial, sans-serif;
    --font-script:  "Caveat", cursive;

    --color-primary:      #f15e22;
    --color-primary-dark: #d84c13;
    --color-secondary:    #1c3c37;   /* xanh rừng — trùng màu footer */
    --color-heading:      #1c3c37;
    --color-text:         #2b3534;
    --color-text-muted:   #5d6a68;
    --color-kicker:       #1f8f7a;
    --color-bg:           #fbf8f3;
    --color-surface:      #ffffff;
    --color-border:       #ebe5da;

    --fs-h1: clamp(30px, 3.4vw, 46px);
    --fs-h2: clamp(26px, 2.6vw, 34px);
    --fs-h3: clamp(19px, 1.7vw, 22px);
    --fs-h4: 18px;
    --fs-body: 16px;
    --fs-small: 14px;

    --radius-card: 16px;
    --shadow-card: 0 4px 18px rgba(28, 60, 55, .07);
    --shadow-card-hover: 0 14px 34px rgba(28, 60, 55, .13);
}

/* ----------------------------- Base -------------------------------------- */
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body p { color: var(--color-text); }

body h1, body h2, body h3, body h4, body h5, body h6 {
    font-family: var(--font-display);
    color: var(--color-heading);
    letter-spacing: -.01em;
}

/* ------------------------ Thẻ tour (Traveler) ---------------------------- */
.st-service-tour .item, .services-item, .item-service, .st-tour--item {
    border-radius: var(--radius-card);
}
h3.title, h3.title a, .service-title, .service-title a {
    font-family: var(--font-display) !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-heading);
    letter-spacing: -.005em;
}
h3.title a:hover { color: var(--color-primary); }
.st-tour--description, .excerpt-wrapper, .service-border-lib .excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-muted);
}
.item__info h4.info__name {
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}
.item__info .info__value, .item__info p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}
.price--tour .text-lg, .price--tour .item.onsale + .item, .price-wrapper .price {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-heading);
}
.price--tour .onsale, .price-wrapper .onsale {
    color: #98a3a1;
    font-size: 13px;
}

/* Blog cards */
.service-border-lib {
    background: var(--color-surface);
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.service-border-lib:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }

/* Testimonial */
.st-testimonial .content-item p {
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-heading);
}
.st-testimonial .author-name { font-weight: 600; color: var(--color-heading); }
.st-testimonial .office-testimonial-lib { font-size: 13px; color: var(--color-text-muted); }

/* --------------------- Destinations (shortcode) -------------------------- */
.hg-dest { margin-top: 4px; }
.hg-dest__day { margin-bottom: 26px; }
.hg-dest__day-title { font-size: 16px; color: var(--color-heading); margin-bottom: 12px; }
.hg-dest__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hg-dest__card { padding: 12px 14px; border-color: var(--color-border); border-radius: 12px; min-height: 62px; }
.hg-dest__txt strong { font-size: 14.5px; color: var(--color-heading); }
.hg-dest__txt em { font-size: 13px; color: var(--color-text-muted); }

/* ----------------------------- Trang tour -------------------------------- */
.hg-single-tour { background: var(--color-bg); }
body .hg-single-tour h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}
.hg-tour-body { font-size: var(--fs-body); line-height: 1.75; }
.hg-tour-body p, .hg-tour-body li { font-size: var(--fs-body); line-height: 1.75; color: var(--color-text); }
.hg-tour-body li { margin-bottom: 6px; }
/* Tiêu đề section (Overview, Itinerary, Route map, Reviews, Book this tour) */
body .hg-single-tour .hg-tour-section > h3:first-child,
body .hg-single-tour .hg-book-section__head h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
    padding-bottom: 10px;
    position: relative;
}
body .hg-single-tour .hg-tour-section > h3:first-child::after,
body .hg-single-tour .hg-book-section__head h2::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 44px; height: 3px; border-radius: 2px; background: var(--color-primary);
}
/* Tiêu đề trong nội dung bài */
body .hg-tour-body .hg-tour-section h2 { font-size: 24px; font-weight: 700; line-height: 1.3; text-transform: none; margin: 32px 0 12px; }
body .hg-tour-body .hg-tour-section h3:not(:first-child) { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 24px 0 10px; }
body .hg-tour-body .hg-tour-section h4 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 20px 0 8px; }
.hg-tour-section { margin-bottom: 48px; }
.hg-tour-section > h2:first-child, .hg-tour-section > h3:first-child { margin-top: 0; }

.hg-tour-meta { font-size: var(--fs-small); color: var(--color-text-muted); }
.hg-tour-tabs a { font-size: 13.5px; letter-spacing: .04em; }

body .hg-itinerary__day h4 { font-size: 17px; font-weight: 600; color: var(--color-heading); }

/* Sidebar tổng tiền */
.hg-total-widget { border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.hg-total-widget__price { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.hg-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
    padding: 5px 0;
    font-size: 13.5px;
    line-height: 1.45;
    border-bottom: 1px dashed var(--color-border);
}
.hg-summary .row > * { width: auto; max-width: none; padding: 0; margin: 0; }
.hg-summary .row .l { color: var(--color-text-muted); flex: 1 1 auto; }
.hg-summary .row .v { color: var(--color-text); font-weight: 600; white-space: nowrap; }
.hg-summary .total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.hg-approx { margin-top: 4px; text-align: right; font-size: 12.5px; color: var(--color-text-muted); }

.hg-route__map { border-radius: var(--radius-card); border-color: var(--color-border); }
.hg-route__list { font-size: 14.5px; }

/* --------------------------- Nút bấm ------------------------------------- */
.hg-button, .elementor-button, .btn-primary, .st-btn-book {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .03em;
}

/* --------------------------- Checkout ------------------------------------ */
.st-payment-tabs .gateway-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.hgc-intl-pay {
    margin: 18px 0;
    padding: 18px 20px;
    background: #f3f8f6;
    border: 1px solid #d5e7e1;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text);
}
.hgc-intl-pay h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--color-heading); }
.hgc-intl-pay ul { margin: 6px 0 0; padding-left: 18px; }
.hgc-intl-pay li { margin: 3px 0; }
.hgc-intl-pay .hgc-fx { font-weight: 600; color: var(--color-heading); }
.hgc-intl-pay dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 0; }
.hgc-intl-pay dt { color: var(--color-text-muted); font-weight: 500; }
.hgc-intl-pay dd { margin: 0; font-weight: 600; word-break: break-word; }
.hgc-card-logos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hgc-card-logos span {
    padding: 3px 8px; border: 1px solid var(--color-border); border-radius: 6px;
    background: #fff; font-size: 12px; font-weight: 600; color: var(--color-heading);
}

/* ---------------------------- Footer ------------------------------------- */
footer, .site-footer { font-size: 14.5px; line-height: 1.7; }

/* ---------------------------- Mobile ------------------------------------- */
@media (max-width: 767px) {
    body { font-size: 15.5px; }
    .hg-tour-body h2 { margin-top: 30px; }
    .hg-itinerary__day { padding: 16px; }
    .hg-dest__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hg-dest__card { padding: 10px; }
    .st-testimonial .content-item p { font-size: 17px; }
}

/* Tiêu đề "Book this tour" căn giữa → gạch nhấn cũng căn giữa */
body .hg-single-tour .hg-book-section__head h2::after { left: 50%; transform: translateX(-50%); }

/* Trang chủ — mục Destinations: bớt khoảng trống giữa tiêu đề và lưới điểm đến */
.elementor-8330 .elementor-element.elementor-element-b29124d .elementor-divider { padding-block: 10px !important; }
.elementor-8330 .elementor-element.elementor-element-149a69a5 { margin-top: 20px !important; }

/* Header: email + số điện thoại chỉ hiện icon (chữ ẩn trực quan, trình đọc màn hình vẫn đọc). Link mailto:/tel: đặt trong Theme Options.
   Selector dài để thắng rule của Traveler (body header .header .header-right .st-list .st-header-link a). */
body header .header .header-right .st-list .st-header-link a {
    position: relative; display: inline-flex !important; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0 !important; overflow: hidden;
    border-radius: 50%; border: 1.5px solid #e2dccf; background: transparent;
    color: #1c3c37 !important; font-size: 0 !important; line-height: 1; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
body header .header .header-right .st-list .st-header-link a i { margin: 0 !important; font-size: 17px; line-height: 1; color: inherit !important; }
body header .header .header-right .st-list .st-header-link a:hover { background: #1c3c37; border-color: #1c3c37; color: #fff !important; }
body header .header .header-right .st-list .st-header-link + .st-header-link { margin-left: 8px; }
