/* ===========================================================
   PhuQuoc Travel — Theme
   Giao diện du lịch hiện đại, hỗ trợ 7 ngôn ngữ + RTL (Ả Rập)
   =========================================================== */
:root {
  --brand: #0aa1c4;         /* xanh biển */
  --brand-dark: #067a96;
  --brand-deep: #0b3a4a;
  --accent: #ff7a45;        /* cam san hô */
  --accent-dark: #f2622b;
  --ink: #17303a;
  --muted: #6b7f88;
  --line: #e7eef1;
  --bg-soft: #f4f9fb;
  --white: #ffffff;
  --gold: #ffb703;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(11, 58, 74, .10);
  --shadow-lg: 0 20px 50px rgba(11, 58, 74, .18);
  --container: 1200px;
  --font: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, "Noto Sans", "Tahoma", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* chống tràn ngang trên điện thoại */
}
img, video { max-width: 100%; }  /* media không vượt khung */
a { color: var(--brand-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn2 {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
  border: none; cursor: pointer; transition: .25s; white-space: nowrap;
  font-size: 15px;
}
.btn2--accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 8px 20px rgba(255,122,69,.35); }
.btn2--accent:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 26px rgba(255,122,69,.45); }
.btn2--brand { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 8px 20px rgba(10,161,196,.35); }
.btn2--brand:hover { transform: translateY(-2px); color: #fff; }
.btn2--ghost { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn2--ghost:hover { background: #fff; color: var(--brand-dark); }
.btn2--outline { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--line); }
.btn2--outline:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.sec-head .eyebrow {
  display: inline-block; color: var(--accent-dark); font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--brand-deep); color: #cfe9f1; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.topbar a { color: #eaf7fb; }
.topbar .topbar-info { display: flex; gap: 22px; }
.topbar .topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.navbar2 { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; height: 74px; gap: 12px; }
.brand2 { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--brand-deep); flex-shrink: 0; white-space: nowrap; }
.brand2 .logo-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 20px;
}
.brand2 b { color: var(--accent-dark); }
/* Logo dạng ảnh (thay icon) — hiển thị trọn vẹn trong khung bo góc */
img.logo-badge { object-fit: cover; background: #fff; padding: 0; }
.mainmenu { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainmenu li { flex: 0 0 auto; }
.mainmenu a {
  display: block; white-space: nowrap; padding: 9px 12px; border-radius: 10px; color: var(--ink);
  font-weight: 600; font-size: 15px;
}
.mainmenu a:hover, .mainmenu a.active { background: var(--bg-soft); color: var(--brand-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: inline-flex; }  /* nút CTA header — chỉ hiện ở desktop */

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.lang-btn:hover { border-color: var(--brand); }
.lang-menu {
  position: absolute; top: 120%; inset-inline-end: 0; min-width: 190px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 120;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: 14.5px;
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.active { background: var(--brand); color: #fff; }
.lang-flag { font-size: 18px; line-height: 1; }

.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--brand-deep); cursor: pointer; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, rgba(6,58,74,.86), rgba(10,161,196,.55)),
    url("https://images.unsplash.com/photo-1505228395891-9a51e7e86bf6?w=1600&q=80") center/cover no-repeat;
}
/* Cinematic video hero — cân đối, không chiếm trọn màn hình */
.hero--video {
  min-height: 72vh; max-height: 760px; display: flex; align-items: center;
  background: #06222c;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
  transform: scale(1.03); /* né viền đen khi video letterbox */
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 120% at 15% 20%, rgba(6,34,44,.35) 0%, rgba(6,34,44,0) 55%),
    linear-gradient(115deg, rgba(6,34,44,.82) 0%, rgba(6,58,74,.42) 48%, rgba(10,161,196,.18) 100%),
    linear-gradient(to top, rgba(6,34,44,.92) 0%, rgba(6,34,44,0) 46%);
}
.hero--video .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { padding: 96px 0 130px; max-width: 760px; }
.hero--video .hero-inner { padding: 48px 0; max-width: 680px; }
/* Xuất hiện mềm mại */
.hero--video .hero-inner > * { animation: heroFade .9s cubic-bezier(.2,.7,.2,1) both; }
.hero--video .badge2 { animation-delay: .05s; }
.hero--video h1 { animation-delay: .15s; }
.hero--video p { animation-delay: .25s; }
.hero--video .hero-cta { animation-delay: .35s; }
.hero--video .hero-trust { animation-delay: .45s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .badge2 {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32);
  font-weight: 700; font-size: 13.5px; letter-spacing: .3px; margin-bottom: 22px;
  backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.hero .badge2 i { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.5px; margin-bottom: 18px; text-shadow: 0 4px 34px rgba(0,0,0,.4); }
.hero p { font-size: clamp(16px, 1.7vw, 20px); color: #e7f4f9; margin-bottom: 32px; max-width: 560px; line-height: 1.65; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px;
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: #eaf7fb;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20); backdrop-filter: blur(6px);
}
.hero-trust i { color: var(--gold); }
.hero-scroll {
  position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px); animation: heroBounce 2s infinite;
}
.hero-scroll:hover { color: #fff; background: rgba(255,255,255,.28); }
@keyframes heroBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-scroll { animation: none; }
  .hero--video .hero-inner > * { animation: none; }
}

/* Search box */
.search-box {
  position: relative; margin-top: -42px; z-index: 20;
  background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
  padding: 22px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 16px; align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; text-align: start; }
.search-field label { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.search-field .ctrl {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-field .ctrl:focus-within {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(10,161,196,.14);
}
.search-field .ctrl i { color: var(--brand); font-style: normal; }
.search-field input, .search-field select {
  border: none; background: transparent; width: 100%; font-size: 15px; color: var(--ink); outline: none;
}
.search-box .btn2 { height: 48px; justify-content: center; }

/* Ô chọn khách (người lớn + trẻ em theo chiều cao) */
.guests-field { position: relative; }
.guests-toggle { cursor: pointer; user-select: none; }
.guests-toggle .guests-summary { flex: 1; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guests-toggle .guests-caret { color: var(--muted); font-size: 12px; transition: transform .2s; }
.guests-toggle[aria-expanded="true"] .guests-caret { transform: rotate(180deg); }
.guests-panel {
  position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-start: 0; right: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 10px 16px 16px;
}
.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guest-row:last-of-type { border-bottom: none; }
.guest-label b { display: block; font-size: 14.5px; color: var(--ink); }
.guest-label small { color: var(--muted); font-size: 12.5px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 20px; line-height: 1; color: var(--brand-dark); cursor: pointer; display: grid; place-items: center;
  transition: border-color .15s, background .15s;
}
.stepper button:hover { border-color: var(--brand); background: #fff; }
.stepper .st-val { width: 34px; text-align: center; border: none; background: transparent; font-size: 16px; font-weight: 800; color: var(--ink); -moz-appearance: textfield; }
.stepper .st-val::-webkit-outer-spin-button, .stepper .st-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.guests-done { width: 100%; justify-content: center; margin-top: 14px; height: 42px; }

/* ===========================================================
   CATEGORIES
   =========================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px;
  text-align: center; transition: .25s; color: var(--ink);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.cat-card .ic {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; background: var(--bg-soft); color: var(--brand-dark);
}
.cat-card:hover .ic { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.cat-card h4 { font-size: 15.5px; margin: 0; }

/* ===========================================================
   TOUR CARDS
   =========================================================== */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tour-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .28s;
}
.tour-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.tour-thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tour-card:hover .tour-thumb img { transform: scale(1.07); }
.tour-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 8px; }
.chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff;
  letter-spacing: .3px;
}
.chip--hot { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.chip--sale { background: #e63946; }
.tour-cat {
  position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(255,255,255,.92);
  color: var(--brand-dark); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.tour-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tour-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 8px; flex-wrap: wrap; }
.tour-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tour-body h3 { font-size: 18px; margin: 0 0 8px; }
.tour-body h3 a { color: var(--ink); }
.tour-body h3 a:hover { color: var(--brand-dark); }
.tour-sum { color: var(--muted); font-size: 14px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.tour-rating .stars { color: var(--gold); letter-spacing: 1px; }
.tour-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.price-wrap { display: flex; flex-direction: column; gap: 2px; }
.price-wrap .from { font-size: 12px; color: var(--muted); }
.price-wrap .pw-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-wrap .pw-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.price-wrap .price { font-size: 20px; font-weight: 900; color: var(--accent-dark); }
.price-wrap .price-child { font-size: 16px; }
.price-wrap .pw-child .pw-label { color: var(--brand-dark); }
.price-wrap .old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-wrap .per { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Giá phụ (đồng tiền còn lại) hiển thị nhỏ & mờ hơn giá chính. Dùng em để tự
   co theo cỡ chữ của từng khối giá (card, chi tiết, booking...). */
.cur-sec { font-size: .68em; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Card tour kiểu "chi tiết": các dòng thông tin có icon + giá người lớn/trẻ em */
.tour-facts { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 7px; }
.tour-facts li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); }
.tour-facts li i { width: 18px; text-align: center; color: var(--brand); font-size: 14px; flex: none; }
.tour-facts .tf-cat { color: var(--accent-dark); font-weight: 800; }
.tour-prices { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.tour-prices .tp-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tour-prices .tp-label { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.tour-prices .tp-val { color: var(--accent-dark); font-weight: 900; font-size: 17px; }
.tour-prices .tp-child { font-size: 15px; }
.tour-detail-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 800; font-size: 14.5px; color: var(--brand-dark); }
.tour-detail-link i { transition: transform .2s; }
.tour-detail-link:hover { color: var(--accent-dark); }
.tour-detail-link:hover i { transform: translateX(4px); }

/* ===========================================================
   WHY US / STATS
   =========================================================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .25s; }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.why-card .ic { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, rgba(10,161,196,.14), rgba(255,122,69,.14)); color: var(--brand-dark); }
.why-card h4 { font-size: 17px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.stats-band { background: linear-gradient(120deg, var(--brand-deep), var(--brand-dark)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: #fff; }
.stat span { color: #bfe6f0; font-size: 15px; }

/* ===========================================================
   TESTIMONIALS
   =========================================================== */
.tm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.tm-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.tm-card p { font-size: 15.5px; color: var(--ink); margin: 0 0 18px; font-style: italic; }
.tm-user { display: flex; align-items: center; gap: 12px; }
.tm-user img { width: 48px; height: 48px; border-radius: 50%; }
.tm-user b { display: block; }
.tm-user small { color: var(--muted); }

/* ===========================================================
   CTA
   =========================================================== */
.cta-band {
  border-radius: 26px; margin: 0 16px; padding: 56px 24px; text-align: center; color: #fff;
  background: linear-gradient(120deg, rgba(6,58,74,.9), rgba(255,122,69,.55)),
    url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?w=1600&q=80") center/cover;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.cta-band p { color: #eaf7fb; font-size: 18px; margin-bottom: 26px; }

/* ===========================================================
   PAGE HEADER (list/details)
   =========================================================== */
.page-hero {
  color: #fff; padding: 60px 0; text-align: center;
  background: linear-gradient(120deg, rgba(6,58,74,.85), rgba(10,161,196,.6)),
    url("https://images.unsplash.com/photo-1519046904884-53103b34b206?w=1600&q=80") center/cover;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.5vw, 44px); }
.page-hero p { color: #eaf7fb; font-size: 17px; margin: 0; }
.breadcrumb2 { display: flex; gap: 8px; justify-content: center; color: #cfe9f1; font-size: 14px; margin-top: 10px; }
.breadcrumb2 a { color: #fff; }

/* Thanh tìm kiếm tức thì (Tour / Khách sạn) */
.search-bar { position: relative; margin-bottom: 18px; }
.search-bar__icon { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 15px; }
.search-bar__input {
  width: 100%; box-sizing: border-box;
  padding: 14px 46px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.search-bar__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,161,196,.15); }
.search-bar__clear {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; color: var(--muted);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
}
.search-bar__clear:hover { background: var(--line); color: var(--ink); }
.search-bar__clear[hidden] { display: none; }

/* Toolbar (filters) */
.tour-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.filter-pills {
  display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pills a {
  flex: 0 0 auto; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; font-size: 14px;
}
.filter-pills a:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-pills a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort-box select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.result-count { color: var(--muted); font-size: 14.5px; }

/* ===========================================================
   TOUR DETAILS
   =========================================================== */
.details-grid { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img:hover { border-color: var(--brand); }
.gallery-thumbs img.is-active { border-color: var(--brand); }

/* ===========================================================
   SLIDESHOW — nút lướt (prev/next) + tự đổi ảnh mỗi 3 giây
   Dùng chung cho gallery trang chi tiết & ảnh card danh sách.
   =========================================================== */
.slideshow { position: relative; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.slideshow .slide.is-active { opacity: 1; pointer-events: auto; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.42); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.slideshow:hover .ss-nav { opacity: 1; }
.ss-nav:hover { background: rgba(0,0,0,.68); }
.ss-prev { inset-inline-start: 10px; }
.ss-next { inset-inline-end: 10px; }
.ss-dots { position: absolute; inset-inline: 0; bottom: 10px; z-index: 4; display: flex; justify-content: center; gap: 6px; }
.ss-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.55); transition: width .2s ease, background .2s ease; }
.ss-dots button.is-active { background: #fff; width: 20px; border-radius: 5px; }
/* Ảnh card trong danh sách: nút gọn hơn, luôn trên badge/nhãn */
.tour-thumb.slideshow .ss-nav { width: 32px; height: 32px; font-size: 13px; }
.tour-badges, .tour-cat { z-index: 5; }
/* Thiết bị cảm ứng (không hover): hiện sẵn nút lướt */
@media (hover: none) { .ss-nav { opacity: .9; } }
.detail-block { margin-top: 34px; }
.detail-block h3 { font-size: 22px; margin-bottom: 14px; padding-inline-start: 14px; border-inline-start: 4px solid var(--accent); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.check-list li { position: relative; padding-inline-start: 30px; color: var(--ink); }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 20px; height: 20px; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.highlight-list { list-style: none; padding: 0; margin: 0; }
.highlight-list li { padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--line); position: relative; }
.highlight-list li::before { content: "★"; position: absolute; inset-inline-start: 0; color: var(--gold); }

/* Video giới thiệu tour (YouTube nhúng) — khung 16:9 co giãn theo màn hình */
.tour-video { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.tour-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Bảng giá theo số khách (1 - 5 khách) */
.group-price-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group-price-table th, .group-price-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.group-price-table thead th { background: var(--brand); color: #fff; font-weight: 700; font-size: 14.5px; }
.group-price-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, .025); }
.group-price-table tbody tr:last-child td { border-bottom: 0; }
.group-price-table td b { color: var(--accent-dark); font-size: 16px; }
.group-price-table .gp-per { color: var(--muted); font-size: 13px; }

.booking-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; }
.booking-card .bc-price { font-size: 30px; font-weight: 900; color: var(--accent-dark); }
.booking-card .bc-old { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.booking-card .bc-per { color: var(--muted); font-size: 14px; }
.bc-facts { list-style: none; padding: 0; margin: 18px 0; }
.bc-facts li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bc-facts li span { color: var(--muted); }
.bc-facts li b { color: var(--ink); }
.booking-card .btn2 { width: 100%; justify-content: center; margin-top: 6px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--brand-deep); color: #b9d7e0; padding-top: 60px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer a { color: #b9d7e0; }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-brand .logo-badge { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: 999px; border: none; outline: none; font-size: 14px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; font-size: 22px; transition: transform .18s, background .18s; }
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials a .fa-facebook-f { color: #1877F2; }
.socials a .fa-tiktok { color: #fff; }
.socials a .fa-whatsapp { color: #25D366; }
.socials a .fa-telegram { color: #229ED9; }
.socials a .fa-instagram { color: #E4405F; }
.socials a .fa-youtube { color: #FF0000; }
.socials a:hover i { color: #fff; }
/* Socials đặt trên nền sáng (vd: khối liên hệ .booking-card): nền xám nhạt,
   icon TikTok đổi sang màu tối để không bị chìm vào nền trắng. */
.booking-card .socials a { background: var(--line); }
.booking-card .socials a .fa-tiktok { color: #111; }
.booking-card .socials a:hover .fa-tiktok { color: #fff; }

/* Mạng xã hội trên thanh trên cùng — icon to, rõ */
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 17px; transition: transform .18s, background .18s; }
.topbar-social a:hover { transform: translateY(-2px); }
.topbar-social a .fa-facebook-f { color: #4c9bff; }
.topbar-social a .fa-tiktok { color: #fff; }
.topbar-social a .fa-whatsapp { color: #25D366; }
.topbar-social a .fa-telegram { color: #4bb6e8; }
.topbar-social a .fa-instagram { color: #ff7aa0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: 14px; color: #9cc3ce; }

/* Mã QR WhatsApp trong footer (gần cụm icon mạng xã hội) */
.footer-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 10px; border-radius: 14px; width: max-content; }
.footer-qr img { width: 108px; height: 108px; border-radius: 9px; background: #fff; padding: 6px; display: block; }
.footer-qr span { color: #cfe9f1; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.footer-qr span i { color: #25D366; font-size: 15px; }
.footer-qr:hover { background: rgba(255,255,255,.14); }
.footer-qr:hover span { color: #fff; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
/* ===== Laptop nhỏ / tablet ngang (≤992px) ===== */
@media (max-width: 992px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-box { grid-template-columns: 1fr 1fr; }
}
/* Gom menu chính về nút hamburger để không bị chen 2 dòng ở màn hình vừa */
@media (max-width: 1120px) {
  .mainmenu { display: none; position: absolute; top: 74px; inset-inline-start: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; box-shadow: var(--shadow); z-index: 50; }
  .site-header.menu-open .mainmenu { display: flex; }
  .mainmenu a { white-space: normal; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }   /* ẩn nút CTA khi menu đã gom vào ☰ để không bị chật/cắt chữ */
}
/* ===== Tablet dọc (≤768px) ===== */
@media (max-width: 768px) {
  .topbar .topbar-info span:not(:first-child) { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .tm-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0; }
}
/* ===== Điện thoại (≤640px) ===== */
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero--video { min-height: 64vh; max-height: none; }
  .hero--video .hero-inner { padding: 24px 0; }
  .hero-trust { gap: 8px 10px; }
  .hero-scroll { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn2 { flex: 1 1 100%; justify-content: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-grid { grid-template-columns: 1fr; }
  .why-grid, .stats-grid, .tm-grid { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: 1fr; margin-top: -26px; }
  .search-box .btn2 { width: 100%; }
  .check-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .guests-panel { min-width: 0; width: 100%; }
  .newsletter { flex-wrap: wrap; }
  .newsletter input { flex: 1 1 100%; }
  .newsletter .btn2 { width: 100%; justify-content: center; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .breadcrumb2 { flex-wrap: wrap; }
  .page-hero { padding: 38px 0; }
  .tour-toolbar { align-items: stretch; }
  .sort-box { justify-content: space-between; }
  /* Ảnh card thấp lại cho đỡ chiếm màn hình điện thoại */
  .tour-thumb { aspect-ratio: 16/10; }
  /* Giá (kèm giá phụ USD/VND) vừa khung, cho xuống dòng gọn */
  .price-wrap .price { font-size: 18px; }
  .booking-card .bc-price { font-size: 26px; }
  .cur-sec { font-size: .64em; }
  /* Header gọn trên điện thoại: logo nhỏ lại (desktop vẫn 52px) để không chật */
  .brand2 { font-size: 19px; gap: 8px; }
  .brand2 .logo-badge { width: 44px; height: 44px; border-radius: 12px; }
  .navbar2 { height: 64px; }
  /* Khối đặt tour/booking & liên hệ: giảm đệm cho vừa màn hình hẹp */
  .booking-card { padding: 18px; }
  .detail-block h3 { font-size: 20px; }
  /* Bảng phòng khách sạn cuộn ngang mượt trên điện thoại */
  .room-table th, .room-table td { padding: 12px 10px; }
}
/* ===== Điện thoại nhỏ (≤400px) ===== */
@media (max-width: 400px) {
  .section { padding: 40px 0; }
  .container { padding: 0 14px; }
  .btn2 { padding: 12px 20px; font-size: 14.5px; }
  .cat-grid { gap: 12px; }
  .cat-card { padding: 20px 10px; }
  .topbar .container { gap: 10px; }
  .topbar-social { gap: 8px; }
  .topbar-social a { width: 27px; height: 27px; font-size: 15px; }
  .brand2 { font-size: 17px; }
  .brand2 .logo-badge { width: 40px; height: 40px; }
  .socials a { width: 44px; height: 44px; font-size: 20px; }
}

/* ===========================================================
   ROOM TABLE (hotel details)
   =========================================================== */
.room-table { width: 100%; border-collapse: collapse; }
.room-table th, .room-table td { padding: 14px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.room-table thead th { background: var(--bg-soft); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.room-table td b { font-size: 15px; }
.room-svc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.room-note { color: var(--accent-dark); font-size: 12.5px; margin-top: 4px; }
.room-price { font-weight: 900; color: var(--accent-dark); }
.room-price .per { color: var(--muted); font-weight: 600; font-size: 12px; }
.room-table .btn2 { padding: 9px 18px; font-size: 14px; }

/* ===========================================================
   ADMIN
   =========================================================== */
.admin-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: #082a36; }
/* Aside giãn full chiều cao cột (nền tối phủ toàn bộ, không còn khoảng trắng khi cuộn) */
.admin-side { background: linear-gradient(180deg, #0b3a4a, #082a36); color: #cfe9f1; align-self: stretch; }
/* Nội dung nav dính (sticky) trong 1 màn hình, tự cuộn nếu quá dài */
.admin-side-inner { position: sticky; top: 0; min-height: 100vh; max-height: 100vh; overflow-y: auto; padding: 24px 16px; display: flex; flex-direction: column; }
.admin-side-inner::-webkit-scrollbar { width: 6px; }
.admin-side-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }
.admin-side .a-brand { color: #fff; font-weight: 900; font-size: 18px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.admin-side .a-brand i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); font-size: 16px; }
.admin-nav-label { color: #6f97a4; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 18px 12px 8px; }
.admin-nav { list-style: none; padding: 0; margin: 0; }
.admin-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; color: #b9d6de; font-weight: 600; font-size: 14.5px; margin-bottom: 3px; transition: .18s; }
.admin-nav a i { width: 18px; text-align: center; font-size: 15px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: rgba(10,161,196,.22); color: #fff; }
.admin-nav a.active::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.admin-nav .nav-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e23b3b; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px rgba(226,59,59,.25); }
/* Nhãn co giãn để các badge số lượng dồn về bên phải; dùng cho cả mục lớn & mục nhỏ */
.admin-nav summary > span:first-of-type, .admin-subnav a > span:first-of-type { flex: 1 1 auto; min-width: 0; }
/* Badge "số lượng" — to & rõ hơn nav-badge, hiển thị ở mục lớn (summary) và mục nhỏ (sub) */
.admin-nav .nav-count { flex: none; min-width: 24px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 13.5px; font-weight: 800; line-height: 22px; text-align: center; }
.admin-nav summary.active .nav-count, .admin-nav a.active .nav-count { background: rgba(255,255,255,.3); }
.admin-nav .nav-count + .nav-badge { margin-inline-start: 6px; }
/* Badge "chưa liên hệ" (yêu cầu mới) — nổi bật màu đỏ, chỉ hiện khi còn > 0 */
.admin-nav .nav-count--new { background: #e23b3b; color: #fff; box-shadow: 0 0 0 2px rgba(226,59,59,.25); }
.admin-nav .active .nav-count--new { background: #ff5a5a; }

/* Thanh lọc khoảng ngày (Báo cáo / Doanh thu / Công nợ) */
.report-filter .rf-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rf-label { font-weight: 700; color: var(--brand-deep, #0a7ea4); }
.rf-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rf-field input[type=date] { padding: 7px 10px; border: 1px solid var(--line, #e7eef1); border-radius: 8px; font: inherit; }
.rf-presets { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.rf-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #e7eef1); font-size: 12px; color: var(--muted); text-decoration: none; }
.rf-chip:hover { border-color: var(--brand, #0aa1c4); color: var(--brand-deep, #0a7ea4); }
.rf-chip.active { background: var(--brand, #0aa1c4); border-color: var(--brand, #0aa1c4); color: #fff; }
@media print { .report-filter { display: none; } }

/* Bộ tính tạm tiền khi khách đặt tour */
.tour-calc { background: var(--bg-soft, #f6f9fb); border: 1px solid var(--line, #e7eef1); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.calc-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line, #e7eef1); }
.calc-total-label { font-weight: 700; color: var(--brand-deep, #0a7ea4); }
.calc-total-value { font-size: 22px; font-weight: 900; color: var(--accent, #e8622c); }
/* Admin: dòng số khách + tạm tính trong thẻ yêu cầu */
.lc-pax { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0; font-size: 13.5px; color: var(--muted, #6b7f88); }
.lc-pax .lc-est { margin-inline-start: auto; color: var(--brand-deep, #0a7ea4); }
.lc-pax .lc-est b { color: #0a7d43; }

/* Danh sách phụ thu trong form đặt phòng khách sạn */
.surcharge-list { margin-top: 12px; border-top: 1px dashed var(--line, #e7eef1); padding-top: 12px; }
.surcharge-head { font-weight: 700; color: var(--brand-deep, #0a7ea4); margin-bottom: 8px; }
.surcharge-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line, #eef3f5); }
.surcharge-row:last-child { border-bottom: 0; }
.surcharge-info b { font-weight: 700; }
.surcharge-price { color: var(--accent, #e8622c); font-weight: 700; margin-inline-start: 6px; }
.surcharge-note { font-size: 12.5px; color: var(--muted, #6b7f88); margin-top: 2px; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.06); border-radius: 12px; margin-bottom: 10px; }
.admin-user .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; flex: none; }
.admin-user small { color: #9cc3ce; font-size: 11.5px; display: block; }
.admin-user b { color: #fff; font-size: 14px; }
.admin-main { padding: 32px; background: var(--bg-soft); min-height: 100vh; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { margin: 0; font-size: 26px; }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.admin-stat b { display: block; font-size: 34px; color: var(--brand-dark); }
.admin-stat span { color: var(--muted); }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.admin-table thead th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.admin-table tbody tr:hover { background: var(--bg-soft); }
.admin-table img { width: 60px; height: 42px; object-fit: cover; border-radius: 8px; }
.badge-star { background: var(--gold); color: #3a2d00; padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.alert-ok { background: #e3f7ec; color: #0a7d43; border: 1px solid #b6e8cc; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }
.alert-err { background: #fdecef; color: #c81e3c; border: 1px solid #f5c2cd; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }
.role-badge { display: inline-block; font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: 999px; }
.role-badge.admin { background: #e8f6fa; color: var(--brand-dark); }
.role-badge.editor { background: #fff2e8; color: var(--accent-dark); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status-dot i { font-size: 9px; }
.status-dot.on i { color: #16a34a; }
.status-dot.off i { color: #cbd5d8; }
.user-cell { display: flex; align-items: center; gap: 11px; }
.user-cell .av-sm { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.user-cell .av-sm.editor { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.user-cell small { color: var(--muted); font-size: 12.5px; display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.switch-row { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 6px 0; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.pass-wrap { position: relative; }
.pass-wrap input { width: 100%; padding-inline-end: 44px; }
.pass-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pass-toggle:hover { color: var(--brand-dark); background: var(--bg-soft); }
.perm-toolbar { margin: 6px 0 12px; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-soft); }
.perm-group-title { font-weight: 800; font-size: 13px; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.perm-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.perm-item input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-sm { padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-sm:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm.danger:hover { border-color: #e63946; color: #e63946; }
.lang-note { background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }

/* ---------- Admin dashboard ---------- */
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-topbar .greeting h1 { font-size: 26px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.admin-topbar .greeting h1 i { color: var(--brand); }
.admin-topbar .greeting p { margin: 0; color: var(--muted); font-size: 14.5px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-date { color: var(--muted); font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; text-transform: capitalize; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Thẻ số liệu bấm được -> mở thẳng trang chi tiết tương ứng */
a.stat-link { color: inherit; text-decoration: none; cursor: pointer; position: relative; }
a.stat-link:hover { border-color: var(--brand); }
a.stat-link::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--muted); position: absolute; top: 12px; right: 14px; opacity: 0; transition: opacity .2s, transform .2s; }
a.stat-link:hover::after { opacity: 1; transform: translateX(2px); color: var(--brand); }
.stat-ic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 23px; color: #fff; flex: none; }
.stat-ic.a { background: linear-gradient(135deg, #0aa1c4, #067a96); }
.stat-ic.b { background: linear-gradient(135deg, #ff7a45, #f2622b); }
.stat-ic.c { background: linear-gradient(135deg, #ffb703, #f59e0b); }
.stat-ic.d { background: linear-gradient(135deg, #6a8bff, #3b5bdb); }
.stat-meta b { display: block; font-size: 32px; line-height: 1.05; font-weight: 900; color: var(--ink); }
.stat-meta span { color: var(--muted); font-size: 13.5px; font-weight: 600; }

.admin-section-title { font-size: 18px; margin: 0 0 16px; }
.manage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.manage-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.manage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.manage-card .mc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.manage-card .mc-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: #fff; flex: none; }
.manage-card h3 { margin: 0; font-size: 18px; }
.manage-card .mc-count { margin-inline-start: auto; font-weight: 900; font-size: 24px; color: var(--brand-dark); }
.manage-card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* ---------- Admin list pages ---------- */
.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-search { position: relative; flex: 1; min-width: 220px; max-width: 440px; }
.admin-search i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.admin-search input { width: 100%; padding: 11px 16px 11px 40px; border: 1px solid var(--line); border-radius: 11px; font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); }
[dir="rtl"] .admin-search input { padding: 11px 40px 11px 16px; }
.admin-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,161,196,.15); }
.count-pill { background: #e8f6fa; color: var(--brand-dark); font-weight: 800; font-size: 13px; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }

.admin-panel { box-shadow: var(--shadow); }
.admin-table td .thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 9px; box-shadow: var(--shadow); }
.admin-table .id-cell { color: var(--muted); font-weight: 700; font-size: 13px; }
.admin-table .price-cell { font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.cat-chip { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand-dark); font-weight: 700; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; }
.tbl-actions { display: inline-flex; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .18s; font-size: 14px; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand-dark); background: #f2fbfd; transform: translateY(-1px); }
.icon-btn.danger:hover { border-color: #e63946; color: #e63946; background: #fdeef0; }
.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-state i { font-size: 40px; color: var(--line); margin-bottom: 12px; display: block; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .manage-grid { grid-template-columns: 1fr; }
}
/* Thanh trên cùng + menu trượt (chỉ dùng trên điện thoại/tablet) */
.admin-mbar, .admin-backdrop { display: none; }
@media (max-width: 800px) {
  .admin-mbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 12px; background: linear-gradient(90deg, #0b3a4a, #082a36); color: #fff; box-shadow: 0 2px 12px rgba(8,42,54,.25); }
  .admin-mbar-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
  .admin-mbar-btn:active { background: rgba(255,255,255,.2); }
  .admin-mbar-brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; color: #fff; font-weight: 800; font-size: 16px; }
  .admin-mbar-brand:hover { color: #fff; }
  .admin-mbar-brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex: none; }
  .admin-mbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-mbar-bell { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: #fff; font-size: 17px; }
  .admin-mbar-bell span { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e23b3b; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

  .admin-shell { display: block; background: var(--bg-soft); }
  .admin-side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 80; width: min(290px, 84vw); transform: translateX(-100%); transition: transform .28s cubic-bezier(.22,.61,.36,1); box-shadow: none; }
  [dir="rtl"] .admin-side { transform: translateX(100%); }
  .admin-side-inner { position: static; height: 100%; min-height: 0; max-height: none; padding: 18px 14px; overscroll-behavior: contain; }
  .admin-nav-open .admin-side { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  .admin-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(4,22,30,.5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .admin-nav-open .admin-backdrop { opacity: 1; visibility: visible; }
  .admin-nav-open { overflow: hidden; }
  .admin-main { min-height: calc(100vh - 58px); padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   RTL (Ả Rập)
   =========================================================== */
[dir="rtl"] body { font-family: "Segoe UI", "Tahoma", "Noto Naskh Arabic", sans-serif; }
[dir="rtl"] .tour-rating .stars,
[dir="rtl"] .tm-card .stars { direction: ltr; display: inline-block; }
[dir="rtl"] .price-wrap .old { direction: ltr; }

/* ===========================================================
   FORM LIÊN HỆ (Contact) + GIÁ TRẺ EM + LEADS (Admin) + SEO
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.contact-grid .cf-field { display: flex; flex-direction: column; gap: 6px; }
.contact-grid .cf-field.full { grid-column: 1 / -1; }
.cf-field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.cf-field .req, .field .req { color: #e63946; }
.contact-form .ctrl-input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); font-size: 15px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form .ctrl-input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(10,161,196,.14); }
.contact-form textarea.ctrl-input { resize: vertical; min-height: 110px; }

/* Khối form đặt nhúng trong trang chi tiết (tour/khách sạn/xe) */
.booking-form-block { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.booking-form-block textarea.ctrl-input { min-height: 80px; }
.booking-for { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 14px;
  background: #fff; border: 1px dashed var(--brand); border-radius: 10px; color: var(--ink); font-size: 14.5px; }
.booking-for i { color: var(--accent-dark); }
.booking-hotline { display: inline-flex; align-items: center; gap: 7px; margin-inline-start: 14px; color: var(--muted); font-size: 14px; }
.booking-hotline i { color: var(--brand); }

/* Giá người lớn / trẻ em trong thẻ đặt tour */
.booking-card .bc-adultprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.booking-card .bc-label { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.booking-card .bc-label i { color: var(--brand); margin-inline-end: 2px; }
.booking-card .bc-childprice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px 14px; background: var(--bg-soft); border-radius: 12px;
}
.booking-card .bc-childprice span { color: var(--muted); font-size: 14px; }
.booking-card .bc-childprice b { color: var(--accent-dark); font-size: 18px; }
.booking-card .bc-childnote { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.5; }

/* Bảng giá tour: người lớn & trẻ em cùng một kiểu hàng (nhãn trái – giá phải) */
.booking-card .bc-prices { display: flex; flex-direction: column; gap: 10px; }
.booking-card .bc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line);
}
.booking-card .bc-row--adult { background: #fff6f0; border-color: #ffd9c2; }
.booking-card .bc-row-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.booking-card .bc-row-label > span:last-child { display: flex; flex-direction: column; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.25; }
.booking-card .bc-row-label small { font-weight: 500; color: var(--muted); font-size: 12px; }
.booking-card .bc-row-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(15, 40, 60, .08); font-size: 14px;
}
.booking-card .bc-row--adult .bc-row-icon { color: var(--accent-dark); }
.booking-card .bc-row-price { text-align: end; font-weight: 900; color: var(--accent-dark); font-size: 19px; line-height: 1.2; white-space: nowrap; }
.booking-card .bc-row--adult .bc-row-price { font-size: 22px; }
.booking-card .bc-row-price .cur-sec { display: block; font-size: 12px; margin-top: 2px; }
.booking-card .bc-row-old { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.booking-card .bc-row-old .chip { font-size: 11px; padding: 2px 7px; vertical-align: middle; }
@media (max-width: 400px) {
  .booking-card .bc-row { padding: 10px 12px; }
  .booking-card .bc-row--adult .bc-row-price { font-size: 19px; }
  .booking-card .bc-row-price { font-size: 17px; }
}

/* Gợi ý dưới ô nhập trong Admin + khối SEO */
.field-hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.seo-block label i { color: var(--brand); }

/* Bảng yêu cầu liên hệ (Leads) */
.admin-table .lead-msg { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.admin-table tr.lead-done td { opacity: .62; }
.chip--new { background: var(--accent); }
.chip--ok { background: #0a7d43; }
.tbl-actions { display: inline-flex; gap: 6px; }

/* ===========================================================
   TRANG NỘI DUNG TĨNH + LINK CHÍNH SÁCH FOOTER + CHỌN KHU VỰC ĐÓN
   =========================================================== */
.footer-policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 18px 0 0; }
.footer-policies a { color: #cfe9f1; font-size: 14px; position: relative; }
.footer-policies a:hover { color: #fff; }
.footer-policies a:not(:last-child)::after { content: "·"; position: absolute; inset-inline-end: -14px; color: #4f7c8a; }

.page-content { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: var(--ink); }
.page-content h2 { font-size: 24px; margin: 28px 0 12px; }
.page-content h3 { font-size: 19px; margin: 22px 0 10px; }
.page-content p { margin: 0 0 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px; padding-inline-start: 22px; }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--brand-dark); text-decoration: underline; }
.page-content img { border-radius: 12px; margin: 12px 0; }

.bc-area { margin-bottom: 14px; }
.bc-arealabel { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.bc-arealabel i { color: var(--brand); }
.bc-areaselect { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-size: 15px; color: var(--ink); font-family: inherit; }
.bc-areaselect:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,161,196,.14); }

/* ===================== Leads dạng thẻ (card) ===================== */
.lead-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lead-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6e6ec; }
.lead-card.is-done { opacity: .72; }
.lead-card.is-done::after { content: none; }
.lc-head { display: flex; align-items: center; gap: 10px; }
.lc-id { color: var(--muted); font-weight: 800; font-size: 12.5px; }
.lc-name { font-weight: 800; font-size: 16px; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-service { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.svc-chip { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 700; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; }
.svc-name { font-weight: 700; color: var(--brand-deep); font-size: 14px; }
.lc-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-contacts .cc { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13px; padding: 5px 11px; border-radius: 9px; }
.lc-contacts .cc:hover { border-color: var(--brand); color: var(--brand-dark); }
.lc-contacts .cc i { color: var(--brand); }
.lc-contacts .cc--wa i { color: #25D366; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.lc-meta i { color: var(--brand); margin-inline-end: 4px; }
.lc-msg { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; color: var(--ink); font-size: 13.5px; line-height: 1.55; }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.lc-time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.lc-time i { margin-inline-end: 4px; }

/* ===================== Mã đơn (badge) ===================== */
.code-badge { display: inline-block; margin-inline-start: 10px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand-dark); font-weight: 800; font-size: 14px; padding: 3px 12px; border-radius: 999px; vertical-align: middle; }

/* ===================== Dashboard: biểu đồ ===================== */
.dash-section-title { font-size: 15px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 34px 0 16px; }
.chart-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.chart-card.col-8 { grid-column: span 8; }
.chart-card.col-6 { grid-column: span 6; }
.chart-card.col-4 { grid-column: span 4; }
.chart-card .cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.chart-card .cc-head i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 15px; }
.chart-card .cc-head h3 { margin: 0; font-size: 16px; }
.chart-card .cc-head .cc-sub { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.chart-wrap { position: relative; height: 260px; }
.chart-wrap.sm { height: 230px; }
.mini-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mini-metric { flex: 1; min-width: 92px; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.mini-metric b { display: block; font-size: 18px; color: var(--brand-deep); }
.mini-metric span { font-size: 12px; color: var(--muted); font-weight: 700; }

@media (max-width: 1100px) {
  .chart-card.col-8, .chart-card.col-6, .chart-card.col-4 { grid-column: span 12; }
}
@media (max-width: 600px) {
  .lead-cards { grid-template-columns: 1fr; }
}

/* ===================== Sidebar: menu con xổ xuống (Đơn đặt) ===================== */
.admin-nav .nav-group details { margin-bottom: 3px; }
.admin-nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; color: #b9d6de; font-weight: 600; font-size: 14.5px; transition: .18s; }
.admin-nav summary::-webkit-details-marker { display: none; }
.admin-nav summary::marker { content: ""; }
.admin-nav summary > i:first-child { width: 18px; text-align: center; font-size: 15px; }
.admin-nav summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav summary.active { background: rgba(10,161,196,.22); color: #fff; }
.admin-nav .nav-caret { margin-inline-start: auto; font-size: 12px; transition: transform .2s; }
.admin-nav details[open] .nav-caret { transform: rotate(180deg); }
.admin-subnav { list-style: none; margin: 2px 0 6px; padding: 0; }
.admin-subnav a { padding-top: 9px; padding-bottom: 9px; padding-inline-start: 44px; font-size: 14px; }
.admin-subnav a.active::before { top: 6px; bottom: 6px; }

/* ===================== Nâng cấp độ mượt (Admin UI polish) ===================== */
@keyframes admFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Nội dung admin xuất hiện mượt, nối tiếp nhau */
.admin-main > * { animation: admFade .5s cubic-bezier(.22,.61,.36,1) both; }
.admin-main > *:nth-child(1) { animation-delay: .00s; }
.admin-main > *:nth-child(2) { animation-delay: .06s; }
.admin-main > *:nth-child(3) { animation-delay: .12s; }
.admin-main > *:nth-child(4) { animation-delay: .18s; }
.admin-main > *:nth-child(5) { animation-delay: .24s; }
.admin-main > *:nth-child(n+6) { animation-delay: .30s; }

/* Đồng bộ chuyển động cho thẻ & nút */
.stat-card, .lead-card, .chart-card, .manage-card { transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s, border-color .25s; will-change: transform; }
.chart-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Phản hồi khi bấm (nhấn nhẹ xuống) */
.btn2:active { transform: translateY(0) scale(.98); }
.btn-sm:active, .icon-btn:active { transform: scale(.95); }
.filter-pills a:active { transform: scale(.97); }

/* Mượt cho liên kết & ô nhập */
.admin-nav a, .admin-nav summary, .filter-pills a, .cc, .btn-sm, .icon-btn { transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; }
.field input, .field select, .field textarea, .admin-search input { transition: border-color .2s, box-shadow .2s, background .2s; }

/* Focus rõ ràng, dễ tiếp cận */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px;
}

/* Thanh cuộn gọn gàng trong khu admin */
.admin-main { scrollbar-width: thin; scrollbar-color: #cde3ea transparent; }
.admin-panel::-webkit-scrollbar { height: 8px; }
.admin-panel::-webkit-scrollbar-thumb { background: #cde3ea; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
    .admin-main > * { animation: none; }
    .stat-card, .lead-card, .chart-card, .manage-card, .btn2, .btn-sm, .icon-btn { transition: none; }
}

/* ===================== Responsive bổ sung cho Admin (tablet & điện thoại) ===================== */
@media (max-width: 800px) {
  /* Biểu đồ */
  .chart-grid { gap: 14px; }
  .chart-wrap, .chart-wrap.sm { height: 240px; }
  /* Form 2 cột -> 1 cột (áp cho cả form email) */
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .admin-main { padding: 16px; }
  .lead-cards { grid-template-columns: 1fr; }
  .chart-card { padding: 16px; }
  .chart-wrap, .chart-wrap.sm { height: 220px; }
  .admin-topbar { margin-bottom: 18px; gap: 12px; }
  .admin-topbar .greeting h1, .admin-head h1 { font-size: 20px; line-height: 1.3; }
  .admin-topbar .greeting h1 i { font-size: 18px; }
  .admin-topbar .greeting p { font-size: 13.5px; }
  .dash-section-title { margin: 24px 0 12px; font-size: 13px; }
  .admin-topbar-actions { width: 100%; gap: 8px; }
  .admin-topbar-actions .btn2 { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 10px 12px; font-size: 14px; }
  .admin-date { flex: 1 1 100%; text-align: center; }

  /* Thẻ số liệu: 2 cột gọn, icon nằm trên chữ để số tiền dài không bị tràn */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; min-width: 0; }
  .stat-card:hover { transform: none; }
  .stat-ic { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
  .stat-meta { min-width: 0; width: 100%; }
  .stat-meta b { font-size: 22px !important; overflow-wrap: anywhere; }
  .stat-meta span { font-size: 12.5px; }
  a.stat-link::after { opacity: 1; top: 14px; right: 12px; }

  /* Thanh tìm kiếm / lọc: ô tìm full hàng, các ô lọc chia đều */
  .admin-toolbar { gap: 8px; }
  .admin-search { flex: 1 1 100%; min-width: 0; max-width: none; }
  .admin-toolbar .status-select { flex: 1 1 0; min-width: 0; padding: 10px; }
  .admin-toolbar .count-pill { margin-inline-start: auto; }
  .tour-toolbar { margin-bottom: 16px; }
  .report-filter .rf-presets { margin-inline-start: 0; }

  .admin-table th, .admin-table td { padding: 10px; font-size: 14px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > * { flex: 1 1 auto; justify-content: center; }
  .manage-card { padding: 18px; }
}
@media (max-width: 400px) {
  .admin-main { padding: 12px; }
  .filter-pills a { font-size: 13px; padding: 7px 12px; }
  .stat-meta b { font-size: 18px !important; }
  .stat-card { padding: 12px; }
  .lead-card { padding: 15px; }
  .mini-metric { min-width: 0; }
  .code-badge { display: inline-block; margin: 6px 0 0; }
}

/* ===================== Kế hoạch (lịch tháng) ===================== */
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-nav { display: flex; align-items: center; gap: 12px; }
.plan-month { font-size: 18px; font-weight: 800; color: var(--ink); text-transform: capitalize; min-width: 150px; text-align: center; }
.plan-bar-right { display: flex; align-items: center; gap: 10px; }

.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; overflow-x: auto; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; min-width: 680px; }
.cal-head { margin-bottom: 8px; }
.cal-hcell { text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 6px 0; }
.cal-cell { min-height: 108px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.cal-cell.cal-empty { background: var(--bg-soft); border-style: dashed; opacity: .5; }
.cal-cell.is-today { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(10,161,196,.18); background: #f3fbfd; }
.cal-daynum { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--ink); font-size: 14px; }
.cal-cell.is-today .cal-daynum { color: var(--brand-dark); }
.cal-count { background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 999px; padding: 0 5px; }
.cal-items { display: flex; flex-direction: column; gap: 5px; }
.cal-item { display: block; background: var(--bg-soft); border-inline-start: 3px solid var(--brand); border-radius: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.35; color: var(--ink); transition: background .15s, transform .15s; }
.cal-item:hover { background: #eaf6fa; transform: translateX(1px); color: var(--ink); }
.cal-item b { color: var(--brand-dark); margin-inline-end: 4px; }
.cal-item .ci-name { font-weight: 700; display: inline; }
.cal-item .ci-svc { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tông màu theo loại dịch vụ */
.plan-hotel .cal-item { border-inline-start-color: var(--accent); }
.plan-hotel .cal-item b { color: var(--accent-dark); }
.plan-hotel .cal-item:hover { background: #fff1ea; }
.plan-hotel .cal-count { background: var(--accent); }
.plan-car .cal-item { border-inline-start-color: #6a8bff; }
.plan-car .cal-item b { color: #3b5bdb; }
.plan-car .cal-item:hover { background: #eef1ff; }
.plan-car .cal-count { background: #6a8bff; }

.plan-note { margin-top: 14px; background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.plan-note i { margin-inline-end: 6px; }

@media (max-width: 600px) {
  .plan-month { font-size: 16px; min-width: 120px; }
  .cal-cell { min-height: 92px; }
}

/* Ô lọc theo tình trạng (Yêu cầu / Đơn đặt) */
.status-select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.status-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,161,196,.15); }

.date-sep { color: var(--muted); font-weight: 800; align-self: center; }

/* ===== Tour riêng (tách bill với tour ghép) ===== */
.tour-mode { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tour-mode-opt { position: relative; cursor: pointer; margin: 0; }
.tour-mode-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tour-mode-opt > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; height: 100%; padding: 12px 14px; border: 2px solid var(--line, #e7eef1); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tour-mode-opt > span i { grid-row: span 2; font-size: 20px; color: var(--brand, #0aa1c4); }
.tour-mode-opt > span b { font-size: 15px; color: var(--ink, #12313c); }
.tour-mode-opt > span small { color: var(--muted, #6b7f88); font-size: 12.5px; line-height: 1.4; }
.tour-mode-opt input:checked + span { border-color: var(--brand, #0aa1c4); box-shadow: 0 0 0 3px rgba(10, 161, 196, .15); }
.tour-mode-opt input:focus-visible + span { outline: 2px solid var(--brand, #0aa1c4); outline-offset: 2px; }
.calc-breakdown { margin-top: 6px; text-align: end; font-size: 13px; color: var(--muted, #6b7f88); }
.calc-overflow { color: var(--accent-dark, #c24a17) !important; font-weight: 600; }
.private-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; margin-bottom: 8px; }
.private-price-grid .gp-per { display: block; }
.bc-private { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(10, 161, 196, .08); font-size: 14px; }
.bc-private span i { color: var(--brand, #0aa1c4); }
.bc-private b { color: var(--accent-dark, #c24a17); }
.chip--private { background: #6b4bd1; }
.filter-pills--sub { margin-top: 10px; }
.filter-pills--sub a { padding: 6px 13px; font-size: 13px; }
/* Admin: ô nhập giá tour riêng theo số người */
.private-price-input { width: 100%; max-width: 640px; border-collapse: collapse; margin-top: 8px; }
.private-price-input th { text-align: start; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.private-price-input td { padding: 5px 8px; border-bottom: 1px dashed var(--line); }
.private-price-input td.pp-n { white-space: nowrap; width: 110px; color: var(--ink); }
.private-price-input input { width: 100%; }
/* Admin: phân công nhân viên phụ trách đơn */
.lc-assign { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(10, 161, 196, .07); font-size: 13.5px; }
.lc-assign.is-empty { background: rgba(232, 98, 44, .07); }
.lc-assign-who i { color: var(--brand); }
.lc-assign.is-empty em { color: var(--accent-dark, #c24a17); font-style: normal; font-weight: 600; }
.lc-assign-task { margin-top: 4px; color: var(--ink); white-space: pre-line; }
.lc-assign-edit { margin-top: 6px; }
.lc-assign-edit summary { cursor: pointer; color: var(--brand-dark); font-weight: 600; font-size: 13px; }
.lc-assign-edit form { display: grid; gap: 6px; margin-top: 6px; }
.lc-assign-edit select, .lc-assign-edit textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.lc-assign-edit .btn-sm { justify-self: start; }


/* ---------- Đối tác & hoa hồng ---------- */
.commission-field label i { color: var(--brand); }
.commission-input { display: flex; gap: 8px; }
.commission-input input { flex: 1 1 auto; min-width: 0; }
.commission-input select { flex: 0 0 auto; width: auto; max-width: 55%; }
.partner-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: #fff4e0; color: #9a5b00; font-size: 12px; font-weight: 600; white-space: nowrap; }
.partner-chip i { font-size: 11px; }
.comm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.comm-line b { color: var(--text, #10252e); }
.chip.chip--paid { background: #e3f6ec; color: #0a7d43; }
.chip.chip--due { background: #fdecef; color: #c81e3c; }
.qr-panel { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.qr-panel canvas { width: 100%; max-width: 260px; height: auto; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.08); background: #fff; }
.qr-link { font-family: Consolas, monospace; background: #f2f5f7; padding: 8px 10px; border-radius: 8px; word-break: break-all; display: block; margin: 6px 0 12px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.comm-table td.num, .comm-table th.num { text-align: end; white-space: nowrap; }
.comm-table tr.is-paid td { color: var(--muted); }
.comm-paybar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid #e7eef1; }
.comm-paybar input[type=text] { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid #d6e2e7; border-radius: 10px; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 768px) {
  .qr-panel { grid-template-columns: 1fr; }
  .commission-input { flex-wrap: wrap; }
  .commission-input select { max-width: 100%; width: 100%; }
}


/* ---------- Ảnh tour (link Google Drive theo ngày) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.photo-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: #fff;
  border: 1px solid #e3eef2; box-shadow: 0 6px 22px rgba(10, 60, 80, .06); color: inherit; text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10, 60, 80, .12); border-color: var(--brand); }
.photo-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, #0aa1c4, #0a7ea4); }
.photo-meta { display: flex; flex-direction: column; gap: 4px; }
.photo-meta b { font-size: 20px; line-height: 1.3; }
.photo-meta small { color: var(--muted); font-size: 14px; }
.photo-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.photo-go .fa-arrow-up-right-from-square { font-size: 12px; opacity: .7; }
.photo-hint { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }
.photo-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.photo-empty i { font-size: 48px; color: var(--brand); opacity: .6; display: block; margin-bottom: 12px; }
.photo-empty .btn2 { margin-top: 10px; }
.photo-table input[type=text], .photo-table input[type=url] { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #d6e2e7; border-radius: 10px; }
.photo-table td { vertical-align: middle; }
[dir=rtl] .photo-go .fa-arrow-up-right-from-square { transform: scaleX(-1); }
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; gap: 12px; }
  .photo-card { flex-direction: row; align-items: center; padding: 16px; gap: 14px; }
  .photo-meta { flex: 1 1 auto; min-width: 0; }
  .photo-meta b { font-size: 17px; }
  .photo-ic { width: 46px; height: 46px; font-size: 20px; flex: 0 0 auto; }
  .photo-go { margin-top: 0; flex: 0 0 auto; font-size: 14px; }
  .photo-go .fa-google-drive { display: none; }
}

.photo-day { display: flex; flex-direction: column; gap: 4px; }
.photo-day input[type=date] { padding: 8px 10px; border: 1px solid #d6e2e7; border-radius: 10px; font: inherit; max-width: 170px; }
.photo-wd { font-size: 12px; color: var(--muted); text-transform: capitalize; display: inline-flex; gap: 6px; align-items: center; }
.photo-table tr.is-past td { background: #fafcfd; }
.photo-table tr.is-today td { background: #fff8e8; }
.photo-table tr.has-link input[type=url] { border-color: #8fd3a8; background: #f3fbf6; }
.photo-card.is-today { border-color: #f5b342; }
.photo-card .photo-wd { text-transform: capitalize; }
.photo-meta b .chip { font-size: 11px; vertical-align: middle; margin-inline-start: 6px; }

/* Ảnh tour: khối theo ngày (admin) + thẻ ngày (khách) */
.photo-paste textarea { width: 100%; padding: 10px 12px; border: 1px solid #d6e2e7; border-radius: 12px; font: inherit; font-size: 14px; resize: vertical; }
.photo-dayblock { padding: 14px 16px; margin-bottom: 12px; border: 1px solid #e3eef2; transition: box-shadow .3s, border-color .3s; }
.photo-dayblock.is-past { background: #fafcfd; }
.photo-dayblock.is-today { border-color: #f5b342; background: #fffaf0; }
.photo-dayblock.has-link { border-inline-start: 4px solid #2bb673; }
.photo-dayblock.flash { box-shadow: 0 0 0 3px rgba(10, 161, 196, .45); }
.pd-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.pd-date { display: flex; flex-direction: column; gap: 2px; }
.pd-date input[type=date] { padding: 7px 10px; border: 1px solid #d6e2e7; border-radius: 10px; font: inherit; font-weight: 600; }
.pd-title { flex: 1 1 240px; min-width: 0; padding: 9px 12px; border: 1px solid #d6e2e7; border-radius: 10px; font: inherit; }
.pd-active { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; white-space: nowrap; }
.pd-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.pd-link { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; gap: 8px; align-items: center; }
.pd-link input { min-width: 0; padding: 8px 11px; border: 1px solid #d6e2e7; border-radius: 10px; font: inherit; }
.pd-link input.js-url:not(:placeholder-shown) { border-color: #8fd3a8; background: #f3fbf6; }
.photo-save { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); padding: 14px 0 6px; z-index: 5; }
.photo-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.photo-daycard { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #e3eef2; box-shadow: 0 6px 22px rgba(10, 60, 80, .06); }
.photo-daycard.is-today { border-color: #f5b342; }
.pdc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pdc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pdc-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #eef8fb;
  color: var(--brand-deep, #0a7ea4); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s, transform .2s; }
.pdc-link:hover { background: #d9f0f6; transform: translateY(-1px); }
.pdc-link .pdc-ext { font-size: 11px; opacity: .6; }
[dir=rtl] .pdc-link .pdc-ext { transform: scaleX(-1); }
@media (max-width: 640px) {
  .pd-link { grid-template-columns: 1fr auto; }
  .pd-link .js-label { grid-column: 1 / -1; }
  .pd-link .js-url { grid-column: 1; }
  .photo-days { grid-template-columns: 1fr; gap: 12px; }
  .photo-daycard { padding: 16px; }
  .pdc-link { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
.photo-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 10px;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 10px 12px 16px; border-radius: 14px; background: #e3f6ec; color: #0a5e33;
  border: 1px solid #a7e0bf; box-shadow: 0 10px 30px rgba(0,0,0,.15); font-weight: 600; animation: photoToastIn .3s ease; }
.photo-toast.is-err { background: #fdecef; color: #a3162f; border-color: #f5c2cd; }
.photo-toast span { flex: 1 1 auto; }
@keyframes photoToastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.photo-dayblock input.is-bad { border-color: #e0475f !important; background: #fdecef !important; box-shadow: 0 0 0 3px rgba(224, 71, 95, .18); }
