/*
Theme Name:     Traveler Childtheme
Description:    Traveler Child Theme
Theme URI:      https://travelerwp.com/
Author:         the ShineTheme
Author URI:     http://shinetheme.com
Version:        1.0
Template:       traveler
*/

/* =========================================================
   1. RESET / BASE  (chỉ override những gì cần,
   parent theme Traveler đã reset cơ bản)
   ========================================================= */
:root {
    --color-primary: #ff6b00;          /* cam Ha Giang */
    --color-primary-dark: #e25c00;
    --color-secondary: #1a3c34;        /* xanh rêu núi rừng */
    --color-accent: #f4c430;           /* vàng terraced */
    --color-bg: #fdfbf7;
    --color-bg-dark: #1a1a1a;
    --color-text: #222222;
    --color-text-muted: #666666;
    --color-border: #e9e3d8;

    --font-display: "Playfair Display", "Times New Roman", serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 28px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 28px rgba(0,0,0,.10);

    --container: 1240px;
    --gutter: 24px;
}

html { scroll-behavior: smooth; }

body.hagiang-theme {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.hagiang-theme img { max-width: 100%; height: auto; display: block; }
body.hagiang-theme a   { color: inherit; text-decoration: none; transition: color .25s ease; }
body.hagiang-theme a:hover { color: var(--color-primary); }
body.hagiang-theme h1, body.hagiang-theme h2, body.hagiang-theme h3, body.hagiang-theme h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.15;
    margin: 0 0 .5em;
}

body.hagiang-theme h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
body.hagiang-theme h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
body.hagiang-theme h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

.hg-container {
    width: min(100% - 2*var(--gutter), var(--container));
    margin-inline: auto;
}

.hg-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .9rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background .25s ease;
}
.hg-button:hover { background: var(--color-primary-dark); color:#fff; transform: translateY(-2px); }
.hg-button.is-ghost { background: transparent; color:#fff; border: 2px solid #fff; }
.hg-button.is-ghost:hover { background:#fff; color: var(--color-secondary); }

/* =========================================================
   2. HEADER
   ========================================================= */
.hg-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.hg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.hg-header__logo img { height: 50px; width: auto; }
.hg-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 500;
    font-size: .95rem;
}
.hg-nav__item { position: relative; padding: 8px 0; }
.hg-nav__item.has-children > .hg-nav__sub {
    position: absolute;
    left: -16px;
    top: 100%;
    background: #fff;
    min-width: 220px;
    padding: 14px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all .25s ease;
}
.hg-nav__item.has-children:hover > .hg-nav__sub {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.hg-nav__sub a { display:block; padding: 8px 22px; }
.hg-nav__sub a:hover { background: rgba(255,107,0,.08); }

.hg-header__actions { display: flex; align-items: center; gap: 18px; }
.hg-header__icon { width: 24px; height: 24px; }
.hg-mobile-toggle { display: none; background: transparent; border: 0; cursor: pointer; }

@media (max-width: 992px) {
    .hg-nav { display: none; }
    .hg-mobile-toggle { display: inline-flex; }
    .hg-nav.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0 0 0 auto;
        width: 80%;
        max-width: 360px;
        background: #fff;
        padding: 80px 28px;
        gap: 18px;
        align-items: flex-start;
        z-index: 60;
        box-shadow: var(--shadow-md);
    }
}

/* =========================================================
   3. HERO
   ========================================================= */
.hg-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hg-hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 0;
}
.hg-hero::after {
    content:"";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
    z-index: 1;
}
.hg-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 80px 0;
}
.hg-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: .9;
}
.hg-hero h1 {
    color: #fff;
    text-shadow: 0 6px 24px rgba(0,0,0,.4);
    margin-bottom: 16px;
}
.hg-hero p { font-size: 1.2rem; max-width: 520px; margin-bottom: 32px; opacity: .95; }

