/*
Stylesheet Name: New Frontpage Styles
Description: Custom styles for ACF frontpage template
Author: Love Hawaii Guides, inc.
Author URI: https://www.lovebigisland.com
Version: 1.0.0
*/

.destinationpage .site-inner {
  padding-top: 0px;
}

.frontpage .site-container .site-inner,
.destinationpage .site-container .site-inner {
  display: initial;
}

.home .site-container .site-inner {
  background-color: #f7f7f7;
}

.destinationpage .site-inner header.entry-header {
  display: none;
}

.destinationpage .responsive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.frontpage-container {
  padding: 30px 10%;
  margin: 0;
}

.site-inner .heading-text .wrap {
  max-width: 1200px;
  min-height: calc(100vh - 50px);
}

.cat-label {
  display: block;
  text-transform: uppercase;
  color: #00708b;
  text-align: center;
  font-weight: 600;
}

.cat-label {
  position: relative;
  text-align: center;
  padding: 0 120px; /* Add padding to create space for the lines */
}

.cat-label::before,
.cat-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(40% - 120px); /* Adjust the width to leave space for padding */
  height: 1px;
  background-color: #00708b;
}

.cat-label::before {
  left: 0;
  transform: translateY(
    -50%
  ); /* Adjust the positioning to vertically center the line */
}

.cat-label::after {
  right: 0;
  transform: translateY(
    -50%
  ); /* Adjust the positioning to vertically center the line */
}

.cat-intro {
  text-align: center;
}

