/*
Theme Name: TNB-Theme
Theme URI: https://tourninhbinh.vn
Description: Custom theme for TourNinhBinh.VN - Mobile-first tour booking
Version: 1.0.0
Author: TourNinhBinh.VN
Text Domain: tnb-theme
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* Brand Colors */
    --tnb-green:       #1a7a4a;
    --tnb-green-light: #e8f5ee;
    --tnb-green-dark:  #0f5233;
    --tnb-accent:      #f5a623;
    --tnb-accent-dark: #d4891a;

    /* Neutrals */
    --tnb-white:   #ffffff;
    --tnb-bg:      #f7f6f2;
    --tnb-surface: #ffffff;
    --tnb-border:  rgba(0,0,0,0.08);
    --tnb-text:    #1a1a18;
    --tnb-muted:   #6b6b65;
    --tnb-hint:    #9e9e96;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'DM Mono', monospace;

    /* Spacing */
    --sp-xs:  4px;
    --sp-sm:  8px;
    --sp-md:  16px;
    --sp-lg:  24px;
    --sp-xl:  40px;
    --sp-2xl: 64px;

    /* Radius */
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   18px;
    --r-xl:   24px;
    --r-full: 999px;

    /* Shadows */
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-float: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);

    /* Bottom nav height */
    --bottom-nav-h: 68px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms;
    --t-mid:  280ms;
    --t-slow: 480ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--tnb-text);
    background: var(--tnb-bg);
    line-height: 1.6;
    padding-bottom: var(--bottom-nav-h);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.tnb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

.tnb-section {
    padding: var(--sp-xl) 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.tnb-display {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.tnb-heading {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 600;
    line-height: 1.25;
}

.tnb-subheading {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tnb-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tnb-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tnb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: 12px var(--sp-lg);
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--t-fast) var(--ease);
    white-space: nowrap;
}

.tnb-btn-primary {
    background: var(--tnb-green);
    color: var(--tnb-white);
}

.tnb-btn-primary:hover {
    background: var(--tnb-green-dark);
    transform: translateY(-1px);
}

.tnb-btn-primary:active {
    transform: translateY(0);
}

.tnb-btn-outline {
    background: transparent;
    color: var(--tnb-green);
    border: 1.5px solid var(--tnb-green);
}

.tnb-btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--tnb-white);
    backdrop-filter: blur(8px);
}

.tnb-btn-book {
    background: var(--tnb-accent);
    color: var(--tnb-white);
    font-size: 16px;
    padding: 14px var(--sp-xl);
    box-shadow: 0 4px 16px rgba(245,166,35,0.4);
}

.tnb-btn-book:hover {
    background: var(--tnb-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.5);
}

/* ============================================================
   BADGES
   ============================================================ */
.tnb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
}

.tnb-badge-green  { background: var(--tnb-green-light); color: var(--tnb-green-dark); }
.tnb-badge-amber  { background: #fff3e0; color: #e65100; }
.tnb-badge-blue   { background: #e3f2fd; color: #0d47a1; }
.tnb-badge-dark   { background: rgba(0,0,0,0.75); color: #fff; backdrop-filter: blur(4px); }

/* ============================================================
   TOUR CARD (shared across pages)
   ============================================================ */
.tnb-tour-card {
    background: var(--tnb-surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
    display: flex;
    flex-direction: column;
}

.tnb-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.tnb-tour-card__img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e8e8e0 url(https://tourninhbinh.vn/wp-content/photo/trang_an_ninh_binh_nightour_city_night.jpg) center/cover no-repeat;
}

.tnb-tour-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}

.tnb-tour-card:hover .tnb-tour-card__img img {
    transform: scale(1.06);
}

.tnb-tour-card__badges {
    position: absolute;
    top: var(--sp-sm);
    left: var(--sp-sm);
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tnb-tour-card__wish {
    position: absolute;
    top: var(--sp-sm);
    right: var(--sp-sm);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
    backdrop-filter: blur(4px);
}

.tnb-tour-card__wish:hover {
    background: var(--tnb-white);
    transform: scale(1.1);
}

.tnb-tour-card__wish svg {
    width: 18px;
    height: 18px;
    stroke: #e74c3c;
    fill: none;
    transition: fill var(--t-fast);
}

.tnb-tour-card__wish.active svg {
    fill: #e74c3c;
}

.tnb-tour-card__body {
    padding: 14px var(--sp-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tnb-tour-card__meta {
    display: flex;
    gap: var(--sp-md);
    font-size: 12px;
    color: var(--tnb-muted);
}

.tnb-tour-card__meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.tnb-tour-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tnb-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tnb-tour-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.tnb-tour-card__stars {
    color: #f5a623;
    letter-spacing: -1px;
}

.tnb-tour-card__price {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tnb-tour-card__price-from {
    font-size: 12px;
    color: var(--tnb-muted);
}

.tnb-tour-card__price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--tnb-green);
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.tnb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--tnb-border);
    display: flex;
    align-items: stretch;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.tnb-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--tnb-hint);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color var(--t-fast);
    cursor: pointer;
    padding: var(--sp-sm) 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tnb-bottom-nav__item:active {
    transform: scale(0.92);
}

.tnb-bottom-nav__item.active {
    color: var(--tnb-green);
}

.tnb-bottom-nav__item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--tnb-green);
    border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.tnb-bottom-nav__icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
}

/* Bottom nav - Booking variant (single-tour) */
.tnb-bottom-nav--book {
    padding: 8px var(--sp-md);
    gap: var(--sp-md);
    align-items: center;
}

.tnb-bottom-nav--book .tnb-price-block {
    flex: 1;
}

.tnb-bottom-nav--book .tnb-price-block small {
    display: block;
    font-size: 11px;
    color: var(--tnb-muted);
}

.tnb-bottom-nav--book .tnb-price-block strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--tnb-green);
}

