* {
  font-family: Arial, Helvetica, sans-serif;
}

a {
  text-decoration: none;
  cursor: pointer;
}

section {
  margin: 0 0 50px 0;
  padding: 0 20px 0 20px;
  height: 100%;
  width: 100%;
  position: relative;
}

/* NAVIGATION */

nav.navigation {
  position: relative;
  height: 50px;
  padding: 0 60px;
  background-color: #3c3c3c;
  z-index: 2;
}

ul.nav-menu {
  width: 100%;
  height: 100%;
  display: flex;
}

ul.nav-menu li {
  list-style: none;
  flex: 1;
  text-align: center;
  height: 50px;
  width: 100%;
}

ul.nav-menu li a {
  display: block;
  height: 50px;
  width: 100%;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 1.4rem;
  line-height: 50px;
  text-align: center;
  color: #DDDDDD;
  /* border-bottom: 3px solid #3c3c3c; */

}

ul.nav-menu li a:hover {
  /* color: transparent; */
  text-shadow: 0 0 2px rgba(255, 255, 255, 1);
}

ul.nav-menu li a.active {
  color: #FFF;
  /* border-bottom: 3px solid #FFF; */
  background-color: #1c1c1c;
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle svg:hover {
  filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}

/* MEDIAQUERIES */

@media screen and (max-width:767px) {

  nav.navigation {
    padding: 0;
    z-index: 100;
  }

  ul.nav-menu {
    display: block;
    position: absolute;
    top: 50px;
    width: 100%;
    height: 0;
    padding: 0;
    overflow: hidden;
  }

  ul.nav-menu.active {
    height: auto;
  }

  ul.nav-menu li {
    width: 100%;
  }

  ul.nav-menu li a {
    font-size: 1.4rem;
    display: block;
    width: 100%;
    padding: 0;
    text-align: center;
    background-color: #3c3c3c;
  }

  ul.nav-menu li a:hover {
    background-color: #1c1c1c;
  }

  .nav-toggle {
    display: block;
  }

  ul.gallery li {
    width: 100%;
  }

  ul.gallery img {
    max-width: 100%;
  }
}

@media screen and (min-width:768px) {
  .nav-overlay.active {
    visibility: hidden;
    opacity: 0;
  }
}

/* Page Title */

.page-header {
  margin: 30px auto 1dvb auto;
  display: block;
  text-align: center;
  flex-direction: column;
  justify-content: center;
}

.page-header .heading {
  display: inline-block;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 2.4rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  /* line-height: 2.8rem; */
}

.page-header .subheading {
  display: inline-block;
  position: relative;
  z-index: 25;
  font-family: "linotype-didot", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  margin: 0 0 20px 0;
  padding: 0 14px;
  background-color: #FFF;
}

.page-header .decorative-line {
  display: inline-block;
  position: relative;
  z-index: 20;
  top: -54px;
  width: 300px;
  height: 1px;
  border-top: 1px solid #3c3c3c;
}

.page-header .casita {
  display: inline-block;
  font-size: 1.8rem;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: center;
}

/* Homepage */
.homepage-casitas {
  display: flex;
  align-self: auto;
  flex-direction: row;
  justify-content: space-evenly;
}

.homepage-casita {
  margin-top: 0;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
}

.homepage-casita a,
.homepage-casita a:hover {
  color: #000
}

.homepage-casita img {
  width: 100%;
  max-width: 500px;
}

.homepage-casita h3 {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-family: "linotype-didot", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  margin-top: 20px;
  padding: 0 20px;
  background-color: #FFF;
}

.homepage-casita .decorative-line {
  display: inline-block;
  position: relative;
  z-index: 1;
  top: -33px;
  width: 260px;
  height: 1px;
  border-top: 1px solid #3c3c3c;
}

@media screen and (max-width:767px) {
  .homepage-casitas {
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }
}

footer {
  border-top: 1px solid #EEE;
  background-color: #f5f5f5;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  padding-inline-start: 0;
  margin: 2px 0 0 0;
}

footer li {
  list-style: none;
  margin: 0 10px;
  padding: 0;
}

footer li a {
  color: #777;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.subnav {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid #AAA;
  border-bottom: 1px solid #AAA
}

.subnav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  padding-inline-start: 0;
  margin: 2px 0 0 0;
}

.subnav li {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.subnav li a {
  color: #777;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  text-transform: uppercase;
}

.subnav li a:hover {
  color: #000;
}

.subnav li a.active:after {
  position: relative;
  bottom: 5px;
  height: 0;
  width: 0;
  left: -50%;
  border: 6px solid transparent;
  border-bottom-color: #AAA;
  content: "";
}

.content {
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.content h2 {
  font-size: 2rem;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: center;
}

.content h3 {
  font-size: 1.5rem;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: center;
}

.content h4 {
  display: inline-block;
  font-size: 1.4rem;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
}

.content p {
  font-family: "linotype-didot", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
  color: rgb(90 90 90 / 1);
  margin-bottom: 15px;
}

.content p.center {
  text-align: center;
}

.content ul.list {
  list-style: square;
  margin-left: 30px;
  margin-top: 10px;
}

.content ol.list {
  list-style: decimal;
  margin-left: 30px;
  margin-top: 10px;
}

.content li {
  font-family: "linotype-didot", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: rgb(90 90 90 / 1);
  line-height: 1.8rem;
}

.content a {
  font-family: "linotype-didot", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: rgb(65, 65, 65);
  border-bottom: 1px dotted #848484;
}

.content a:hover {
  color: #000;
  border-bottom: 1px solid #595959;
}

.content .underlined {
  border-bottom: 1px solid #3c3c3c;
}

.content dt {
  font-family: brandon-grotesque, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 1.2rem;
  border-bottom: 1px solid #ccc;
  margin-top: 20px;
}

.content dd {
  font-family: "linotype-didot",
    serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: rgb(90 90 90 / 1);
  margin-bottom: 10px;
  padding: 10px;
}

/* Increase font-size for .content elements on mobile devices */
@media (max-width: 600px) {

  .page-header .heading {
    line-height: 2.8rem;
  }

  .content h2 {
    font-size: 2.1rem;
  }

  .content h3 {
    font-size: 1.6rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
  }

  .content h4 {
    font-size: 1.5rem;
    margin: 15px;
    line-height: 1.4rem;
  }

  .content p {
    font-size: 1.4rem;
  }
}

.return-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: none;
  /* Hidden by default */
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.return-to-top:hover {
  background-color: #555;
  transform: scale(1.1);
}

.sitemap-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.sitemap-section {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.sitemap-list>li {
  list-style-type: square;
  margin-left: 20px
}

.sitemap-sublist>li {
  list-style-type: square;
  margin-left: 20px;
}

@media screen and (max-width: 767px) {
  .sitemap-content {
    flex-direction: column;
    gap: 30px;
  }

  .sitemap-section {
    max-width: none;
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px 15px 15px;
  font-size: 0.9rem;
  text-align: center;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px 10px;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 20px 15px;
  transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  font-size: 1.1rem;
  padding: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media screen and (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .gallery-item img {
    height: 200px;
  }

  .lightbox-nav {
    font-size: 24px;
    padding: 15px 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}