/* ==========================================================================
   Cruise Marina Dubai — tour detail pages (load after style.css)
   ========================================================================== */

/* ---------- Tour hero ---------- */
.tour-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: flex-end;
  padding-block: 120px 56px;
  color: var(--white); background: var(--navy-950);
}
.tour-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  animation: hero-zoom 18s ease-out forwards;
}
.tour-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(6, 21, 40, .96) 0%, rgba(6, 21, 40, .6) 38%, rgba(6, 21, 40, .15) 70%, rgba(6, 21, 40, .45) 100%),
    radial-gradient(ellipse at 15% 100%, rgba(227, 178, 92, .18), transparent 55%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb [aria-current] { color: var(--gold-500); }

.tour-hero-content { display: grid; gap: 18px; }
.tour-hero-content > * { max-width: 760px; }
.tour-hero h1 { color: var(--white); font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.05; }
.tour-hero h1 em { font-style: italic; color: var(--gold-500); font-weight: 600; }
.tour-hero-lead { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: rgba(255, 255, 255, .86); margin: 0; }

.tour-rating { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.tour-rating .stars { display: inline-flex; color: var(--gold-500); }
.tour-rating .stars .material-symbols-rounded { font-size: 19px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .88rem; font-weight: 600;
}
.hero-chips .material-symbols-rounded { color: var(--gold-500); font-size: 19px; }
.tour-hero .hero-actions { margin: 6px 0 0; }

/* ---------- Key facts strip ---------- */
.facts-strip { position: relative; z-index: 2; margin-top: -1px; background: var(--navy-900); border-top: 1px solid rgba(227, 178, 92, .25); }
.facts-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-strip li { display: flex; align-items: center; gap: 14px; padding: 22px 18px; color: rgba(255, 255, 255, .7); font-size: .85rem; }
.facts-strip li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
.facts-strip .material-symbols-rounded {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(227, 178, 92, .12); color: var(--gold-500); font-size: 24px;
}
.facts-strip strong { display: block; color: var(--white); font-size: 1rem; font-weight: 700; }
@media (max-width: 860px) {
  .facts-strip ul { grid-template-columns: 1fr 1fr; }
  .facts-strip li:nth-child(3) { border-left: 0; }
  .facts-strip li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 420px) {
  .facts-strip li { padding: 16px 10px; gap: 10px; }
  .facts-strip .material-symbols-rounded { width: 38px; height: 38px; font-size: 21px; }
}

/* ---------- Layout: content + sticky booking card ---------- */
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.tour-main > section + section { margin-top: clamp(48px, 6vw, 72px); }
.tour-main h2 { margin-bottom: 18px; }
.tour-main .lead { font-size: 1.12rem; color: var(--ink); }
.tour-main p { color: var(--muted); }

@media (max-width: 1000px) {
  .tour-layout { grid-template-columns: 1fr; }
}

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.highlight {
  display: flex; gap: 16px; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.highlight:hover { border-color: rgba(227, 178, 92, .6); box-shadow: var(--shadow); transform: translateY(-2px); }
.highlight .material-symbols-rounded {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600)); color: var(--gold-500); font-size: 26px;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}
.highlight h3 { font-size: 1.05rem; margin-bottom: 4px; }
.highlight p { font-size: .94rem; margin: 0; }
@media (max-width: 600px) { .highlights { grid-template-columns: 1fr; } }

/* Itinerary timeline */
.timeline { position: relative; margin-top: 28px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--gold-500), var(--teal-600));
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold-500); box-shadow: 0 0 0 4px var(--sand-50);
}
.timeline .t-step { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 2px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: .96rem; }

/* Included / not included */
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.incl-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.incl-card.is-yes { background: linear-gradient(180deg, var(--teal-50), var(--white) 70%); border-color: rgba(14, 124, 134, .2); }
.incl-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1.05rem; }
.incl-card ul { display: grid; gap: 10px; font-size: .96rem; }
.incl-card li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.incl-card li .material-symbols-rounded { font-size: 21px; margin-top: 1px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.is-yes .material-symbols-rounded { color: var(--teal-600); }
.is-no .material-symbols-rounded { color: #B4553E; }
.is-no li { color: var(--muted); }
@media (max-width: 600px) { .incl-grid { grid-template-columns: 1fr; } }

/* Tour gallery mosaic */
.tour-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px; margin-top: 24px; }
.tour-gallery li { min-width: 0; }
.tour-gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.tour-gallery li:nth-child(4) { grid-column: span 2; }
@media (max-width: 600px) {
  .tour-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
  .tour-gallery li:nth-child(4) { grid-column: span 1; }
  .tour-gallery li:last-child { grid-column: span 2; }
}

/* Good to know */
.know-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 22px; }
.know-list li { display: flex; gap: 12px; font-size: .96rem; color: var(--muted); }
.know-list .material-symbols-rounded { color: var(--gold-600); font-size: 22px; }
.know-list strong { display: block; color: var(--navy-800); }
@media (max-width: 600px) { .know-list { grid-template-columns: 1fr; } }

/* ---------- Booking card ---------- */
.book-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.book-head {
  padding: 26px 26px 22px; color: rgba(255, 255, 255, .8);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 70%, var(--teal-600) 140%);
}
.book-head .eyebrow { margin-bottom: 6px; }
.book-price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.book-price strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--white); }
.book-price span { font-size: .95rem; }
.book-head small { display: block; margin-top: 8px; font-size: .82rem; color: rgba(255, 255, 255, .6); }

.book-body { padding: 22px 26px 26px; }
.book-form { display: grid; gap: 14px; }
.book-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--navy-800); }
.book-form input,
.book-form select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 500 1rem var(--font-body); color: var(--ink);
  background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.book-form input:focus,
.book-form select:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: transparent; }
.book-form .btn { width: 100%; margin-top: 4px; }
.book-perks { display: grid; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.book-perks li { display: flex; align-items: center; gap: 9px; }
.book-perks .material-symbols-rounded { color: var(--teal-600); font-size: 20px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.book-alt { margin-top: 16px; text-align: center; font-size: .88rem; color: var(--muted); }

@media (max-width: 1000px) {
  .book-card { position: static; max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---------- Mobile sticky booking bar ---------- */
.book-bar { display: none; }
@media (max-width: 1000px) {
  .book-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -12px rgba(11, 37, 69, .25);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .book-bar p { margin: 0; line-height: 1.2; font-size: .8rem; color: var(--muted); }
  .book-bar strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-800); }
  .tour-page .wa-float { display: none; }
  .tour-page .site-footer { padding-bottom: 76px; }
}

/* Related tours */
.related .tour-card { box-shadow: var(--shadow-sm); }

@media (prefers-reduced-motion: reduce) {
  .tour-hero-bg { animation: none; }
}
