/* ============================================================
   Local Zanzibar Tours — pages.css
   Page-specific styling: subpage headers, tour detail,
   story, FAQ, contact, booking flow, confirmation
   ============================================================ */

/* ---------- Subpage header ---------- */
.page-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
  position: relative;
  z-index: 1;
}
.page-header .subhead { margin-top: 0.4rem; }
@media (max-width: 768px) {
  .page-header { padding: 3rem 1.25rem 1.5rem; }
}

/* ---------- Tour detail page ---------- */
.tour-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 840px) {
  .tour-detail { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem 2rem; }
}

.tour-body .section-label { margin-top: 3rem; }
.tour-body p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.included-list {
  list-style: none;
  margin-top: 0.5rem;
}
.included-list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.98rem;
  color: var(--navy);
}
.included-list li:last-child { border-bottom: none; }
.included-list li::before {
  content: '—';
  color: var(--saffron-dark);
  font-family: var(--font-display);
  font-style: italic;
  flex-shrink: 0;
}
.included-list li.excluded { color: var(--navy-soft); opacity: 0.75; }
.included-list li.excluded::before { content: '×'; color: var(--navy-soft); }

/* Sticky price box */
.price-box {
  position: sticky;
  top: 90px;
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.price-box .from {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
}
.price-box .amount {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.6rem;
  color: var(--saffron-dark);
  line-height: 1.1;
  margin: 0.3rem 0 0.1rem;
}
.price-box .amount .per {
  font-size: 0.85rem;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--navy-soft);
  margin-left: 0.3rem;
}
.price-box .price-rows { margin: 1.2rem 0 1.4rem; }
.price-box .btn { margin-top: 0.4rem; }
.price-box .deposit-note {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--navy-soft);
  line-height: 1.5;
}
@media (max-width: 840px) {
  .price-box { position: static; }
}

/* Guide block */
.guide-block {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-top: 1rem;
}
.guide-block .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.guide-block h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy);
}
.guide-block p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy-soft);
  margin: 0;
  line-height: 1.5;
}

/* Related tours */
.related-tours {
  max-width: 1080px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .related-tours { padding: 0 1.25rem; } }

/* ---------- Story page ---------- */
.story-long {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 1;
}
.story-long .story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  color: var(--teal);
  line-height: 1.15;
  margin: 2.5rem 0 2rem;
  letter-spacing: -0.015em;
}
.story-long p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 1.3rem;
}
.story-signature {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--saffron-dark);
}

.story-photo-wrap {
  margin: 4rem auto;
  max-width: 480px;
  position: relative;
}
.story-photo-frame {
  background: #FFFFFF;
  padding: 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-photo);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.55s ease;
  position: relative;
}
.story-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(15, 26, 46, 0.05);
  border-radius: inherit;
}
.story-photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 72px -10px rgba(15, 26, 46, 0.26), 0 14px 28px rgba(15, 26, 46, 0.08);
}
.story-photo { width: 100%; height: auto; display: block; }
.story-photo-caption {
  margin-top: 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.caption-names {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--navy);
}
.caption-place {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--navy-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.caption-place::before,
.caption-place::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--saffron-dark);
  opacity: 0.45;
}

/* ---------- People profiles (story page) ---------- */
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 700px) { .people-grid { grid-template-columns: 1fr; } }

.person-card {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out-strong);
}
@media (hover: hover) and (pointer: fine) {
  .person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
}
.person-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 1.3rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.6rem;
}
.person-photo.saffron { background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%); color: var(--navy); }
/* Photo covers the circle; if the file is missing the img removes
   itself (onerror) and the initial underneath stays visible. */
.person-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.person-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 1rem;
}
.person-card p {
  font-family: var(--font-display);
  font-size: 1rem !important;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 0.8rem !important;
}
.person-card p:last-child { margin-bottom: 0 !important; }

/* ---------- FAQ page ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 1;
}
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--navy);
  padding: 1.3rem 2rem 1.3rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--saffron-dark);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { color: var(--teal); }
.faq-item .faq-answer {
  padding: 0 2rem 1.4rem 0;
  font-size: 1rem;
  color: var(--navy-soft);
  line-height: 1.65;
}
.faq-item .faq-answer a { color: var(--teal); }

/* ---------- Contact page ---------- */
.contact-grid {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; padding: 0 1.25rem 1.5rem; }
}
.contact-channels { list-style: none; }
.contact-channels li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.contact-channels li:last-child { border-bottom: none; }
.contact-channels .channel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.25rem;
}
.contact-channels a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact-channels a:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- Booking flow ---------- */
.booking-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 540px) { .booking-wrap { padding: 0 1.25rem 2rem; } }

.booking-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.booking-steps .step {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-soft);
  opacity: 0.45;
  padding-top: 0.7rem;
  border-top: 2px solid var(--cream-dark);
  transition: all 0.3s ease;
}
.booking-steps .step.active {
  color: var(--teal);
  opacity: 1;
  border-top-color: var(--teal);
}
.booking-steps .step.done {
  color: var(--saffron-dark);
  opacity: 0.8;
  border-top-color: var(--saffron);
}

.booking-panel { display: none; }
.booking-panel.active { display: block; animation: fadeUp 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }

.booking-panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.booking-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.booking-nav .btn { min-width: 140px; }

/* Guest count stepper */
.guest-stepper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  width: fit-content;
}
.guest-stepper button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 120ms var(--ease-out-strong);
  line-height: 1;
}
.guest-stepper button:hover { background: var(--navy); color: var(--cream); }
.guest-stepper button:active { transform: scale(0.94); }
.guest-stepper .count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--saffron-dark);
  min-width: 2.2rem;
  text-align: center;
}

/* Booking summary */
.booking-summary {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--navy-soft); }
.summary-row .v { font-weight: 500; color: var(--navy); text-align: right; }
.summary-row.total .v {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--saffron-dark);
}
.summary-row.deposit .v {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--teal);
}

/* ---------- Confirmation page ---------- */
.confirm-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.confirm-wrap .big {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.confirm-wrap .big em { font-style: italic; color: var(--teal); }
.confirm-wrap .sub {
  font-size: 1.05rem;
  color: var(--navy-soft);
  line-height: 1.65;
  margin-bottom: 2rem;
}
