﻿/* =========================================================================
   KHÁM PHÁ TOUR — thẻ quảng cáo lớn dẫn về landing page
   Dùng ở: trang chủ (#kham-pha), cuối mỗi landing, trang /{lang}/kham-pha
   ========================================================================= */
.xp { --xp-h: 400px; }

/* ---------- Tiêu đề khối ---------- */
.xp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.xp-head__text { max-width: 720px; }
.xp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-dark, #f2622b);
}
.xp-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.xp-title { margin: 8px 0 8px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; color: var(--brand-deep, #0b3a4a); letter-spacing: -.5px; }
.xp-sub { margin: 0; color: var(--muted, #6b7f88); font-size: 16.5px; }

/* ---------- Bộ lọc vùng ---------- */
.xp-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 26px; padding: 0; list-style: none; }
.xp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line, #e7eef1); background: #fff; color: var(--ink, #17303a);
  font: 600 14.5px/1 var(--font, system-ui); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.xp-chip small { font-weight: 700; font-size: 12px; padding: 3px 7px; border-radius: 999px; background: var(--bg-soft, #f4f9fb); color: var(--muted, #6b7f88); }
.xp-chip:hover { border-color: var(--brand, #0aa1c4); color: var(--brand-dark, #067a96); transform: translateY(-1px); }
.xp-chip.is-active { background: var(--brand-deep, #0b3a4a); border-color: var(--brand-deep, #0b3a4a); color: #fff; box-shadow: 0 8px 20px rgba(11, 58, 74, .22); }
.xp-chip.is-active small { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Lưới thẻ (mosaic: thẻ đầu to gấp đôi) ---------- */
.xp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.xp-grid--mosaic { grid-auto-rows: minmax(330px, auto); }
.xp-grid--mosaic .xp-card { min-height: 0; height: 100%; }
.xp-grid--mosaic .xp-card:first-child { grid-column: span 2; grid-row: span 2; }
.xp-grid--mosaic .xp-card:first-child .xp-card__name { font-size: clamp(26px, 2.6vw, 36px); }
.xp-grid--mosaic .xp-card:first-child .xp-card__tag { -webkit-line-clamp: 3; font-size: 16.5px; }
.xp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xp-grid--4 .xp-card { min-height: 400px; }

/* ---------- Thẻ ---------- */
.xp-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: var(--xp-h); border-radius: 22px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; background: var(--brand-deep, #0b3a4a);
  box-shadow: 0 14px 34px rgba(11, 58, 74, .16);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.xp-card[hidden] { display: none; }
.xp-card:hover, .xp-card:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(11, 58, 74, .28); color: #fff; }
.xp-card:focus-visible { outline: 3px solid var(--accent, #ff7a45); outline-offset: 3px; }
.xp-card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.xp-card:hover .xp-card__img { transform: scale(1.08); }
.xp-card__ph { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; font-size: 64px; color: rgba(255, 255, 255, .25);
  background: linear-gradient(135deg, var(--brand, #0aa1c4), var(--brand-deep, #0b3a4a)); }
.xp-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 25, 33, .05) 0%, rgba(5, 25, 33, .15) 38%, rgba(5, 25, 33, .78) 72%, rgba(5, 25, 33, .94) 100%);
}

.xp-card__top { position: absolute; top: 16px; inset-inline: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.xp-region {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .28); font-size: 13px; font-weight: 600;
}
.xp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.xp-badge--hot { background: linear-gradient(135deg, #ff5f45, #ff2d55); }
.xp-badge--best { background: linear-gradient(135deg, #ffb703, #fb8500); color: #2b1600; }
.xp-badge--new { background: linear-gradient(135deg, #2ec4b6, #0aa1c4); }
.xp-badge--deal { background: linear-gradient(135deg, #7b5cff, #c445ff); }

.xp-card__body { padding: 22px 22px 20px; }
.xp-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; opacity: .9; letter-spacing: .4px; }
.xp-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.xp-card__body { display: block; padding-top: 64px; }
.xp-card__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xp-card__name { margin: 0 0 8px; font-size: 21px; line-height: 1.22; font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.xp-card__tag { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; opacity: .9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xp-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.xp-price { font-size: 13px; opacity: .92; line-height: 1.25; }
.xp-price b { display: block; font-size: 21px; font-weight: 800; color: #ffd166; opacity: 1; }
.xp-price--ask b { font-size: 16px; }
.xp-go {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--accent, #ff7a45); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 20px rgba(255, 122, 69, .45); transition: background .2s, gap .2s;
}
.xp-card:hover .xp-go { background: var(--accent-dark, #f2622b); gap: 12px; }
[dir="rtl"] .xp-go i { transform: scaleX(-1); }

.xp-more { text-align: center; margin-top: 34px; }
.xp-more .btn2 { padding: 15px 30px; font-size: 16px; }
.xp-empty { padding: 40px; text-align: center; color: var(--muted, #6b7f88); border: 2px dashed var(--line, #e7eef1); border-radius: 18px; }

/* ---------- Khối trên trang chủ ---------- */
.xp-home { position: relative; padding: 90px 0; background:
  radial-gradient(1200px 400px at 85% -10%, rgba(10, 161, 196, .12), transparent 60%),
  radial-gradient(900px 380px at 0% 110%, rgba(255, 122, 69, .10), transparent 60%),
  var(--bg-soft, #f4f9fb); }

/* ---------- Cuối landing ---------- */
.lp-others.xp { padding: 80px 0; background: linear-gradient(180deg, #fff 0%, var(--bg-soft, #f4f9fb) 100%); }

/* ---------- Trang /kham-pha ---------- */
.xp-hero { position: relative; padding: 120px 0 70px; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--brand-deep, #0b3a4a) center/cover no-repeat; }
.xp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(5, 25, 33, .88) 0%, rgba(5, 25, 33, .55) 55%, rgba(5, 25, 33, .25) 100%); }
.xp-hero .xp-eyebrow { color: #ffd166; }
.xp-hero h1 { color: #fff; margin: 12px 0 14px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -1px; max-width: 820px; }
.xp-hero p { margin: 0; max-width: 680px; font-size: 18px; opacity: .92; }
.xp-hero__stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.xp-hero__stats div { font-size: 14px; opacity: .9; }
.xp-hero__stats b { display: block; font-size: 30px; font-weight: 800; color: #ffd166; }
.xp-crumbs { font-size: 14px; opacity: .85; margin-bottom: 6px; }
.xp-crumbs a { color: #fff; text-decoration: none; }
.xp-crumbs span { margin: 0 8px; opacity: .6; }
.xp-page { padding: 60px 0 90px; }
.xp-page .xp-chips { position: sticky; top: 72px; z-index: 5; padding: 12px 0; margin-bottom: 30px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.xp-section { margin-bottom: 64px; scroll-margin-top: 140px; }
.xp-section[hidden] { display: none; }
.xp-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.xp-section__head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--brand-deep, #0b3a4a); }
.xp-section__head span { color: var(--muted, #6b7f88); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .xp-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .xp-grid, .xp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-grid--mosaic { grid-auto-rows: auto; }
  .xp-grid--mosaic .xp-card { min-height: 360px; height: auto; }
  .xp-grid--mosaic .xp-card:first-child { grid-row: auto; min-height: 440px; }
  .xp-home { padding: 64px 0; }
}
@media (max-width: 640px) {
  .xp { --xp-h: 380px; }
  /* Điện thoại: vuốt ngang từng thẻ (carousel) */
  .xp-grid, .xp-grid--4, .xp-grid--mosaic {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    grid-auto-rows: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: -16px; padding: 4px 16px 18px; scrollbar-width: none;
  }
  .xp-grid::-webkit-scrollbar { display: none; }
  .xp-grid .xp-card, .xp-grid--mosaic .xp-card:first-child { grid-column: auto; grid-row: auto; min-height: 400px; scroll-snap-align: start; }
  .xp-page .xp-grid { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; }
  .xp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .xp-chips::-webkit-scrollbar { display: none; }
  .xp-chip { flex: none; padding: 9px 14px; font-size: 13.5px; }
  .xp-hero { padding: 96px 0 48px; }
  .xp-hero p { font-size: 16px; }
  .xp-page .xp-chips { top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-card, .xp-card__img, .xp-chip { transition: none; }
  .xp-card:hover { transform: none; }
  .xp-card:hover .xp-card__img { transform: none; }
}

/* =========================================================================
   ADMIN → Khám phá tour
   ========================================================================= */
.xpa-table td { vertical-align: middle; }
.xpa-table .thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 10px; }
.xpa-row.is-ad { background: linear-gradient(90deg, rgba(255, 183, 3, .10), transparent 60%); }
.xpa-table input[type=number] { width: 74px; }
.xpa-table select { min-width: 120px; }
.xpa-name b { display: block; }
.xpa-name small { color: var(--muted); }
.xpa-toggle { position: relative; display: inline-block; width: 46px; height: 26px; }
.xpa-toggle input { opacity: 0; width: 0; height: 0; }
.xpa-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #d4dee2; cursor: pointer; transition: background .2s; }
.xpa-toggle span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: transform .2s; }
.xpa-toggle input:checked + span { background: var(--accent); }
.xpa-toggle input:checked + span::after { transform: translateX(20px); }
[dir="rtl"] .xpa-toggle input:checked + span::after { transform: translateX(-20px); }
.xpa-toggle--blue input:checked + span { background: var(--brand); }
.xpa-langs { display: flex; gap: 3px; flex-wrap: wrap; }
.xpa-langs a { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--brand-dark); text-decoration: none; }
.xpa-langs .miss { background: #fde8e8; color: #c0392b; }
.xpa-sticky { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 14px 18px; margin-top: 14px; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 -6px 24px rgba(11, 58, 74, .12); }
.xpa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.xpa-issue { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.xpa-issue img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.xpa-issue__body { flex: 1; min-width: 0; }
.xpa-issue__body b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpa-issue__body small { color: var(--muted); }
.xpa-ok { padding: 14px 16px; border-radius: 12px; background: #e9f9ef; color: #1e7b45; }
.xpa-ok i { margin-inline-end: 6px; }
.xpa-bad { border-color: #f5c2c0; background: #fff6f5; }