/* ============================================================
   SHEET (Bottom drawer)
   ============================================================ */
.tnb-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-mid) var(--ease);
}

.tnb-sheet-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.tnb-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tnb-white);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    z-index: 2001;
    padding: 0 var(--sp-lg) calc(var(--sp-lg) + env(safe-area-inset-bottom, 0));
    transform: translateY(100%);
    transition: transform var(--t-slow) var(--ease);
    max-height: 90vh;
    overflow-y: auto;
}

.tnb-sheet.open {
    transform: translateY(0);
}

.tnb-sheet__handle {
    width: 40px;
    height: 4px;
    background: #e0e0d8;
    border-radius: var(--r-full);
    margin: 12px auto var(--sp-lg);
}

/* ============================================================
   GALLERY SWIPE
   ============================================================ */
.tnb-gallery {
    position: relative;
    overflow: hidden;
    background: #1a1a18;
}

.tnb-gallery__track {
    display: flex;
    transition: transform var(--t-mid) var(--ease);
    will-change: transform;
}

.tnb-gallery__slide {
    min-width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tnb-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnb-gallery__dots {
    position: absolute;
    bottom: var(--sp-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.tnb-gallery__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all var(--t-fast);
}

.tnb-gallery__dot.active {
    width: 18px;
    border-radius: var(--r-full);
    background: var(--tnb-white);
}

.tnb-gallery__counter {
    position: absolute;
    top: var(--sp-md);
    right: var(--sp-md);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-full);
    backdrop-filter: blur(4px);
}

/* ============================================================
   STICKY TABS
   ============================================================ */
.tnb-tabs {
    display: flex;
    gap: 0;
    background: var(--tnb-white);
    border-bottom: 1px solid var(--tnb-border);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tnb-tabs::-webkit-scrollbar { display: none; }

.tnb-tab {
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tnb-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--t-fast);
    cursor: pointer;
    white-space: nowrap;
}

.tnb-tab.active {
    color: var(--tnb-green);
    border-bottom-color: var(--tnb-green);
}

/* ============================================================
   QUICK INFO STRIP
   ============================================================ */
.tnb-quick-info {
    display: flex;
    gap: var(--sp-sm);
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--sp-md) var(--sp-md);
    background: var(--tnb-white);
}

.tnb-quick-info::-webkit-scrollbar { display: none; }

.tnb-quick-info__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--tnb-bg);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--tnb-text);
    white-space: nowrap;
}

.tnb-quick-info__item svg {
    width: 16px;
    height: 16px;
    stroke: var(--tnb-green);
    flex-shrink: 0;
}

/* ============================================================
   ITINERARY TIMELINE
   ============================================================ */
.tnb-timeline {
    position: relative;
    padding-left: 28px;
}

.tnb-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--tnb-green), var(--tnb-green-light));
    border-radius: var(--r-full);
}

.tnb-timeline__item {
    position: relative;
    padding-bottom: var(--sp-lg);
}

