/* ========================================================
   CHÈ LA BẰNG - DESIGN SYSTEM & STYLESHEET
   Domain: chelabang.com.vn
   Mô phỏng & nâng cấp từ: khamphadisan.com.vn
   Tối ưu hóa: Mobile-First tuyệt đối
   ======================================================== */

:root {
  /* Color Palette - Tinh hoa Trà Di sản & Thổ nhưỡng Tam Đảo */
  --tea-dark: #123324;         /* Xanh đậm búp chè cổ */
  --tea-emerald: #164e35;      /* Xanh lục bảo chủ đạo */
  --tea-medium: #1f6b49;       /* Xanh lá trà tươi */
  --tea-light: #2e8b57;        /* Xanh mơn mởn */
  --tea-mint: #e8f5ed;         /* Xanh ngọc nhạt làm nền thẻ */
  --gold-primary: #c59b27;     /* Vàng mật ong trà sánh */
  --gold-light: #e5b842;       /* Vàng ánh kim */
  --gold-bg: #fffbf0;          /* Nền vàng kem */
  --cream-bg: #fbf8f2;         /* Nền kem ấm di sản chuẩn khamphadisan */
  --text-dark: #1b2028;        /* Chữ đen trầm thanh lịch */
  --text-muted: #5e6d64;       /* Chữ phụ, ngày tháng */
  --border-light: #e2ded6;     /* Đường viền thanh thoát */
  --kh-line: #e2ded6;          /* Đường kẻ ngăn các tin tức */
  --kh-accent: #a06e1f;        /* Màu kicker vàng đất/hổ phách */
  --kh-primary: #1c3d8f;       /* Màu link Xem tất cả xanh lam trầm */
  --white: #ffffff;
  --danger: #d9383a;

  /* Typography */
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;

  /* Layout Constants */
  --mobile-header-height: 48px;
  --drawer-width: 310px;
  --shadow-sm: 0 2px 8px rgba(18, 51, 36, 0.08);
  --shadow-md: 0 4px 16px rgba(18, 51, 36, 0.12);
  --shadow-lg: 0 10px 30px rgba(18, 51, 36, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--cream-bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ========================================================
   1.1. MOBILE TOP STICKY BAR (#wprmenu_bar)
   Thanh điều hướng cố định đỉnh màn hình điện thoại
   ======================================================== */
.mobile-topbar {
  display: none; /* Hiện trên mobile qua media query */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-header-height);
  background: linear-gradient(135deg, var(--tea-dark) 0%, var(--tea-emerald) 100%);
  color: var(--white);
  z-index: 1000;
  padding: 0 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: space-between;
}

.mobile-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nút Hamburger 3 gạch */
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 4px;
  color: var(--white);
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 22px;
  height: 2.2px;
  background-color: var(--white);
  border-radius: 2px;
  position: absolute;
  transition: var(--transition);
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -6.5px;
}

.hamburger-inner::after {
  content: '';
  bottom: -6.5px;
}

/* Hiệu ứng khi Menu đang mở (chuyển thành dấu X) */
.hamburger-btn.is-active .hamburger-inner {
  background-color: transparent;
}

.hamburger-btn.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--gold-light);
}

.hamburger-btn.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: var(--gold-light);
}

/* Brand Title Mobile */
.mobile-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.brand-tea-leaf {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.mobile-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.mobile-action-btn:active {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0.92);
}

.mobile-call-btn {
  background: var(--gold-primary);
  color: var(--tea-dark);
  font-weight: 700;
}

/* ========================================================
   1.2. TOP ANNOUNCEMENT BAR (Desktop & Mobile)
   ======================================================== */
.top-announcement-bar {
  background-color: #10271c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfdbd3;
  font-size: 0.82rem;
  line-height: 34px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-noti {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dbe7e0;
}

.top-noti i {
  color: var(--gold-light);
  font-size: 0.85rem;
}

.top-social-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-hotline strong {
  color: #9eb6a8;
  font-weight: 500;
}

.top-hotline a {
  color: var(--gold-light);
  font-weight: 700;
  margin-left: 4px;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-social-links a {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  transition: var(--transition);
}

.top-social-links a:hover {
  background: var(--gold-primary);
  color: var(--tea-dark);
}

.top-social-links .zalo-link {
  width: auto;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #0068ff;
}

/* ========================================================
   1.3. DESKTOP BRAND HEADER
   ======================================================== */
.content-header {
  padding: 20px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo .logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--tea-emerald) 0%, var(--tea-dark) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(22, 78, 53, 0.25);
  border: 1px solid rgba(197, 155, 39, 0.35);
}

.logo-titles {
  display: flex;
  flex-direction: column;
}

.logo-main-text {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tea-dark);
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-sub-text {
  font-size: 0.73rem;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  font-weight: 600;
  margin-top: 3px;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 22px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream-bg);
  border: 1px solid var(--border-light);
}

