/* css/main.css - Ba Ngoai Homestay
   Design System: Eco-Editorial & Modern Warm Heritage (DESIGN.md)
*/

:root {
  /* --- Primary Brand Colors (Default: Emerald Eco-Mangrove) --- */
  --color-camau-green: #1E4620;        /* Xanh rừng đước ngập mặn (Chủ đạo) */
  --color-camau-green-dark: #0A250C;   /* Xanh rừng đêm (Header, Footer, Mobile Bar) */
  --color-camau-green-light: #F0FDF4;  /* Xanh non nhạt (Nền phụ, Tint container) */
  
  /* --- Secondary & Accent Colors --- */
  --color-camau-gold: #C8952A;         /* Vàng hổ phách / Mật ong rừng (Điểm nhấn CTA, Badge) */
  --color-camau-gold-light: #FEF3C7;   /* Vàng nhạt (Nền badge, Pill highlight) */
  --color-camau-earth: #8D6E63;        /* Nâu đất phù sa / Gỗ đước (Phân cách, Icon thứ cấp) */
  
  /* --- Neutral & Surface Palette --- */
  --color-bg-main: #F9FAFB;            /* Soft White - Nền trang chính */
  --color-surface-white: #FFFFFF;      /* Nền thẻ Card, Modal */
  --color-border-subtle: #E5E7EB;      /* Đường viền thanh mảnh (Gray-200) */
  --color-border-focus: #1E4620;       /* Viền khi focus */
  
  /* --- Typography Colors --- */
  --color-text-title: #111827;         /* Tiêu đề chính (Gray-900) */
  --color-text-body: #374151;          /* Văn bản đọc (Gray-700) */
  --color-text-muted: #6B7280;         /* Phụ chú, Meta (Gray-500) */
  --color-text-on-dark: #FDFBF7;       /* Chữ trên nền xanh đậm */

  /* --- Extended Design Tokens (Customizable) --- */
  --theme-font-heading: 'Merriweather', serif;
  --theme-font-body: 'Montserrat', sans-serif;
  --theme-border-radius: 16px;
  --theme-shadow: 0 10px 25px -5px rgba(30, 70, 32, 0.1);
  --theme-hero-overlay: linear-gradient(to bottom, rgba(30, 70, 32, 0.4), rgba(30, 70, 32, 0.9));
}

/* ========================================================================= */
/* 🌿 PRESET 1: DEFAULT / ECO-MANGROVE HERITAGE (Rừng Đước & Thiên Nhiên Đất Mũi) */
/* ========================================================================= */
[data-theme="default"],
[data-theme="emerald"] {
  --color-camau-green: #1E4620;
  --color-camau-green-dark: #0A250C;
  --color-camau-green-light: #F0FDF4;
  --color-camau-gold: #C8952A;
  --color-camau-gold-light: #FEF3C7;
  --color-camau-earth: #8D6E63;
  --color-bg-main: #F9FAFB;
  --color-surface-white: #FFFFFF;
  --color-text-title: #111827;
  --color-text-body: #374151;
  --color-text-muted: #6B7280;
  --color-border-subtle: #E5E7EB;
  --theme-font-heading: 'Merriweather', serif;
  --theme-font-body: 'Montserrat', sans-serif;
  --theme-border-radius: 16px;
  --theme-shadow: 0 10px 25px -5px rgba(30, 70, 32, 0.1);
  --theme-hero-overlay: linear-gradient(to bottom, rgba(30, 70, 32, 0.4), rgba(30, 70, 32, 0.9));
}

/* ========================================================================= */
/* 🚩 PRESET 2: REUNIFICATION 30/04 (Non Sông Liền Một Dải - Lễ 30/04) */
/* ========================================================================= */
[data-theme="reunification_30_4"],
[data-theme="sunset"],
[data-theme="30_04"] {
  --color-camau-green: #B91C1C;
  --color-camau-green-dark: #7F1D1D;
  --color-camau-green-light: #FEF2F2;
  --color-camau-gold: #EAB308;
  --color-camau-gold-light: #FEF9C3;
  --color-camau-earth: #991B1B;
  --color-bg-main: #FFFDFD;
  --color-surface-white: #FFFFFF;
  --color-text-title: #7F1D1D;
  --color-text-body: #374151;
  --color-text-muted: #991B1B;
  --color-border-subtle: #FECACA;
  --theme-font-heading: 'Merriweather', serif;
  --theme-font-body: 'Be Vietnam Pro', sans-serif;
  --theme-border-radius: 14px;
  --theme-shadow: 0 10px 25px -5px rgba(185, 28, 28, 0.15);
  --theme-hero-overlay: linear-gradient(to bottom, rgba(185, 28, 28, 0.45), rgba(127, 29, 29, 0.92));
}

