/* single-tour.css — styles for single-tour.php
   Only loaded on is_singular('tour') pages via enqueue.php.
   ---------------------------------------------------------------- */

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --navy:      #1A1A2E;
  --navy-soft: #252544;
  --terra:     #C8541B;
  --terra-deep:#A8430F;
  --forest:    #2D5016;
  --gold:      #B8860B;
  --sky:       #1B6CA8;
  --sage:      #3A6B47;
  --cream:     #F8F6F1;
  --warm:      #F2EFE8;
  --ink:       #2A2A33;
  --muted:     #6B6B76;
  --line:      #E3DED3;
  --white:     #fff;
  --r:         14px;
  --shadow:    0 1px 2px rgba(26,26,46,.04),0 8px 30px rgba(26,26,46,.07);
  --shadow-lg: 0 20px 60px rgba(26,26,46,.16);
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  padding-left: 24px;
  padding-right: 24px;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

/* ── Eyebrow label ────────────────────────────────────────────── */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(27,108,168,.35), transparent 55%),
    radial-gradient(90% 70% at 8% 110%, rgba(200,84,27,.22), transparent 60%),
    linear-gradient(180deg, rgba(22,22,42,.45) 0%, rgba(26,26,46,.72) 55%, rgba(32,32,58,.92) 100%);
  z-index: 1;
}

.ridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 200px;
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 64px;
  width: 100%;
}

/* breadcrumb inside hero */
.hero .bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
}
.hero .bc a          { color: rgba(255,255,255,.6); }
.hero .bc a:hover    { color: #fff; }
.hero .bc .cur       { color: rgba(255,255,255,.9); }
.hero .bc .ti        { font-size: .7rem; opacity: .6; }

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
}
.tag.diff {
  background: rgba(200,84,27,.2);
  border-color: rgba(200,84,27,.4);
  color: #ffd9c4;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  max-width: 14ch;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin-bottom: 34px;
}
.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 700px;
}
.hstat {
  background: rgba(26,26,46,.55);
  padding: 18px 22px;
  backdrop-filter: blur(4px);
}
.hstat .v {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.hstat .l {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* ── Two-column layout ────────────────────────────────────────── */
.tour-body {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  margin-bottom: 54px;
}
.section-head {
  margin-bottom: 22px;
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: 1.85rem;
  font-weight: 700;
}
.lead p {
  color: #43434d;
  font-size: 1.04rem;
  margin-bottom: 16px;
}
.lead p:last-child {
  margin-bottom: 0;
}

/* ── Highlights ───────────────────────────────────────────────── */
.highlights {
  display: grid;
  gap: 12px;
}
.hl {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
}
.hl .dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--warm);
  display: grid;
  place-items: center;
  color: var(--terra);
  font-weight: 700;
  font-size: .9rem;
}
.hl p {
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* ── Itinerary rail ───────────────────────────────────────────── */
.tour-itinerary-content {
  /* WYSIWYG field rendered here; admin writes rail HTML */
}
.rail {
  position: relative;
  margin-left: 8px;
}
.rail::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 6px;
  bottom: 30px;
  width: 0;
  border-left: 3px dotted var(--terra);
  opacity: .55;
}
.stop {
  position: relative;
  padding-left: 64px;
  padding-bottom: 22px;
}
.stop:last-child {
  padding-bottom: 0;
}
.node {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--line);
}
.stop.summit .node {
  background: var(--terra);
}
.alt-flag {
  position: absolute;
  left: -2px;
  top: 40px;
  font-size: .62rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: .03em;
  white-space: nowrap;
}
.stopcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stopcard summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stopcard summary::-webkit-details-marker { display: none; }
.stop-day {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
}
.stop-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
  flex: 1;
  line-height: 1.2;
}
.stop-dist {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.chev {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warm);
  display: grid;
  place-items: center;
  color: var(--terra);
  transition: transform .25s;
}
details[open] .chev { transform: rotate(180deg); }
.stop-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}
.stop-body p {
  color: #43434d;
  font-size: .96rem;
  margin: 16px 0;
}
.stop-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--sage);
}
.pill.meals {
  background: #eef4ea;
  color: var(--forest);
}