.badge-item i {
  color: var(--tea-emerald);
  font-size: 1.25rem;
}

.badge-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--tea-dark);
}

.badge-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge-item.cta-box {
  background: transparent;
  border: none;
  padding: 0;
}

.btn-order-tea {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #aa811a 100%);
  color: #1a1505;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
  transition: var(--transition);
}

.btn-order-tea:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.35);
}

/* ========================================================
   1.4. DESKTOP MAIN NAVIGATION (Khung ngang chuẩn khamphadisan)
   ======================================================== */
.desktop-main-nav {
  background: var(--tea-emerald);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 18px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-arrow {
  font-size: 0.68rem;
  opacity: 0.8;
  transition: var(--transition);
}

.nav-item:hover > a {
  background: rgba(0, 0, 0, 0.15);
  color: var(--gold-light);
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-item.current-menu-item > a {
  background: var(--tea-dark);
  color: var(--gold-light);
  border-bottom: 3px solid var(--gold-primary);
}

/* Submenu Dropdown Desktop */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background-color: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 500;
  border-top: 2px solid var(--gold-primary);
  overflow: hidden;
}

.nav-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 11px 18px;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid #f1f4f2;
}

.sub-menu li a:hover {
  background: var(--tea-mint);
  color: var(--tea-emerald);
  padding-left: 24px;
}

/* ========================================================
   1.5. SLIDING DRAWER MENU MOBILE (Off-Canvas Menu trượt)
   Tối ưu hóa ngón tay cái & vuốt chạm cảm ứng
   ======================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 51, 36, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--drawer-width);
  max-width: 86vw;
  height: 100vh;
  height: 100dvh; /* Hỗ trợ dynamic viewport trên iOS */
  background: var(--white);
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  height: 56px;
  background: linear-gradient(135deg, var(--tea-dark) 0%, var(--tea-emerald) 100%);
  color: var(--white);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.drawer-brand i {
  color: var(--gold-light);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
}

/* Tìm kiếm trong Drawer */
.drawer-search-box {
  padding: 12px 14px;
  background-color: var(--cream-bg);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.drawer-search-box .search-form {
  position: relative;
  width: 100%;
}

.drawer-search-box input {
  width: 100%;
  height: 38px;
  padding: 6px 40px 6px 14px;
  border: 1px solid #d4ded7;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.drawer-search-box input:focus {
  border-color: var(--tea-emerald);
  box-shadow: 0 0 0 3px rgba(22, 78, 53, 0.12);
}

.drawer-search-box button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tea-emerald);
  font-size: 0.88rem;
}

/* Danh sách menu Drawer */
.drawer-nav-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.drawer-menu-list {
  list-style: none;
}

.drawer-menu-list > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: var(--text-dark);
  font-size: 0.94rem;
  font-weight: 600;
  border-bottom: 1px solid #f2f5f3;
}

.drawer-menu-list > li > a i {
  color: var(--tea-emerald);
  width: 20px;
  font-size: 0.95rem;
}

.drawer-menu-list > li.active > a {
  background: var(--tea-mint);
  color: var(--tea-emerald);
  border-left: 4px solid var(--gold-primary);
}

/* Accordion Submenu trong Drawer */
.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f2f5f3;
}

.accordion-title a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: var(--text-dark);
  font-size: 0.94rem;
  font-weight: 600;
}

.accordion-title a i {
  color: var(--tea-emerald);
  width: 20px;
}

.accordion-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.accordion-toggle.is-active i {
  transform: rotate(45deg);
  color: var(--danger);
}

.accordion-sub {
  list-style: none;
  background-color: #f7f9f7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-sub.is-open {
  max-height: 500px;
  transition: max-height 0.35s ease-in-out;
}