.tnb-timeline__item:last-child {
    padding-bottom: 0;
}

.tnb-timeline__dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tnb-white);
    border: 2.5px solid var(--tnb-green);
    z-index: 1;
}

.tnb-timeline__time {
    font-size: 12px;
    font-weight: 700;
    color: var(--tnb-green);
    margin-bottom: 2px;
    letter-spacing: 0.05em;
}

.tnb-timeline__text {
    font-size: 14px;
    color: var(--tnb-text);
    line-height: 1.5;
}

/* ============================================================
   INCLUDED / EXCLUDED
   ============================================================ */
.tnb-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tnb-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.tnb-checklist__icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnb-checklist__icon--yes {
    background: var(--tnb-green-light);
    color: var(--tnb-green-dark);
}

.tnb-checklist__icon--no {
    background: #fde8ea;
    color: #c0392b;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.tnb-search-bar {
    background: var(--tnb-white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.tnb-search-bar__field {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 14px var(--sp-md);
    border-bottom: 1px solid var(--tnb-border);
    cursor: pointer;
    transition: background var(--t-fast);
}

.tnb-search-bar__field:last-of-type {
    border-bottom: none;
}

.tnb-search-bar__field:active {
    background: var(--tnb-bg);
}

.tnb-search-bar__field svg {
    width: 20px;
    height: 20px;
    stroke: var(--tnb-green);
    flex-shrink: 0;
}

.tnb-search-bar__field-content {
    flex: 1;
}

.tnb-search-bar__field-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--tnb-hint);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tnb-search-bar__field-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--tnb-text);
}

.tnb-search-bar__field-value.placeholder {
    color: var(--tnb-hint);
    font-weight: 400;
}

.tnb-search-bar__btn {
    margin: var(--sp-md);
    width: calc(100% - var(--sp-md) * 2);
}

/* ============================================================
   CHIP FILTERS
   ============================================================ */
.tnb-chips {
    display: flex;
    gap: var(--sp-sm);
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--sp-sm) var(--sp-md);
    -ms-overflow-style: none;
}

.tnb-chips::-webkit-scrollbar { display: none; }

.tnb-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--tnb-border);
    background: var(--tnb-white);
    color: var(--tnb-muted);
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
}

.tnb-chip:active { transform: scale(0.95); }

.tnb-chip.active {
    background: var(--tnb-green);
    border-color: var(--tnb-green);
    color: var(--tnb-white);
}

/* ============================================================
   RATING
   ============================================================ */
.tnb-rating {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.tnb-rating__score {
    font-size: 14px;
    font-weight: 700;
    color: var(--tnb-text);
}

.tnb-rating__stars {
    display: flex;
    gap: 2px;
}

.tnb-rating__star {
    width: 14px;
    height: 14px;
    fill: #f5a623;
    stroke: none;
}

.tnb-rating__star--empty { fill: #e0e0d8; }

.tnb-rating__count {
    font-size: 13px;
    color: var(--tnb-muted);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.tnb-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--sp-lg);
    padding: 0 var(--sp-md);
}

.tnb-section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
    color: var(--tnb-text);
}

.tnb-section-header a {
    font-size: 13px;
    font-weight: 600;
    color: var(--tnb-green);
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.tnb-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-sm);
    padding: 0 var(--sp-md);
}

.tnb-cat-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: url(https://tourninhbinh.vn/wp-content/photo/trang_an_ninh_binh_nightour_city_night.jpg) center/cover no-repeat;
}

.tnb-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}

.tnb-cat-card:hover img { transform: scale(1.06); }

.tnb-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}

.tnb-cat-card__label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tnb-white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ============================================================
   WHY US SECTION
   ============================================================ */
.tnb-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
    padding: 0 var(--sp-md);
}

.tnb-why-item {
    background: var(--tnb-white);
    border-radius: var(--r-lg);
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    box-shadow: var(--shadow-card);
}

.tnb-why-item__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--tnb-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnb-why-item__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--tnb-green);
}

.tnb-why-item__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tnb-text);
}

.tnb-why-item__desc {
    font-size: 12px;
    color: var(--tnb-muted);
    line-height: 1.5;
}

/* ============================================================
   HERO
   ============================================================ */
.tnb-hero {
    position: relative;
    min-height: 60svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1a3a2a;
}

.tnb-hero__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.tnb-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.6) 80%,
        rgba(0,0,0,0.8) 100%
    );
}

