/*--------------------------------------------------------------
# Default
--------------------------------------------------------------*/

.page-default > .container {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 3rem 20px;
}

.page-default .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

@media (min-width: 960px) {
  .page-default .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-default .header .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-6xl);
  line-height: var(--leading-tight);
}

.page-default .content h2 {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-2xl);
  line-height: var(--leading-tight);
  margin-bottom: 0.75rem;
}

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

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

.home .spotlight {
  position: relative;
}

.home .spotlight .mask img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 50vh;
}

@media (min-width: 960px) {
  .home .spotlight .mask img {
    height: calc(100vh - 87.5px);
  }
}

.home .spotlight .mask {
  position: relative;
}

.home .spotlight .content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  height: 100%;
}

.home .spotlight .content > .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 1.5rem 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home .spotlight .content .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  line-height: var(--leading-tight);
  color: rgb(var(--color-secondary-50));
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
}

@media (min-width: 960px) {
  .home .spotlight .content .title {
    font-size: var(--font-7xl);
  }
}

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

.home .spotlight .espa {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 960px) {
  .home .spotlight .espa {
    justify-content: flex-end;
  }
}

.home .spotlight .espa a {
  margin: 20px;
  background: #fff;
  padding: 12px;
  border-radius: 1rem;
}

.home .spotlight .espa img {
  max-width: 300px;
}

/* Book
--------------------------------------------- */

@media (min-width: 960px) {
  .home .book {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}

.home .book > .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 3rem 20px 0;
}

@media (min-width: 960px) {
  .home .book > .wrapper {
    padding: 3rem 20px;
  }
}

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

.home .seo > .wrapper {
  max-width: var(--max-w-xxl);
  margin: 4.5rem auto 6rem;
  padding: 0 20px;
}

.home .seo .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 3rem;
  row-gap: 1.5rem;
  align-items: center;
}

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

.home .seo .featured-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
}

.home .seo .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-6xl);
  line-height: var(--leading-tight);
  color: rgb(var(--color-secondary-500));
  margin-bottom: 1.5rem;
}

.home .seo .subtitle {
  font-family: var(--font-serif);
  font-size: var(--font-2xl);
  line-height: var(--leading-snug);
  margin-bottom: 1.5rem;
}

/* Featured Villas
--------------------------------------------- */

.home .featured-villas > .wrapper {
  max-width: var(--max-w-xxl);
  margin: 4.5rem auto;
  padding: 0 20px;
}

.home .featured-villas .section-title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-6xl);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.home .featured-villas .villas {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  row-gap: 3rem;
}

@media (min-width: calc(1320px + 3rem)) {
  .home .featured-villas .villas {
    row-gap: 4.5rem;
  }
}

.home .featured-villas .villa .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 3rem;
  /*row-gap: 1.5rem; */
  align-items: center;
}

.home .featured-villas .villa {
  background-color: rgba(var(--color-secondary-100), 1);
}

@media (min-width: 960px) {
  .home .featured-villas .villa .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .featured-villas .villa .grid {
    grid-template-areas: 'col1 col2';
  }

  .home .featured-villas .villa:nth-child(2) .col:nth-child(1) {
    grid-area: col2;
  }

  .home .featured-villas .villa:nth-child(2) .col:nth-child(2) {
    grid-area: col1;
  }
}

.home .featured-villas .villa .col > a {
  display: block;
}

.home .featured-villas .villa img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
}

.home .featured-villas .villa .content {
  padding: 20px;
}

@media (min-width: 960px) {
  .home .featured-villas .villa .content {
    padding: 3rem;
  }
}

.home .featured-villas .villa .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  margin-bottom: 0.75rem;
}

.home .featured-villas .villa .excerpt p {
  margin-bottom: 0.75rem;
}

.home .featured-villas .villa .overview {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgb(var(--color-secondary-300));
  border-bottom: 1px solid rgb(var(--color-secondary-300));
  font-family: var(--font-serif);
}

.home .featured-villas .villa .price {
  font-family: var(--font-serif);
  font-size: var(--font-2xl);
  color: rgb(var(--color-secondary-700));
}

/* Truncate */

.home .truncate .wrapper {
  max-height: calc(5rem * var(--leading-base));
  overflow: hidden;
  position: relative;
}

.home .truncate .wrapper::after {
  background: rgb(var(--color-primary-50));
  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(4rem * var(--leading-base));
  width: 20ch;
}

.home .seo .read-more {
  margin-top: 1.5rem;
  cursor: pointer;
}

/* Location
--------------------------------------------- */

.home .location {
  background-color: rgb(var(--color-primary-100));
}

.home .location > .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 3rem 20px 4.5rem;
}

.home .location .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: center;
}

@media (min-width: 960px) {
  .home .location .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: 'col1 col2';
  }

  .home .location .grid .col:nth-child(1) {
    grid-area: col1;
  }

  .home .location .grid .col:nth-child(2) {
    grid-area: col2;
  }
}

.home .location .grid .col:nth-child(2) {
  background-color: rgb(var(--color-primary-50));
  padding: 20px;
}

@media (min-width: 960px) {
  .home .location .grid .col:nth-child(2) {
    margin-left: -10rem;
  }
}

.home .location .cover img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.home .location .title {
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  line-height: var(--leading-tight);
  margin-bottom: 0.75rem;
}

.home .location .subtitle {
  margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Location
--------------------------------------------------------------*/

/* Cover
--------------------------------------------- */

.page-location > .container {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 4.5rem 20px 4.5rem;
}

.page-location .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

@media (min-width: 960px) {
  .page-location .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-location .cover {
  position: relative;
}

.page-location .cover img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 50vh;
}

.page-location .cover .header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  height: 100%;
}

