/* Excursion detail page. Loaded after app.css, which supplies the palette and base components. */

.excursion-page { background: #fff; }

.excursion-head { padding-top: 26px; }
.excursion-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #7b857d;
  font-size: 11px;
}
.excursion-breadcrumb a { color: var(--green); font-weight: 600; }
.excursion-breadcrumb a:hover { text-decoration: underline; }

.excursion-head h1 {
  margin: 0 0 16px;
  font: 700 clamp(27px, 3.6vw, 42px) / 1.14 Manrope, sans-serif;
  letter-spacing: -1.4px;
  max-width: 21ch;
}

.excursion-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; }
.excursion-fact { color: var(--muted); font-size: 12px; }
.excursion-rating { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.excursion-rating strong { font-size: 13px; }
.excursion-reviews { color: var(--muted); }

/* Fractional star fill: the filled row is clipped to the rating percentage. */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; }
.stars-base { color: #d5dbd2; }
.stars-fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; color: #f0a92e; }

.excursion-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.excursion-badge {
  padding: 6px 12px;
  border-radius: 30px;
  background: #eef4ea;
  color: #35563a;
  font-size: 10px;
  font-weight: 700;
}
.excursion-badge.badge-soft { background: var(--lime); color: var(--green-dark); }

/* Gallery ---------------------------------------------------------------- */
.excursion-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  margin-top: 24px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #e9ece5;
}
.excursion-gallery.is-empty { display: block; height: 320px; }
.gallery-main {
  grid-row: 1 / -1;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0; }
.gallery-thumb { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-thumb:hover img { transform: scale(1.04); }
.excursion-gallery-placeholder { display: grid; place-items: center; height: 100%; }
.excursion-gallery-placeholder span { color: #9aa59c; font-size: 13px; font-weight: 600; }

/* Layout ----------------------------------------------------------------- */
.excursion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 40px;
  align-items: start;
  padding-block: 40px 20px;
}
.excursion-content { display: grid; gap: 22px; min-width: 0; }

.excursion-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.excursion-card h2 {
  margin: 0 0 15px;
  font: 700 20px/1.3 Manrope, sans-serif;
  letter-spacing: -.5px;
}
.excursion-card h3 { margin: 0 0 11px; font: 700 14px/1.3 Manrope, sans-serif; }
.excursion-card p { margin: 0 0 13px; color: #4e5a52; font-size: 13px; line-height: 1.75; }
.excursion-card p:last-child { margin-bottom: 0; }
.excursion-note {
  padding: 12px 15px;
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: #fdf5ef;
}

.excursion-highlights { background: #f7f9f2; border-color: #e2e9d3; }
.excursion-highlights ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.excursion-highlights li { position: relative; padding-left: 25px; color: #3d4a41; font-size: 13px; line-height: 1.6; }
.excursion-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #6f8c4a;
  font-weight: 800;
}

.excursion-timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.excursion-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding-bottom: 20px;
  color: #4e5a52;
  font-size: 13px;
  line-height: 1.6;
}
.excursion-timeline li:last-child { padding-bottom: 0; }
.excursion-timeline li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.excursion-timeline li:last-child::before { display: none; }
.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.excursion-inclusions { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.excursion-inclusions ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.excursion-inclusions li { position: relative; padding-left: 22px; color: #4e5a52; font-size: 12.5px; line-height: 1.6; }
.tick { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 7px; border-radius: 50%; font-size: 9px; vertical-align: -3px; }
.tick-yes { background: #e3f0e0; color: #3d7a34; }
.tick-no { background: #fbe9e4; color: #a3492b; }
.excursion-inclusions li::before { content: "•"; position: absolute; left: 6px; color: #a9b3aa; }

.excursion-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0 0 6px; }
.excursion-facts dt { color: #8a938c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; }
.excursion-facts dd { margin: 4px 0 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.excursion-meeting { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.excursion-meeting p { font-size: 12.5px; }

/* Booking card ----------------------------------------------------------- */
.excursion-aside { position: sticky; top: 22px; display: grid; gap: 12px; }
.booking-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.booking-price { display: grid; gap: 3px; margin-bottom: 19px; }
.price-prefix { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.booking-price strong { font: 800 30px/1.05 Manrope, sans-serif; letter-spacing: -1.2px; }
.booking-price span { color: var(--muted); font-size: 11px; }

.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-fields-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.booking-fields label {
  display: grid;
  gap: 6px;
  color: #59665c;
  font-size: 10px;
  font-weight: 700;
}
.booking-fields .optional { font-weight: 400; color: #889188; }
.booking-fields input,
.booking-fields select,
.booking-fields textarea {
  width: 100%;
  border: 1px solid #dfe5dc;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: 400 13px 'DM Sans', sans-serif;
  outline: 0;
}
.booking-fields input:focus,
.booking-fields select:focus,
.booking-fields textarea:focus { border-color: #90a48d; box-shadow: 0 0 0 3px rgba(145, 167, 140, .13); }
.booking-fields textarea { resize: vertical; }
.field-wide { grid-column: 1 / -1; }

.booking-card h2 { margin: 0; font: 700 13px/1.3 Manrope, sans-serif; color: var(--ink); }
.booking-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.booking-total span { color: var(--muted); font-size: 11px; font-weight: 700; }
.booking-total strong { font: 800 20px/1 Manrope, sans-serif; letter-spacing: -.6px; }
.booking-live-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.booking-live-note.is-error { color: #a3492b; }
.booking-submit { width: 100%; margin-top: 17px; }
.booking-submit:disabled { opacity: .65; cursor: wait; }
.booking-card .form-feedback { margin: 11px 0 0; color: #365f44; font-size: 12px; line-height: 1.6; }
.booking-card .form-feedback.is-error { color: #a3492b; }
.booking-reassurance { margin: 14px 0 0; color: #8a938c; font-size: 10px; line-height: 1.7; text-align: center; }
.booking-help { color: var(--green); font-size: 12px; font-weight: 700; text-align: center; }

/* Related excursions ----------------------------------------------------- */
.excursion-related { padding-block: 62px 78px; background: var(--sand); margin-top: 40px; }
.tour-link { display: block; height: 100%; }
.tour-link:hover { text-decoration: none; }
.text-link-dark { color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Lightbox --------------------------------------------------------------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  background: rgba(12, 26, 21, .94);
  padding: 24px;
}
.gallery-lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox-figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox-figure figcaption { color: rgba(255, 255, 255, .7); font-size: 12px; }
.lightbox-nav,
.lightbox-close {
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.lightbox-nav { width: 46px; height: 46px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; font-size: 16px; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .24); }

.excursion-missing { padding-block: 90px; text-align: center; }
.excursion-missing h1 { font: 700 34px/1.2 Manrope, sans-serif; letter-spacing: -1px; margin: 0 0 12px; }
.excursion-missing p { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .excursion-layout { grid-template-columns: 1fr; gap: 26px; }
  .excursion-aside { position: static; order: -1; }
  .excursion-head h1 { max-width: none; }
}

@media (max-width: 720px) {
  .excursion-gallery { grid-template-columns: 1fr; grid-template-rows: 260px auto; height: auto; }
  .gallery-main { grid-row: auto; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: 84px; }
  .excursion-card { padding: 20px 18px; }
  .excursion-inclusions, .excursion-facts { grid-template-columns: 1fr; gap: 18px; }
  .booking-fields { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .excursion-related { padding-block: 44px 54px; }
  .gallery-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 12px; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 18px; }
}
