/* Wordmark is a genuine SVG outline and contains no standalone star icon. */
.site-header .brand .logo-wordmark,
.site-footer .brand .logo-wordmark {
  display: block;
  width: 174px;
  height: auto;
  max-height: 74px;
  max-width: none;
}
.site-footer .brand .logo-wordmark {width: 192px;}
@media(max-width: 640px) {
  .site-header .brand .logo-wordmark {width: 137px;}
  .site-footer .brand .logo-wordmark {width: 167px;}
}
@media(max-width: 360px) {
  .site-header .brand .logo-wordmark {width: 124px;}
}

/* Imported small editorial photos/icons must retain their natural dimensions.
   The full-width Gutenberg and tour galleries have their own layout rules. */
.inner-body .ex-text img,
.inner-body .ex-item-image figure img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

/* Equal-height excursion cards: long titles no longer push the booking CTA
   lower than the neighbouring cards in the same row. */
.ex-posts .archive-grid > .tour-card,
.ex-cards > .tour-card {
  height: 100%;
}
.ex-posts .tour-card .card-body,
.ex-cards .tour-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.ex-posts .tour-card .card-body > .excurs-modal-trigger,
.ex-cards .tour-card .card-body > .excurs-modal-trigger {
  margin-top: auto !important;
  margin-bottom: 14px;
  width: 100%;
}
.ex-posts .tour-card .card-body > .card-details,
.ex-cards .tour-card .card-body > .card-details {
  margin-top: 0 !important;
}
.ex-posts .tour-card .card-body > .card-price,
.ex-cards .tour-card .card-body > .card-price {
  margin-top: 0 !important;
}

/* Booking and Viber are separate fixed controls. Hide only the larger booking
   CTA near the footer; Viber must remain available on every scroll position. */
.excurs-floating-cta {
  right: 98px !important;
}
body.excurs-footer-visible .excurs-floating-cta {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px);
}
/* Keep the floating booking button off the first homepage screen. */
body.home:not(.excurs-hero-passed) .excurs-floating-cta {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Reserve space for the persistent Viber bubble beside footer social links. */
.site-footer .footer-grid > :last-child {
  padding-right: 88px;
}
@media (max-width: 640px) {
  .excurs-floating-cta {
    right: 80px !important;
    max-width: calc(100vw - 102px);
  }
  .excurs-floating-cta .excurs-modal-trigger {
    max-width: 100%;
  }
  .site-footer .footer-grid > :last-child {
    padding-right: 72px;
  }
}