.destinationpage h2 {
  font-size: 40px;
  text-align: center;
  overflow: auto;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

.destinationpage .testimonial_item {
  padding: 40px 40px 0px 40px;
  font-size: 16px;
  max-width: 600px;
  background-color: #f2f2f2;
  min-height: 200px;
  border: 1px solid #c2c2c2;
  border-radius: 1px;
  opacity: 0.85;
}

.testimonial_item strong {
  background-color: darkgreen;
  color: white;
  padding: 2px 6px;
}

.destinationpage .testimonial_item .icon-heart {
  color: #00b65d;
  margin: 2px;
}

.destinationpage .testimonial_item .icon-heart.nothappy {
  color: #b2e9ce;
}

.destinationpage .testimonial_item .source a {
  text-align: right;
  display: block;
  text-decoration: underline;
  font-size: 14px;
  background-image: none;
}

.destinationpage .wide {
  display: block; /* show the full testimonial text by default */
}

.destinationpage .narrow {
  display: none; /* Hide the shortened testimonial text by default */
}

.blog-post {
  margin: inherit;
  background-color: #f2f2f2;
  width: 300px;
  max-width: 300px;
  min-height: 200px;
  border: 1px solid #c2c2c2;
  border-radius: 1px;
  flex-grow: 1;
  position: relative;
}

.blog-post h3 {
  font-size: 19px;
  padding: 20px 20px 0px 20px;
}

.blog-post img {
  height: 200px;
  object-fit: cover;
}

.blog-post a {
  background-image: none;
}

.destinationpage .item-terms a {
  text-transform: lowercase;
  background-color: #fff;
  padding: 3px 7px;
  line-height: 20px;
  background-image: none;
  display: inline-block;
  margin-left: 5px;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 1px;
  border: 1px solid black;
}

.item-cats {
  position: absolute;
  top: 0;
  margin: 3px;
}

.destinationpage .item-cats ul {
  margin-left: 0px;
}

.destinationpage .item-cats ul > li {
  list-style-type: none;
  text-align: left;
}

.hero-overlay {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.destinationpage .overlay .text-overlay {
  text-align: center;
  color: white;
  max-width: 80%;
  padding: 20px;
}

.destinationpage .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-overlay h2 {
  color: white;
}

/* Hero title when it is the first row on the page (rendered as h1). */
.text-overlay h1 {
  font-size: 40px;
  color: #fff;
}

.text-overlay p {
  font-size: 1.2em;
}

.button-container {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.destinationpage .hero-overlay a.button {
  margin: 5px 10px;
  border-radius: 5px;
  background-color: rgba(0, 167, 157, 0.5);
  border: solid 1px white;
}

.slick-container {
  width: 200px;
}

.destinationpage .slick-container:hover {
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
}

.destinationpage .slick-list {
  margin: 0 -15px;
}

.destinationpage .slick-dots li button::before {
  font-size: 12px;
}

.destinationpage .slick-dots {
  margin: 0;
  bottom: -35px;
}

.destinationpage .testimonials .slick-dots {
  bottom: -40px;
}

.destinationpage .slick-slide > div {
  padding: 0 15px;
}

.destinationpage .slick-slide {
  text-align: center;
}

.destinationpage .slick-slide .tour_archive_summary,
.destinationpage .slick-slide .tour-description {
  text-align: left;
}

.destinationpage .article-highlight-slider .slick-track {
  margin: 30px 0;
}

.destinationpage .slider-nav .slick-center {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  transform: scale(1.1);
}

/* TOUR EXCERPT SECTION */

.destinationpage .wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  padding: 0px;
  max-width: 300px;
  border: 1px solid gray;
  background: #fcfcfc;
  border-radius: 3px;
}

.destinationpage .tour_archive_image {
  height: 200px;
  background: no-repeat center;
  background-image: none;
  background-size: auto;
  background-size: cover;
}

.destinationpage .wrapper .tour_archive_summary_image {
  grid-column: 1 / span 3;
  grid-row: 1;
  margin: 0;
  position: relative;
}

.destinationpage .tour_archive_description {
  grid-column: 1 / span 3;
  grid-row: 2;
  margin: 0;
  padding-left: 15px;
  padding-right: 6px;
  padding-top: 10px;
  max-height: unset;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.destinationpage .tour_archive_description p {
  margin: 0;
  font-size: 19px;
}

.destinationpage .tour_archive_summary {
  grid-column: 1 / span 3;
  grid-row: 3;
  padding-left: 15px;
  padding-top: 15px;
  align-self: self-end;
}

.destinationpage .tour_archive_summary p {
  margin-bottom: 2px;
  font-size: 18px;
}

.destinationpage .tour_archive_book {
  grid-column: 1 / span 3;
  grid-row: 4;
  padding-right: 15px;
  padding-bottom: 15px;
  align-self: self-end;
  float: right;
  font-size: 1.25rem;
  font-weight: 700;
}

.tour_archive_image h3 {
  position: absolute;
  margin: 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0 10px;
  font-size: 20px;
  text-align: left;
}

.tour_archive_image.lazyload {
  height: 200px;
}

.destinationpage div.tour-price-description-right p {
  margin-bottom: 0px;
  text-align: right;
}

.destinationpage div.tour-price-lowlight p {
  font-size: 14px;
  margin: 0 0 -12px;
  margin-bottom: -12px;
  color: #303942;
}

.destinationpage .button {
  border: none;
}

.destinationpage a.button {
  background: none;
  background-color: #007870;
  font-weight: bold;
  text-align: center;
}

.destinationpage .wrap a.button {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.destinationpage a.button:hover {
  border: none;
  background-color: #007870;
}

.destinationpage .entry {
  margin-bottom: 0;
  padding: 0;
}

/* Flexinʻ  */
.flex-container {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.flex-child {
  flex: 1;
  min-width: 300px;
  border: 1px solid black;
}

.flex-child p {
  margin-bottom: 0;
}

.flex-child:first-child {
  flex: 0.65 1 0;
  justify-content: center;
  display: flex;
}

.tabs .flex-child.first,
.tabs .flex-child.second {
  flex: 1;
  align-self: flex-start;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.75);
  display: inline-block;
}

.heading-text .flex-child:first-child {
  flex: 1;
}

.flex-bgim {
  height: 300px;
}

/* Full-height hero image*/
.frontpage-container.hero-image {
  padding: 0;
  max-height: calc(100vh - 49px);
}

.frontpage-container .hero-image a {
  background-image: none;
}

/* Headline with WYSIWYG */

.frontpage-container.heading-text {
  padding: 0;
  min-height: 75vh;
}

.heading-text .wrap {
  padding: 60px 0;
}

.plain-title {
  text-align: center;
}

.left-image-right-text .one-half {
  vertical-align: middle;
}

.left-image-right-text .one-half h3 {
  color: #979ca0;
}

.left-image-right-text img {
  margin: 20px;
  border-radius: 500px;
}

/* FAQ styling */

.faq-section .wrap {
  padding: 60px 0;
}

.faq-section .tab-label {
  background: #007870;
}

.faq-section .tab-label::after {
  margin-left: 10px;
}

.destinationpage .faq-section .tab-label:hover {
  background: #007870;
}

.faq-section h2 {
  margin: 0 0 44px;
}

/* article highlight slider */

.destinationpage .article-highlight-slider .grid-container {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;
  padding: 10px;
  align-items: self-start;
  background: #fff;
}

.destinationpage .article-highlight-slider .grid-a {
  grid-column: 1 / span 2;
  grid-row: 1 / span 5;
  height: 25vw;
  border: 8px solid #fff;
  transform: rotate(-4deg);
  -webkit-box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.5);
  -moz-box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.5);
  box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.5);
  margin: 20px;
}

.destinationpage .article-highlight-slider .grid-b {
  grid-column: 3 / span 4;
  grid-row: 1;
  padding: 20px 0 0 20px;
}

.destinationpage .article-highlight-slider .grid-c {
  grid-column: 3 / span 4;
  grid-row: 2 / span 3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  padding: 0 20px;
}

.destinationpage .article-highlight-slider .grid-c p {
  margin-bottom: -5px;
}

.destinationpage .article-highlight-slider .grid-d {
  grid-column: 3 / span 4;
  grid-row: 5;
  padding: 0 20px;
}

.destinationpage .article-highlight-slider a.button {
  float: right;
}

a.read-more {
  background-image: none;
  text-decoration: underline;
}

.arrow {
  border: solid #fff;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.rightt {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

/* Blocks with text */

.destinationpage .blocks {
  background-color: rgba(241, 196, 15, 0.22);
}

.destinationpage .block-container {
  display: flex;
  justify-content: space-around;
  flex-flow: row wrap;
  gap: 10px;
}

.destinationpage .fpbox {
  padding: 10px;
  break-inside: avoid;
  flex: 1 1 300px;
}

.destinationpage .fpboxi {
  padding: 30px;
  background: #fff;
  border-radius: 3px;
}

.destinationpage .fpboxi a.button {
  margin-top: 15px;
}

.destinationpage .fpboxi p {
  margin-bottom: 0px;
}

/* TABS TABS TABS */

.tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto 20px;
  border-radius: 10px 10px 0 0;
}

.radiotab {
  position: absolute;
  opacity: 0;
}

.tabb-label {
  width: 100%;
  padding: 10px 20px;
  background: #e5e5e5;
  cursor: pointer;
  font-weight: bold;
  font-size: 23px;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  border-bottom: solid 2px #000;
}

.tabb-label:hover {
  background: #d8d8d8;
}

.tabb-label:active {
  background: #ccc;
}

.radiotab:checked + .tabb-label {
  background: #fff;
  color: #000;
  border-top: solid 2px #000;
  border-left: solid 2px #000;
  border-right: solid 2px #000;
  border-bottom: none;
}

.panel {
  display: none;
  padding: 30px;
  background: #fff;
  width: 100%;
  border-bottom: solid 2px #000;
  border-left: solid 2px #000;
  border-right: solid 2px #000;
}

.radiotab:checked + .tabb-label + .panel {
  display: block;
}

/*
 * article highlight section
* */

.highlight-container {
  position: relative;
  overflow: hidden;
}

.highlight-container-overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 30px;
  text-align: center;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.highlight-container-overlay2 {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  bottom: 0;
  right: 0;
  margin: 10px;
}

.frontpage-container .text-white {
  color: #fff;
}

/* ShortPixel wraps slide <img> in <picture>; make the wrapper fill the slide
   so object-fit works, and size the image to 100% (not inherit — the wrapper
   has no width, which collapsed slides to the image's natural 800px). */
.frontpage-container .highlight-container picture {
  display: block;
  width: 100%;
}

.frontpage-container .hero-slide {
  height: 60vh;
  min-height: 300px;
  object-fit: cover;
  width: 100%;
}

.frontpage-container .slick-active .slide-content {
  opacity: 1;
}

.frontpage-container .slide-content .h1 {
  font-weight: bold;
  font-size: 1.5rem;
}

.frontpage-container a.read-more {
  background-image: none;
  text-decoration: underline;
  color: #fff;
}

.highlight-container-overlay {
  cursor: pointer;
}

.frontpage-container a.read-more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Media queries */

@media screen and (min-width: 800px) {

  .frontpage-container .hidden-xs {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .highlight-container-overlay {
    width: 50%;
    height: fit-content;
    top: 5vh;
    left: 5vh;
    border: 1px solid #fcfcfc;
    max-height: 50vh;
    overflow: hidden;
 }

  .frontpage-container .slide-content {
    max-width: 50%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    max-height: 55vh;
    overflow: auto;
    border: 1px solid #f7f7f7;
  }
}

@media only screen and (max-width: 800px) {
  .destinationpage span.tour-description {
    display: inline-block;
  }

  .frontpage-container .slick-active .slide-content {
    padding: 30px;
  }

  .destinationpage .wrapper {
    grid-template-columns: repeat(3, 1fr);
  }

  .left-image-right-text .wrap {
    padding: 30px 0;
  }

  .heading-text .wrap {
    padding-left: 5%;
    padding-right: 5%;
  }

  .frontpage-container {
    min-height: 90vh;
  }

  .destinationpage .site-inner {
    padding: 0;
  }

  .left-image-right-text .wrap {
    display: block;
  }

  .left-image-right-text .one-half {
    margin: 20px 0;
    padding-left: 5%;
    padding-right: 5%;
  }

  /* testimonial section*/
  .destinationpage .testimonial_item {
    opacity: 1;
    transition: none;
    max-width: 400px;
    padding: 36px 20px 0px 20px;
  }

  .destinationpage .slick-center .testimonial_item {
    transform: none;
  }

  .destinationpage .narrow {
    display: block;
  }
  .destinationpage .wide {
    display: none;
  }

  /* hero image section */
  /* Reserve the hero height on the container so the text-overlay is centered in
     a box whose size never changes. Sizing the img via vh (instead of the
     container) let the image jump from its intrinsic 16:9 aspect-ratio height to
     90vh once this (deferred) CSS applied, shifting the overlay down (CLS). */
  .hero-overlay {
    height: 90vh;
  }
  .hero-overlay img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .destinationpage .overlay {
    padding: 0px;
  }

  .frontpage-container .slide-content .h1 {
    font-size: 1.25rem;
  }
}

/* Desktop hero: reserve the correct box via aspect-ratio so the text-overlay
   doesn't shift down once the image loads (CLS). Mirrored inline in
   page_front.php's hero-cls-reserve block so it applies before frontpage1.css
   itself has loaded (Autoptimize defers this file). */
@media (min-width: 801px) {
  .hero-overlay {
    aspect-ratio: 2000 / 1125;
  }

  .hero-overlay .banner-image {
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 600px) {
  .panel {
    order: 99;
  }

  .tabb-label {
    width: 25%;
  }
}

@media only screen and (max-width: 600px) {
  .frontpage-container {
    padding: 40px 20px 10px 20px;
  }

  .cat-label {
    padding: 0 50px; /* Add padding to create space for the lines */
  }

  .cat-label::before,
  .cat-label::after {
    width: calc(30% - 50px); /* Adjust the width to leave space for padding */
  }

  .destinationpage h2 {
    font-size: 1.5em;
  }

  .destinationpage .overlay .text-overlay h1 {
    font-size: 1.8em;
  }

  .destinationpage h3 {
    font-size: 1.25em;
  }

  .destinationpage .overlay .text-overlay p {
    font-size: 0.9em;
    margin: 0;
  }

  .destinationpage .overlay .text-overlay {
    padding: 0;
  }

  .heading-text a.button,
  .overlay a.button {
    font-size: 0.9em;
    display: block;
  }

  .hero-overlay .overlay a.button {
    font-size: 0.6em;
  }

  /* article highlight section*/
  .destinationpage .article-highlight-slider .grid-a {
    grid-column: 1 / span 6;
    grid-row: 1;
    height: 50vw;
  }

  .destinationpage .article-highlight-slider .grid-b {
    grid-column: 1 / span 6;
    grid-row: 2;
  }

  .destinationpage .article-highlight-slider .grid-c {
    display: none;
  }

  .destinationpage .article-highlight-slider .grid-d {
    grid-column: 1 / span 6;
    grid-row: 3;
  }
}

@media only screen and (max-width: 400px) {
  .flex-child {
    min-width: 80vw;
  }

  .frontpage-container .hidden-xs {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3; /* Number of lines to display before truncating */
    line-height: 1.2; /* Adjust line height as needed */
    max-height: 3.6em;
  }
}