.accordion-sub li a {
  display: block;
  padding: 10px 18px 10px 50px;
  color: #3b4d42;
  font-size: 0.86rem;
  font-weight: 500;
  border-bottom: 1px solid #eef2ef;
}

.accordion-sub li a:hover {
  color: var(--tea-emerald);
  background: #edf3ee;
}

/* Drawer Footer */
.drawer-footer-contact {
  padding: 14px 16px;
  background-color: var(--cream-bg);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.drawer-hotline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

.drawer-hotline-card i {
  color: var(--gold-primary);
  font-size: 1.3rem;
}

.drawer-hotline-card span {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.drawer-hotline-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--tea-emerald);
  font-weight: 700;
}

.drawer-address {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   1.6. POPUP TÌM KIẾM NHANH TRÊN MOBILE
   ======================================================== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 51, 36, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 14px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-modal.is-active .search-modal-content {
  transform: translateY(0);
}

.modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--tea-emerald);
  padding-bottom: 8px;
}

.modal-input-wrap i {
  color: var(--tea-emerald);
  font-size: 1.1rem;
}

.modal-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-quick-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.search-quick-tags span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tag-btn {
  padding: 4px 10px;
  background: var(--tea-mint);
  color: var(--tea-emerald);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag-btn:active {
  background: var(--tea-emerald);
  color: var(--white);
}

/* ========================================================
   2. KHỐI TIN TỨC MỚI / TIÊU ĐIỂM (Chuẩn khamphadisan)
   Bố cục: 1 Bài lớn bên trái + 4 Bài hàng ngang bên phải
   ======================================================== */
.kh-main-content {
  padding: 30px 0 60px;
  background-color: var(--cream-bg);
}

.kh-news-section {
  background: transparent;
}

/* Thanh tiêu đề section & Xem tất cả */
.kh-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 2px solid #222222;
  margin-bottom: 20px;
}

.kh-title-heading {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.kh-link-viewall {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--kh-primary);
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.kh-link-viewall:hover {
  color: var(--tea-emerald);
  transform: translateX(3px);
}

/* Lưới tin tức 2 cột trên Desktop (7fr / 5fr) */
.kh-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}

/* Cột trái: Bài viết lớn tiêu điểm */
.kh-featured-card {
  display: flex;
  flex-direction: column;
}

.kh-featured-thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e4ebe6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.kh-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kh-featured-card:hover .kh-featured-img {
  transform: scale(1.03);
}

.kh-featured-content {
  padding-top: 14px;
}

.kh-card-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--kh-accent);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.kh-featured-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.32;
  margin-bottom: 10px;
}

.kh-featured-title a {
  color: #18221b;
  transition: var(--transition);
}

.kh-featured-title a:hover {
  color: var(--tea-emerald);
}

.kh-featured-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #4f5b54;
  line-height: 1.58;
}

/* Cột phải: Khối danh sách 4-5 mục dịch vụ rút gọn (Chuẩn khamphadisan) */
.kh-service-list {
  display: flex;
  flex-direction: column;
}

.kh-service-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--kh-line);
  cursor: pointer;
  transition: var(--transition);
}

.kh-service-item:first-child {
  border-top: none;
  padding-top: 0;
}

.kh-service-item:last-child {
  padding-bottom: 0;
}

.kh-service-item .kh-row-thumb-link {
  width: 110px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #e4ebe6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.kh-service-item .kh-row-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kh-service-item:hover .kh-row-thumb {
  transform: scale(1.05);
}

.kh-service-item .kh-row-content {
  flex: 1;
  min-width: 0;
}

.kh-service-item .kh-card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--kh-accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
  display: block;
}

.kh-service-item .kh-row-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.36;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kh-service-item .kh-row-title a {
  color: #1a1a1a;
  transition: var(--transition);
}

.kh-service-item:hover .kh-row-title a {
  color: var(--tea-emerald);
}


/* ========================================================
   MODALS CHI TIẾT THEO YÊU CẦU ẢNH 2
   ======================================================== */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 51, 36, 0.72);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.detail-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog-lg {
  max-width: 760px;
}

