:root {
  --ink: #14201c;
  --muted: #66736d;
  --line: #dce4df;
  --paper: #f7faf7;
  --white: #fff;
  --forest: #183d33;
  --moss: #6f8f72;
  --jade: #2f7668;
  --clay: #b86f47;
  --gold: #c7a14a;
  --shadow: 0 18px 50px rgba(20, 32, 28, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 32px;
  background: rgba(247, 250, 247, .92);
  border-bottom: 1px solid rgba(220, 228, 223, .8);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
}
.main-nav { display: flex; align-items: center; gap: 20px; color: #2a3833; font-size: 14px; }
.main-nav a { padding: 10px 0; }
.nav-cta { color: var(--jade); font-weight: 750; }
.lang-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.lang-switch a {
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 6px;
  text-align: center;
  color: var(--muted);
  font-weight: 750;
}
.lang-switch a.active {
  color: var(--white);
  background: var(--forest);
}
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); }

.hero {
  min-height: calc(100vh - 74px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 27, 23, .74), rgba(10, 27, 23, .34), rgba(10, 27, 23, .08)),
    url("/public/assets/img/hero/guilin-river-hero.png") center/cover;
}
.hero-content {
  position: relative;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 9vh;
  color: var(--white);
}
.eyebrow { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.hero h1, .page-hero h1, .builder-hero h1, .detail-hero h1 { margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: 0; max-width: 980px; }
.hero p:not(.eyebrow) { max-width: 650px; font-size: 20px; color: rgba(255,255,255,.86); }
.hero-actions, .action-row, .card-foot { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
}
.btn.primary { color: var(--white); background: var(--clay); }
.btn.neutral { color: var(--white); background: var(--forest); }
.btn.ghost { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.btn.dark { color: var(--ink); border-color: var(--line); background: transparent; }

.split-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: -42px; position: relative; z-index: 2; }
.entry-panel {
  display: block;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.entry-panel.accent { background: var(--forest); color: var(--white); border-color: var(--forest); }
.entry-panel span, .item-card span, .tour-card span { color: var(--moss); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.entry-panel h2, .section-head h2, .service-band h2 { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.entry-panel p { margin-bottom: 0; color: var(--muted); }
.entry-panel.accent p { color: rgba(255,255,255,.78); }

.section-head { margin: 76px 0 24px; }
.tour-grid, .item-grid, .guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tour-card, .item-card, .guide-card, .builder-step, .booking-box, .panel-form, .checkout-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,32,28,.06);
}
.item-card {
  display: flex;
  flex-direction: column;
  height: 410px;
}
.item-grid.large .item-card { height: 640px; }
.item-card > .image-slider { flex: 0 0 auto; }
.tour-card > img { height: 210px; width: 100%; object-fit: cover; }
.image-slider {
  position: relative;
  overflow: hidden;
  background: #eef3ef;
}
.image-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.image-slider-track::-webkit-scrollbar { display: none; }
.image-slider img {
  width: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}
.media-video {
  position: relative;
  display: grid;
  width: 100%;
  background: #10241f;
  scroll-snap-align: start;
}
.media-video-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(20,32,28,.66);
  font-size: 12px;
  font-weight: 800;
}
.media-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.image-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  color: var(--white);
  background: rgba(20, 32, 28, .46);
  transform: translateY(-50%);
  cursor: pointer;
}
.image-slider-btn.prev { left: 12px; }
.image-slider-btn.next { right: 12px; }
.image-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.image-slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
}
.image-slider-dots span.active { background: var(--white); }
.card-slider img { height: 210px; }
.card-slider .media-video { height: 210px; }
.item-card .card-slider img, .item-card .card-slider .media-video { height: 150px; }
.item-grid.large .item-card .card-slider img, .item-grid.large .item-card .card-slider .media-video { height: 220px; }
.guide-slider { border-radius: 8px; margin-bottom: 16px; }
.guide-slider img, .guide-slider .media-video { height: 180px; border-radius: 8px; }
.detail-slider {
  border-radius: 8px;
  margin-bottom: 28px;
}
.detail-slider img, .detail-slider .media-video { height: min(520px, 56vw); }
.tour-body, .item-card > div:not(.image-slider), .guide-card { padding: 20px; }
.item-card > div:not(.image-slider) {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.guide-card > img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.tour-card h2, .tour-card h3, .item-card h2, .item-card h3, .guide-card h2 { margin: 8px 0; line-height: 1.14; }
.item-card h2, .item-card h3 { overflow-wrap: anywhere; }
.card-foot { justify-content: space-between; margin-top: 18px; }
.card-foot a, .item-card a, .guide-card a { color: var(--jade); font-weight: 750; }
.item-grid { grid-template-columns: repeat(5, 1fr); }
.item-grid.large { grid-template-columns: repeat(3, 1fr); padding: 56px 0; }
.filters + .item-grid.large { padding-top: 24px; }
.item-card > img { height: 150px; width: 100%; object-fit: cover; }
.item-grid.large .item-card > img { height: 220px; }
.option-picker {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.option-picker button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.option-picker button.active {
  border-color: var(--clay);
  box-shadow: inset 0 0 0 1px var(--clay);
}
.option-picker strong { color: var(--clay); }
.item-highlights {
  display: grid;
  gap: 7px;
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.item-highlights li {
  position: relative;
  padding-left: 18px;
}
.item-highlights li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--clay);
}
.item-details {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.item-details summary {
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
}
.item-detail-content {
  display: grid;
  gap: 13px;
  margin-top: 12px;
}
.item-detail-block h3 {
  margin: 0 0 6px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.item-detail-block ul,
.item-detail-block ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.service-band { margin: 88px 0 72px; padding: 72px 0; background: #e6eee8; }
.service-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.service-grid ul, .check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.service-grid li, .check-list li { padding-left: 28px; position: relative; }
.service-grid li::before, .check-list li::before { content: ""; width: 8px; height: 8px; background: var(--clay); position: absolute; left: 2px; top: 10px; border-radius: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 80px; }
blockquote { margin: 0; padding: 24px; border-left: 3px solid var(--clay); background: var(--white); }
blockquote span { display: block; color: var(--muted); margin-top: 14px; }

.page-hero, .builder-hero {
  padding: 82px 0 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 39, 32, .86), rgba(13, 39, 32, .42)),
    url("/public/assets/img/hero/page-header.png") center/cover;
}
.page-hero.compact h1, .builder-hero h1 { font-size: clamp(34px, 5vw, 62px); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 42px auto 24px; }
.filters button, .module-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 14px;
  cursor: pointer;
}
.filters .active, .module-tabs .active { background: var(--forest); color: var(--white); border-color: var(--forest); }

.detail-hero {
  min-height: 480px;
  display: grid;
  align-items: end;
  padding: 80px 0;
  color: var(--white);
  background-size: cover;
  background-position: center;
  position: relative;
}
.detail-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 31, 27, .78), rgba(12, 31, 27, .16)); }
.detail-hero .wrap { position: relative; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 64px 0; }
.detail-main { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 34px; }
.timeline { list-style: none; padding: 0; display: grid; gap: 12px; }
.timeline li, .preview-days li { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.upgrade-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px; background: var(--paper); border-radius: 8px; }
.booking-box { padding: 24px; height: max-content; position: sticky; top: 94px; }
.booking-box strong { font-size: 34px; display: block; }
label { display: grid; gap: 7px; font-weight: 700; color: #263832; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  color: var(--ink);
}
.booking-box label { margin: 14px 0; }

