/*
 * Tour page booking UX (hu, 2026-10-04): review quote near the top and the
 * price in the mobile booking bar. Loaded on single tours after
 * child-theme.min.css. The bar itself (#reservation-button-mobile) is styled
 * and shown/hidden by child-theme.css and js/post-top.js; jQuery fadeIn sets
 * display:block on the wrapper, so layout lives on the inner .eshu-bar.
 */

.eshu-bar {
  display: block;
}

.eshu-bar__price {
  display: none;
}

/* Review quote */
.eshu-quote {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 46rem;
  margin: 0 0 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #1976d2;
  border-radius: 0 4px 4px 0;
  background: #f8f9fa;
  color: #212529;
}

.eshu-quote__label {
  color: #5f6b76;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eshu-quote__stars {
  color: #b07d00;
  font-size: 0.85rem;
}

.eshu-quote__stars i {
  margin-right: 2px;
}

.eshu-quote__text {
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}

.eshu-quote__author {
  color: #5f6b76;
  font-size: 0.85rem;
}

.eshu-quote__link {
  align-self: flex-start;
  color: #175a9d;
  font-size: 0.9rem;
  font-weight: bold;
}

.eshu-quote__link:hover,
.eshu-quote__link:focus {
  color: #0d3f70;
}

/* Land the reviews heading below the fixed top bar (desktop, 2 rows). */
#tour-section--testimonials {
  scroll-margin-top: 1rem;
}

@media screen and (min-width: 821px) {
  #tour-section--testimonials {
    scroll-margin-top: 140px;
  }
}

/* Mobile booking bar: price (label over amount) + button */
@media screen and (max-width: 820px) {
  #reservation-button-mobile {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .eshu-bar {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .eshu-bar__price {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    min-width: 0;
    color: #212529;
    font-size: 0.85em;
    line-height: 1.2;
  }

  .eshu-bar__amount {
    white-space: nowrap;
  }

  .eshu-bar__unit {
    font-size: 0.85em;
  }

  .eshu-bar .reservation-button-blue {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 5px 10px;
    line-height: 1.2;
  }

  /* Keep the end of the page reachable above the fixed bar. */
  body.single-tours {
    padding-bottom: 72px;
  }
}

/* Related tours: three cards per row at 768-991 px (col-md-4), so the fourth
   would wrap alone onto a second row (iPad mini portrait). Show three there. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .row--single-tour-cards > .col-card:nth-child(n+4) {
    display: none;
  }
}
