/* Mystic Mountain Travelers — global typography utilities */

.font-display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

h1,
h2,
.text-balance {
  text-wrap: balance;
}

.prose-marketing {
  max-width: 65ch;
}

.prose-marketing p {
  line-height: 1.6;
}

.tour-content {
  color: rgb(55 65 81);
  line-height: 1.75;
  max-width: 65ch;
}

.tour-content p {
  margin-bottom: 1.25rem;
}

.tour-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(6 78 59);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.tour-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.75rem;
  margin-bottom: 2rem;
}

.tour-highlights__label {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(6 95 70);
  flex-shrink: 0;
}

.tour-highlights__list {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tour-highlights__item {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.875rem;
  border: 2px solid rgb(167 243 208);
  border-radius: 0.75rem;
  background-color: rgb(236 253 245);
  color: rgb(6 78 59);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
}

.tour-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(6 95 70);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.tour-content ul,
.tour-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.tour-content ul {
  list-style-type: disc;
}

.tour-content ol {
  list-style-type: decimal;
}

.tour-content li {
  margin-bottom: 0.5rem;
}

.tour-content a {
  color: rgb(4 120 87);
  font-weight: 500;
  text-decoration: underline;
}

.tour-content a:hover {
  color: rgb(6 78 59);
}

.tour-content strong {
  font-weight: 600;
  color: rgb(31 41 55);
}

.article-content {
  color: rgb(55 65 81);
  line-height: 1.75;
  max-width: 65ch;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: rgb(6 78 59);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: rgb(6 95 70);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content a {
  color: rgb(4 120 87);
  font-weight: 500;
  text-decoration: underline;
}

.article-content a:hover {
  color: rgb(6 78 59);
}

.article-content strong {
  font-weight: 600;
  color: rgb(31 41 55);
}

.article-content em {
  font-style: italic;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(209 250 229);
  border-radius: 0.75rem;
  background: rgb(236 253 245);
  color: rgb(55 65 81);
  font-style: italic;
}

.article-content code {
  font-size: 0.9em;
  background: rgb(236 253 245);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

.article-content pre {
  background: rgb(243 244 246);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.article-content pre code {
  background: transparent;
  padding: 0;
}

.legal-content {
  color: rgb(55 65 81);
  line-height: 1.75;
}

.legal-content > section + section,
.legal-content > section + p,
.legal-content > p + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(243 244 246);
}

.legal-content section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  margin-bottom: 0;
}

.legal-content p + p {
  margin-top: 1rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(6 78 59);
  margin-bottom: 1rem;
}

.legal-content h2 + p,
.legal-content h2 + ul,
.legal-content h2 + ol,
.legal-content h2 + div {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(6 95 70);
  margin-bottom: 0.625rem;
}

.legal-content .legal-subsection + .legal-subsection {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(249 250 251);
}

.legal-content .legal-subsection:first-child h3 {
  margin-top: 0;
}

.legal-content ul,
.legal-content ol {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
}

.legal-content h2 + ul,
.legal-content h2 + ol {
  margin-top: 0.5rem;
}

.legal-content p + ul,
.legal-content p + ol {
  margin-top: 0.75rem;
}

.legal-content ul + p,
.legal-content ol + p {
  margin-top: 1.25rem;
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-content li + li {
  margin-top: 0.625rem;
}

.legal-content a {
  color: rgb(4 120 87);
  font-weight: 500;
}

.legal-content a:hover {
  color: rgb(6 78 59);
}

.legal-content strong {
  font-weight: 600;
  color: rgb(31 41 55);
}

.legal-content .legal-list-plain {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.legal-content .legal-list-plain li + li {
  margin-top: 1.25rem;
}

.legal-content .legal-list-plain strong {
  display: block;
  margin-bottom: 0.375rem;
}

.legal-content .legal-table-wrap {
  margin-top: 0.75rem;
}

.legal-content > p.legal-footnote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(243 244 246);
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

.about-content {
  color: rgb(55 65 81);
  line-height: 1.75;
  max-width: 65ch;
}

.about-content p {
  margin-bottom: 0;
}

.about-content p + p {
  margin-top: 1rem;
}

.about-content a {
  color: rgb(4 120 87);
  font-weight: 500;
}

.about-content a:hover {
  color: rgb(6 78 59);
}

.about-content strong {
  font-weight: 600;
  color: rgb(31 41 55);
}

.tourSwiper {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.tourSwiper .swiper-slide {
  height: 100%;
}

/* Override Swiper defaults on tour gallery only (see .tourSwiper above). */

/* Reviews — native horizontal scroll (no Swiper) */

.reviews-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.25rem;
}

.reviews-scroll:focus-visible {
  outline: 2px solid rgb(249 115 22);
  outline-offset: 4px;
  border-radius: 1rem;
}

/* Mobile: one full card per view (arrows sit in side gutters) */
.reviews-scroll__item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reviews-scroll::-webkit-scrollbar {
  display: none;
}

.reviews-carousel {
  padding-inline: 2.75rem;
}

.reviews-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.75rem;
  border: 1px solid rgb(229 231 235);
  background: rgb(255 255 255);
  color: rgb(6 95 70);
  box-shadow: 0 4px 12px rgb(6 78 59 / 0.08);
  transform: translateY(-50%);
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.reviews-carousel__btn:hover {
  background: rgb(236 253 245);
  color: rgb(4 120 87);
}

.reviews-carousel__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.reviews-carousel__btn:focus-visible {
  outline: 2px solid rgb(249 115 22);
  outline-offset: 2px;
}

.reviews-carousel__btn--prev {
  left: 0;
}

.reviews-carousel__btn--next {
  right: 0;
}

@media (min-width: 768px) {
  .reviews-carousel {
    padding-inline: 0;
  }

  .reviews-scroll {
    gap: 1.25rem;
    scroll-padding-inline: 0.25rem;
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 2.25rem), transparent 100%);
  }

  .reviews-scroll__item {
    flex: 0 0 min(42vw, 22rem);
    width: min(42vw, 22rem);
    scroll-snap-stop: normal;
  }

  .reviews-carousel__btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .reviews-carousel__btn--prev {
    left: -0.5rem;
  }

  .reviews-carousel__btn--next {
    right: -0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-scroll {
    scroll-behavior: auto;
  }
}

/* Hero — entry fade (reduced-motion safe) */

.hero-section--enter {
  animation: hero-enter 600ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Desktop hero — taller than the old 2.3:1 strip; belt if Tailwind rebuild lags */
@media (min-width: 1024px) {
  .hero-section__desktop {
    aspect-ratio: 16 / 9;
    min-height: 32rem;
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Blog detail — light entry fade for header + hero image */

.article-detail--enter {
  animation: article-detail-enter 600ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.article-detail--enter-delay {
  animation-delay: 90ms;
}

@keyframes article-detail-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Why Us — editorial copy + photo; always visible (no hide-until-scroll) */

@media (min-width: 1024px) {
  #whyus .why-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Belt if a stale cached stylesheet still hides until .is-visible */
#whyus .why-us-copy,
#whyus .why-us-media,
#whyus .why-us-reveal {
  opacity: 1;
  transform: none;
}

/* Bestsellers — native horizontal scroll (no Swiper) */

.bestsellers-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.25rem;
}

@media (min-width: 768px) {
  .bestsellers-scroll {
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 2.25rem), transparent 100%);
  }
}

.bestsellers-scroll:focus-visible {
  outline: 2px solid rgb(249 115 22);
  outline-offset: 4px;
  border-radius: 1rem;
}

.bestsellers-scroll__item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.bestsellers-scroll__photo {
  aspect-ratio: 3 / 4;
  max-height: 18rem;
  width: 100%;
}

.bestsellers-scroll__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.bestsellers-scroll__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 3.875rem;
}

.bestsellers-scroll::-webkit-scrollbar {
  display: none;
}

.bestsellers-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.75rem;
  border: 1px solid rgb(229 231 235);
  background: rgb(255 255 255);
  color: rgb(6 95 70);
  box-shadow: 0 4px 12px rgb(6 78 59 / 0.08);
  transform: translateY(-50%);
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.bestsellers-carousel__btn:hover {
  background: rgb(236 253 245);
  color: rgb(4 120 87);
}

.bestsellers-carousel__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.bestsellers-carousel__btn:focus-visible {
  outline: 2px solid rgb(249 115 22);
  outline-offset: 2px;
}

.bestsellers-carousel__btn--prev {
  left: 0.25rem;
}

.bestsellers-carousel__btn--next {
  right: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .bestsellers-scroll {
    scroll-behavior: auto;
  }
}

@media (min-width: 768px) {
  .bestsellers-scroll__item {
    flex: 0 0 auto;
    width: min(42vw, 22rem);
    scroll-snap-align: start;
  }

  .bestsellers-scroll__photo {
    aspect-ratio: 4 / 5;
    max-height: 20.125rem;
  }

  .bestsellers-scroll__description {
    -webkit-line-clamp: 4;
    min-height: 5.25rem;
  }

  .bestsellers-carousel__btn--prev {
    left: -0.5rem;
  }

  .bestsellers-carousel__btn--next {
    right: -0.5rem;
  }
}

/* Card hover — unified listing motion (review-animations) */

.card-hover {
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    transform: translateY(-2px);
  }

  .card-hover-elevate-md:hover {
    box-shadow:
      0 10px 15px -3px rgb(0 0 0 / 0.1),
      0 4px 6px -4px rgb(0 0 0 / 0.1);
  }

  .card-hover-elevate-lg:hover {
    box-shadow:
      0 25px 50px -12px rgb(0 0 0 / 0.25);
  }
}

/* FAQ accordion — grid-rows expand (GPU-friendly, no max-height) */

#faq-accordion .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

#faq-accordion .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

#faq-accordion .faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

#faq-accordion .faq-panel[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel {
    transition: none;
  }

  .faq-icon {
    transition: none !important;
  }
}

