@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;400&family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-top: 80px;
    padding-bottom: 60px; /* espacio para el footer fijo */

  font-family: 'EB Garamond', serif;
  background-color: #ffffff;
  color: #111;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
}

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: #ffffff;
  color: #242b34;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  font-family: 'Playfair Display', serif;
}

.nav-left {
  font-size: 0.7rem;
  line-height: 1.1;
  text-transform: uppercase;
  border-left: 2px solid #242b34;
  padding-left: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #242b34;
}

.nav-center {
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  flex: 1;
  color: #242b34;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-right .menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-right .menu-icon span {
  display: block;
  height: 2px;
  width: 25px;
  background: #242b34;
}

.language-selector {
  margin-left: 1rem;
}

#content {
  display: flex;
  height: calc(100vh - 80px);
}

#hotel-list {
      padding-top: 110px; /* para que el contenido no quede oculto debajo del filtro */

  width: 45%;
  overflow-y: auto;
  padding: 4rem 0.5rem 1rem 0.5rem;
  background-color: #ffffff;
  box-shadow: 2px 0 15px rgba(0,0,0,0.05);
  scroll-behavior: smooth;
}

#zona-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch; /* para que el botón se iguale en altura al dropdown */
}



#map {
  width: 65%;
  height: 100%;
}

article.hotel {
  width: 100%;
  display: block;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.hotel h2 {
  font-size: 1.4rem;
  margin: 0 0 0.3rem 0;
  color: #222;
}

.hotel .zona {
  font-size: 1.1rem;
  color: #242b34;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.hotel p {
  margin: 0;
  font-size: 1.1rem;
  color: #555;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn, .btn-read {
  flex: none;
  padding: 0.75rem 1.5rem;
  min-width: 100px;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  border-radius: 0;
  text-decoration: none;
  text-align: center;
}

.btn {
  background-color: #242b34;
  color: #fff;
  border: none;
}

.btn:hover, .btn-read:hover {
  transform: scale(1.03);
}

.btn-read {
  background-color: #fff;
  color: #242b34;
  border: 1px solid #242b34;
}

.btn-read:hover {
  background-color: #242b34;
  color: #fff;
}

.leaflet-popup-content-wrapper { border-radius: 0 !important; }

.leaflet-popup-content {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

#toggle-map {
  position: fixed;
  bottom: 3.5rem;
  right: 1rem;
  background: #242b34;
  color: #fff;
  padding: 0.7rem 1rem;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  z-index: 10001;
  display: none;
  cursor: pointer;
}

/* NUEVO: contenedor para los botones en móvil */
#map-buttons {
  position: fixed;
  bottom: 3.5rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10000;
  
}

/* NUEVO: estilos unificados para los botones dentro del contenedor */
#map-buttons button {
  padding: 0.6rem 1rem;
  background-color: #242b34;
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 0px;
}

/* OCULTAR contenedor en escritorio */
@media (min-width: 769px) {
  #map-buttons {
    display: none;
  }
}

#close-map {
  top: auto;
  right: auto;
  position: static;
  display: none;
}

#reset-view {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 768px) {
  #map {
    display: none;
    height: 0;
  }
  #map.fullscreen {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh !important;
    z-index: 9999;
    background: #fff;
  }
  #hotel-list {
    width: 100%;
    height: auto;
    padding: 0.5rem;
  }
  #content {
    flex-direction: column;
    height: auto;
  }
  .hotel {
    margin-bottom: 1.5rem;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn, .btn-read {
    width: 100%;
  }
  #toggle-map {
    display: block;
  }
  .nav-left {
    display: none;
  }
}

.leaflet-control-attribution {
  font-size: 10px;
  opacity: 0.5;
}

#map .leaflet-tile,
#map .leaflet-pane.leaflet-tile-pane {
  filter: grayscale(100%);
}


#clear-filter {
  padding: 0 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  border: 1px solid #242b34;
  background-color: #242b34;
  color: white;
  cursor: pointer;
  display: none;
  white-space: nowrap;
  height: auto;
  display: flex;
  align-items: center;
}


#zona-filter-container .choices {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

#zona-filter-container .choices__inner {
  min-height: 42px; /* Altura real del dropdown */
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

#clear-filter {
  height: 42px; /* Fuerza misma altura que el dropdown */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}



#hotel-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #111;
  color: #fff;
  z-index: 10010;
  transition: right 0.4s ease-in-out;
  overflow-y: auto;
}

#hotel-panel.open {
  right: 0;
}

#hotel-panel-content {
  padding: 2rem;
  max-width: 700px;
  margin: auto;
}

#close-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

#panel-body img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 0;
}

#hotel-panel.open .bottom-close {
  display: block;
}

.bottom-close {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #242b34;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 10011;
}

@media (min-width: 769px) {
  #hotel-panel {
    width: 60%;
    right: -60%;
  }

  #hotel-panel.open {
    right: 0;
  }
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  filter: none !important;
}

.leaflet-popup-content-wrapper {
  width: 250px !important;
  padding: 0 !important;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Montserrat', sans-serif;
}

.leaflet-popup-content img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0px;
}


.leaflet-popup-tip-container {
  display: none; /* Opcional: ocultar la flechita inferior del popup */
}


#zona-filter-container {
 position: fixed;
    top: 80px;
    left: 0;
    width: 40%;
    background-color: #ffffff;
    padding: 1rem 1rem 0.1rem 1rem;
    z-index: 999;
}

@media (max-width: 768px) {
  #zona-filter-container {
    width: 100%;
    left: 0;
  }
}

@media (max-width: 768px) {
  #navbar {
    background: #fff !important;
  }
}

.estrellitas{
letter-spacing: 5px;
    font-size: 0.7rem;
    color: #242b34;
}


#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #242b34;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
  }
}

.leaflet-top.leaflet-left {
  left: auto;
  right: 1rem; /* puedes ajustar el valor según prefieras */
}


.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.leaflet-control-zoom a {
  border: none !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 1.2rem;
  line-height: 1.8rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.leaflet-control-zoom a:hover {
  background: #eee !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #ffffff!important;
}
@media (max-width: 768px) {
  footer {
    display: none!important;
  }
}
.gallery-container {
  position: relative;
  width: 100%;
  max-height: 290px;
  overflow: hidden;
}

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn {
  left: 12px;
}

.next-btn {
  right: 12px;
}

.gallery-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.gallery-img {
  transition: opacity 0.3s ease-in-out;
}


.leaflet-popup-content a {
  color: #242b34 !important;
  text-decoration: none;
}

.leaflet-popup-content a:hover {
  color: #242b34 !important;
  text-decoration: underline;
}


@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

