/* =================
Single Page Hero Banner
==================*/
.hero-single-wrapper {
  position: relative;
  overflow: visible;
  z-index: 0;
}

.hero-single-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -300px;
  width: 100%;
  height: 100%;
  background: url("../images/single-pages/about-bg.png") 0 0 no-repeat;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

.hero-single-wrapper .hero-single {
  height: 60vh;
  height: 60svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-single-wrapper .hero-image {
  position: absolute;
  inset: 0;
  max-width: 100%;
  z-index: 3;
  height: 100%;
  overflow: hidden;
}

/* ← KEY: default image anchors to center-top */
.hero-single-wrapper .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center ; /* image stays pinned to top */
  display: block;
}

.hero-single-wrapper .hero-inner-single {
  text-align: left;
  z-index: 3;
  width: 100%;
  padding-bottom: 50px;
}

.hero-single-wrapper .hero-inner-single h1 {
  font-family: var(--secondary-font);
  color: #fff;
  letter-spacing: -2%;
  font-size: 66px;
  font-weight: 600;
  line-height: 66px;
}

/* Breadcrumb inside wrapper */
.hero-single-wrapper .breadcrumb {
  position: relative;
  z-index: 4;
}

/* Page-specific modifiers */
.hero-single--destination {
  height: 80vh;
  height: 80svh;
}
.hero-single--destination .hero-image img {
  object-position: center 25%;
}

.hero-single--blog {
  height: 55vh;
  height: 55svh;
}

.hero-single--blog-single {
  height: 62vh;
  height: 62svh;
}

/* =============
Single Page Breadcrumb 
===============*/
.hero-single-wrapper .breadcrumb {
  margin-bottom: 0;
}
.scenic-container-xlarge.breadcrumb {
  background: rgba(236, 236, 236, 1);
}

.breadcrumb.single {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  font-family: var(--primary-font);
  font-size: 16px;
  font-weight: 500;
}

.breadcrumb.single a {
  color: rgba(48, 48, 48, 1);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb.single a:hover {
  color: var(--primary);
}

.breadcrumb.single span {
  color: rgba(48, 48, 48, 1);
}

.breadcrumb.single .active {
  color: var(--secondary);
}

/* =================
Responsive Styles
==================*/

/* Large Desktop (1200px and below) */
@media (max-width: 1200px) {
  .hero-single-wrapper .hero-inner-single h1 {
    font-size: 56px;
    line-height: 58px;
  }
}

/* Tablet Landscape (992px and below) */
@media (max-width: 992px) {
  .hero-single-wrapper .hero-single {
    height: 50vh;
    height: 50svh;
  }

  .hero-single-wrapper .hero-inner-single h1 {
    font-size: 46px;
    line-height: 50px;
  }

  .hero-single-wrapper .hero-inner-single {
    padding-bottom: 36px;
  }

  .hero-single--destination {
    height: 65vh;
    height: 65svh;
  }

  .hero-single--blog {
    height: 45vh;
    height: 45svh;
  }

  .hero-single--blog-single {
    height: 50vh;
    height: 50svh;
  }

  .hero-single-wrapper::after {
    bottom: -200px;
    background-size: contain;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .hero-single-wrapper .hero-single {
    /* Switch from vh to a fixed min-height so banner stays tall */
    height: auto;
    min-height: 420px;
  }

  .hero-single-wrapper .hero-image img {
    /* Re-anchor to top on tablet so subject stays visible */
    object-position: center top;
  }

  .hero-single-wrapper .hero-inner-single h1 {
    font-size: 38px;
    line-height: 42px;
  }

  .hero-single-wrapper .hero-inner-single {
    padding-bottom: 28px;
  }

  .hero-single--destination {
    min-height: 500px;
  }
  .hero-single--destination .hero-image img {
    /* Preserve the 25% offset on destination pages */
    object-position: center 25%;
  }

  .hero-single--blog {
    min-height: 360px;
  }

  .hero-single--blog-single {
    min-height: 400px;
  }

  .breadcrumb.single {
    font-size: 14px;
    padding: 14px 16px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .hero-single-wrapper::after {
    bottom: -120px;
    opacity: 0.4;
  }
}

/* Mobile Large (576px and below) */
@media (max-width: 576px) {
  .hero-single-wrapper .hero-single {
    min-height: 360px;
  }

  .hero-single-wrapper .hero-image img {
    object-position: center top;
  }

  .hero-single-wrapper .hero-inner-single h1 {
    font-size: 30px;
    line-height: 34px;
  }

  .hero-single-wrapper .hero-inner-single {
    padding-bottom: 22px;
  }

  .hero-single--destination {
    min-height: 420px;
  }

  .hero-single--blog {
    min-height: 300px;
  }

  .hero-single--blog-single {
    min-height: 340px;
  }

  .hero-single-wrapper::after {
    bottom: -80px;
    opacity: 0.3;
  }

  .breadcrumb.single {
    font-size: 13px;
    padding: 12px 14px;
    gap: 5px;
  }
}

/* Mobile Small (400px and below) */
@media (max-width: 400px) {
  .hero-single-wrapper .hero-single {
    min-height: 300px;
  }

  .hero-single-wrapper .hero-inner-single h1 {
    font-size: 26px;
    line-height: 30px;
  }

  .hero-single-wrapper .hero-inner-single {
    padding-bottom: 18px;
  }

  .breadcrumb.single {
    font-size: 12px;
    padding: 10px 12px;
  }
}
