.hero-shell {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 950px;
  overflow: hidden;
  background-color: #f3f3f3;
}

.hero-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.hero-loader .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--main-color);
}

.hero-shell.is-ready .hero-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-swiper-v2 {
  --swiper-navigation-color: var(--main-color);
  --swiper-pagination-color: var(--main-color);
  --swiper-pagination-bullet-inactive-color: #8a7e7e;
  --swiper-pagination-bullet-inactive-opacity: 1;

  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-shell.is-ready .hero-swiper-v2 {
  opacity: 1;
}

.hero-swiper-v2 .text-shadow {
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25) !important;
}

.hero-swiper-v2 .swiper-wrapper,
.hero-swiper-v2 .swiper-slide {
  height: 100%;
}

.hero-swiper-v2 .swiper-slide {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-swiper-v2 picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-swiper-v2 .hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Gradient */
.hero-swiper-v2 .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.15) 60%, transparent);
  pointer-events: none;
}

/* Roofline pattern */
.hero-swiper-v2 .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("https://www.sanrufohomes.com/image-uploads/hero-roofline-pattern.svg") left bottom / cover no-repeat;
  opacity: 0.75;
  pointer-events: none;
}

.hero-swiper-v2 .hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 650px;
  min-width: 0;
}

.hero-swiper-v2 .hero-content :is(h1, h2) {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  overflow-wrap: break-word;
}

.hero-swiper-v2 .hero-title-sub {
  font-size: clamp(1.1rem, 2.6vw, 2rem);
}

/* Desktop pagination */
.hero-swiper-v2 .swiper-pagination {
  top: 50% !important;
  bottom: auto !important;
  left: 35px !important;
  width: auto !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.hero-swiper-v2 .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
}

/* Desktop navigation */
.hero-swiper-v2 .swiper-navigation {
  position: absolute;
  top: 50%;
  right: 35px;
  z-index: 10;
  flex-direction: column;
  gap: 15px;
  transform: translateY(-50%);
}

.hero-swiper-v2 .swiper-navigation [class*="swiper-button-"] {
  position: static;
  width: 30px;
  height: 30px;
  margin: 0;
}

.hero-swiper-v2 .swiper-navigation [class*="swiper-button-"]::after {
  font-size: 20px;
}

.hero-swiper-v2 .swiper-navigation svg {
  display: none;
}

@media (max-width: 767.98px) {
  .hero-shell {
    height: 75vh;
    height: 75svh;
    min-height: 500px;
    max-height: 760px;
  }

  .hero-swiper-v2 .hero-img {
    object-position: 65% center;
  }

  .hero-swiper-v2 .swiper-slide::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.08) 75%);
  }

  .hero-swiper-v2 .swiper-slide::after {
    background-size: auto 100%;
  }

  .hero-swiper-v2 .hero-content {
    padding-bottom: 2rem;
  }

  .hero-swiper-v2 .hero-content :is(h1, h2) {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .hero-swiper-v2 .hero-title-sub {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .hero-swiper-v2 .theme-btn {
    max-width: 100%;
    white-space: normal;
  }

  .hero-swiper-v2 .swiper-pagination {
    top: auto !important;
    bottom: 20px !important;
    left: 50% !important;
    width: auto !important;
    flex-direction: row;
    gap: 8px;
    transform: translateX(-50%);
  }
}

@media (max-width: 575.98px) and (max-height: 700px) {
  .hero-shell {
    height: 82svh;
    min-height: 460px;
  }

  .hero-swiper-v2 .hero-content {
    padding-bottom: 1.5rem;
  }

  .hero-swiper-v2 .hero-content :is(h1, h2) {
    margin-bottom: 1rem !important;
  }
}
