:root {
  --brand: #b0182b;
  --brand-dark: #8c1222;
  --brand-tint: #f8e9eb;
  --ink: #1f1b18;
  --ink-2: #5c554f;
  --ink-3: #8a827b;
  --line: #e7e1d9;
  --stone: #f6f2ec;
  --paper: #ffffff;
  --ok: #1f7a4d;
  --ok-tint: #e6f3ec;
  --warn: #9a5b00;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 27, 24, .06), 0 8px 24px rgba(31, 27, 24, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.theme-engine {
  --brand: #2c5282;
  --brand-dark: #1f3d63;
  --brand-tint: #e8eef6;
  --stone: #f4f6f8;
  --line: #dfe4ea;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--stone); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.hdr { background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; }
.logo-name { font-family: var(--serif); font-size: 21px; letter-spacing: .2px; }
.logo-name b { color: var(--brand); font-weight: 600; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 10px; font-size: 14px; color: var(--ink-2); }
.demo-strip { background: var(--ink); color: #f1ece6; font-size: 13px; text-align: center; padding: 6px 12px; }

/* Hero */
.hero { position: relative; color: #fff; min-height: 460px; display: flex; align-items: flex-end; background: #2a2521 center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.05) 20%, rgba(20,16,12,.72) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 14px; max-width: 760px; }
.hero p { font-size: 18px; max-width: 560px; margin: 0 0 26px; color: #f3ede6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { background: #cbc4bd; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 10px 14px; }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }

/* Trust band */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.trust-item strong { display: block; color: var(--ink); font-size: 15px; }
.ico { width: 22px; height: 22px; flex: none; color: var(--brand); }

/* Sections */
.section { padding: 48px 0 8px; }
.section h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 4px; }
.section .sub { color: var(--ink-2); margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31,27,24,.08), 0 14px 32px rgba(31,27,24,.10); }
.card-img { aspect-ratio: 4 / 3; background: var(--line) center/cover no-repeat; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.card-meta { font-size: 13px; color: var(--ink-3); }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.rating { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.rating .star { color: #d08a00; }
.price { font-size: 13px; color: var(--ink-2); }
.price b { font-size: 18px; color: var(--ink); }

/* Tour page */
.crumbs { font-size: 13px; color: var(--ink-3); padding: 18px 0 8px; }
.crumbs a { text-decoration: none; }
.tour-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 8px; }
.tour-head .tagline { font-size: 18px; color: var(--ink-2); margin: 0 0 10px; }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding: 18px 0 64px; }
.tour-hero { border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--line) center/cover no-repeat; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; box-shadow: var(--shadow); }
.fact { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.fact strong { display: block; color: var(--ink); font-size: 14px; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 28px 0 8px; }
.prose p { margin: 0 0 12px; color: #34302c; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }

/* Booking panel */
.book { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.tour-layout .book { position: relative; }
.book-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.book-price b { font-size: 26px; }
.book-price span { color: var(--ink-3); font-size: 14px; }
.book h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); margin: 16px 0 8px; font-weight: 600; }
.cal { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.cal-nav { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-2); }
.cal-nav:hover { background: var(--stone); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow { font-size: 11px; color: var(--ink-3); padding: 4px 0; text-transform: uppercase; }
.day { border: 0; background: transparent; height: 38px; border-radius: 8px; font-size: 14px; color: var(--ink); position: relative; }
.day:hover:not(:disabled) { background: var(--brand-tint); }
.day:disabled { color: #c4bdb6; cursor: default; }
.day.soldout { text-decoration: line-through; }
.day.sel { background: var(--brand); color: #fff; font-weight: 600; }
.day.low::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--warn); }
.day.sel.low::after { background: #fff; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.slot small { font-size: 11px; color: var(--ink-3); }
.slot small.few { color: var(--warn); }
.slot.sel { border-color: var(--brand); background: var(--brand-tint); }
.slot:disabled { opacity: .45; cursor: default; }
.pax { display: grid; gap: 10px; }
.pax-row { display: flex; align-items: center; justify-content: space-between; }
.pax-row .who { font-size: 15px; }
.pax-row .who small { display: block; color: var(--ink-3); font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 18px; line-height: 1; color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 18px; text-align: center; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.total b { font-size: 22px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 15px; background: var(--paper); }
.field input:focus { outline: 2px solid var(--brand-tint); border-color: var(--brand); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-methods { display: flex; gap: 8px; margin: 4px 0 14px; }
.pay-methods button { flex: 1; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); padding: 10px 6px; font-size: 13px; }
.pay-methods button.sel { border-color: var(--brand); background: var(--brand-tint); }
.summary { background: var(--stone); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; display: grid; gap: 4px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .row span:first-child { color: var(--ink-2); }
.done { text-align: center; padding: 8px 4px 4px; }
.done .badge { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; margin: 4px auto 12px; }
.done h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 6px; }
.done .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: 1px; background: var(--stone); border-radius: 8px; padding: 8px 12px; display: inline-block; margin: 8px 0 12px; }
.note { font-size: 13px; color: var(--ink-2); }

/* Embedded shop / engine */
body.embedded { background: var(--paper); }
.emb { max-width: 560px; margin: 0 auto; padding: 0 0 20px; }
.emb-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.emb-top .shop-name { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.emb-top .logo-mark { width: 26px; height: 26px; font-size: 15px; border-radius: 7px; }
.emb-close { border: 0; background: var(--stone); border-radius: 999px; width: 32px; height: 32px; color: var(--ink-2); }
.emb-hero { display: flex; gap: 14px; padding: 16px; align-items: center; }
.emb-hero .thumb { width: 92px; height: 72px; border-radius: 10px; background: var(--line) center/cover; flex: none; }
.emb-hero h1 { font-size: 18px; line-height: 1.3; margin: 0 0 4px; font-weight: 600; }
.emb .book { box-shadow: none; padding: 0 16px; border-radius: 0; }
.emb-tabs { display: flex; gap: 6px; padding: 0 16px 4px; overflow-x: auto; }
.emb-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.emb-tabs button.sel { border-color: var(--brand); background: var(--brand-tint); }
.powered { text-align: center; font-size: 12px; color: var(--ink-3); padding: 14px 0 4px; }

/* Footer */
.ftr { background: var(--ink); color: #cfc7bf; margin-top: 56px; }
.ftr .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-top: 36px; padding-bottom: 36px; font-size: 14px; }
.ftr h5 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.ftr a { color: #cfc7bf; text-decoration: none; display: block; margin-bottom: 6px; }
.ftr .fine { grid-column: 1 / -1; border-top: 1px solid #3a342f; padding-top: 16px; font-size: 12px; color: #9a9189; }

.empty { padding: 80px 0; text-align: center; color: var(--ink-2); }

@media (max-width: 900px) {
  .tour-layout { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; }
  .ftr .wrap { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { min-height: 380px; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}