/* Button components (see templates/includes/btn_*.html) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.75rem;
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background-color: rgb(249 115 22);
  color: #fff;
}

.btn-primary:hover {
  background-color: rgb(234 88 12);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(249 115 22);
}

.btn-secondary {
  background-color: rgb(4 120 87);
  color: #fff;
}

.btn-secondary:hover {
  background-color: rgb(6 95 70);
}

.btn-secondary:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(4 120 87);
}

.btn-outline {
  background-color: transparent;
  color: rgb(4 120 87);
  border: 1px solid rgb(4 120 87);
}

.btn-outline:hover {
  background-color: rgb(236 253 245);
}

.btn-outline:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(4 120 87);
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  transform: none;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.75rem;
  color: rgb(31 41 55);
}

.input-field:focus {
  outline: none;
}

.input-field:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(16 185 129);
}

html {
  scroll-behavior: smooth;
}

/* Homepage — anchor targets clear sticky header */

#whyus,
#bestsellers,
#reviews,
#stories {
  scroll-margin-top: 5.5rem;
}

@media (min-width: 768px) {
  #whyus,
  #bestsellers,
  #reviews,
  #stories {
    scroll-margin-top: 6rem;
  }
}

/* Homepage — single subtle tint (reviews); other sections stay white */

.home-section--tint {
  background-color: rgb(236 253 245 / 0.45);
}

