html {
  box-sizing: border-box;
  height: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-color: #f4f1eb;
  color: #2d2d2d;
  /* Elimina height: 100% para evitar conflictos */
}

.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.content {
  padding-top: 50px;
  flex: 1 0 auto;
  width: 100%;
  /* Elimina padding-top aquí y manéjalo en elementos específicos */
}

section {
  padding: 20px;
  margin: 20px 5%;
  background-color: #d9c2a3;
  border-radius: 15px;
  scroll-margin-top: 60px;
}

.map {
  width: 100%;
  height: 300px;
  border: 0;
}

section h2 {
  margin-top: 0;
}

img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
}

.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  width: 80%;
  z-index: 1;
  /* Asegúrate que el contenedor padre tenga position: relative */
}

.cabanas-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabana-section {
  width: auto;
  height: 100%;
  display: flex;
}

.cabana-section a {
  color: #2d2d2d;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
}

.cabana-section img {
  max-height: 100%;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.cabana-section a:hover img {
  transform: scale(1.03);
}


@media screen and (min-width: 768px) {
  .content {
    padding-top: 132px;
  }

  section {
    scroll-margin-top: 140px;
    border-radius: 20px;
  }

  .map-container {
    background-color: black;
  }

  .cabana-section {
    padding: 0px ;
    width: 100%;
  }

  .map-container {
    text-align: center;
  }

  .map {
    height: 600px;
    width: 70%;
    margin: auto;
  }
}

/* Ajustes responsivos para la galería */
@media screen and (max-width: 768px) {
  section h2 {
    text-align: center;
  }

  .cabanas-section{
    display: grid;
    flex-direction: row;
  }

  .cabanas-separator{
    width: 100%;
    margin-top: 15px;
    background-color: #f4f1eb;
    height: 2px;
  }
}