/* =========================================================
   4. SECTION COMMON
   ========================================================= */
.hg-section { padding: 96px 0; position: relative; }
.hg-section--bg { background-size: cover; background-position: center; color: #fff; }
.hg-section--bg h2, .hg-section--bg h3 { color: #fff; }

.hg-section__head { text-align: center; margin-bottom: 56px; }
.hg-section__head .eyebrow { color: var(--color-primary); letter-spacing:.18em; text-transform: uppercase; font-weight:600; font-size:.85rem; margin-bottom: 10px; display:block; }
.hg-section__head h2 { margin-bottom: 14px; }
.hg-section__head p { max-width: 640px; margin: 0 auto; color: var(--color-text-muted); }

/* =========================================================
   5. TRIBE / DESTINATION SLIDER
   ========================================================= */
.hg-tribe {
    background: var(--color-secondary);
    color: #fff;
}
.hg-tribe__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.hg-tribe__card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease;
}
.hg-tribe__card img { width:100%; height:100%; object-fit: cover; transition: transform .6s ease; }
.hg-tribe__card:hover { transform: translateY(-6px); }
.hg-tribe__card:hover img { transform: scale(1.07); }
.hg-tribe__card .meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
}
.hg-tribe__card .meta strong { display:block; font-size: 1.05rem; }
.hg-tribe__card .meta span  { font-size: .8rem; opacity:.8; }

/* =========================================================
   6. TOURISTS MEMORIES
   ========================================================= */
.hg-memories__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.hg-memories__row img {
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease;
}
.hg-memories__row img:hover { transform: scale(1.04); }

/* =========================================================
   7. POPULAR TOURS
   ========================================================= */
