/* ============ 71Asia Tours — premium minimal design system ============ */
:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --ink: #191714;
  --muted: #6F6A61;
  --line: #E5DFD5;
  --accent: #B4442C;
  --accent-dark: #93341F;
  --gold: #C2A15C;
  --ok: #3E7C4F;
  --warn: #B4832C;
  --bad: #A03B2E;
  --radius: 14px;
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 20px 50px -24px rgba(25, 23, 20, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.22em; font-weight: 600; }
.wordmark span { color: var(--accent); }
.wordmark img { height: 32px; width: auto; display: block; }
.site-footer .wordmark img { height: 46px; }
.nav-links { display: flex; gap: 34px; align-items: center; font-size: 13.5px; letter-spacing: 0.06em; }
.nav-links a { color: var(--muted); transition: color .2s; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-auth { display: flex; gap: 14px; align-items: center; }
.nav-auth .user-chip { font-size: 12.5px; color: var(--muted); }
.btn-outline {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 9px 20px; border-radius: 999px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  transition: all .2s;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: 14px 30px; border-radius: 999px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  transition: all .22s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-arrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { color: var(--accent-dark); }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }
.display { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.01em; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section { padding: 110px 0; }
.section.tight { padding: 70px 0; }
.lead { color: var(--muted); font-size: 17px; max-width: 560px; }
.muted { color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(247,244,239,0.97) 0%, rgba(247,244,239,0.42) 34%, rgba(247,244,239,0) 62%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: 90px; width: min(1180px, 92vw); margin: 0 auto; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin: 26px 0 38px; }
.hero-meta { display: flex; gap: 44px; margin-top: 60px; flex-wrap: wrap; }
.hero-meta .item strong { font-family: var(--font-display); font-size: 30px; font-weight: 500; display: block; }
.hero-meta .item span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- destination tiles ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dest-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  transition: transform .3s; background: var(--surface);
}
.dest-tile:hover { transform: translateY(-5px); }
.dest-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dest-tile:hover img { transform: scale(1.05); }
.dest-tile .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 20px 18px;
  background: linear-gradient(to top, rgba(20,17,14,.72), transparent);
  color: #FBF9F5; display: flex; justify-content: space-between; align-items: baseline;
}
.dest-tile .label h3 { font-size: 24px; }
.dest-tile .label span { font-size: 12px; opacity: .85; letter-spacing: .08em; }