.builder-shell { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding: 48px 0 80px; }
.builder-main { display: grid; gap: 18px; }
.builder-step { padding: 24px; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-title span { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--white); background: var(--forest); font-weight: 800; }
.step-title h2 { margin: 0; font-size: 24px; }
.input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.input-grid .wide { grid-column: 1 / -1; }
.module-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.module-panel { display: none; }
.module-panel.active { display: block; }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.module-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.module-card input { width: 18px; height: 18px; }
.module-card small { grid-column: 2 / -1; color: var(--muted); }
.builder-preview { min-width: 0; }
.sticky-preview { position: sticky; top: 94px; background: var(--forest); color: var(--white); padding: 24px; border-radius: 8px; }
.sticky-preview .eyebrow { color: #dfc877; }
.preview-meta { color: rgba(255,255,255,.76); margin: 8px 0 18px; }
.preview-days { list-style: none; padding: 0; display: grid; gap: 10px; }
.preview-days li { border-color: rgba(255,255,255,.18); }
.preview-days span { color: rgba(255,255,255,.78); }
.price-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.price-box [data-price-lines] { display: grid; gap: 10px; }
.price-line, .price-total { display: flex; justify-content: space-between; gap: 16px; }
.price-line { align-items: center; }
.price-line span { flex: 1; min-width: 0; }
.price-line-remove {
  flex: 0 0 auto;
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.price-line-remove:hover { color: var(--white); border-color: rgba(255,255,255,.56); background: rgba(255,255,255,.16); }
.price-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); align-items: center; }
.price-total strong { font-size: 30px; color: #dfc877; }

.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 56px 0 80px; align-items: start; }
.panel-form, .checkout-side { padding: 24px; display: grid; gap: 14px; }
.inline-check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.inline-check input { width: auto; }
.guide-grid { grid-template-columns: repeat(2, 1fr); padding: 56px 0 24px; }
.faq-list { display: grid; gap: 10px; margin-bottom: 80px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
summary { cursor: pointer; font-weight: 800; }
.legal { min-height: 50vh; padding: 72px 0; max-width: 860px; }
.qualification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 56px 0 80px;
  align-items: start;
}
.qualification-main, .qualification-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(20,32,28,.06);
}
.qualification-slider { margin-bottom: 24px; }
.qualification-lead {
  margin: 0 0 18px;
  font-size: 20px;
  color: #243832;
}
.qualification-copy { color: var(--muted); }
.qualification-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}
.qualification-side h2 { margin: 0; line-height: 1.15; }
.qualification-side div {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.qualification-side span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.qualification-side strong { line-height: 1.35; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 32px;
  padding: 46px 32px 70px;
  color: rgba(255,255,255,.82);
  background: #10241f;
}
.site-footer h3, .site-footer h4 { color: var(--white); margin-top: 0; }
.site-footer a { display: block; margin: 8px 0; }
.support-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 32;
}
.support-toggle {
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: #1f7a56;
  box-shadow: var(--shadow);
  font-weight: 800;
  cursor: pointer;
}
.support-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(320px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
.support-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.support-panel-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}
.support-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}
.support-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.support-qr {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}
.support-qr img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}
.support-qr p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.cart-float {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 31;
}
.cart-float-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  color: var(--white);
  background: var(--forest);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
}
.cart-float-toggle strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--forest);
  background: #dfc877;
  font-size: 13px;
}
.cart-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
.cart-panel-head, .cart-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.cart-panel-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}
.cart-panel-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  margin: 14px 0;
}
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.cart-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.cart-row button {
  grid-column: 1 / -1;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--white);
  cursor: pointer;
}
.cart-panel-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cart-checkout {
  width: 100%;
  margin-top: 12px;
}
.cart-empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .split-entry, .service-grid, .detail-layout, .builder-shell, .form-layout, .qualification-layout, .site-footer { grid-template-columns: 1fr; }
  .tour-grid, .item-grid, .item-grid.large, .reviews, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .builder-preview, .booking-box, .sticky-preview, .qualification-side { position: static; }
  .input-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: 0 18px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .hero { min-height: 720px; }
  .hero-content { width: calc(100% - 28px); padding-bottom: 70px; }
  .hero h1 { font-size: 42px; }
  .split-entry { margin-top: -28px; }
  .tour-grid, .item-grid, .item-grid.large, .reviews, .guide-grid, .module-grid, .two-col, .input-grid { grid-template-columns: 1fr; }
  .detail-main, .builder-step { padding: 20px; }
  .upgrade-row { grid-template-columns: 1fr; }
  .action-row .btn, .hero-actions .btn { width: 100%; }
}
