/* Estilos para los botones de lista */
#toggleListingsBtn {
  display: none; /* Ocultar el botón "Mostrar" por defecto */
}

#restoreListingsBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 10px;
  background: #0074d9;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}

#restoreListingsBtn {
  right: auto;
  left: 10px;
}

/* Estilos para el contenedor de búsqueda flotante */
.search-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#searchBox {
  padding: 10px;
  border: 1px solid #0074d9;
  border-right: none;
  border-radius: 3px 0 0 3px;
}

#searchButton {
  padding: 10px;
  background: #0074d9;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #FFFFFF; /* Color de WhatsApp */
  color: #fff; /* Color del texto */
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  line-height: 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.whatsapp-btn:hover {
  background-color: #FFFFFF; /* Color de hover */
}

/* Estilos restantes del archivo CSS original */
.sidebar {
  position: absolute;
  width: 25%;
  height: 100%;
  top: 0;
  left: -25%; /* Inicia oculto */
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.25);
  transition: left 0.3s ease; /* Transición suave para el movimiento lateral */
}

.map {
  position: absolute;
  left: 0%;
  width: 100%;
  top: 0;
  bottom: 0;
  transition: left 0.3s ease; /* Transición suave para el movimiento lateral */
}

.hidden-sidebar {
  left: -25%; /* Mueve la barra lateral fuera de la pantalla */
}

.full-width-map {
  left: 0;
  width: 100%;
}

.full-width-map .map {
  width: 100%;
}

h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 400;
  line-height: 20px;
  padding: 20px 2px;
}

a {
  color: #404040;
  text-decoration: none;
}

a:hover {
  color: #101010;
}

.heading {
  background: #fff;
  border-bottom: 1px solid #eee;
  min-height: 60px;
  line-height: 60px;
  padding: 0 10px;
  background-color: #0074D9;
  color: #fff;
}

.listings {
  height: 100%;
  overflow: auto;
  padding-bottom: 60px;
}

.listings .item {
  display: block;
  border-bottom: 1px solid #0074D9;
  padding: 10px;
  text-decoration: none;
}

.listings .item:last-child {
  border-bottom: none;
}

.listings .item .title {
  display: block;
  color: #6c5ce7;
  font-weight: 700;
}

.listings .item .title small {
  font-weight: 400;
}

.listings .item.active .title,
.listings .item .title:hover {
  color: #FB545C;
}

.listings .item.active {
  background-color: #D6D6D6;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  border-left: 0;
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: #0074D9;
  border-radius: 0;
}

.marker {
  border: none;
  cursor: pointer;
  height: 56px;
  width: 56px;
  background-image: url(../img/marker.png);
  background-color: rgba(0, 0, 0, 0);
}

.clearfix {
  display: block;
}

.clearfix:after {
  content: '.';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.mapboxgl-popup {
  padding-bottom: 50px;
}

.mapboxgl-popup-close-button {
  display: none;
}

.mapboxgl-popup-content {
  font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
  padding: 0;
  width: 275px;
}

.mapboxgl-popup-content-wrapper {
  padding: 1%;
}

.mapboxgl-popup-content h3 {
  background: #FFD307;
  color: #fff;
  margin: 0;
  display: block;
  padding: 10px;
  border-radius: 3px 3px 0 0;
  font-weight: 700;
  margin-top: -15px;
}

.mapboxgl-popup-content h4 {
  margin: 0;
  display: block;
  padding: 10px 10px 10px 10px;
  font-weight: 400;
}

.mapboxgl-popup-content div {
  padding: 10px;
}

.mapboxgl-container .leaflet-marker-icon {
  cursor: pointer;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 15px;
}

.text-center {
  text-align: center;
}

body {
  color: #404040;
  font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}


#floatingButton {
  position: fixed;
  bottom: 65px; /* Ajusta la distancia desde la parte inferior */
  right: 15px;   /* Ajusta la distancia desde la parte izquierda */
  z-index: 1000; /* Asegúrate de que el botón esté por encima de otros elementos */
  cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
}

#floatingButton img {
  width: 60px; /* Ajusta el tamaño de la imagen */
  height: auto; /* Mantén la proporción de la imagen */
}
