/* Index page — match inner pages typography & header */
#site-root {
  --font-body: "Montserrat", sans-serif;
  --font-headings: "Cinzel", serif;
  font-family: "Montserrat", sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

#site-root main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

#site-root section {
  box-sizing: border-box;
}

/* Align section content with header (logo → nav), 1280px max */
#site-root .qbh-index-container,
#site-root .max-w-\[1280px\].mx-auto.px-8 {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

#site-root img,
#site-root video {
  max-width: 100%;
  height: auto;
}

#hero-bg {
  overflow: hidden;
  pointer-events: none;
}

#site-root .font-headings,
#site-root h1,
#site-root h2,
#site-root h3,
#site-root h4,
#site-root .qbh-logo {
  font-family: "Cinzel", serif !important;
}

/* Unified header on homepage (over hero) */
#site-root > .qbh-header.qbh-header--hero {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: none;
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}

#site-root > .qbh-header.qbh-header--hero .qbh-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

#site-root > .qbh-header.qbh-header--hero.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0a0a0a !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#site-root > .qbh-footer.qbh-site-footer {
  position: relative;
  z-index: 20;
  width: 100%;
}

/* Hero planner bar — full content width (logo to nav button alignment) */
#hero #hero-search-bar {
  width: 100%;
  max-width: 1280px;
  align-self: stretch;
  box-sizing: border-box;
}

/* Pilgrim Stories — YouTube video (center card) */
.qbh-story-video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.qbh-story-video.is-playing {
  border-color: rgba(248, 196, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(248, 196, 0, 0.2);
}

.qbh-story-video-embed {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  background: #000;
}

.qbh-story-video.is-playing .qbh-story-video-embed {
  display: block !important;
}

.qbh-story-video-iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border: 0;
  display: block;
  background: #000;
}

.qbh-story-video-play.hidden,
.qbh-story-video-poster.hidden {
  display: none !important;
}

/* Hero offer cards — stack on mobile */
#hero-offers-grid {
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  #hero-offers-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #hero-offers-grid .qbh-offer-card {
    height: auto !important;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  #hero {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  #hero-offers-grid .qbh-offer-card {
    min-height: 200px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero-offers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #hero-offers-grid .qbh-offer-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

/* ——— Mobile carousels (Pilgrim Stories, Blogs, Gallery) ——— */
.qbh-mobile-carousel-nav {
  display: none;
}

.qbh-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.qbh-carousel-btn:hover:not(:disabled) {
  border-color: #f8c400;
  background: rgba(248, 196, 0, 0.12);
  color: #f8c400;
}

.qbh-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qbh-carousel-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a0a0a0;
  min-width: 3.5rem;
  text-align: center;
}

/* Premium Accommodations */
.qbh-accommodations-tabs {
  width: 100%;
}

.qbh-accommodations-tab {
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
  color: #a0a0a0;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.qbh-accommodations-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.qbh-accommodations-tab.is-active,
.qbh-accommodations-tab.is-active:hover {
  background: #f8c400;
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(248, 196, 0, 0.25);
}

#accommodations .qbh-accommodation-details {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

#accommodations .qbh-accommodation-details:hover {
  background: #fff !important;
  color: #0a0a0a !important;
  border-color: #fff !important;
}

#accommodations .qbh-accommodations-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  color: #0a0a0a !important;
  background: #fff;
  border: 1px solid #fff;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

#accommodations .qbh-accommodations-view-all:hover {
  background: #e8e8e8 !important;
  color: #0a0a0a !important;
  border-color: #e8e8e8 !important;
}

.qbh-accommodations-empty.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .qbh-accommodations-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0;
  }

  .qbh-accommodations-tab {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.8rem;
  }

  #accommodations .qbh-accommodations-grid.qbh-mobile-carousel-track {
    min-height: 380px;
  }

  #accommodations .qbh-mobile-carousel-slide {
    height: 380px;
  }

  #blog .qbh-section-head-row,
  #gallery .qbh-section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  #blog .qbh-section-head-row button,
  #gallery .qbh-section-head-row a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .qbh-mobile-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .qbh-mobile-carousel-viewport {
    overflow: hidden;
    width: 100%;
  }

  .qbh-mobile-carousel.is-carousel-active .qbh-mobile-carousel-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .qbh-mobile-carousel.is-carousel-active .qbh-mobile-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .qbh-mobile-carousel.is-carousel-active .qbh-gallery-carousel-track {
    height: auto !important;
    min-height: 0;
  }

  .qbh-mobile-carousel.is-carousel-active .qbh-gallery-carousel-track .qbh-mobile-carousel-slide {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 260px;
    max-height: 72vw;
  }

  .qbh-mobile-carousel.is-carousel-active .qbh-gallery-carousel-track .qbh-mobile-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Index footer on mobile */
  #site-root .qbh-site-footer {
    padding: 2.5rem 0 1.25rem;
    overflow-x: clip;
  }

  #site-root .qbh-site-footer .qbh-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #site-root .qbh-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  #site-root .qbh-footer-col-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #site-root .qbh-footer-tagline {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  #site-root .qbh-footer-social {
    justify-content: center;
  }

  #site-root .qbh-footer-col h4 {
    margin-bottom: 0.75rem;
  }

  #site-root .qbh-footer-contact-row {
    justify-content: center;
    text-align: left;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  #site-root .qbh-footer-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  #site-root .qbh-footer-meta p {
    margin: 0;
  }

  #site-root .qbh-footer-brand {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    overflow: hidden;
  }

  #site-root .qbh-footer-brand span {
    font-size: clamp(2.25rem, 16vw, 4.5rem);
    display: block;
    line-height: 0.9;
  }
}

.qbh-google-reviews-wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* Testimonials — Google-style review cards */
.qbh-testimonials-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e5e5;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qbh-testimonials-google-badge iconify-icon {
  color: #f8c400;
}

.qbh-testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111111;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.qbh-testimonial-card:hover {
  border-color: rgba(248, 196, 0, 0.3);
  background: #141414;
}

.qbh-testimonial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.qbh-testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 196, 0, 0.12);
  border: 1px solid rgba(248, 196, 0, 0.25);
  color: #f8c400;
  font-size: 0.95rem;
  font-weight: 700;
}

.qbh-testimonial-meta {
  flex: 1;
  min-width: 0;
}

.qbh-testimonial-name {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.qbh-testimonial-trip {
  margin: 0;
  font-size: 0.75rem;
  color: #888;
}

.qbh-testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  color: #f8c400;
}

.qbh-testimonial-stars iconify-icon {
  font-size: 14px;
}

.qbh-testimonial-quote {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #c8c8c8;
}

.qbh-testimonial-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #777;
}

.qbh-testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #a0a0a0;
}

.qbh-testimonials-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  color: #0a0a0a !important;
  background: #fff;
  border: 1px solid #fff;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.qbh-testimonials-load-more:hover {
  background: #e8e8e8 !important;
  color: #0a0a0a !important;
  border-color: #e8e8e8 !important;
}

@media (max-width: 768px) {
  #testimonials .qbh-testimonial-card {
    min-height: 280px;
  }
}

.qbh-google-reviews-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.qbh-google-reviews-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.qbh-google-reviews-link-wrap {
  text-align: center;
  margin-top: 1.25rem;
}