/* ── Inclusions / Exclusions ──────────────────────────────────── */
.incex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.incex .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow);
}
.incex h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.incex ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.incex li {
  display: flex;
  gap: 11px;
  font-size: .93rem;
  color: #43434d;
  align-items: flex-start;
}
.mk {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  margin-top: 1px;
}
.mk.yes { background: #e7f1e3; color: var(--forest); }
.mk.no  { background: #f7e6e0; color: var(--terra-deep); }

/* ── Essentials grid ──────────────────────────────────────────── */
.ess {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.ess .e {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .92rem;
}
.ess .e b {
  display: block;
  font-family: "DM Sans", sans-serif;
  color: var(--navy);
  font-size: .82rem;
  margin-bottom: 3px;
  font-weight: 700;
}
.ess .e span { color: var(--muted); }

/* ── Note box ─────────────────────────────────────────────────── */
.notebox {
  background: #fbf3ec;
  border: 1px solid #f0dcc9;
  border-left: 4px solid var(--terra);
  border-radius: 12px;
  padding: 18px 20px;
}
.notebox ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.notebox li {
  font-size: .9rem;
  color: #5a4636;
  padding-left: 18px;
  position: relative;
}
.notebox li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 700;
}

/* ── FAQs ─────────────────────────────────────────────────────── */
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: .97rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ic {
  flex: none;
  color: var(--terra);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s;
}
.faq[open] summary .q-ic { transform: rotate(45deg); }
.faq .a {
  padding: 0 20px 18px;
  color: #43434d;
  font-size: .93rem;
}

/* ── Reviews ──────────────────────────────────────────────────── */
.rev-summary {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r);
  padding: 26px 30px;
  margin-bottom: 20px;
}
.rev-big {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.rev-summary .stars { font-size: 1.1rem; }
.rev-summary .sub {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.review .top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .85rem;
  flex: none;
}
.review .nm {
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
}
.review .meta {
  font-size: .78rem;
  color: var(--muted);
}
.review p {
  font-size: .93rem;
  color: #43434d;
}
.review .stars {
  color: var(--gold);
  font-size: .85rem;
  margin-left: auto;
}

/* ── Related tours ────────────────────────────────────────────── */
.relg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.relc {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  display: block;
  transition: box-shadow .2s, transform .15s;
}
.relc:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.reli {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy-soft);
  overflow: hidden;
}
.reli img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.relb { padding: 14px 16px; }
.reld {
  font-size: .74rem;
  color: var(--terra);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.reln {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 8px;
}
.relm { display: flex; justify-content: space-between; align-items: center; }
.relpr { font-weight: 700; color: var(--terra); font-size: .95rem; }
.reldy { font-size: .8rem; color: var(--muted); }

/* ── Sidebar ──────────────────────────────────────────────────── */
.tour-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.price-top {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  padding: 22px 24px;
}
.price-top .from {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
}
.price-top .amt {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 4px 0;
}
.price-top .amt small {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  font-family: "DM Sans", sans-serif;
}
.price-top .plan {
  font-size: .84rem;
  color: rgba(255,255,255,.78);
  margin-top: 4px;
}
.price-body { padding: 20px 24px; }
.price-body .btn-terra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--terra);
  color: #fff;
  width: 100%;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-bottom: 10px;
}
.price-body .btn-terra:hover { background: var(--terra-deep); transform: translateY(-1px); }
.price-body .btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #25D366;
  color: #0a3d1f;
  width: 100%;
  text-decoration: none;
  transition: transform .15s;
  margin-bottom: 0;
}
.price-body .btn-wa:hover { transform: translateY(-1px); }
.valid {
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.price-orig {
  font-size: .84rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 2px;
}

.chips {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px;
}
.chip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.chip-row:last-child { border-bottom: none; }
.chip-row .k { color: var(--muted); }
.chip-row .v { font-weight: 600; color: var(--navy); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
.form-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.form-card .fsub {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* CF7 form inputs inside sidebar form-card */
.form-card .wpcf7 input:not([type="submit"]),
.form-card .sbip {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: .9rem;
  margin-bottom: 10px;
  background: var(--cream);
  color: var(--ink);
}
.form-card .wpcf7 input:not([type="submit"]):focus,
.form-card .sbip:focus {
  outline: 2px solid var(--terra);
  outline-offset: 1px;
  background: #fff;
}
.form-card .wpcf7 input[type="submit"],
.form-card .sbsb {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  background: var(--terra);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.form-card .wpcf7 input[type="submit"]:hover,
.form-card .sbsb:hover {
  background: var(--terra-deep);
  transform: translateY(-1px);
}
.form-card .sb2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-card .wpcf7-response-output { margin-top: 10px; font-size: .82rem; }

.trust {
  background: var(--warm);
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  gap: 10px;
}
.trust div {
  display: flex;
  gap: 10px;
  font-size: .85rem;
  color: #4a4a55;
  align-items: center;
}
.trust .tk { color: var(--forest); font-weight: 700; }

/* ── WhatsApp float ───────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .tour-body {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 0 60px;
  }
  .tour-sidebar {
    position: static;
    top: auto;
    order: -1;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .relg {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .incex       { grid-template-columns: 1fr; }
  .ess         { grid-template-columns: 1fr; }
  .hero h1     { font-size: 2.05rem; }
  .hero-inner  { padding-top: 60px; }
  .section-head h2 { font-size: 1.5rem; }
  .form-card .sb2 { grid-template-columns: 1fr; }
}

/* ── Sticky mobile book bar ───────────────────────────────────── */
.mobile-book-bar {
  display: none;
}
@media (max-width: 980px) {
  .mobile-book-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(26,26,46,.1);
  }
  .mobile-book-bar .mbb-price {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy);
    line-height: 1;
  }
  .mobile-book-bar .mbb-price small {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: .72rem;
    color: var(--muted);
    display: block;
    margin-top: 2px;
  }
  .mobile-book-bar .mbb-btn {
    background: var(--terra);
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: .9rem;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
  }
  .mobile-book-bar .mbb-btn:hover { background: var(--terra-deep); }
  /* push wa-float above the bar */
  .wa-float { bottom: 82px; }
  /* add bottom padding so content isn't hidden behind the bar */
  .tour-body { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