.tnb-hero__content {
    position: relative;
    z-index: 1;
    padding: var(--sp-2xl) var(--sp-md) var(--sp-xl);
    width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
    .tnb-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tnb-why-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tnb-bottom-nav__item { font-size: 12px; }
}

@media (min-width: 1024px) {
    body { padding-bottom: 0; }

    .tnb-bottom-nav {
        display: none;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.tnb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.tnb-divider {
    height: 8px;
    background: var(--tnb-bg);
    margin: 0 calc(-1 * var(--sp-md));
}

.tnb-content-section {
    background: var(--tnb-white);
    padding: var(--sp-lg) var(--sp-md);
}

.tnb-content-section + .tnb-content-section {
    border-top: 1px solid var(--tnb-border);
}

.tnb-content-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--sp-md);
    color: var(--tnb-text);
}

/* ============================================================
   GOOGLE FONTS LOAD
   ============================================================ */

/* ============================================================
   HERO SLIDER
   ============================================================ */
.tnb-hero--slider {
    position: relative;
    overflow: hidden;
    height: 90vh;
    min-height: 520px;
    max-height: 820px;
}
.tnb-hero__slides {
    position: absolute;
    inset: 0;
}
.tnb-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.tnb-hero__slide.active { opacity: 1; }
.tnb-hero--slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.7) 100%);
    pointer-events: none;
    z-index: 1;
}
.tnb-hero__content {
    position: relative;
    z-index: 2;
}
.tnb-hero__title {
    transition: opacity .4s;
}
.tnb-hero__sub {
    transition: opacity .4s;
}
.tnb-hero__dots {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.tnb-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .3s;
    flex-shrink: 0;
}
.tnb-hero__dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}
.tnb-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.5);
    color: #fff;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background .2s;
    line-height: 1;
}
.tnb-hero__arrow:hover { background: rgba(255,255,255,.3); }
.tnb-hero__arrow--prev { left: 20px; }
.tnb-hero__arrow--next { right: 20px; }
@media (max-width: 768px) {
    .tnb-hero__arrow { display: none; }
    .tnb-hero--slider { height: 72vh; min-height: 400px; }
    .tnb-hero__dots { bottom: 70px; }
}

.tnb-hero__content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 24px;color:#fff;height:100%;}
.tnb-hero__title{font-family:'Playfair Display',serif;font-size:clamp(32px,5vw,64px);font-weight:700;line-height:1.15;margin:0 0 16px;text-shadow:0 2px 16px rgba(0,0,0,.6);max-width:800px;}
.tnb-hero__sub{font-size:clamp(16px,2.2vw,22px);font-weight:400;margin:0 0 32px;opacity:.92;text-shadow:0 1px 8px rgba(0,0,0,.5);max-width:560px;}
.tnb-hero--slider::after{background:linear-gradient(to bottom,rgba(0,0,0,.05) 0%,rgba(0,0,0,.3) 50%,rgba(0,0,0,.55) 100%);}


/* =============================================================
   FONT SYSTEM â€” FINAL â€” tourninhbinh.vn
   Rule:
     Playfair Display = Hero H1 + Tour page H1 ONLY
     DM Sans          = EVERYTHING ELSE
   ============================================================= */

/* CSS Variables */
:root {
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --text-xs: 11px; --text-sm: 13px; --text-base: 15px;
  --text-md: 17px; --text-lg: 20px; --text-xl: 24px;
  --text-2xl: 28px; --text-3xl: 36px;
  --text-hero: clamp(32px, 5vw, 60px);
  --fw-normal: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-tight: 1.15; --lh-snug: 1.35; --lh-normal: 1.55; --lh-relaxed: 1.7;
}

/* Base */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
}

/* ALL headings default to DM Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body) !important;
  font-weight: var(--fw-bold) !important;
  line-height: var(--lh-snug);
  margin: 0;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

/* EXCEPTION 1: Hero title */
h1.tnb-hero__title,
.tnb-hero__title {
  font-family: var(--font-display) !important;
  font-size: var(--text-hero) !important;
  font-weight: var(--fw-bold) !important;
  line-height: var(--lh-tight) !important;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
  max-width: 820px;
}

/* EXCEPTION 2: Tour page H1 only */
h1.tnb-tour-h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(26px, 3.5vw, 44px) !important;
  font-weight: var(--fw-bold) !important;
  line-height: var(--lh-tight) !important;
}

