/*--------------------------------------------------------------
# Home
--------------------------------------------------------------*/

.home {
  background-color: rgb(var(--bg-base));
}

/* Spotlight
--------------------------------------------- */

.home > .spotlight {
  /* background-color: rgb(var(--bg-dark)); */
  color: rgba(var(--color-light), 1);
}

.home > .spotlight > .container {
  max-width: var(--max-w-full);
  margin: 0 auto;
}

.home > .spotlight figure {
  position: relative;
}

.home > .spotlight figure img {
  object-fit: cover;
  width: 100%;
  height: 65vh;
}

@media (min-width: 768px) {
  .home > .spotlight figure img {
    height: calc(80vh - 5rem);
  }
}

.home > .spotlight figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.home > .spotlight figcaption .container {
  max-width: calc(var(--max-w-xl) - 40px);
  margin: 0 auto;
  padding: 4.5rem 20px 3rem;
}

.home > .spotlight figcaption .title {
  margin-bottom: 0.75rem;
}

/* Animations */

.spotlight figcaption :is(.title, .subtitle) {
  visibility: hidden;
}

.spotlight .swiper-slide-active figcaption .title {
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
  visibility: visible;
}

.spotlight .swiper-slide-active figcaption .subtitle {
  animation: spotlight 400ms;
  animation-delay: 1200ms;
  animation-fill-mode: backwards;
  visibility: visible;
}

@keyframes spotlight {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* SEO
--------------------------------------------- */

.home > .seo .container {
  max-width: var(--max-w-xl);
  margin: 0 auto;
  padding: 4.5rem 20px;
  display: grid;
  row-gap: 1.5rem;
}

@media (min-width: 960px) {
  .home > .seo .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4.5rem;
  }
}

.home > .seo .content p:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* Booking Widget
--------------------------------------------- */

.home > .booking .container {
  max-width: var(--max-w-lg);
  margin: 0 auto;
  padding: 0 20px 4.5rem;
}

/* Highlights
--------------------------------------------- */

.home > .highlights .container {
  max-width: var(--max-w-2xl);
  margin: 0 auto;
}

.home > .highlights .content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home > .highlights .content img {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 5 / 3;
}

@media (max-width: 959px) {
  .home > .highlights .container {
    padding: 0 0 4.5rem;
  }

  .home > .highlights .content img:nth-of-type(1) {
    margin-left: 20px;
  }

  .home > .highlights .content img:nth-of-type(2) {
    margin-top: 3rem;
    margin-left: -20px;
  }
}

@media (min-width: 960px) {
  .home > .highlights .container {
    padding: 0 3rem 4.5rem;
  }

  .home > .highlights .content {
    column-gap: 3rem;
  }
  .home > .highlights .content img:nth-of-type(2) {
    margin-top: 4.5rem;
  }
}

/* Additional Info
--------------------------------------------- */

.home > .additional-info .container {
  max-width: var(--max-w-xl);
  margin: 0 auto;
  padding: 0 20px 4.5rem;
  display: grid;
  row-gap: 1.5rem;
}

@media (min-width: 960px) {
  .home > .additional-info .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

.home > .additional-info .description p:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* Truncate */

.home > .additional-info .description.truncate .content {
  max-height: calc(10em * var(--leading-base));
  overflow: hidden;
  position: relative;
}

.home > .additional-info .description.truncate .content::after {
  background: rgb(var(--bg-base));
  content: '';
  display: block;
  height: calc(1em * var(--leading-base));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%);
  mask-image: linear-gradient(90deg, transparent, #000 75%);
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(9em * var(--leading-base));
  width: 20ch;
}

.home > .additional-info .read-more {
  margin-top: 1.5rem;
  cursor: pointer;
}

/* Featured Accommodations
--------------------------------------------- */

.home > .featured {
  background-color: rgba(var(--bg-dark), 0.1);
}

.home > .featured > .container {
  max-width: var(--max-w-2xl);
  margin: 0 auto;
  padding: 4.5rem 20px;
}

@media (min-width: 1140px) {
  .home > .featured > .container {
    padding: 4.5rem 3rem;
  }
}

.home > .featured > .container > .title {
  margin-bottom: 3rem;
}

/* USP
--------------------------------------------- */

.home > .usp {
  background-color: rgb(var(--bg-black));
  color: rgba(var(--color-light), 1);
  position: relative;
}

.home > .usp a {
  color: rgba(var(--color-light), 1);
}

.home > .usp .container {
  max-width: var(--max-w-md);
  margin: 0 auto;
  padding: 9rem 20px;
  position: relative;
  z-index: 1;
}

.home > .usp .title {
  margin-bottom: 1.5rem;
}

.home > .usp .content {
  margin-bottom: 1.5rem;
}

.home > .usp .cta:visited {
  color: rgba(var(--color-light), 1);
}

.home > .usp .cta:hover,
.home > .usp .cta:focus,
.home > .usp .cta:active {
  color: rgba(var(--color-light), 0.75);
  outline: none;
}

.home > .usp img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/*--------------------------------------------------------------
# 404
--------------------------------------------------------------*/

.error {
  background-color: rgb(var(--bg-base));
}

.error .container {
  max-width: var(--max-w-xl);
  margin: 0 auto;
  padding: 4.5rem 20px;
}

.error .page-header {
  margin-bottom: 1.5rem;
}