.page-location .cover .header .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 1.5rem 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-location .cover .header .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  line-height: var(--leading-tight);
  color: rgb(var(--color-secondary-50));
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
}

@media (min-width: 960px) {
  .page-location .cover .header .title {
    font-size: var(--font-7xl);
  }
}

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

/* Content
--------------------------------------------- */

.page-location .content-x {
  max-width: var(--max-w-sm);
  /* text-align: right; */
  margin: 0 0 4.5rem auto;
}

.page-location .content-x h2 {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.page-location .content-x p {
  font-family: var(--font-serif);
  font-size: var(--font-base);
  margin-bottom: 1.5rem;
}

/* Cards
--------------------------------------------- */

.page-location .cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

.page-location .card {
  max-width: var(--max-w-md);
}

.page-location .card:nth-child(odd) {
  text-align: left;
  margin: 0 auto 0 0;
}

.page-location .card:nth-child(even) {
  text-align: right;
  margin: 0 0 0 auto;
}

.page-location .card img {
  display: block;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 1;
  margin-bottom: 1.5rem;
}

.page-location .card .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-3xl);
  line-height: var(--leading-tight);
  margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/

/* Cover
--------------------------------------------- */

.page-services > .container {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 4.5rem 20px 3rem;
}

.page-services .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

@media (min-width: 960px) {
  .page-services .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-services .cover {
  position: relative;
}

.page-services .cover img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 50vh;
}

.page-services .cover .header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  height: 100%;
}

.page-services .cover .header .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 1.5rem 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-services .cover .header .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  line-height: var(--leading-tight);
  color: rgb(var(--color-secondary-50));
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
}

@media (min-width: 960px) {
  .page-services .cover .header .title {
    font-size: var(--font-7xl);
  }
}

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

/* Content
--------------------------------------------- */

.page-services .content-x {
  max-width: var(--max-w-sm);
}

.page-services .content-x {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-4xl);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

/* Accordion
--------------------------------------------- */

.page-services .accordion {
  background-color: rgb(var(--color-secondary-100));
}

.page-services .accordion > .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 4.5rem 20px 4.5rem;
}

.page-services .accordion .items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: custom-counter;
}

.page-services .accordion .title {
  color: rgb(var(--color-secondary-700));
  margin-bottom: 3rem;
}

.page-services .accordion .item {
  counter-increment: custom-counter;
  position: relative;
}

.page-services .accordion .item::before {
  content: counter(custom-counter, decimal-leading-zero);
  color: rgb(var(--color-secondary-700));
  position: absolute;
  left: 0;
}

.page-services .accordion .item details {
  margin-left: 3rem;
}

.page-services .accordion details summary {
  list-style: none;
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-3xl);
  line-height: var(--leading-tight);
  cursor: pointer;
}

.page-services .accordion details .description {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid;
}

/*--------------------------------------------------------------
# About Us
--------------------------------------------------------------*/

/* Cover
--------------------------------------------- */

.page-about > .container {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 4.5rem 20px 4.5rem;
}

.page-about .cover {
  position: relative;
}

.page-about .cover img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 50vh;
}

.page-about .cover .header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  height: 100%;
}

.page-about .cover .header .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 1.5rem 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about .cover .header .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  line-height: var(--leading-tight);
  color: rgb(var(--color-secondary-50));
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
}

@media (min-width: 960px) {
  .page-about .cover .header .title {
    font-size: var(--font-7xl);
  }
}

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

/* Cards
--------------------------------------------- */

.page-about .cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

.page-about .card .wrapper {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .page-about .card .wrapper {
    grid-template-areas: 'col1 col2';
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 3rem;
  }

  .page-about .card:nth-child(1) .wrapper .col:nth-child(2) {
    grid-area: col1;
  }

  .page-about .card:nth-child(2) .wrapper .col:nth-child(2) {
    grid-area: col2;
  }
}

.page-about .card img {
  display: block;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.page-about .card .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-3xl);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

/* Content
--------------------------------------------- */

.page-about .content-x {
  max-width: var(--max-w-md);
  margin: 0 auto;
  text-align: center;
}

.page-about .content-x p {
  font-family: var(--font-serif);
  font-size: var(--font-base);
  margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/

/* Cover
--------------------------------------------- */

.page-contact > .container {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 4.5rem 20px 4.5rem;
}

.page-contact .cover {
  position: relative;
}

.page-contact .cover img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 50vh;
}

.page-contact .cover .header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  height: 100%;
}

.page-contact .cover .header .wrapper {
  max-width: var(--max-w-xxl);
  margin: 0 auto;
  padding: 1.5rem 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-contact .cover .header .title {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-5xl);
  line-height: var(--leading-tight);
  color: rgb(var(--color-secondary-50));
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
}

@media (min-width: 960px) {
  .page-contact .cover .header .title {
    font-size: var(--font-7xl);
  }
}

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

/* Content
--------------------------------------------- */

.page-contact .content-x {
  max-width: var(--max-w-md);
  margin: 0 auto;
  text-align: center;
}

.page-contact .content-x p {
  font-family: var(--font-serif);
  font-size: var(--font-base);
  margin-bottom: 1.5rem;
}

/* Contact Details
--------------------------------------------- */

.contact-details .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 1.5rem 0 0;
}

.contact-details .label {
  color: rgb(var(--color-secondary-700));
}

.contact-details .description {
  font-family: var(--font-serif);
  font-weight: var(--font-light);
  font-size: var(--font-4xl);
  line-height: var(--leading-tight);
}