/* Hero subtitle */
.tnb-hero__sub {
  font-family: var(--font-body) !important;
  font-size: clamp(15px, 2vw, 19px) !important;
  font-weight: var(--fw-normal) !important;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  max-width: 560px;
  line-height: var(--lh-snug);
}

/* Nav */
.tnb-nav-list a, .tnb-mobile-nav-list a {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
}
.tnb-header__logo-text {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 20px;
}

/* Tour cards */
.tnb-tour-card__title {
  font-family: var(--font-body) !important;
  font-weight: var(--fw-semibold) !important;
  font-size: var(--text-base) !important;
  line-height: var(--lh-snug);
}
.tnb-tour-card__price-amount {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 18px;
}
.tnb-tour-card__meta,
.tnb-tour-card__stars,
.tnb-tour-card__location {
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

/* Buttons & chips */
.tnb-btn, .tnb-fchip, .tnb-fsort,
.tnb-chip, .tnb-sort-opt, .tnb-badge,
.tnb-filter-toolbar__sort-label {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
}

/* Single tour page - all sub-headings DM Sans */
.tnb-tour-body h2,
.tnb-tour-body h3,
.tnb-tour-body h4,
.tnb-tour-body h5,
.tnb-single-tour h2,
.tnb-single-tour h3,
.tnb-single-tour h4,
.tnb-tabs-content h2,
.tnb-tabs-content h3,
.tnb-tabs-content h4,
.tnb-booking-sidebar h3,
.tnb-booking-sidebar h4 {
  font-family: var(--font-body) !important;
  font-weight: var(--fw-bold) !important;
}

/* Filter sheet sub-headings */
.tnb-filter-sheet h3,
.tnb-filter-sheet h4,
.tnb-filter-sheet label {
  font-family: var(--font-body) !important;
  font-weight: var(--fw-semibold) !important;
}

/* Body text */
p, li, td, th, label, input, textarea, select, blockquote {
  font-family: var(--font-body);
  line-height: var(--lh-normal);
}

/* Archive */
.tnb-archive-header__title {
  font-family: var(--font-body) !important;
  font-weight: var(--fw-bold) !important;
  font-size: 20px !important;
}

/* Breadcrumb, footer, misc */
.tnb-breadcrumb, .tnb-breadcrumb a,
.tnb-footer, .tnb-footer a,
.tnb-bottom-nav__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

/* =============================================================
   END FONT SYSTEM
   ============================================================= */

/* INTER OVERRIDE */
*:not(.dashicons):not(.ab-icon) {
  font-family: inherit;
}
[style*="Inter"], [style*="inter"],
.cb-s, .cb-s *, .cblb-overlay, .cblb-overlay *,
[class*="cb-"] * {
  font-family: "DM Sans", Arial, sans-serif !important;
}
/* END INTER OVERRIDE */


/* === BOOKING SIDEBAR v2 === */
.tnb-booking-sidebar{position:sticky;top:80px;align-self:start}
.tnb-bk-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.08)}
.tnb-bk-social{display:flex;align-items:center;gap:12px;padding:9px 18px;background:#fffbf2;border-bottom:1px solid #fde68a;flex-wrap:wrap}
.tnb-bk-social__fire,.tnb-bk-social__spots{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600}
.tnb-bk-social__fire{color:#b45309}.tnb-bk-social__spots{color:#dc2626}
.tnb-bk-price-header{padding:18px 18px 14px;border-bottom:1px solid #f3f4f6}
.tnb-bk-price-orig{font-size:13px;color:#9ca3af;text-decoration:line-through;margin-bottom:2px}
.tnb-bk-price-main{display:flex;align-items:baseline;gap:6px;margin-bottom:6px}
.tnb-bk-price-amount{font-size:30px;font-weight:800;color:#1a7a4a;line-height:1}
.tnb-bk-price-unit{font-size:13px;color:#6b7280}
.tnb-bk-price-badge{display:inline-flex;align-items:center;gap:5px;background:#fef3c7;color:#92400e;font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px;border:1px solid #fde68a}
.tnb-bk-tickets{padding:14px 18px;border-bottom:1px solid #f3f4f6}
.tnb-bk-section-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin-bottom:10px}
.tnb-bk-ticket{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1.5px solid #e5e7eb;border-radius:10px;margin-bottom:7px;cursor:pointer;transition:border-color .15s,background .15s;user-select:none}
.tnb-bk-ticket:last-child{margin-bottom:0}
.tnb-bk-ticket.active{border-color:#1a7a4a;background:#f0fdf6}
.tnb-bk-ticket__radio{width:17px;height:17px;border-radius:50%;border:2px solid #d1d5db;flex-shrink:0;margin-top:2px;display:flex;align-items:center;justify-content:center;transition:border-color .15s,background .15s}
.tnb-bk-ticket.active .tnb-bk-ticket__radio{border-color:#1a7a4a;background:#1a7a4a}
.tnb-bk-ticket.active .tnb-bk-ticket__radio::after{content:'';width:6px;height:6px;border-radius:50%;background:#fff;display:block}
.tnb-bk-ticket__body{flex:1;min-width:0}
.tnb-bk-ticket__name{font-size:13px;font-weight:700;color:#111827;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.tnb-bk-ticket__badge{background:#dcfce7;color:#166534;font-size:10px;font-weight:700;padding:2px 7px;border-radius:20px}
.tnb-bk-ticket__sub{font-size:11px;color:#6b7280;margin-top:2px;display:block}
.tnb-bk-ticket__price{text-align:right;flex-shrink:0}
.tnb-bk-ticket__orig{font-size:11px;color:#9ca3af;text-decoration:line-through;display:block;text-align:right}
.tnb-bk-ticket__cur{font-size:14px;font-weight:800;color:#1a7a4a}
.tnb-bk-fields{border-bottom:1px solid #f3f4f6}
.tnb-bk-field{display:flex;align-items:center;gap:10px;padding:11px 18px;border-bottom:1px solid #f9fafb}
.tnb-bk-field:last-child{border-bottom:none}
.tnb-bk-field__icon{width:32px;height:32px;border-radius:8px;background:#f3f4f6;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#4b5563}
.tnb-bk-field__label{flex:1;font-size:13px;font-weight:600;color:#374151;display:flex;flex-direction:column;gap:1px}
.tnb-bk-field__price{font-size:11px;color:#9ca3af;font-weight:400}
.tnb-bk-field__date{border:none;background:transparent;font-size:13px;font-weight:600;color:#1a7a4a;cursor:pointer;outline:none;text-align:right;font-family:inherit;min-width:120px}
.tnb-bk-field__date::-webkit-calendar-picker-indicator{opacity:.6;cursor:pointer}
.tnb-bk-counter{display:flex;align-items:center;border:1.5px solid #e5e7eb;border-radius:8px;overflow:hidden}
.tnb-bk-counter__btn{width:32px;height:32px;background:#f9fafb;border:none;font-size:18px;font-weight:300;color:#374151;cursor:pointer;line-height:1;transition:background .1s;font-family:inherit}
.tnb-bk-counter__btn:hover{background:#f3f4f6}
.tnb-bk-counter__val{width:34px;text-align:center;font-size:14px;font-weight:700;color:#111827;border-left:1px solid #e5e7eb;border-right:1px solid #e5e7eb;line-height:32px;font-variant-numeric:tabular-nums}
.tnb-bk-total{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#f9fafb;border-bottom:1px solid #f3f4f6}
.tnb-bk-total__breakdown{font-size:12px;color:#6b7280}
.tnb-bk-total__amount{font-size:22px;font-weight:800;color:#1a7a4a}
.tnb-bk-cta{padding:14px 18px 12px}
.tnb-bk-cta__btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:15px 20px;background:#f5a623;border:none;border-radius:12px;font-size:16px;font-weight:800;color:#fff;cursor:pointer;transition:background .15s,transform .1s;font-family:inherit}
.tnb-bk-cta__btn:hover{background:#e09315}
.tnb-bk-cta__btn:active{transform:scale(.98)}
.tnb-bk-cta__urgency{display:flex;align-items:center;gap:5px;justify-content:center;margin-top:8px;font-size:12px;font-weight:600;color:#dc2626}
.tnb-bk-trust{padding:0 18px 16px;display:flex;flex-direction:column;gap:6px}
.tnb-bk-trust__item{display:flex;align-items:center;gap:7px;font-size:12px;color:#4b5563}
@media(max-width:1023px){.tnb-booking-sidebar{position:static;margin-top:24px}.tnb-bk-price-amount{font-size:26px}}
@media(max-width:480px){.tnb-bk-card{border-radius:12px}.tnb-bk-cta__btn{font-size:15px;padding:13px 16px}}
/* === END BOOKING SIDEBAR v2 === */