.detail-modal.is-active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--tea-dark) 0%, var(--tea-emerald) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.modal-title-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.btn-close-detail {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn-close-detail:hover {
  background: var(--gold-primary);
  color: var(--tea-dark);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Kiểu thẻ Tour */
.tour-card-item {
  background: var(--cream-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.tour-card-item:last-child {
  margin-bottom: 0;
}

.tour-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
}

.tour-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 51, 36, 0.9);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tour-type-badge.badge-artisan {
  background: rgba(160, 110, 31, 0.95);
  color: var(--white);
}

.tour-info {
  padding: 16px;
}

.tour-info h4 {
  font-size: 1.12rem;
  color: var(--tea-dark);
  margin-bottom: 8px;
}

.tour-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7ede8;
}

.tour-meta-grid span i {
  color: var(--tea-emerald);
  margin-right: 4px;
}

.tour-schedule {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.tour-schedule strong {
  display: block;
  color: var(--tea-dark);
  margin-bottom: 4px;
}

.tour-schedule ul {
  padding-left: 18px;
}

.tour-schedule li {
  margin-bottom: 4px;
  color: #4e5b53;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tea-emerald);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary-action:hover {
  background: var(--tea-dark);
  transform: translateY(-2px);
}

/* Kiểu Khách sạn, Homestay */
.homestay-item-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--cream-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.homestay-thumb {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.homestay-details {
  flex: 1;
}

.homestay-details h4 {
  font-size: 1.05rem;
  color: var(--tea-dark);
  margin-bottom: 6px;
}

.homestay-address,
.homestay-phone {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.homestay-address i,
.homestay-phone i {
  color: var(--tea-emerald);
  font-size: 0.9rem;
}

.homestay-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.homestay-amenities span {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--tea-mint);
  color: var(--tea-emerald);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.homestay-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-maps-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ea4335;
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-maps-action:hover {
  background: #c5221f;
  transform: translateY(-2px);
}

.btn-call-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-primary);
  color: var(--tea-dark);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Kiểu Ẩm thực */
.cuisine-highlight-box {
  background: var(--gold-bg);
  border: 1px solid #f6e3ba;
  border-radius: var(--radius-md);
  padding: 16px;
}

.cuisine-highlight-box h4 {
  font-size: 0.98rem;
  color: #8c6014;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dish-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #f0e2c8;
}

.dish-item i {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

.dish-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--tea-dark);
}

.dish-item small {
  display: block;
  font-size: 0.75rem;
  color: #6d7a72;
}

.restaurant-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--cream-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.rest-thumb {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rest-info h5 {
  font-size: 0.96rem;
  color: var(--tea-dark);
  margin-bottom: 4px;
}

.rest-info p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 4px;
}

.rest-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Kiểu Thư viện ảnh Lightbox */
.gallery-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-photo-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--white);
  font-size: 0.72rem;
  padding: 14px 8px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.image-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-box {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content-box img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption-text {
  color: #eee;
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kiểu Quà tặng */
.gift-prod-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--cream-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.gift-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.gift-info h4 {
  font-size: 1.05rem;
  color: var(--tea-dark);
  margin-bottom: 6px;
}

.gift-spec {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 8px;
}

.gift-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.gift-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #b33939;
}

.gift-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--gold-bg);
  color: #946914;
  border: 1px solid #ebd49f;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Mobile responsive cho Modals */
@media screen and (max-width: 767px) {
  .homestay-item-card {
    flex-direction: column;
  }
  .homestay-thumb {
    width: 100%;
    height: 150px;
  }
  .dishes-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gift-prod-card {
    flex-direction: column;
  }
  .gift-thumb {
    width: 100%;
    height: 160px;
  }
}



/* ========================================================
   RESPONSIVE BREAKPOINTS (Tối ưu đặc biệt cho Mobile)
   ======================================================== */
@media screen and (max-width: 991px) {
  /* Kích hoạt Mobile Topbar cố định như khamphadisan */
  .mobile-topbar {
    display: flex;
  }

  /* Đẩy nội dung trang xuống để không bị thanh mobile che mất */
  body {
    padding-top: var(--mobile-header-height);
  }

  /* Ẩn Header & Nav ngang cồng kềnh của Desktop */
  .desktop-header,
  .desktop-main-nav {
    display: none !important;
  }

  .top-announcement-bar {
    display: none; /* Mobile đã có thông tin tích hợp trong Drawer & Bar */
  }

  /* KHỐI TIN TỨC: XẾP CHỒNG 1 CỘT TRÊN MOBILE (Chuẩn ảnh mẫu khamphadisan) */
  .kh-main-content {
    padding: 16px 0 36px;
  }

  .kh-news-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }

  .kh-section-head {
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #222222;
  }

  .kh-title-heading {
    font-size: 1.36rem; /* ~20-21px */
  }

  .kh-link-viewall {
    font-size: 0.86rem;
  }

  .kh-featured-thumb-wrap {
    border-radius: 8px;
  }

  .kh-featured-content {
    padding-top: 12px;
  }

  .kh-card-kicker {
    font-size: 0.72rem;
    margin-bottom: 5px;
  }

  .kh-featured-title {
    font-size: 1.25rem; /* ~19-20px */
    line-height: 1.32;
    margin-bottom: 8px;
  }

  .kh-featured-excerpt {
    font-size: 0.9rem;
    line-height: 1.52;
    color: #4a544e;
  }

  .kh-service-list {
    margin-top: 4px;
  }

  /* Trên mobile, có đường kẻ phân cách rõ ràng phía trên bài dịch vụ đầu tiên */
  .kh-service-item:first-child {
    border-top: 1px solid var(--kh-line);
    padding-top: 14px;
  }

  .kh-service-item {
    gap: 12px;
    padding: 13px 0;
  }

  .kh-service-item .kh-row-thumb-link {
    width: 105px;
    height: 70px;
    border-radius: 6px;
  }

  .kh-service-item .kh-card-kicker {
    font-size: 0.7rem;
    margin-bottom: 3px;
  }

  .kh-service-item .kh-row-title {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .view-mode-dock {
    display: none; /* Thiết bị mobile thật thì không cần nút dock */
  }
}

@media screen and (min-width: 992px) {
  /* Ẩn Mobile Topbar trên màn hình máy tính */
  .mobile-topbar {
    display: none;
  }

  /* Chế độ mô phỏng khung Mobile trên máy tính */
  body.simulated-mobile {
    background-color: #24292e;
    display: flex;
    justify-content: center;
    padding: 30px 0 80px;
    min-height: 100vh;
  }

  body.simulated-mobile .desktop-header,
  body.simulated-mobile .desktop-main-nav,
  body.simulated-mobile .top-announcement-bar {
    display: none !important;
  }

  body.simulated-mobile .mobile-topbar {
    display: flex;
    position: absolute;
    width: 390px;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    border-radius: 20px 20px 0 0;
  }

  body.simulated-mobile .kh-main-content {
    width: 390px;
    margin-top: var(--mobile-header-height);
    background: var(--cream-bg);
    border-radius: 0 0 20px 20px;
    min-height: 650px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 3px solid #3e444b;
    border-top: none;
    padding: 16px 14px 40px;
  }

  body.simulated-mobile .kh-news-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }

  body.simulated-mobile .kh-title-heading {
    font-size: 1.36rem;
  }

  body.simulated-mobile .kh-featured-title {
    font-size: 1.25rem;
    line-height: 1.32;
  }

  body.simulated-mobile .kh-featured-excerpt {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  body.simulated-mobile .kh-service-item:first-child {
    border-top: 1px solid var(--kh-line);
    padding-top: 14px;
  }

  body.simulated-mobile .kh-service-item {
    gap: 12px;
    padding: 13px 0;
  }

  body.simulated-mobile .kh-service-item .kh-row-thumb-link {
    width: 105px;
    height: 70px;
    border-radius: 6px;
  }

  body.simulated-mobile .kh-service-item .kh-card-kicker {
    font-size: 0.7rem;
    margin-bottom: 3px;
  }

  body.simulated-mobile .kh-service-item .kh-row-title {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  body.simulated-mobile .mobile-drawer {
    left: calc(50% - 195px);
    width: 310px;
    border-radius: 20px 0 0 20px;
  }
}

/* Nút Dock góc màn hình máy tính */
.view-mode-dock {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tea-dark);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--gold-primary);
  transition: var(--transition);
}

.dock-btn:hover {
  background: var(--tea-emerald);
  transform: translateY(-2px);
  color: var(--white);
}

