/* ============================================================
   Meron Tours — styles for the generated tour pages
   Loaded after site.css. Uses CSS logical properties only (inline = along the text, block = across it),
   so the layout follows the right-to-left direction by itself.
   ============================================================ */

/* Read by screen readers, not shown on screen. The story, gallery and "what to know" titles use it:
   the headings stay for people who move through the page by headings, but the text speaks for itself. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Hidden until a keyboard user reaches it with Tab. */
.skip-link {
  position: absolute; inset-block-start: -100px; inset-inline-start: 12px; z-index: 300;
  background: var(--wine); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { inset-block-start: 12px; }

/* Short on purpose: the booking box sits right under it on a phone.
   min-block-size, so that a long title makes the hero taller instead of being cut off. */
.tour-hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-block-size: clamp(360px, 56vh, 500px);
  background: var(--ink);
}
.tour-hero > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.tour-hero-text {
  position: relative;
  /* The top padding keeps the text clear of the fixed header. */
  padding-block: 110px 24px;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.92), rgba(44, 24, 16, 0.65) 70%, transparent);
}
.tour-hero .breadcrumb ol { justify-content: flex-start; }
.tour-hero .breadcrumb li:first-child a { padding-inline-start: 0; }
.tour-hero-location { color: #fff; font-weight: 700; margin-block-end: 6px; }
.tour-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); }

/* One column on a phone: booking box, then the text. */
.tour-layout {
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr);
  padding-block: 24px 64px;
}
/* Two columns from 900px. Column 1 starts on the right in right-to-left text, so the box is on the left. */
@media (min-width: 900px) {
  .tour-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block-start: 32px; }
  .tour-main { grid-column: 1; grid-row: 1; }
  .tour-side { grid-column: 2; grid-row: 1; }
  /* Sticky: the box stays in view, below the header, while the text scrolls. */
  .booking-box { position: sticky; inset-block-start: 110px; }
}

.booking-box {
  display: flex; flex-direction: column; gap: 10px; text-align: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 22px 20px;
  /* When the page jumps here, leave room for the fixed header. */
  scroll-margin-block-start: 110px;
}
.booking-status { font-weight: 700; }
.tour-bottom-cta { text-align: center; margin-block: 28px; }
.booking-purpose { font-size: 14px; color: var(--ink-soft); }
.booking-content { display: flex; flex-direction: column; gap: 10px; }
.booking-box .btn { justify-content: center; }
.booking-form-link, .tour-private a {
  display: inline-block; padding-block: 8px;
  color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
}

.tour-chips {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.tour-chip {
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 12px 16px;
}
.tour-chip dt { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.tour-chip dd { font-weight: 700; }

.tour-section { margin-block-start: 40px; }
.tour-section h2 { color: var(--wine); margin-block-end: 14px; }
.tour-section h3 { color: var(--wine); margin-block: 20px 8px; }
.tour-section p { margin-block-end: 16px; }
.tour-section ul, .tour-section ol { padding-inline-start: 24px; margin-block-end: 16px; }
.tour-route li { margin-block-end: 6px; }

.tour-section ul.tour-gallery {
  display: grid; gap: 12px; list-style: none; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
/* A fixed shape reserves each picture's space before it loads, so the page doesn't jump. */
.tour-gallery img {
  inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm);
}

.tour-private { margin-block-start: 32px; text-align: center; }

/* ---------- Featured tours page (src/featured.njk) ---------- */
/* The top padding keeps the breadcrumb clear of the fixed header. */
.section.featured-tours { padding-block-start: 120px; }
.featured-head { margin-block-end: 48px; }
.featured-head h1 { font-size: clamp(30px, 4.5vw, 46px); margin: 0; }
/* The gold colors of site.css are too faint on a light background for WCAG AA (MT-26).
   This darker gold has at least 4.5:1 on the white cards and on the cream background. */
.featured-head h1 span, .featured-tours .tour-card .tour-location { color: #82641F; }
/* Card titles are h2 here (right under the page's h1), and look like the cards' h3 on the other pages. */
.tour-card h2 { font-size: 22px; color: var(--ink); margin-block-end: 12px; line-height: 1.35; }
.testimonial-carousel { max-inline-size: 780px; margin-inline: auto; }
.testimonial-slide, .testimonial-slide blockquote { margin: 0; }
.testimonial-slide .testimonial { block-size: 100%; }
.carousel-count { min-inline-size: 7em; text-align: center; font-weight: 700; }

.tour-date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; margin-block-end: 10px; }
.tour-badge {
  background: var(--wine); color: #fff; border-radius: 999px;
  padding-block: 2px; padding-inline: 12px; font-size: 14px;
}