/* Header — scroll-shrink compact height */

/* Always-compact header (fixed short bar; no scroll shrink). */
.site-header {
  box-shadow: 0 1px 10px rgb(6 78 59 / 0.08);
}

.site-header__bar {
  height: 3.25rem;
}

.site-header img {
  height: 2rem;
}

.site-header__name {
  font-size: 1.0625rem;
}

.site-header__tagline {
  display: none;
}

.site-header .btn {
  padding: 0.5rem 1rem;
}

.site-header ~ #mobile-menu {
  top: 3.25rem;
}

@media (min-width: 768px) {
  .site-header__bar {
    height: 3.5rem;
  }

  .site-header ~ #mobile-menu {
    top: 3.5rem;
  }
}

/* Footer — wave transition from page into emerald */

.site-footer__wave {
  line-height: 0;
}

.site-footer__wave svg {
  display: block;
}

/* Floating contact actions — fixed bottom-right */

.contact-fab {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

body.has-mobile-booking-bar .contact-fab {
  bottom: 5.25rem;
}

@media (min-width: 1024px) {
  body.has-mobile-booking-bar .contact-fab {
    bottom: 1.25rem;
  }
}

.contact-fab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgb(255 255 255);
  color: rgb(4 120 87);
  border: 1px solid rgb(229 231 235);
  box-shadow: 0 4px 14px rgb(6 78 59 / 0.12);
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1),
    color 200ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-fab__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(6 78 59 / 0.16);
}

.contact-fab__btn:active {
  transform: scale(0.96);
}

.contact-fab__btn:focus-visible {
  outline: 2px solid rgb(249 115 22);
  outline-offset: 2px;
}

.contact-fab__btn--whatsapp {
  color: rgb(37 211 102);
}

.contact-fab__btn--whatsapp:hover {
  border-color: rgb(187 247 208);
  color: rgb(22 163 74);
}

.contact-fab__btn--message:hover {
  color: rgb(6 95 70);
  border-color: rgb(167 243 208);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-section--enter {
    animation: none;
  }

  .article-detail--enter {
    animation: none;
  }

  .contact-fab__btn {
    transition: none !important;
  }

  .contact-fab__btn:hover,
  .contact-fab__btn:active {
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
  }

  .card-hover {
    transition: none !important;
  }

  .card-hover:hover {
    transform: none !important;
  }

  .btn {
    transition-duration: 150ms !important;
    transition-property: color, background-color, border-color, opacity, box-shadow !important;
  }

  .btn:active:not(:disabled) {
    transform: none;
  }
}

/* GLightbox: keep description bar compact if a title/desc is ever set again.
   Without third-party inline styles (CSP), the default bar can stretch full viewport. */
.glightbox-container .gslide-description {
  max-width: min(40rem, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.glightbox-container .gdesc-inner {
  width: auto;
  max-width: 100%;
  padding: 0.75rem 1rem;
  text-align: center;
}