.hg-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.hg-tour-card {
    background:#fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display:flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.hg-tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hg-tour-card__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.hg-tour-card__media img { width:100%; height:100%; object-fit: cover; transition: transform .6s ease; }
.hg-tour-card:hover .hg-tour-card__media img { transform: scale(1.07); }
.hg-tour-card__tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--color-primary);
    color: #fff;
    padding: 6px 14px;
    font-size: .75rem;
    font-weight:600;
    border-radius: 999px;
    text-transform: uppercase;
}
.hg-tour-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.hg-tour-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: var(--color-secondary);
    min-height: 3em;
}
.hg-tour-card__title a:hover { color: var(--color-primary); }
.hg-tour-card__price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.hg-tour-card__excerpt { color: var(--color-text-muted); font-size: .92rem; margin: 0 0 18px; flex: 1; }
.hg-tour-card__more {
    align-self: flex-start;
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* =========================================================
   8. TREKKING / FEATURE BLOCK
   ========================================================= */
.hg-trek {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hg-trek__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hg-trek__content h3 { font-size: 1.8rem; margin-bottom: 18px; }
.hg-trek__content p { color: var(--color-text-muted); margin-bottom: 18px; }
@media(max-width:900px){ .hg-trek { grid-template-columns: 1fr; } }

/* =========================================================
   9. CTA BANNER
   ========================================================= */
.hg-cta {
    text-align: center;
    color:#fff;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hg-cta::before {
    content:"";
    position:absolute; inset:0;
    background: rgba(0,0,0,.45);
}
.hg-cta > * { position: relative; }
.hg-cta h2 { color:#fff; margin-bottom: 14px; }
.hg-cta p { margin-bottom: 28px; opacity:.9; font-size: 1.1rem; }

/* =========================================================
   10. ABOUT US – story / values / numbers
   ========================================================= */
.hg-story { display: grid; gap: 80px; }
.hg-story__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hg-story__row:nth-child(even) { direction: rtl; }
.hg-story__row:nth-child(even) > * { direction: ltr; }
.hg-story__media img { border-radius: var(--radius-lg); }
.hg-story__content h3 { font-size: 1.7rem; margin-bottom: 16px; }
@media(max-width:900px){ .hg-story__row { grid-template-columns: 1fr; direction: ltr;} }

.hg-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.hg-value {
    background:#fff;
    padding: 32px 26px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.hg-value__icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    background: rgba(255,107,0,.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.hg-value h4 { font-family: var(--font-display); margin-bottom: 10px; color: var(--color-secondary); }
.hg-value p { color: var(--color-text-muted); margin: 0; font-size:.95rem; }

.hg-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    color:#fff;
}
.hg-numbers .num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height:1;
    color: var(--color-accent);
}

/* =========================================================
   11. TESTIMONIALS / FEEDBACK
   ========================================================= */
.hg-feedback {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.hg-feedback__card {
    background:#fff;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.hg-feedback__stars { color: var(--color-accent); margin-bottom: 12px; letter-spacing: 2px; }
.hg-feedback__name { font-weight: 700; color: var(--color-secondary); margin-bottom: 10px; }
.hg-feedback__text { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 14px; line-height:1.7; }
.hg-feedback__date { font-size: .82rem; color: #999; }

/* =========================================================
   12. ARCHIVE / TOUR LIST PAGE
   ========================================================= */
.hg-archive-hero {
    height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color:#fff;
    text-align: center;
    position: relative;
}
.hg-archive-hero::after { content:""; position:absolute; inset:0; background: rgba(0,0,0,.4); }
.hg-archive-hero h1 { position: relative; color:#fff; }

.hg-archive {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin: 56px 0;
}
.hg-filter {
    background:#fff; padding: 24px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); position: sticky; top: 96px; height: fit-content;
}
.hg-filter h4 { font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing:.1em; margin: 0 0 14px; color: var(--color-secondary); }
.hg-filter ul { list-style: none; padding: 0; margin: 0 0 22px; }
.hg-filter ul li { padding: 8px 0; font-size: .95rem; cursor: pointer; }
.hg-filter ul li:hover { color: var(--color-primary); }
@media(max-width:900px){ .hg-archive { grid-template-columns: 1fr; } .hg-filter { position: static; } }

/* =========================================================
   13. SINGLE TOUR
   ========================================================= */
.hg-single-tour { padding-top: 0; }

/* Gallery hero — kế thừa style theme gốc (.tour-featured-image của Traveler) */
.tour-featured-image { position: relative; }
.tour-featured-image.featured-image-background {
    height: 500px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
.tour-featured-image .container { position: relative; height: 100%; }
.tour-featured-image .st-gallery { position: relative; height: 500px; }
.tour-featured-image .st-gallery .btn-group { position: absolute; bottom: 30px; right: 0; display: flex; }
.tour-featured-image .st-gallery .btn-group .btn { margin-left: 10px; }
.tour-featured-image .btn.btn-transparent {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(26,43,72,.5); color: #fff;
    font-size: 14px; font-weight: 500; line-height: 1;
    padding: 10px 15px; border: 0; border-radius: 3px;
    text-decoration: none; cursor: pointer; transition: background .2s;
}
.tour-featured-image .btn.btn-transparent:hover { background: rgba(26,43,72,.7); color: #fff; }
.tour-featured-image .hidden { display: none !important; }
@media(max-width:900px){
    .tour-featured-image.featured-image-background,
    .tour-featured-image .st-gallery { height: 320px; }
}

.hg-tour-body { display: grid; grid-template-columns: 1fr 380px; gap: 44px; margin-top: 44px; }
@media(max-width:992px){ .hg-tour-body { grid-template-columns: 1fr; } }

.hg-tour-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; color: var(--color-text-muted); font-size: .9rem; }
.hg-tour-meta span { display:inline-flex; align-items:center; gap:6px; }

.hg-tour-tabs { border-bottom: 1px solid var(--color-border); margin-bottom: 28px; display: flex; gap: 28px; }
.hg-tour-tabs a {
    padding: 14px 0;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .08em;
}
.hg-tour-tabs a.is-active { color: var(--color-primary); border-color: var(--color-primary); }

.hg-itinerary__day {
    border-left: 3px solid var(--color-primary);
    padding: 0 0 32px 24px;
    margin-left: 8px;
    position: relative;
}
.hg-itinerary__day::before {
    content:"";
    position: absolute; left: -10px; top: 0;
    width: 17px; height: 17px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--color-primary);
}
.hg-itinerary__day h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing:.08em; font-size:.95rem; color: var(--color-primary); margin: 0 0 6px; }

.hg-booking {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 28px;
    position: sticky; top: 96px;
}
.hg-booking__price { font-family: var(--font-display); font-size: 2rem; color: var(--color-primary); margin-bottom: 8px; }
.hg-booking__form label { display:block; margin-bottom: 14px; font-size:.9rem; }
.hg-booking__form label span { display:block; font-weight:600; margin-bottom:6px; color: var(--color-secondary); }
.hg-booking__form input,
.hg-booking__form select,
.hg-booking__form textarea {
    width:100%; padding: 12px 14px;
    border:1px solid var(--color-border);
    border-radius: 10px;
    font: inherit;
}
.hg-booking__form .hg-button { width:100%; justify-content: center; margin-top: 8px; }

/* =========================================================
   14. AFFILIATE
   ========================================================= */
.hg-affiliate-hero {
    text-align:center; padding: 100px 0;
    background: linear-gradient(135deg, var(--color-secondary), #2a5b50); color:#fff;
}
.hg-affiliate-hero h1 { color:#fff; }
.hg-affiliate-cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.hg-affiliate-card { background:#fff; padding: 28px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-align: center; }
.hg-affiliate-card .step { color: var(--color-primary); font-weight: 700; font-size:.9rem; }

/* =========================================================
   15. BLOG
   ========================================================= */
.hg-blog-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 28px; }
.hg-blog-card { background:#fff; border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease; }
.hg-blog-card:hover { transform: translateY(-4px); }
.hg-blog-card__media img { aspect-ratio: 16/10; object-fit: cover; }
.hg-blog-card__body { padding: 22px; }
.hg-blog-card__date { color: var(--color-primary); font-size: .8rem; text-transform: uppercase; letter-spacing:.1em; }
.hg-blog-card__title { font-family: var(--font-display); font-size: 1.2rem; margin: 8px 0 10px; }
.hg-blog-card__excerpt { color: var(--color-text-muted); font-size: .92rem; }

/* =========================================================
   16. FOOTER
   ========================================================= */
.hg-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,.85);
    padding: 80px 0 30px;
}
.hg-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
}
@media(max-width:900px){ .hg-footer__grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px){ .hg-footer__grid { grid-template-columns: 1fr; } }
.hg-footer h4 { color:#fff; font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing:.1em; margin-bottom: 18px; }
.hg-footer a { color: rgba(255,255,255,.75); }
.hg-footer a:hover { color: var(--color-primary); }
.hg-footer ul { list-style:none; padding:0; margin:0; }
.hg-footer ul li { padding: 6px 0; }
.hg-socials { display:flex; gap: 14px; margin-top: 18px; }
.hg-socials a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display:flex; align-items:center; justify-content:center;
    transition: background .25s ease;
}
.hg-socials a:hover { background: var(--color-primary); }
.hg-socials img { width: 18px; height: 18px; filter: invert(1); }
.hg-newsletter { display:flex; }
.hg-newsletter input {
    flex:1;
    padding: 12px 14px;
    border-radius: 8px 0 0 8px;
    border: 0;
    font: inherit;
}
.hg-newsletter button {
    padding: 12px 22px;
    border:0;
    background: var(--color-primary);
    color:#fff;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
}
.hg-footer__bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    color: rgba(255,255,255,.5);
    font-size: .85rem;
}

/* =========================================================
   17. UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