/* ========================================================================= */
/* 🇻🇳 PRESET 3: NATIONAL DAY 02/09 (Tự Hào Cực Nam - Lễ 02/09) */
/* ========================================================================= */
[data-theme="national_day_2_9"],
[data-theme="rustic"],
[data-theme="02_09"] {
  --color-camau-green: #991B1B;
  --color-camau-green-dark: #450A0A;
  --color-camau-green-light: #FEF2F2;
  --color-camau-gold: #F59E0B;
  --color-camau-gold-light: #FEF3C7;
  --color-camau-earth: #78350F;
  --color-bg-main: #FFFBEB;
  --color-surface-white: #FFFFFF;
  --color-text-title: #450A0A;
  --color-text-body: #292524;
  --color-text-muted: #78350F;
  --color-border-subtle: #FDE68A;
  --theme-font-heading: 'Playfair Display', serif;
  --theme-font-body: 'Montserrat', sans-serif;
  --theme-border-radius: 12px;
  --theme-shadow: 0 10px 25px -5px rgba(153, 27, 27, 0.16);
  --theme-hero-overlay: linear-gradient(to bottom, rgba(153, 27, 27, 0.5), rgba(69, 10, 10, 0.95));
}

/* ========================================================================= */
/* 🌕 PRESET 4: MID AUTUMN FESTIVAL (Trăng Rằm Đất Mũi - Tết Trung Thu) */
/* ========================================================================= */
[data-theme="mid_autumn"],
[data-theme="sapphire"],
[data-theme="trung_thu"] {
  --color-camau-green: #1E1B4B;
  --color-camau-green-dark: #0F172A;
  --color-camau-green-light: #EEF2FF;
  --color-camau-gold: #FBBF24;
  --color-camau-gold-light: #FEF3C7;
  --color-camau-earth: #4338CA;
  --color-bg-main: #0B0F19;
  --color-surface-white: #1E293B;
  --color-text-title: #FEF3C7;
  --color-text-body: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-border-subtle: #334155;
  --theme-font-heading: 'Lora', serif;
  --theme-font-body: 'Plus Jakarta Sans', sans-serif;
  --theme-border-radius: 20px;
  --theme-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.15);
  --theme-hero-overlay: linear-gradient(to bottom, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.95));
}

/* ========================================================================= */
/* 🌸 PRESET 5: LUNAR NEW YEAR (Tết Về Nhà Ngoại - Tết Nguyên Đán) */
/* ========================================================================= */
[data-theme="lunar_new_year"],
[data-theme="resort"],
[data-theme="tet"] {
  --color-camau-green: #DC2626;
  --color-camau-green-dark: #831843;
  --color-camau-green-light: #FEF2F2;
  --color-camau-gold: #EAB308;
  --color-camau-gold-light: #FEF9C3;
  --color-camau-earth: #15803D;
  --color-bg-main: #FFFDF7;
  --color-surface-white: #FFFFFF;
  --color-text-title: #7F1D1D;
  --color-text-body: #374151;
  --color-text-muted: #991B1B;
  --color-border-subtle: #FDE047;
  --theme-font-heading: 'Playfair Display', serif;
  --theme-font-body: 'Be Vietnam Pro', sans-serif;
  --theme-border-radius: 18px;
  --theme-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.15);
  --theme-hero-overlay: linear-gradient(to bottom, rgba(220, 38, 38, 0.42), rgba(131, 24, 67, 0.92));
}

/* WCAG 2.1 AA Accessibility Focus Ring */
*:focus-visible {
  outline: 2px solid var(--color-camau-gold);
  outline-offset: 2px;
}

/* ========================================================================= */
/* 🛡️ CỐ ĐỊNH KHUNG WEBSITE & DEFENSIVE LAYOUT GUARDS */
/* ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: clip; /* Triệt tiêu 100% thanh cuộn ngang gây vỡ khung trên mobile */
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Khoảng đệm an toàn dưới chân trang chống Smart Mobile Bar đè nội dung trên di động */
@media (max-width: 767px) {
  body {
    padding-bottom: 5.25rem;
  }
}