/* ---------- tour cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tour-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .28s, box-shadow .28s; display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.tour-card .media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.tour-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tour-card:hover .media img { transform: scale(1.05); }
.tour-card .badge {
  position: absolute; top: 14px; left: 14px; background: rgba(251,249,245,.92); color: var(--ink);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.tour-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-card .cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tour-card h3 { font-size: 20px; line-height: 1.3; }
.tour-card p { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.tour-card .price { font-family: var(--font-display); font-size: 19px; }
.tour-card .price small { font-family: var(--font-body); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-left: 4px; }
.tour-card .langs { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ---------- filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 40px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 8px 18px; border-radius: 999px; font-size: 12.5px; letter-spacing: .06em; transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- tour detail ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 54px; align-items: start; margin-top: 48px; }
.detail-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-body h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 10px 0 18px; }
.detail-meta { display: flex; gap: 26px; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 30px; flex-wrap: wrap; }
.detail-desc { color: #3E3A33; font-size: 16.5px; line-height: 1.85; white-space: pre-line; }
.booking-card {
  position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft);
}
.booking-card .price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.booking-card .price-line .amount { font-family: var(--font-display); font-size: 34px; }
.booking-card .price-line .per { color: var(--muted); font-size: 13px; }
.member-hint { background: #F3EFE7; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); margin: 12px 0 4px; }
.member-hint b { color: var(--accent); }
.field { margin-top: 16px; }
.field label { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  padding: 12px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink); transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; margin-top: 14px; border-top: 1px solid var(--line); }
.total-line .amount { font-family: var(--font-display); font-size: 26px; }
.total-line .strike { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-right: 8px; }
.discount-tag { color: var(--ok); font-size: 12.5px; }
.form-msg { font-size: 13.5px; margin-top: 12px; display: none; }
.form-msg.error { color: var(--bad); display: block; }
.form-msg.ok { color: var(--ok); display: block; }

/* ---------- feature strip / value props ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 44px 30px; border-right: 1px solid var(--line); }
.value:last-child { border-right: none; }
.value .no { font-family: var(--font-display); font-size: 15px; color: var(--gold); margin-bottom: 16px; }
.value h3 { font-size: 19px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 13.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #EFEAE2; border-radius: 20px; padding: 76px 70px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); color: #FBF9F5; }
.cta-band p { opacity: .72; margin-top: 12px; max-width: 520px; font-size: 15px; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); }
.cta-band .btn:hover { background: #FBF9F5; color: var(--ink); border-color: #FBF9F5; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 110px; padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .wordmark { font-size: 22px; }
.site-footer p { color: var(--muted); font-size: 13.5px; max-width: 300px; margin-top: 14px; }
.footer-grid h4 { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }

/* ---------- auth / account ---------- */
.auth-shell { max-width: 460px; margin: 70px auto 110px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 26px; gap: 24px; }
.tabs button { background: none; border: none; padding: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.account-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; margin-top: 40px; align-items: start; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat-card .big { font-family: var(--font-display); font-size: 40px; }
.booking-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.booking-row .ref { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.pill { display: inline-block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pill.ok { background: #E4EFE6; color: var(--ok); }
.pill.warn { background: #F5EBD8; color: var(--warn); }
.pill.bad { background: #F3E0DC; color: var(--bad); }
.pill.neutral { background: #ECE8E0; color: var(--muted); }

/* ---------- confirmation ---------- */
.confirm-shell { max-width: 620px; margin: 90px auto 130px; text-align: center; }
.confirm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 50px; }
.confirm-card .seal { width: 68px; height: 68px; border-radius: 50%; background: #E4EFE6; color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 24px; }

/* ---------- admin ---------- */
.admin-shell { max-width: 1180px; margin: 0 auto; padding: 40px 0 110px; }
.admin-login { max-width: 420px; margin: 90px auto; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 30px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.admin-tabs button { border: 1px solid var(--line); background: var(--surface); padding: 9px 18px; border-radius: 999px; font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }
.admin-tabs button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
table.admin { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 13.5px; }
table.admin th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBF9F5; }
table.admin td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin tr:last-child td { border-bottom: none; }
.inline-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 12px; color: var(--ink); }
.inline-btn:hover { border-color: var(--ink); }
.inline-btn.danger { color: var(--bad); }
.admin-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 30px; }
.admin-form h3, .admin-panel h3 { font-size: 21px; margin-bottom: 6px; }
.admin-form .sub, .admin-panel .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.code-box { background: #211E1A; color: #E8E2D6; border-radius: 12px; padding: 20px 22px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; line-height: 1.75; overflow-x: auto; white-space: pre; }

/* ---------- misc ---------- */
.page-head { padding: 84px 0 0; }
.page-head .lead { margin-top: 18px; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.notice { background: #F3EFE7; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: 13.5px; color: var(--muted); margin: 20px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* ================= HOME — fullscreen video hero ================= */
body.home { background: var(--bg); }

.site-header.overlay {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-header.overlay .wordmark,
.site-header.overlay .nav-links a,
.site-header.overlay .nav-auth .user-chip { color: #FBF9F5; }
.site-header.overlay .wordmark span { color: #E8A794; }
.site-header.overlay .nav-links a:hover { color: #FBF9F5; }
.site-header.overlay .btn-outline { border-color: #FBF9F5; color: #FBF9F5; }
.site-header.overlay .btn-outline:hover { background: #FBF9F5; color: var(--ink); }
.site-header.overlay.scrolled {
  background: rgba(247, 244, 239, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}
.site-header.overlay.scrolled .wordmark,
.site-header.overlay.scrolled .wordmark span,
.site-header.overlay.scrolled .nav-links a,
.site-header.overlay.scrolled .nav-auth .user-chip { color: var(--ink); }
.site-header.overlay.scrolled .wordmark span { color: var(--accent); }
.site-header.overlay.scrolled .nav-links a:hover { color: var(--ink); }
.site-header.overlay.scrolled .btn-outline { border-color: var(--ink); color: var(--ink); }
.site-header.overlay.scrolled .btn-outline:hover { background: var(--ink); color: var(--bg); }

.hero-video {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; color: #FBF9F5;
}
.hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #1A1815;
}
.hero-video .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,13,10,.46) 0%, rgba(15,13,10,.22) 38%, rgba(15,13,10,.58) 100%);
}
.hero-video .hero-content {
  position: relative; z-index: 2; width: min(920px, 90vw);
  padding-top: 60px;
}
.hero-video .eyebrow { color: rgba(251,249,245,.82); }
.hero-video .eyebrow::before { background: #E8A794; }
.hero-video h1 { color: #FBF9F5; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.hero-video .lead { color: rgba(251,249,245,.88); margin: 26px auto 36px; max-width: 620px; white-space: pre-line; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-video .hero-meta {
  display: flex; gap: 56px; justify-content: center; margin-top: 64px; flex-wrap: wrap;
}
.hero-video .hero-meta .item strong {
  font-family: var(--font-display); font-size: 32px; font-weight: 500; display: block; color: #FBF9F5;
}
.hero-video .hero-meta .item span {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(251,249,245,.7);
}
.btn.lg { padding: 16px 38px; font-size: 13.5px; }

/* scroll cue */
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(251,249,245,.85); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 44px; background: rgba(251,249,245,.5); position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: #FBF9F5; animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { top: -50%; } 100% { top: 110%; }
}

/* centered section heads */
.sec-head.center { text-align: center; margin-bottom: 48px; }
.sec-head.center .eyebrow::before { margin-right: 12px; }
.sec-head.center .eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); vertical-align: middle; margin-left: 12px;
}
.sec-head.center .h2 { margin: 0 auto; max-width: 640px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i::after { animation: none; }
}

@media (max-width: 620px) {
  .hero-video { min-height: 560px; }
  .hero-video .hero-meta { gap: 28px; }
  .hero-video .hero-meta .item strong { font-size: 24px; }
}

/* ================= visual page editor ================= */
.editor-shell { display: grid; grid-template-columns: 430px 1fr; gap: 26px; align-items: start; }
.editor-controls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-height: 78vh; overflow-y: auto; }
.editor-preview { position: sticky; top: 90px; }
.editor-preview .frame-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.editor-preview iframe { width: 100%; height: 74vh; border: none; display: block; }
.editor-preview .frame-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #211E1A; color: #E8E2D6; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.editor-block { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: #FBF9F5; }
.editor-block .block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.editor-block .block-head h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.editor-block .block-head .ops { display: flex; gap: 6px; }
.editor-block .field { margin-top: 10px; }
.editor-block .field label { font-size: 10px; margin-bottom: 4px; }
.editor-block .field input, .editor-block .field textarea, .editor-block .field select { padding: 9px 12px; font-size: 13px; background: #fff; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #D8D2C6; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { left: 21px; }

@media (max-width: 1100px) {
  .editor-shell { grid-template-columns: 1fr; }
  .editor-preview { position: static; }
}

/* ---------- wordmark (71ASIA) ---------- */
.wordmark { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.18em; font-weight: 600; white-space: nowrap; }
.wordmark span {
  color: var(--accent); font-size: 0.66em; font-weight: 500; font-style: italic;
  letter-spacing: 0.12em; vertical-align: 0.22em; margin: 0 0.05em;
}

/* ---------- language switch ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.lang-switch .sep { color: var(--muted); font-size: 11px; }
.lang-switch button {
  background: none; border: none; font-size: 11.5px; letter-spacing: .1em; font-weight: 600;
  color: var(--muted); padding: 4px 2px; border-bottom: 2px solid transparent;
}
.lang-switch button.active { color: var(--ink); border-bottom-color: var(--accent); }
.site-header.overlay .lang-switch button { color: rgba(251,249,245,.75); }
.site-header.overlay .lang-switch button.active { color: #FBF9F5; border-bottom-color: #E8A794; }
.site-header.overlay.scrolled .lang-switch button { color: var(--muted); }
.site-header.overlay.scrolled .lang-switch button.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- social icons ---------- */
.social-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: all .2s;
}
.social-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ---------- TripAdvisor badge on destination tiles ---------- */
.ta-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(251,249,245,.94); color: #00AA6C;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; transition: transform .2s;
}
.ta-badge:hover { transform: scale(1.12); }

/* ---------- floating widgets (WhatsApp + chat) ---------- */
#udj-floats { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.wa-float, .chat-fab {
  width: 54px; height: 54px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(25,23,20,.28); transition: transform .2s; cursor: pointer;
}
.wa-float { background: #25D366; }
.chat-fab { background: var(--ink); }
.chat-fab.open { background: var(--accent); }
.wa-float:hover, .chat-fab:hover { transform: scale(1.08); }

.chat-panel {
  width: 340px; max-width: calc(100vw - 40px); height: 460px; max-height: calc(100vh - 120px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(25,23,20,.4);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-head {
  background: var(--ink); color: #FBF9F5; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head b { font-family: var(--font-display); font-weight: 500; font-size: 16px; display: block; }
.chat-head span { font-size: 11px; opacity: .65; letter-spacing: .12em; text-transform: uppercase; }
.chat-close { background: none; border: none; color: #FBF9F5; font-size: 22px; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.assistant { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: #FBF9F5; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input { display: flex; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { flex: 1; border: none; padding: 13px 14px; font-size: 13.5px; font-family: inherit; background: transparent; color: var(--ink); }
.chat-input input:focus { outline: none; }
.chat-input button { background: none; border: none; padding: 0 16px; font-size: 16px; color: var(--accent); }

/* ---------- reviews ---------- */
.reviews-sec { margin-top: 70px; border-top: 1px solid var(--line); padding-top: 44px; }
.reviews-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.reviews-head h2 { font-size: 26px; }
.reviews-head .muted { font-size: 13px; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.review-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.review-top .stars { color: var(--gold); margin-left: auto; letter-spacing: 2px; }
.review-title { display: block; margin: 8px 0 4px; font-size: 14.5px; }
.review-item p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.review-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 26px; }
.review-form-wrap h3 { font-size: 18px; margin-bottom: 4px; }
.star-row { display: flex; gap: 2px; }
.star-row button { background: none; border: none; font-size: 24px; color: #D8D2C6; transition: color .15s; padding: 0 2px; }
.star-row button.on { color: var(--gold); }

@media (max-width: 960px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr 1fr; }
  .value { border-bottom: 1px solid var(--line); }
  .detail-wrap, .two-col, .account-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }
}
/* FAQ per-item editor in the page editor */
.faq-edit-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 6px; margin-top: 10px; background: #fff; }
.faq-edit-item .block-head h4 { font-size: 11px; color: var(--muted); }
.faq-edit-item .field { margin-top: 10px; }

/* ================= responsive: tablet & mobile ================= */

/* mobile burger + menu (injected by app.js) */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; padding: 0 10px;
}
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }
.site-header.overlay .nav-burger { border-color: rgba(251,249,245,.5); }
.site-header.overlay .nav-burger span { background: #FBF9F5; }
.site-header.overlay.scrolled .nav-burger { border-color: var(--line); }
.site-header.overlay.scrolled .nav-burger span { background: var(--ink); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 4vw 16px; box-shadow: 0 30px 50px -30px rgba(25,23,20,.35);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
  }
  body.nav-open .mobile-menu { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { padding: 13px 4px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { color: var(--accent); }

  .section { padding: 80px 0; }
  .section.tight { padding: 56px 0; }
  .site-footer { margin-top: 80px; }
  .hero-video { min-height: 620px; }
  .sec-head.center { margin-bottom: 38px; }
  .detail-wrap { gap: 36px; }
}

@media (max-width: 620px) {
  .container { width: 92vw; }
  .nav { height: 60px; }
  .wordmark img { height: 26px; }
  .nav-auth { gap: 8px; }
  .nav-auth .btn-outline { padding: 7px 13px; font-size: 11px; white-space: nowrap; }
  .nav-burger { width: 36px; height: 36px; padding: 0 9px; }
  .section { padding: 60px 0; }
  .section.tight { padding: 46px 0; }
  .site-footer { margin-top: 60px; padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-base { flex-direction: column; margin-top: 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dest-tile .label h3 { font-size: 17px; }
  .dest-tile .label span { font-size: 10px; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: none; border-bottom: 1px solid var(--line); padding: 30px 4px; }
  .value:last-child { border-bottom: none; }
  .cta-band { padding: 46px 26px; border-radius: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 26px; }
  .confirm-card, .auth-card { padding: 30px 22px; }
  .booking-card { padding: 22px; }
  .admin-shell { padding-top: 24px; }
  table.admin { display: block; overflow-x: auto; white-space: nowrap; }
  .charts-row { gap: 12px; }
  .hero-video { height: 100svh; min-height: 540px; }
  .hero-video .hero-content { padding-top: 40px; }
  .hero-video .lead { font-size: 15.5px; }
  .hero-actions .btn { width: min(320px, 84vw); }
  .hero-video .hero-meta { gap: 20px 28px; margin-top: 44px; }
  .scroll-cue { display: none; }
  .editor-shell { grid-template-columns: 1fr; }
  .chat-panel { height: min(420px, calc(100vh - 140px)); }
}

/* ---- phone country-code picker (register) ---- */
.phone-row { display: flex; gap: 8px; }
.phone-row input[type="tel"] { flex: 1; min-width: 0; }
.cc-select { position: relative; flex: 0 0 auto; }
.cc-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px;
  padding: 0 10px; border: 1px solid #e2dccb; border-radius: 8px;
  background: #fff; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.cc-btn:hover { border-color: #c9bfa4; }
.cc-caret { font-size: 10px; color: #8a8272; }
.cc-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  width: 280px; max-width: 76vw; background: #fff; border: 1px solid #e2dccb;
  border-radius: 10px; box-shadow: 0 12px 32px rgba(30,25,15,.16); padding: 8px;
}
.cc-panel input {
  width: 100%; box-sizing: border-box; height: 36px; margin-bottom: 6px;
  border: 1px solid #e2dccb; border-radius: 7px; padding: 0 10px; font: inherit; font-size: 13.5px;
}
.cc-list { max-height: 240px; overflow-y: auto; }
.cc-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 8px; border: 0; border-radius: 7px; background: none;
  font: inherit; font-size: 13.5px; cursor: pointer; text-align: left;
}
.cc-item:hover { background: #f5f1e6; }
.cc-item.on { background: #efe9d8; }
.cc-item .cc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-item b { font-weight: 600; color: #555; }
.cc-empty { padding: 12px 8px; color: #8a8272; font-size: 13px; }

/* ---- product card stats + reviews modal ---- */
.card-stats {
  position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 3;
  pointer-events: none;
}
.card-stats .stat-sales, .card-stats .stat-rating {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(20, 17, 12, .78); color: #fff;
  font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px;
  backdrop-filter: blur(3px);
}
.card-stats .stat-rating { color: #ffd865; }
.card-reviews-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.94); color: #3a352a;
  border: 1px solid rgba(0,0,0,.08); border-radius: 999px;
  font: inherit; font-size: 11.5px; font-weight: 600; padding: 4px 10px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.card-reviews-btn:hover { background: #fff; color: var(--accent, #b5402f); }
.tour-card .media { position: relative; }
.rv-modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 16, 10, .55); backdrop-filter: blur(3px); padding: 20px;
}
.rv-modal-card {
  background: #fff; border-radius: 14px; width: min(640px, 94vw); max-height: 82vh;
  display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.3); overflow: hidden;
}
.rv-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eee7d8;
}
.rv-modal-head h3 { margin: 0; font-size: 17px; }
.rv-modal-close {
  border: 0; background: none; font-size: 17px; cursor: pointer; color: #8a8272;
  width: 32px; height: 32px; border-radius: 8px;
}
.rv-modal-close:hover { background: #f5f1e6; color: #3a352a; }
.rv-modal-list { padding: 16px 20px; overflow-y: auto; }
.rv-modal-list .review-item { border-bottom: 1px solid #f1ecdf; padding: 12px 0; }
.rv-modal-list .review-item:last-child { border-bottom: 0; }

/* ---- site texts editor ---- */
.tx-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.tx-row .tx-key {
  font-family: var(--mono, monospace);
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx-row input {
  width: 100%;
  font-size: 13.5px;
}
@media (max-width: 1100px) {
  .tx-row { grid-template-columns: 1fr; }
}

/* ---- sales badge ---- */
.sales-badge {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(25, 23, 20, 0.82); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ---- contact section ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-top: 34px;
  text-align: left;
}
.contact-info .c-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-info .c-item .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-info .c-item a, .contact-info .c-item span:last-child { font-size: 15px; color: var(--ink); }
.contact-form .form-msg { margin-top: 10px; }

/* ---- review images ---- */
.review-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-imgs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.rv-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.rv-previews img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- admin stats & charts ---- */
.stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 22px; }
.stat-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; min-width: 150px; }
.stat-mini .v { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.stat-mini .l { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.charts-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart-card h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sales-input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; width: 140px; }
@media (max-width: 1100px) { .charts-row { grid-template-columns: 1fr; } }

/* ---------------- footer columns + FAQ accordion ---------------- */

.faq-list { display: flex; flex-direction: column; }
.faq-item { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius, 10px); padding: 0 22px; margin-bottom: 12px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; background: var(--accent); transition: transform .2s; }
.faq-plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-item p { color: var(--muted); font-size: 14.5px; line-height: 1.7; padding: 0 0 20px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* footer link rows in the page editor */
.flink-row { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.flink-row input[type="text"]:first-child { flex: 1.2; }
.flink-row input[type="text"]:nth-child(2) { flex: 1.6; }

/* page editor: per-field text style panel */
.style-row { margin-top: 8px; }
.style-panel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding: 10px; border: 1px dashed var(--line, #e8e1d5); border-radius: 8px; background: rgba(0,0,0,0.02); }
.style-panel select { max-width: 150px; font-size: 12px; }
.style-panel input[type="number"] { font-size: 12px; }
.style-panel input[type="color"] { width: 32px; height: 28px; padding: 0; border: 1px solid var(--line, #e8e1d5); border-radius: 6px; background: none; cursor: pointer; }
.style-flag { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 13px; }
.style-flag input { margin: 0; }

/* ---- nav: bolder links, hover turns brand red ---- */
.nav-links a { font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.site-header.overlay .nav-links a:hover { color: var(--accent); }
.site-header.overlay.scrolled .nav-links a:hover { color: var(--accent); }

/* ---- contact section photo ---- */
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(33, 29, 22, 0.35);
}

/* ---- footer base: credentials on the right ---- */
#footer-creds { font-size: 11.5px; letter-spacing: 0.02em; }

/* ============ blog ============ */
.blog-search { margin: 0 0 30px; }
.blog-search input {
  width: 100%; max-width: 460px; padding: 13px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
}
.blog-search input:focus { border-color: var(--ink); }
.blog-card .media { aspect-ratio: 16/9; }
.blog-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }

/* article page */
.post-page { padding: 46px 0 30px; }
.post-wrap { max-width: 820px; margin: 0 auto; }
.post-back { margin-bottom: 22px; }
.post-article .eyebrow { margin-bottom: 12px; }
.post-title { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 46px); line-height: 1.15; margin-bottom: 28px; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 34px; }
.post-content { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.post-content p { margin: 0 0 18px; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { font-family: var(--font-display); line-height: 1.25; margin: 34px 0 14px; }
.post-content h1 { font-size: 32px; } .post-content h2 { font-size: 27px; } .post-content h3 { font-size: 22px; } .post-content h4 { font-size: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 26px; }
.post-content li { margin-bottom: 7px; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content img { border-radius: var(--radius); margin: 10px 0 18px; }
.post-content blockquote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin: 0 0 18px;
  font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--muted);
}
.post-content table { border-collapse: collapse; width: 100%; margin: 0 0 22px; font-size: 14.5px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.post-content th { background: var(--surface); font-weight: 600; }
.post-content tr:nth-child(even) td { background: rgba(229, 223, 213, 0.25); }
.post-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.post-copyright-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* comments */
.post-comments { max-width: 820px; margin: 46px auto 0; border-top: 1px solid var(--line); padding-top: 34px; }
.post-comments h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; }
.comment { border-bottom: 1px solid var(--line); padding: 16px 0; }
.comment .c-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 13.5px; }
.comment p { font-size: 14.5px; color: var(--ink); white-space: pre-wrap; }
.comment-form { margin-top: 26px; display: grid; gap: 14px; max-width: 560px; }
.comment-form .btn { justify-self: start; }

/* share toast */
.share-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200;
  max-width: 90vw;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* admin rich-text editor */
.rt-toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border: 1px solid var(--line); border-bottom: none; border-radius: 10px 10px 0 0; background: var(--surface); padding: 8px; }
.rt-btn {
  border: 1px solid var(--line); background: var(--bg); border-radius: 7px; min-width: 34px; height: 32px;
  padding: 0 9px; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.rt-btn:hover { border-color: var(--ink); }
.rt-btn.wide { min-width: 0; }
.rt-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.rt-area {
  border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--surface);
  min-height: 340px; max-height: 640px; overflow: auto; padding: 22px; font-size: 15px; line-height: 1.7; outline: none;
}
.rt-area:focus { border-color: var(--ink); }
.rt-area img { max-width: 100%; border-radius: 8px; }
.rt-area table { border-collapse: collapse; margin: 10px 0; }
.rt-area th, .rt-area td { border: 1px solid #bbb; padding: 6px 10px; min-width: 60px; }
.rt-area th { background: #f2eee7; }
.rt-src { display: none; width: 100%; min-height: 340px; border: 1px solid var(--ink); border-radius: 0 0 10px 10px; padding: 16px; font-family: monospace; font-size: 12.5px; background: var(--surface); }
.rt-cover-preview { max-height: 130px; border-radius: 8px; margin-top: 8px; }

@media (max-width: 620px) {
  .post-content { font-size: 15.5px; }
  .post-content table { display: block; overflow-x: auto; }
  .post-actions .btn { flex: 1; }
}

/* ============ admin: staff perm grid + analytics controls ============ */
.perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px 16px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface);
}
.perm-grid label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.stat-controls {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface);
}
.stat-controls label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.stat-controls input[type="date"], .stat-controls select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); font-family: inherit; font-size: 13.5px; color: var(--ink);
}
.stat-controls .btn { padding: 8px 18px; }
#traffic-cards .stat-mini .v { color: #4A6FA5; }
.top-pages { max-height: 260px; overflow: auto; }
.top-pages table { width: 100%; }
.top-pages th, .top-pages td { font-size: 12.5px; padding: 7px 10px; }

/* ============ perm chips (staff permissions as buttons) ============ */
.perm-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0; }
.perm-chip {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-family: inherit; font-size: 13.5px;
  cursor: pointer; transition: all .15s; line-height: 1;
}
.perm-chip:hover { border-color: var(--ink); }
.perm-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============ tours filter dropdowns ============ */
.filter-dd { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 34px; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 11px 22px; font-family: inherit; font-size: 14px;
  cursor: pointer; transition: all .15s;
}
.dd-btn:hover, .dd.open .dd-btn { background: var(--ink); color: var(--bg); }
.dd-arrow { font-size: 10px; transition: transform .2s; }
.dd.open .dd-arrow { transform: rotate(180deg); }
.dd-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 230px; max-width: 340px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}
.dd.open .dd-panel { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-panel .chip { white-space: nowrap; }
@media (min-width: 621px) { .dd:hover .dd-panel { display: flex; } }

/* ============ dropdown fixes: no white frame, red accent chips, seamless hover ============ */
.dd-panel {
  top: 100%;                       /* no gap → hover never breaks between button and panel */
  padding: 10px 12px 12px;
  background: transparent; border: none; box-shadow: none;  /* remove the white frame */
}
.dd-panel .chip {
  border-color: rgba(180, 68, 44, .35);
  background: rgba(180, 68, 44, .08);   /* site default light red */
  color: var(--accent);
}
.dd-panel .chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.dd-panel .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dd-group {
  width: 100%; margin: 10px 0 2px; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dd-group:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* ============ admin message modal ============ */
.adm-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 16, 12, .5); backdrop-filter: blur(2px);
  align-items: center; justify-content: center; padding: 20px;
}
.adm-modal-box {
  background: var(--surface); border-radius: 16px; max-width: 680px; width: 100%;
  max-height: 86vh; overflow: auto; padding: 28px 30px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.adm-modal-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
  color: var(--ink); font-size: 14px; cursor: pointer;
}
.adm-modal-x:hover { border-color: var(--ink); }


/* ============ homepage partner logos marquee (right → left, seamless loop) ============ */
.partner-marquee {
  overflow: hidden; max-width: 1200px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partner-marquee .marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: partner-scroll var(--marquee-duration, 30s) linear infinite;
}
.partner-marquee:hover .marquee-track { animation-play-state: paused; }
.partner-marquee .marquee-group {
  display: flex; align-items: center; flex-shrink: 0;
  gap: 18px 56px; padding-right: 56px;
}
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee .marquee-track { animation: none; }
}
.partner-logo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--muted); white-space: nowrap;
}
.partner-logo img {
  height: 52px; max-width: 160px; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .25s ease, opacity .25s ease;
}
.partner-logo:hover img, .partner-logo:focus img { filter: grayscale(0); opacity: 1; }
.partner-logo span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) {
  .partner-marquee .marquee-group { gap: 14px 32px; padding-right: 32px; }
  .partner-logo img { height: 40px; max-width: 120px; }
}

/* ============ vertical dropdown menu (tours filters) ============ */
.dd-panel {
  top: calc(100% + 6px);
  min-width: 250px; max-width: 300px; max-height: 330px; overflow-y: auto;
  flex-direction: column; flex-wrap: nowrap; gap: 0;
  padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}
.dd.open .dd-panel { display: flex; }
@media (min-width: 621px) { .dd:hover .dd-panel { display: flex; } }
.dd-panel .chip {
  display: block; width: 100%; box-sizing: border-box; white-space: normal; text-align: left;
  border: none; background: none; color: var(--ink);
  border-radius: 8px; padding: 9px 12px; font-size: 13.5px; line-height: 1.4;
  transition: background .12s, color .12s;
}
.dd-panel .chip:hover { background: rgba(180,68,44,.1); color: var(--accent); border-color: transparent; }
.dd-panel .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dd-panel .dd-group {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 2px; padding: 6px 12px 4px; border-top: none;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dd-panel .dd-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* bokun booking widget embedded on the product detail page */
.bokunWidget { min-height: 420px; }
.bokunWidget iframe { width: 100% !important; border: 0; }
