/*
 * Pool & Spa page-specific layout.
 * Keep this file separate from the shared theme styles so the legacy pages
 * and other developers' work are not overwritten.
 */

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .text-cl-text:first-child {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .text-cl-text:first-child
  h3 {
  margin: 0 0 1.875rem !important;
  color: var(--cl-main) !important;
  font-family: var(--font-heading) !important;
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-transform: none !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .text-cl-text:first-child
  p {
  margin: 0 !important;
  color: var(--cl-text) !important;
  /* font-family: var(--font-heading) !important; */
  font-size: 1rem !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .wellness-spa-menu {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 3.75rem;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  .wellness-spa-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgb(168, 56, 41) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  .wellness-spa-menu-link
  img {
  display: block;
  width: 1.75rem;
  height: auto;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  .wellness-spa-menu-link:hover,
.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  .wellness-spa-book-link:hover {
  color: var(--cl-navy) !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .spa-photo-gallery {
  margin-top: 3.75rem !important;
}

body:has(.wellness-reference-content) {
  background: url("../images/fivestar/bg-content.png") left top repeat #f3ece3;
}

body:has(.wellness-reference-content) .main-content {
  padding-bottom: 1px;
}

.wellness-reference-content .module-tabs {
  margin-bottom: 0;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .wellness-spa-book {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  .wellness-spa-book-link {
  color: rgb(168, 56, 41) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: underline !important;
}

/* Pool gallery: match the source Owl carousel controls and pagination. */
.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack)) {
  overflow: visible !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  > .swiper-wrapper {
  overflow: hidden !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-button-prev,
.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-button-next {
  top: 50% !important;
  width: 3rem !important;
  height: 3rem !important;
  margin-top: -1.5rem !important;
  background-color: transparent !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  color: transparent !important;
  font-size: 0 !important;
  z-index: 5;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-button-prev {
  left: -4.375rem !important;
  background-image: url("/wp-content/uploads/2020/04/11-01-1-new.png") !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-button-next {
  right: -4.375rem !important;
  background-image: url("/wp-content/uploads/2020/04/11-01-2-new.png") !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-button-prev::after,
.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-button-next::after {
  display: none !important;
  content: none !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-button-disabled {
  opacity: 0.35 !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-pagination {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0 !important;
  transform: none !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--cl-main);
  opacity: 0.45;
}

.wellness-reference-content
  .module-tabs
  .tab-content
  > .legacy-vc-carousel:not(:has(.row-treatment-pack))
  .swiper-pagination-bullet-active {
  opacity: 1;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .text-cl-text:not(:first-child) {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  text-align: center;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .text-cl-text:not(:first-child)
  h4 {
  margin: 0 !important;
  color: var(--cl-main) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.625rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel {
  width: 100% !important;
  max-width: 75rem;
  margin: 0 auto !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  gap: 0 !important;
  flex-direction: row;
  position: relative;
  background: url("/wp-content/uploads/2020/04/Scan-1a-01-13-1.png") center
    center no-repeat;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item {
  box-sizing: border-box;
  display: flex;
  width: 28.75rem !important;
  min-width: 0;
  flex: 0 0 28.75rem !important;
  flex-wrap: wrap;
  align-content: flex-start;
  margin-right: 3.125rem !important;
  margin-left: 3.125rem !important;
  padding-bottom: 1.875rem;
  border: 1px solid rgb(130, 130, 130);
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > img:first-child {
  display: block;
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100%;
  height: auto;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > .text-cl-text {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1.25rem;
  font-family: "Gelasiov2", serif !important;
  font-size: 0.875rem !important;
  line-height: 1.785714 !important;
  text-align: left;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > .text-cl-text
  > p:first-child {
  margin: 1.25rem 0 !important;
  color: rgb(51, 51, 51) !important;
  font-family: var(--font-heading);
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.42 !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > .text-cl-text
  > p:not(:first-child) {
  margin: 0 !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > .wellness-treatment-meta {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  margin-top: 2.5rem;
  margin-left: 1.25rem;
  gap: 0.375rem;
  color: var(--cl-main);
  font-family: "Gelasiov2", serif !important;
  font-size: 0.875rem;
  line-height: 1.571429;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > .wellness-treatment-meta
  + .wellness-treatment-meta {
  margin-left: 3.25rem;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > .wellness-treatment-meta
  img {
  display: block;
  width: auto !important;
  max-width: none;
  height: 1.5625rem !important;
  flex: 0 0 auto;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel
  .row-treatment-pack
  > .item
  > .wellness-treatment-meta
  span {
  white-space: nowrap;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack) {
  overflow: visible !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  > .swiper-wrapper {
  overflow: visible;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-slide-prev,
.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-slide-next {
  visibility: hidden;
  pointer-events: none;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-slide-active {
  visibility: visible;
  pointer-events: auto;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-button-prev,
.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-button-next {
  top: calc(50% - 0.625rem) !important;
  width: 3rem !important;
  height: 3rem !important;
  margin-top: -1.5rem !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  z-index: 5;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-button-prev {
  left: -4.0625rem !important;
  background-image: url("/wp-content/uploads/2020/04/11-01-1-new.png") !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-button-next {
  right: -4.0625rem !important;
  background-image: url("/wp-content/uploads/2020/04/11-01-2-new.png") !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-button-prev::after,
.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-button-next::after {
  display: none !important;
  content: none !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-button-disabled {
  opacity: 0.35 !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-pagination {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0 !important;
  transform: none !important;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--cl-main);
  opacity: 0.45;
}

.wellness-reference-content
  .module-tabs
  .tab-content.wellness-spa-tab
  > .legacy-vc-carousel:has(.row-treatment-pack)
  .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .legacy-vc-carousel
    .row-treatment-pack
    > .item {
    width: calc(50% - 3.125rem) !important;
    flex-basis: calc(50% - 3.125rem) !important;
    margin-right: 1.5625rem !important;
    margin-left: 1.5625rem !important;
  }
}

@media (max-width: 767px) {
  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .text-cl-text:first-child,
  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .text-cl-text:not(:first-child) {
    max-width: none;
  }

  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .text-cl-text:first-child
    h3 {
    font-size: 1.875rem !important;
  }

  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .legacy-vc-carousel
    .row-treatment-pack {
    flex-direction: column;
  }

  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .legacy-vc-carousel
    .row-treatment-pack
    > .item {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .legacy-vc-carousel:has(.row-treatment-pack)
    .swiper-button-prev {
    left: 0.5rem !important;
  }

  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .legacy-vc-carousel:has(.row-treatment-pack)
    .swiper-button-next {
    right: 0.5rem !important;
  }

  .wellness-reference-content
    .module-tabs
    .tab-content.wellness-spa-tab
    > .legacy-vc-carousel
    .row-treatment-pack
    > .item
    > .wellness-treatment-meta
    + .wellness-treatment-meta {
    margin-left: 1.25rem;
  }
}