/* Khung giới hạn chuẩn tránh vỡ layout và căn lề an toàn */
.container-frame {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container-frame { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-frame { padding-left: 2rem; padding-right: 2rem; } }

/* Media bounds: không bao giờ tràn viền và ngăn ngừa CLS */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ========================================================================= */
/* 🎨 CÁC YẾU TỐ THIẾT KẾ ĐẶC TRƯNG THEO TỪNG CHỦ ĐỀ GIAO DIỆN (THEMATIC STYLES) */
/* ========================================================================= */

/* 1. Top Announcement Bar (Thanh Sự Kiện Đỉnh Trang) */
.theme-thematic-banner {
  display: none;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  z-index: 50;
  transition: all 0.3s ease;
}

[data-theme="reunification_30_4"] .theme-thematic-banner,
[data-theme="sunset"] .theme-thematic-banner,
[data-theme="30_04"] .theme-thematic-banner {
  display: block;
  background: linear-gradient(90deg, #991B1C, #B91C1C, #991B1C);
  color: #FEF08A;
  border-bottom: 1px solid rgba(234, 179, 8, 0.4);
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.25);
}

[data-theme="national_day_2_9"] .theme-thematic-banner,
[data-theme="rustic"] .theme-thematic-banner,
[data-theme="02_09"] .theme-thematic-banner {
  display: block;
  background: linear-gradient(90deg, #7F1D1D, #991B1B, #7F1D1D);
  color: #FDE68A;
  border-bottom: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 2px 10px rgba(153, 27, 27, 0.25);
}

[data-theme="mid_autumn"] .theme-thematic-banner,
[data-theme="sapphire"] .theme-thematic-banner,
[data-theme="trung_thu"] .theme-thematic-banner {
  display: block;
  background: linear-gradient(90deg, #0F172A, #1E1B4B, #0F172A);
  color: #FDE047;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.15);
}

[data-theme="lunar_new_year"] .theme-thematic-banner,
[data-theme="resort"] .theme-thematic-banner,
[data-theme="tet"] .theme-thematic-banner {
  display: block;
  background: linear-gradient(90deg, #991B1B, #DC2626, #991B1B);
  color: #FEF08A;
  border-bottom: 2px solid rgba(234, 179, 8, 0.6);
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.3);
}

/* 2. Distinct Thematic Hero Badges */
.theme-thematic-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

/* 3. Thematic Corner Motifs */
.theme-corner-ornament {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  z-index: 20;
}

/* 4. Thematic Buttons & Card Enhancements */
[data-theme="reunification_30_4"] .btn-primary,
[data-theme="sunset"] .btn-primary {
  background: linear-gradient(135deg, #B91C1C, #991B1B) !important;
  color: #FFFFFF !important;
  border: 1px solid #EAB308 !important;
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.35) !important;
}

[data-theme="national_day_2_9"] .btn-primary,
[data-theme="rustic"] .btn-primary {
  background: linear-gradient(135deg, #991B1B, #7F1D1D) !important;
  color: #FFFFFF !important;
  border: 2px solid #F59E0B !important;
  box-shadow: 0 4px 15px rgba(153, 27, 27, 0.4) !important;
}

[data-theme="mid_autumn"] .btn-primary,
[data-theme="sapphire"] .btn-primary {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  color: #0F172A !important;
  border: 1px solid #FDE68A !important;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35) !important;
}

[data-theme="lunar_new_year"] .btn-primary,
[data-theme="resort"] .btn-primary {
  background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
  color: #FEF9C3 !important;
  border: 2px solid #EAB308 !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
}

.min-touch-target {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html {
  scroll-behavior: smooth;
}

        .hero-overlay {
            background: var(--theme-hero-overlay, linear-gradient(to bottom, rgba(30, 70, 32, 0.4), rgba(30, 70, 32, 0.9)));
        }

        .tour-card,
        .shop-card,
        .gallery-item,
        .press-card {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .tour-card:hover,
        .shop-card:hover,
        .press-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #1E4620;
            border-radius: 4px;
        }

        /* Chat bubble animation */
        @keyframes message-pop {
            0% {
                transform: scale(0.9);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .chat-message {
            animation: message-pop 0.3s ease-out forwards;
        }

        /* Scroll Animations */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Toast Animation */
        @keyframes toast-slide-in {
            0% {
                transform: translateX(100%);
                opacity: 0;
            }

            100% {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes toast-slide-out {
            0% {
                transform: translateX(0);
                opacity: 1;
            }

            100% {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        .toast-enter {
            animation: toast-slide-in 0.3s ease-out forwards;
        }

        .toast-exit {
            animation: toast-slide-out 0.3s ease-in forwards;
        }

        /* ======= SCROLL PROGRESS BAR ======= */
        #scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            width: 0%;
            background: linear-gradient(to right, #F59E0B, #10B981, #F59E0B);
            background-size: 200% auto;
            z-index: 9999;
            transition: width 0.1s linear;
            animation: shimmer 2s linear infinite;
        }

        @keyframes shimmer {
            0% {
                background-position: 0% center;
            }

            100% {
                background-position: 200% center;
            }
        }

        /* ======= 3D TOUR CARDS ======= */
        .tour-card {
            transform-style: preserve-3d;
            will-change: transform;
            transition: box-shadow 0.3s ease;
        }

        .tour-card:hover {
            box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2), 0 15px 30px -10px rgba(0, 0, 0, 0.1);
        }

        .tour-card .card-inner {
            transform-style: preserve-3d;
        }

        /* ======= FLOATING PARTICLES ======= */

        /* ======= HERO PARALLAX ======= */
        #hero-bg {
            will-change: transform;
            transition: none;
        }

        /* ======= STATS SECTION ======= */
        .stat-card {
            background: white;
            border-radius: 1.5rem;
            padding: 2rem 1.5rem;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
            transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.35s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(30, 70, 32, 0.04), rgba(245, 158, 11, 0.04));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .stat-card:hover::before {
            opacity: 1;
        }

        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 900;
            line-height: 1;
            background: linear-gradient(135deg, #1E4620, #10B981);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* ======= GALLERY 3D ======= */
        .gallery-item-3d {
            transition: transform 0.5s cubic-bezier(.4, 0, .2, 1), box-shadow 0.5s ease;
            transform-style: preserve-3d;
        }

        .gallery-item-3d:hover {
            transform: scale(1.03) translateZ(20px) perspective(1000px);
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
        }

        /* ======= REVIEW CARDS 3D ======= */
        .review-card {
            transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.35s ease;
        }

        .review-card:hover {
            transform: translateY(-8px) rotateY(2deg) perspective(800px);
            box-shadow: 0 20px 50px rgba(30, 70, 32, 0.12);
        }

        /* ======= ANIMATED UNDERLINE NAV ======= */
        .nav-link-animated {
            position: relative;
        }

        .nav-link-animated::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: #FBBF24;
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .nav-link-animated:hover::after {
            width: 100%;
        }

        /* ======= MOBILE MENU SLIDE ======= */
        #mobile-menu {
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        #mobile-menu.hidden {
            pointer-events: none;
        }

        /* ======= IMPROVED REVEALS (Progressive Enhancement) ======= */
        .reveal {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s cubic-bezier(.4, 0, .2, 1), transform 0.6s cubic-bezier(.4, 0, .2, 1);
        }

        .js-loaded .reveal:not(.active) {
            opacity: 0;
            transform: translateY(20px);
        }

        .js-loaded .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        @media print, (prefers-reduced-motion: reduce) {
            .reveal, .js-loaded .reveal:not(.active) {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }
        }

        /* ======= CTA PULSE ======= */
        @keyframes cta-pulse {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            }

            50% {
                box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
            }
        }

        .btn-cta-pulse {
            animation: cta-pulse 2.5s infinite;
        }

        /* ======= FOOTER WAVE ======= */
        .footer-wave {
            position: absolute;
            top: -2px;
            left: 0;
            width: 100%;
            overflow: hidden;
            line-height: 0;
        }

        /* ======= ANIMATE FADE IN UP ======= */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in-up {
            animation: fadeInUp 0.9s ease-out forwards;
        }

        .delay-100 {
            animation-delay: 0.1s;
            opacity: 0;
        }

        .delay-200 {
            animation-delay: 0.2s;
            opacity: 0;
        }

        .delay-300 {
            animation-delay: 0.3s;
            opacity: 0;
        }

        .delay-400 {
            animation-delay: 0.4s;
            opacity: 0;
        }

        .delay-600 {
            animation-delay: 0.6s;
            opacity: 0;
        }

        /* ======= IMAGE ZOOM ======= */
        .img-zoom {
            transition: transform 0.7s cubic-bezier(.4, 0, .2, 1);
        }

        .group:hover .img-zoom {
            transform: scale(1.08);
        }



        /* ═══════════════════════════════════════════
           MODERN UI UPGRADES 2025
        ═══════════════════════════════════════════ */

        /* — Section badge pill — */
        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 18px;
            background: linear-gradient(135deg, rgba(16,185,129,0.13), rgba(245,158,11,0.08));
            border: 1px solid rgba(16,185,129,0.3);
            border-radius: 999px;
            color: #059669;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.13em;
            text-transform: uppercase;
        }
        .section-badge-orange {
            background: linear-gradient(135deg, rgba(234,88,12,0.12), rgba(245,158,11,0.08));
            border-color: rgba(234,88,12,0.25);
            color: #c2410c;
        }

        /* — Animated shimmer divider — */
        .section-divider {
            height: 3px;
            width: 64px;
            background: linear-gradient(90deg, #10B981, #F59E0B, #10B981);
            background-size: 200% auto;
            border-radius: 999px;
            margin: 1.25rem auto 0;
            animation: shimmer 3s linear infinite;
        }
        .section-divider-left {
            margin-left: 0;
        }

        /* — Gradient section heading — */
        .gradient-heading {
            background: linear-gradient(135deg, #1E4620 0%, #065f46 60%, #047857 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* — Tour card image gradient overlay (CSS only, no HTML change) — */
        .tour-card .relative.h-56,
        .tour-card .relative.h-48 {
            isolation: isolate;
        }
        .tour-card .relative.h-56::after,
        .tour-card .relative.h-48::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            z-index: 1;
        }
        .tour-card:hover .relative.h-56::after,
        .tour-card:hover .relative.h-48::after {
            opacity: 1;
        }
        .tour-card .relative.h-56 > div,
        .tour-card .relative.h-48 > div {
            position: relative;
            z-index: 2;
        }

        /* — FAQ modern accordion — */
        details.faq-item {
            transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.25s ease;
        }
        details.faq-item[open] {
            background: #ffffff !important;
            border-color: rgba(16,185,129,0.3) !important;
            box-shadow: 0 6px 32px rgba(16,185,129,0.1);
        }
        details.faq-item[open] > summary {
            color: #059669;
            border-bottom: 1px solid rgba(16,185,129,0.12);
            padding-bottom: 1.25rem;
            margin-bottom: 0;
        }
        details.faq-item[open] > summary i.fa-chevron-down {
            color: #059669;
        }
        details.faq-item > summary {
            transition: color 0.2s ease;
        }

        /* — Hero secondary button animated border — */
        .btn-hero-secondary {
            position: relative;
        }
        .btn-hero-secondary::after {
            content: '';
            position: absolute;
            inset: -2px;
            background: linear-gradient(90deg, #10B981, #F59E0B, #10B981);
            background-size: 200% auto;
            border-radius: 999px;
            animation: shimmer 3s linear infinite;
            opacity: 0;
            transition: opacity 0.35s ease;
            z-index: -1;
        }
        .btn-hero-secondary:hover::after {
            opacity: 0.75;
        }

        /* — Stat card colored icon rings — */
        .stat-icon-ring {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.75rem;
            font-size: 1.5rem;
        }

        /* — Blog card hover upgrade — */
        .blog-card {
            transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease !important;
        }
        .blog-card:hover {
            transform: translateY(-8px) !important;
            box-shadow: 0 24px 56px rgba(0,0,0,0.13) !important;
        }
        .blog-card img {
            transition: transform 0.6s cubic-bezier(.4,0,.2,1) !important;
        }
        .blog-card:hover img {
            transform: scale(1.08) !important;
        }

        /* — Mobile Blog Carousel (Hàng 1) — */
        .blog-row-main {
            display: flex;
            gap: 1.1rem;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            margin: 0 -1.5rem;
            padding: 0 1.5rem 1rem;
        }
        .blog-row-main::-webkit-scrollbar { display: none; }
        .blog-row-main > article {
            flex-shrink: 0;
            width: 78vw;
            max-width: 300px;
            scroll-snap-align: start;
        }
        /* Ẩn đoạn văn mô tả và link trên mobile */
        .blog-row-main > article .p-6 > p,
        .blog-row-main > article .p-6 > a {
            display: none;
        }
        /* Điều chỉnh padding card trên mobile */
        .blog-row-main > article .p-6 {
            padding: 1rem;
        }
        @media (min-width: 768px) {
            .blog-row-main {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                overflow-x: visible;
                margin: 0;
                padding: 0;
                gap: 2rem;
                scroll-snap-type: none;
            }
            .blog-row-main > article {
                width: auto;
                max-width: none;
            }
            .blog-row-main > article .p-6 > p { display: block; }
            .blog-row-main > article .p-6 > a { display: inline-block; }
            .blog-row-main > article .p-6 { padding: 1.5rem; }
        }

        /* — Swipe hint — */
        .blog-swipe-hint {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #9ca3af;
            font-size: 0.72rem;
            padding: 0 0 0.75rem;
        }
        @media (min-width: 768px) { .blog-swipe-hint { display: none; } }

        /* — Category divider — */
        .blog-cat-label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 1.75rem 0 1rem;
        }
        .blog-cat-label::before, .blog-cat-label::after {
            content: '';
            flex: 1;
            height: 1px;
        }
        .blog-cat-label::before { background: linear-gradient(90deg, transparent, #bbf7d0); }
        .blog-cat-label::after  { background: linear-gradient(90deg, #bbf7d0, transparent); }
        .blog-cat-label span {
            font-size: 0.68rem;
            font-weight: 700;
            color: #6b7280;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            white-space: nowrap;
            background: white;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid #d1fae5;
        }

        /* — Pickup banner gradient animate — */
        .pickup-banner {
            background: linear-gradient(135deg, #14532d, #166534, #15803d, #166534, #14532d) !important;
            background-size: 300% auto !important;
            animation: shimmer 6s linear infinite !important;
        }

        /* ═══ 🔥 PREMIUM UPGRADE — CONVERSION BOOST ═══ */
        .hero-overlay { background: linear-gradient(170deg,rgba(5,20,10,.45) 0%,rgba(15,40,20,.5) 30%,rgba(30,70,32,.75) 70%,rgba(10,25,12,.94) 100%) !important; }
        @keyframes live-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.92)} }
        .hero-live-badge { display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:7px 16px;color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.04em;margin-bottom:1.2rem; }
        .hero-live-badge .live-dot { width:8px;height:8px;background:#4ade80;border-radius:50%;animation:live-pulse 1.6s ease-in-out infinite;flex-shrink:0; }
        .hero-trust-strip { display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:1.5rem; }
        .hero-trust-item { display:flex;align-items:center;gap:5px;color:rgba(255,255,255,.82);font-size:.75rem;font-weight:600; }
        .hero-trust-item i { color:#fbbf24; }
        .typewriter-cursor { display:inline-block;width:3px;height:.9em;background:#fbbf24;margin-left:2px;vertical-align:middle;border-radius:2px;animation:live-pulse .8s ease-in-out infinite; }
        @keyframes urgency-flash { 0%,100%{opacity:1} 50%{opacity:.8} }
        .badge-hot { display:inline-block;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;font-size:.62rem;font-weight:800;padding:3px 9px;border-radius:999px;letter-spacing:.06em;text-transform:uppercase;animation:urgency-flash 2s ease-in-out infinite;box-shadow:0 2px 8px rgba(239,68,68,.4); }
        .badge-new { display:inline-block;background:linear-gradient(135deg,#0ea5e9,#0284c7);color:#fff;font-size:.62rem;font-weight:800;padding:3px 9px;border-radius:999px;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 2px 8px rgba(14,165,233,.35); }
        .badge-limited { display:inline-block;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;font-size:.62rem;font-weight:800;padding:3px 9px;border-radius:999px;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 2px 8px rgba(245,158,11,.4); }
        .viewers-badge { display:inline-flex;align-items:center;gap:4px;font-size:.67rem;color:#fff;font-weight:600; }
        .viewers-badge .vdot { width:6px;height:6px;background:#22c55e;border-radius:50%;animation:live-pulse 1.8s ease-in-out infinite; }
        .tour-card .tour-img-wrap { position:relative;overflow:hidden; }
        .tour-card .tour-img-wrap::after { content:'';position:absolute;top:0;left:-80%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent);transform:skewX(-20deg);transition:left .7s ease;pointer-events:none; }
        .tour-card:hover .tour-img-wrap::after { left:140%; }
        .tour-card:hover { box-shadow:0 32px 64px -12px rgba(0,0,0,.28),0 0 0 1px rgba(16,185,129,.12) !important; }
        .tour-quick-book { position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(20,50,22,.96),transparent);transform:translateY(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);padding:1.25rem .75rem .75rem;display:flex;gap:.5rem;z-index:5; }
        .tour-card:hover .tour-quick-book { transform:translateY(0); }
        .stars-gold { color:#f59e0b; }
        .booking-strip { background:linear-gradient(90deg,#065f46,#047857,#059669,#047857,#065f46);background-size:300% auto;animation:shimmer 5s linear infinite;color:#fff;text-align:center;padding:11px 16px;font-size:.82rem;font-weight:700;letter-spacing:.04em; }
        .booking-strip .strip-highlight { color:#fbbf24; }
        @keyframes fomo-in { 0%{transform:translateX(-120%);opacity:0} 15%{transform:translateX(6px);opacity:1} 85%{transform:translateX(0);opacity:1} 100%{transform:translateX(-120%);opacity:0} }
        .fomo-toast { position:fixed;bottom:100px;left:20px;z-index:9000;background:#fff;border-radius:14px;border-left:4px solid #10b981;box-shadow:0 8px 32px rgba(0,0,0,.16);padding:12px 16px;display:flex;align-items:center;gap:12px;max-width:290px;animation:fomo-in 5s ease-in-out forwards; }
        .fomo-toast .fomo-av { width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#10b981,#059669);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.95rem;flex-shrink:0; }
        .fomo-toast .fomo-txt { font-size:.79rem;color:#374151;line-height:1.4; }
        .fomo-toast .fomo-txt strong { color:#065f46; }
        .fomo-toast .fomo-tm { font-size:.67rem;color:#9ca3af;margin-top:2px;display:block; }
        #floating-fab-container { position:fixed;right:24px;bottom:24px;z-index:50;transition:bottom .3s ease,right .3s ease; }
        #sticky-book-btn { position:fixed;right:88px;bottom:24px;z-index:49;transition:all .35s cubic-bezier(.4,0,.2,1); }
        #sticky-book-btn.hidden-btn { transform:translateY(130px);opacity:0;pointer-events:none; }
        @keyframes book-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.5)} 50%{box-shadow:0 0 0 12px rgba(16,185,129,0)} }
        #sticky-book-btn button { animation:book-pulse 2.5s infinite; }
        #cac-tour { background:linear-gradient(180deg,#f0fdf4 0%,#f9fafb 100%) !important; }
        @media(max-width:767px) {
            .hero-trust-strip { gap:10px }
            .hero-trust-item { font-size:.7rem }
            .fomo-toast { max-width:calc(100vw - 40px) }
            #floating-fab-container { right:16px;bottom:80px; }
            #sticky-book-btn { right:80px;bottom:80px; }
        }
    
        /* ===== TOUR MODAL INFOGRAPHIC ===== */
        #tour-modal .infographic-timeline {
            position: relative;
        }
        #tm-schedule .bg-white {
            transition: all 0.2s ease;
        }
        #tm-schedule .group:hover .bg-white {
            transform: translateX(2px);
        }
        @keyframes slideInStep {
            from { opacity: 0; transform: translateX(-8px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        #tm-schedule > div > div {
            animation: slideInStep 0.3s ease both;
        }
        #tm-schedule > div > div:nth-child(1) { animation-delay: 0.05s; }
        #tm-schedule > div > div:nth-child(2) { animation-delay: 0.10s; }
        #tm-schedule > div > div:nth-child(3) { animation-delay: 0.15s; }
        #tm-schedule > div > div:nth-child(4) { animation-delay: 0.20s; }
        #tm-schedule > div > div:nth-child(5) { animation-delay: 0.25s; }
        #tm-schedule > div > div:nth-child(6) { animation-delay: 0.30s; }
        #tm-schedule > div > div:nth-child(7) { animation-delay: 0.35s; }
        #tm-schedule > div > div:nth-child(8) { animation-delay: 0.40s; }
/* ============================================================
   FEATURE 1: SCROLL-DRIVEN MARQUEE
   ============================================================ */
.marquee-wrap { overflow: hidden; background: #fff; padding: 0 0 20px; }
.marquee-row-outer { overflow: hidden; }
.marquee-row {
    display: flex; gap: 12px; will-change: transform;
    padding: 6px 0;
}
.marquee-item {
    flex-shrink: 0; width: 300px; height: 200px;
    border-radius: 14px; overflow: hidden;
    background: #e5e7eb; cursor: pointer;
}
.marquee-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.marquee-item:hover img { transform: scale(1.06); }
@media(min-width:768px){ .marquee-item{ width:420px; height:270px; } }

/* ============================================================
   FEATURE 2: STICKY STACKING TOUR CARDS
   ============================================================ */
.stack-container { position: relative; }
.stack-slot {
    position: relative;
    height: 88vh;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 20px;
}
.stack-card {
    position: sticky;
    top: 80px;
    width: 100%; max-width: 820px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.1);
    transform-origin: top center;
    will-change: transform;
    transition: box-shadow .3s;
}
.stack-card:hover { box-shadow: 0 16px 60px rgba(0,0,0,.18); }

/* ============================================================
   FEATURE 3: MAGNETIC BUTTON
   ============================================================ */
.magnetic {
    display: inline-block;
    will-change: transform;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
    cursor: pointer;
}
.magnetic.pulling { transition: transform .15s ease-out; }

/* ============================================================
   FEATURE 4: INTERACTIVE MAP & TESTIMONIAL SLIDER
   ============================================================ */
/* Custom Leaflet Map and Popup styling */
#map {
    z-index: 1;
}
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0 !important;
    width: 260px !important;
}
.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
}
.custom-div-icon {
    background: transparent;
    border: none;
}
.marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -12px 0 0 -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 10px;
}
.marker-pulse {
    border-radius: 50%;
    height: 40px;
    width: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -20px;
    animation: pulsate 1.8s ease-out infinite;
    opacity: 0;
    pointer-events: none;
}
@keyframes pulsate {
    0% { transform: scale(0.1, 0.1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.2, 1.2); opacity: 0; }
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-dot.active {
    background-color: #1E4620 !important;
    width: 1.5rem !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- VIBE CODING DESIGN SYSTEM ENHANCEMENTS --- */
.glass-panel {
    background: rgba(30, 70, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(30deg);
    animation: shimmer-sweep 4s infinite;
}

@keyframes shimmer-sweep {
    0% { transform: translateX(-100%) rotate(30deg); }
    20% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.spotlight-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 30px -10px rgba(30, 70, 32, 0.25);
}

.pulse-glow {
    animation: pulse-glow-anim 2.5s infinite alternate;
}

@keyframes pulse-glow-anim {
    0% { box-shadow: 0 0 10px rgba(200, 149, 42, 0.3); }
    100% { box-shadow: 0 0 25px rgba(200, 149, 42, 0.8); }
}

/* ============================================================
   MOBILE-FIRST UX & TOUCH ERGONOMICS
============================================================ */
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Prevent unwanted grey tap highlight on iOS / Android */
a, button, input, select {
    -webkit-tap-highlight-color: transparent;
}

/* Touch active state for thumb ergonomics */
.touch-tap:active {
    transform: scale(0.95);
}

/* Safe Area Inset Support for iPhone Bottom Bar */
.pb-safe {
    padding-bottom: max(env(safe-area-inset-bottom), 12px);
}

/* ============================================================
   🎨 MODERN HERITAGE PREMIUM UI/UX DESIGN SUITE (Eco-Luxury)
============================================================ */
:root {
    --glow-gold-subtle: 0 0 20px rgba(232, 192, 74, 0.3);
    --glow-gold-rich: 0 0 35px rgba(232, 192, 74, 0.55);
    --shadow-luxury: 0 16px 36px -10px rgba(10, 37, 12, 0.09), 0 6px 16px -6px rgba(10, 37, 12, 0.05);
    --shadow-luxury-hover: 0 28px 56px -12px rgba(10, 37, 12, 0.18), 0 12px 24px -8px rgba(10, 37, 12, 0.1);
    --glass-surface: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
}

/* Luxury Tour Card */
.tour-card-luxury {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-luxury);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tour-card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-luxury-hover);
    border-color: rgba(232, 192, 74, 0.6);
}

.tour-card-luxury::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(232, 192, 74, 0.4), transparent 60%, rgba(21, 128, 61, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tour-card-luxury:hover::before {
    opacity: 1;
}

/* Luxury Bento Card */
.bento-card-luxury {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.75rem;
    box-shadow: var(--shadow-luxury);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.bento-card-luxury:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-luxury-hover);
    border-color: rgba(232, 192, 74, 0.45);
}

/* Shimmer Luxury CTA Button (Đậm nét, tương phản cao, chống trùng nền) */
.btn-shimmer-luxury {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E4620 0%, #15803d 100%) !important;
    background-color: #1E4620 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(30, 70, 32, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-shimmer-luxury:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    background-color: #15803d !important;
    box-shadow: 0 6px 20px rgba(30, 70, 32, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-shimmer-luxury::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
}

.btn-shimmer-luxury:hover::after {
    left: 140%;
    transition: left 0.75s ease-in-out;
}

.btn-shimmer-luxury:active {
    transform: scale(0.97);
}

/* Gold Shimmer Button */
.btn-gold-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #14532d;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(202, 138, 4, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(25deg);
    transition: none;
}

.btn-gold-shimmer:hover {
    box-shadow: 0 8px 25px rgba(202, 138, 4, 0.5);
    transform: translateY(-2px);
}

.btn-gold-shimmer:hover::after {
    left: 140%;
    transition: left 0.75s ease-in-out;
}

.btn-gold-shimmer:active {
    transform: scale(0.97);
}

/* Micro-Pill Badge */
.badge-gold-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    color: #854d0e;
    border: 1px solid rgba(234, 179, 8, 0.35);
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.15);
}

/* Glass Panel Dark Luxury */
.glass-dark-luxury {
    background: rgba(10, 37, 12, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}




