/* =========================================================
   TravHub VN — Main Stylesheet
   ========================================================= */

:root {
    /* Bảng màu lấy theo logo Phú Quốc Easy Tour: xanh dương (biển) + xanh lá (núi/dừa) */
    --color-primary: #0f7ab8;
    --color-primary-dark: #0a5c8c;
    --color-primary-light: #e7f4fb;
    --color-accent: #1fae53;
    --color-accent-dark: #168a41;
    --color-sky: #29b6e8;
    --color-dark: #0b2a3d;
    --color-text: #4a5a63;
    --color-light-bg: #f6fafb;
    --surface: #ffffff;
    --page-bg: #ffffff;
    --border-subtle: #eef3f1;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 40px rgba(11, 42, 61, 0.08);
    --shadow-hover: 0 20px 50px rgba(11, 42, 61, 0.16);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--page-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 600;
    line-height: 1.25;
}

a { text-decoration: none; transition: all .25s ease; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .3s ease;
    border: none;
}
.btn-primary-brand {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary-brand:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15,122,184,.3);
}
.btn-accent {
    background: var(--color-accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(31,174,83,.35);
}
.btn-outline-brand {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline-brand:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}
.btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.btn-whatsapp:hover { background: #1ebd5a; color: #fff; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(37,211,102,.35);}
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-block-100 { width: 100%; justify-content: center; }

/* ---------- Section Heading ---------- */
.section-pad { padding: 90px 0; }
@media (max-width: 767px) { .section-pad { padding: 56px 0; } }

.section-subtitle {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.section-subtitle::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--color-accent);
    display: inline-block;
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: 0;
}
.section-head { margin-bottom: 48px; }
.bg-light-brand { background: var(--color-light-bg); }

/* ---------- Top bar & Navbar ---------- */
.topbar {
    background: var(--color-dark);
    color: #cfe3df;
    font-size: .85rem;
    padding: 8px 0;
}
.topbar a { color: #cfe3df; }
.topbar a:hover { color: var(--color-accent); }

.navbar-travhub {
    background: var(--surface);
    padding: 14px 0;
    transition: all .3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.navbar-travhub.scrolled { padding: 8px 0; box-shadow: 0 5px 25px rgba(0,0,0,.08); }
.navbar-brand-travhub {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-dark) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand-travhub span { color: var(--color-primary); }
.brand-logo-chip { display: inline-flex; align-items: center; }
.brand-logo-img { height: 52px; width: auto; display: block; }
.footer-travhub .brand-logo-chip { padding: 8px 14px; border-radius: 14px; }
.footer-travhub .brand-logo-img { height: 46px; }
.nav-link-travhub {
    font-weight: 500;
    color: var(--color-dark) !important;
    margin: 0 12px;
    position: relative;
    padding: 8px 0 !important;
}
.nav-link-travhub.active, .nav-link-travhub:hover { color: var(--color-primary) !important; }
.nav-link-travhub.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}
.lang-switch-btn {
    border: 1px solid #e3e9e7;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-dark);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lang-switch-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    background: linear-gradient(120deg, rgba(11,42,61,.92), rgba(15,122,184,.75)), var(--hero-bg-url, url('../images/hero-bg.jpg')) center/cover no-repeat;
    padding: 140px 0 200px;
    overflow: hidden;
    color: #fff;
}
.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.hero-section::before {
    width: 300px; height: 300px;
    background: rgba(31,174,83,.18);
    top: -80px; right: -60px;
    animation: floatY 7s ease-in-out infinite;
}
.hero-section::after {
    width: 220px; height: 220px;
    background: rgba(255,255,255,.08);
    bottom: 40px; left: -60px;
    animation: floatY 9s ease-in-out infinite reverse;
}
@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}
.hero-badge-pill {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}
.hero-title .accent-word { color: var(--color-accent); position: relative; }
.hero-desc { font-size: 1.05rem; color: #e3f0ec; max-width: 560px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat-num { font-size: 2rem; font-weight: 700; color: #fff; font-family: var(--font-heading); }
.hero-stat-label { font-size: .85rem; color: #cfe3df; }

/* Search / filter floating card */
.hero-search-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 28px;
    margin-top: -90px;
    position: relative;
    z-index: 5;
}
.hero-search-card .form-label { font-size: .8rem; font-weight: 700; color: var(--color-dark); text-transform: uppercase; letter-spacing: .5px; }
.hero-search-card .form-control, .hero-search-card .form-select {
    border: 1px solid #e5eceb;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}
.hero-search-card .form-control:focus, .hero-search-card .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15,122,184,.12);
}

/* ---------- Destination Cards ---------- */
.destination-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 340px;
    box-shadow: var(--shadow-soft);
}
.destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.destination-card:hover img { transform: scale(1.08); }
.destination-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(11,42,61,.85) 100%);
}
.destination-card .info { position: absolute; bottom: 22px; left: 22px; right: 22px; color: #fff; }
.destination-card .info h5 { color: #fff; margin-bottom: 4px; }
.destination-card .info span { font-size: .82rem; color: #d7ece7; }

/* ---------- Feature Cards ---------- */
.feature-icon-wrap {
    width: 64px; height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.feature-card { padding: 8px; }
.feature-card h5 { margin-bottom: 12px; }

/* ---------- Tour Cards ---------- */
.tour-card {
    position: relative;
    isolation: isolate;
    background: #0b2a3d;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .35s ease, box-shadow .35s ease;
    min-height: 550px;
    height: 100%;
    border: 1px solid var(--border-subtle);
}
.tour-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.tour-card .tour-img-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.tour-card .tour-img-wrap a { display: block; width: 100%; height: 100%; }
.tour-card .tour-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.tour-card:hover .tour-img-wrap img { transform: scale(1.045); }
.tour-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3,20,29,.02) 20%, rgba(3,20,29,.24) 44%, rgba(3,20,29,.96) 83%, rgba(3,20,29,.99) 100%);
}
.tour-badge {
    z-index: 3;
    position: absolute; top: 14px; left: 14px;
    background: #ffc107;
    color: #173044;
    font-size: .78rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 7px;
}
.tour-rating-badge {
    z-index: 3;
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,.95);
    color: var(--color-dark);
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    display: flex; align-items: center; gap: 4px;
}
.tour-card-body {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 22px 22px;
    color: #fff;
}
.tour-featured-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--color-accent);
    color: #fff;
    font-size: .72rem;
    line-height: 1;
    font-weight: 700;
}
.tour-meta { display: flex; gap: 14px; font-size: .78rem; color: rgba(255,255,255,.84); margin-top: 12px; flex-wrap: wrap; }
.tour-meta span { display: flex; align-items: center; gap: 5px; }
.tour-card h5 { line-height: 1.3; }
.tour-card h5 a { color: #fff; }
.tour-card h5 a:hover { color: #d9f7ef; }
.tour-card-body > p { color: rgba(255,255,255,.78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-price-row { padding: 0; margin-bottom: 9px; border: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tour-price { font-size: 1.35rem; font-weight: 800; color: #fff; }
.tour-price-old { font-size: .8rem; color: rgba(255,255,255,.62); text-decoration: line-through; }
.tour-per-person { color: rgba(255,255,255,.78); font-size: .78rem; }
.tour-cta-row { display: flex; gap: 8px; margin-top: 14px; }
.tour-cta-row .btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.btn-tour-detail {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.9);
    background: rgba(0,0,0,.12);
}
.btn-tour-detail:hover,
.btn-tour-detail:focus {
    color: #0b2a3d;
    border-color: #fff;
    background: #fff;
}

@media (max-width: 1199.98px) {
    .tour-card { min-height: 530px; }
}
@media (max-width: 767.98px) {
    .tour-card { min-height: 520px; }
    .tour-card-body { padding: 22px 20px 20px; }
}
@media (max-width: 399.98px) {
    .tour-card { min-height: 500px; }
    .tour-card-body { padding: 20px 17px 17px; }
    .tour-card h5 { font-size: 1rem; }
    .tour-card-body > p { display: none; }
    .tour-price { font-size: 1.2rem; }
}

/* ---------- Gallery ---------- */
.gallery-item { border-radius: var(--radius-md); overflow: hidden; position: relative; height: 260px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .zoom-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(11,42,61,0); color: #fff; font-size: 1.4rem; opacity: 0; transition: all .3s ease;
}
.gallery-item:hover .zoom-icon { background: rgba(11,42,61,.35); opacity: 1; }
.gallery-area-card { position:relative; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-soft); background:#fff; }
.gallery-area-card .gallery-item { display:block; height:280px; }
.gallery-area-card .gallery-area-hidden { display:none; }
.gallery-area-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(5,30,39,0) 28%,rgba(5,30,39,.82) 100%); pointer-events:none; }
.gallery-area-info { position:absolute; z-index:2; left:20px; right:20px; bottom:18px; color:#fff; pointer-events:none; }
.gallery-area-info h5 { color:#fff; font-size:1.15rem; margin:0 0 4px; }
.gallery-area-info span { display:inline-flex; align-items:center; gap:6px; font-size:.82rem; color:#e7f5f1; }
.gallery-area-card .zoom-icon { align-items:flex-start; justify-content:flex-end; padding:16px; font-size:1.15rem; }
.gallery-area-card:hover .gallery-area-info { transform:translateY(-2px); }
.gallery-region-block + .gallery-region-block { margin-top:34px; }
.gallery-region-heading { display:flex;align-items:center;gap:9px;margin:0 0 14px;color:var(--color-primary,#168b75); }
.gallery-region-heading h3 { margin:0;font-size:1.35rem;color:var(--color-dark,#092b3b); }
.gallery-region-heading i { width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#def4ed; }
@media(max-width:767.98px){.gallery-area-card .gallery-item{height:220px}.gallery-area-info{left:14px;right:14px;bottom:13px}.gallery-area-info h5{font-size:1rem}}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo-wrap { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; position: relative; }
.team-photo-wrap img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo-wrap img { transform: scale(1.06); }
.team-social { position: absolute; bottom: -50px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; transition: all .3s ease; padding-bottom: 16px; }
.team-card:hover .team-social { bottom: 0; }
.team-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    height: 100%;
}
.testimonial-stars { color: var(--color-accent); margin-bottom: 14px; font-size: .9rem; }
.testimonial-text { font-style: italic; color: var(--color-text); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; color: var(--color-dark); }

/* ---------- Client logos ---------- */
.clients-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 30px; opacity: .65; }
.clients-strip img { height: 34px; filter: grayscale(1); }

/* ---------- Blog Cards ---------- */
.blog-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); height: 100%; transition: all .3s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.blog-card .blog-img-wrap { height: 200px; overflow: hidden; }
.blog-card .blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.1); }
.blog-card-body { padding: 22px; }
.blog-meta { font-size: .78rem; color: #8a9793; display: flex; gap: 14px; margin-bottom: 10px; }
.blog-card h5 a { color: var(--color-dark); }
.blog-card h5 a:hover { color: var(--color-primary); }
.blog-readmore { font-weight: 600; color: var(--color-primary); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.blog-readmore:hover { gap: 10px; color: var(--color-primary-dark); }

/* ---------- Newsletter ---------- */
.newsletter-band {
    background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
    border-radius: var(--radius-lg);
    padding: 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.newsletter-band::after {
    content: '';
    position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: rgba(31,174,83,.15); top: -100px; right: -60px;
    pointer-events: none;
}
.newsletter-form .form-control { border-radius: 50px; padding: 14px 20px; border: none; }
.newsletter-form .btn { white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    padding: 60px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe3df; }

/* ---------- Footer ---------- */
.footer-travhub { background: #0d1a17; color: #a9beb8; padding: 80px 0 0; }
.footer-travhub h5 { color: #fff; margin-bottom: 22px; font-size: 1.05rem; }
.footer-travhub a { color: #a9beb8; }
.footer-travhub a:hover { color: var(--color-accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; font-size: .85rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
.footer-social a:hover { background: var(--color-primary); color: #fff; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-contact-item i { color: var(--color-accent); margin-top: 3px; }

/* ---------- Floating WhatsApp Button ---------- */
.float-whatsapp {
    position: fixed;
    bottom: 26px; right: 26px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(37,211,102,.5);
    z-index: 999;
    animation: pulse-wa 2.2s infinite;
}
.float-whatsapp:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.float-call {
    position: fixed;
    bottom: 96px; right: 26px;
    width: 60px; height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(15,122,184,.5);
    z-index: 999;
}
.float-call:hover { color: #fff; transform: scale(1.08); }

/* ---------- Language popup ---------- */
.lang-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(11,42,61,.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.lang-popup-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-hover);
}
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.lang-option {
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: all .2s ease;
}
.lang-option .flag { font-size: 1.7rem; }
.lang-option:hover, .lang-option.active { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary); }

/* ---------- Page header (sub pages) ---------- */
.page-header {
    background: linear-gradient(120deg, rgba(11,42,61,.9), rgba(15,122,184,.72)), var(--hero-bg-url, url('../images/hero-bg.jpg')) center/cover;
    padding: 90px 0 60px;
    color: #fff;
    text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb-travhub { justify-content: center; font-size: .9rem; }
.breadcrumb-travhub a { color: #d7ece7; }
.breadcrumb-travhub .active { color: var(--color-accent); }

/* ---------- Misc utility ---------- */
.badge-brand { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; padding: 6px 14px; border-radius: 50px; font-size: .78rem; }
.sticky-side { position: sticky; top: 100px; }
.back-to-top {
    position: fixed; bottom: 100px; left: 37px;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(12,105,88,.3);
    z-index: 1041;
    cursor: pointer;
    font-size: 1.15rem;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { color:#fff; background:var(--color-primary-dark); transform:translateY(-3px); }
.back-to-top:focus-visible { outline:3px solid rgba(25,169,143,.32); outline-offset:3px; }
@media (max-width:575.98px) {
    .back-to-top { left:27px; bottom:90px; width:42px; height:42px; }
}

/* ---------- Star picker (form viết đánh giá) ---------- */
.review-star-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 1.9rem;
}
.review-star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.review-star-picker label { color: #e0e6e4; cursor: pointer; padding: 0 3px; transition: color .15s ease; }
.review-star-picker input:checked ~ label,
.review-star-picker label:hover,
.review-star-picker label:hover ~ label { color: #f5a623; }

/* ---------- Flash toast (thông báo phản hồi form) ---------- */
.flash-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    max-width: 92%;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 50px;
    font-size: .92rem;
    font-weight: 600;
    border: none;
}

/* AOS-lite fallback animation classes (used if AOS not loaded) */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos].aos-animate { opacity: 1; }

/* ---------- Page load animation (logo reveal, 1 lần / phiên truy cập) ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    animation: pageLoaderHide 1.8s ease forwards;
}
.page-loader-icon img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    opacity: 0;
    animation: pageLoaderIconIn .6s cubic-bezier(.34,1.56,.64,1) .1s forwards;
}
.page-loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    opacity: 0;
    animation: pageLoaderTextIn .6s ease .5s forwards;
}
.page-loader-text-1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--color-dark);
}
.page-loader-text-2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: 4px;
    color: var(--color-primary);
}
@keyframes pageLoaderIconIn {
    0% { opacity: 0; transform: scale(.5) rotate(-8deg); }
    60% { opacity: 1; transform: scale(1.08) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes pageLoaderTextIn {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pageLoaderHide {
    0%, 65% { opacity: 1; visibility: visible; pointer-events: auto; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
    .page-loader { animation-duration: .4s; }
    .page-loader-icon img, .page-loader-text { animation: none; opacity: 1; }
}

/* ---------- Theme toggle (sáng / tối) ---------- */
.theme-toggle {
    position: relative;
    width: 54px;
    height: 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    padding: 3px;
    flex-shrink: 0;
    background: linear-gradient(120deg, #ffd97a, #7ec8f2);
    transition: background .4s ease;
}
.theme-toggle-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5a623;
    font-size: .78rem;
    transform: translateX(0);
    transition: transform .4s cubic-bezier(.4,0,.2,1), color .3s ease, background-color .3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.theme-toggle-knob .bi-moon-stars-fill { display: none; }
[data-theme="dark"] .theme-toggle-knob .bi-sun-fill { display: none; }
[data-theme="dark"] .theme-toggle-knob .bi-moon-stars-fill { display: inline-block; }

/* ---------- Giao diện tối (dark mode) ----------
   Chỉ áp dụng cho website công khai (không áp dụng cho khu vực Admin).
   Đa số màu chữ/heading dùng chung biến --color-dark và --color-text vốn đã
   được dùng xuyên suốt style.css, nên chỉ cần đổi GIÁ TRỊ của các biến này
   khi ở chế độ tối là tự động áp dụng đúng ở khắp nơi. Các chỗ nền trắng
   (#fff) cố định cho card/navbar/popup đã được đổi sang var(--surface) ở
   trên để cũng tự động đổi theo. */
[data-theme="dark"] {
    --color-dark: #eef3f5;
    --color-text: #b7c4ca;
    --color-light-bg: #101c26;
    --color-primary-light: rgba(15, 122, 184, .18);
    --surface: #16232e;
    --page-bg: #0b141b;
    --border-subtle: #263443;
}
[data-theme="dark"] .hero-search-card .form-control,
[data-theme="dark"] .hero-search-card .form-select,
[data-theme="dark"] .tour-price-row {
    border-color: #263443;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--surface);
    border-color: #263443;
    color: var(--color-text);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--surface);
    color: var(--color-text);
}
[data-theme="dark"] .form-control::placeholder { color: #64757e; }
[data-theme="dark"] .dropdown-menu {
    background-color: var(--surface);
    border-color: #263443;
}
[data-theme="dark"] .dropdown-item { color: var(--color-text); }
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus,
[data-theme="dark"] .dropdown-item.active {
    background-color: var(--color-light-bg);
    color: var(--color-dark);
}
[data-theme="dark"] .offcanvas {
    background-color: var(--surface);
    color: var(--color-text);
}
[data-theme="dark"] .modal-content {
    background-color: var(--surface);
    color: var(--color-text);
}
[data-theme="dark"] .tour-card,
[data-theme="dark"] .blog-card {
    border-color: #263443;
}
[data-theme="dark"] .bg-white {
    background-color: var(--surface) !important;
}
[data-theme="dark"] .text-muted {
    color: #8a9aa3 !important;
}
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(120deg, #0b2a3d, #163a52);
}
[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(26px);
    background: #0b141b;
    color: #cfe3df;
}

/* ============ Carousel ảnh trang chi tiết Tour / Blog ============ */
.detail-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.detailGallerySwiper {
    border-radius: 20px;
    overflow: hidden;
}
.detailGallerySwiper .swiper-slide {
    height: 460px;
}
.detailGallerySwiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.detailGallerySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detailGallerySwiper .swiper-button-prev,
.detailGallerySwiper .swiper-button-next {
    width: 42px;
    height: 42px;
    background: rgba(11, 42, 61, 0.55);
    border-radius: 50%;
    color: #fff;
    backdrop-filter: blur(2px);
    transition: background .2s;
}
.detailGallerySwiper .swiper-button-prev:hover,
.detailGallerySwiper .swiper-button-next:hover {
    background: var(--color-primary);
}
.detailGallerySwiper .swiper-button-prev::after,
.detailGallerySwiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}
.detailGallerySwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: .6;
}
.detailGallerySwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-accent);
}
@media (max-width: 767.98px) {
    .detailGallerySwiper .swiper-slide { height: 260px; }
}
[data-theme="dark"] .detailGallerySwiper .swiper-button-prev,
[data-theme="dark"] .detailGallerySwiper .swiper-button-next {
    background: rgba(0, 0, 0, 0.55);
}

/* ============ Nút Thích (Like) bài viết Blog ============ */
.blog-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 2px solid #e3ebe8;
    background: #fff;
    color: var(--color-dark);
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: all .2s;
}
.blog-like-btn:hover {
    border-color: var(--color-accent);
}
.blog-like-btn i {
    font-size: 1.1rem;
    color: #c7d2ce;
    transition: color .2s, transform .2s;
}
.blog-like-btn.liked {
    border-color: var(--color-accent);
    background: var(--color-primary-light);
    color: var(--color-accent-dark);
}
.blog-like-btn.liked i {
    color: #e0435b;
    transform: scale(1.1);
}
[data-theme="dark"] .blog-like-btn {
    background: var(--surface);
    border-color: var(--border-subtle);
    color: var(--color-text);
}
[data-theme="dark"] .blog-like-btn.liked {
    background: rgba(31, 174, 83, .12);
}

/* ============ Bình luận Blog ============ */
.blog-comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #eef3f1;
}
.blog-comment-item:first-child { padding-top: 0; }
.blog-comment-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}
.blog-comment-body { flex: 1 1 auto; }
[data-theme="dark"] .blog-comment-item {
    border-color: var(--border-subtle);
}
[data-theme="dark"] .blog-comment-form-card {
    background: var(--surface);
    border-color: var(--border-subtle) !important;
}

/* ============ Mục lục bài viết Easy Tours ============ */
.article-toc {
    position: relative;
    overflow: hidden;
    margin: 0 0 30px;
    border: 1px solid rgba(18, 155, 132, .22);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(237, 250, 246, .98), rgba(255, 255, 255, .98));
    box-shadow: 0 16px 40px rgba(7, 43, 59, .08);
}
.article-toc::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}
.article-toc-head {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) auto auto;
    gap: 13px;
    align-items: center;
    width: 100%;
    padding: 20px 22px 17px 25px;
    border: 0;
    background: transparent;
    color: var(--color-dark);
    text-align: left;
}
.article-toc-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--color-primary), var(--color-accent));
    color: #fff;
    box-shadow: 0 8px 18px rgba(18, 155, 132, .22);
    font-size: 1.25rem;
}
.article-toc-heading { display:flex; flex-direction:column; gap:2px; }
.article-toc-heading small {
    color: var(--color-primary);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.article-toc-heading strong { font-size:clamp(1.1rem,2vw,1.4rem); line-height:1.25; }
.article-toc-toggle-label { color:#61736d; font-size:.78rem; font-weight:700; }
.article-toc-chevron { color:var(--color-primary); transition:transform .25s ease; }
.article-toc-body { padding:0 24px 22px 79px; }
.article-toc-list { margin:0; padding:0; list-style:none; }
.article-toc-list a::before { content:attr(data-index); }
.article-toc-list a {
    display:grid;
    grid-template-columns:28px minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:9px 10px;
    border-radius:10px;
    color:#314b45;
    font-weight:650;
    line-height:1.45;
    text-decoration:none;
    transition:background .2s ease,color .2s ease,transform .2s ease;
}
.article-toc-list a::before { color:var(--color-primary); font-size:.76rem; font-weight:850; padding-top:3px; }
.article-toc-list a:hover { background:rgba(18,155,132,.1); color:var(--color-primary); transform:translateX(3px); }
.article-toc-level-3 { margin-left:28px; }
.article-toc-level-3 a { color:#64756f; font-size:.94rem; font-weight:550; }
.article-toc.is-collapsed .article-toc-body { display:none; }
.article-toc.is-collapsed .article-toc-chevron { transform:rotate(180deg); }
.article-content { line-height:1.9; font-size:1.05rem; }
.article-content h2,.article-content h3 { scroll-margin-top:115px; color:var(--color-dark); }
.article-content h2 { margin-top:2.2rem; }
.article-content h3 { margin-top:1.65rem; }
[data-theme="dark"] .article-toc { background:linear-gradient(145deg,rgba(14,55,52,.98),var(--surface)); border-color:rgba(46,202,168,.25); }
[data-theme="dark"] .article-toc-head,[data-theme="dark"] .article-content h2,[data-theme="dark"] .article-content h3 { color:var(--color-text); }
[data-theme="dark"] .article-toc-list a { color:#d8e7e2; }
[data-theme="dark"] .article-toc-level-3 a,[data-theme="dark"] .article-toc-toggle-label { color:#aabdb7; }
@media (max-width: 767.98px) {
    .article-toc { border-radius:17px; margin-bottom:22px; }
    .article-toc-head { grid-template-columns:40px minmax(0,1fr) auto; padding:15px 14px 14px 18px; gap:10px; }
    .article-toc-icon { width:40px; height:40px; border-radius:12px; }
    .article-toc-toggle-label { display:none; }
    .article-toc-body { padding:0 12px 15px 18px; }
    .article-toc-list a { grid-template-columns:25px minmax(0,1fr); padding:8px; font-size:.91rem; }
    .article-toc-level-3 { margin-left:16px; }
    .article-content { font-size:1rem; line-height:1.8; }
    .article-content h2,.article-content h3 { scroll-margin-top:92px; }
}
