/***********************************/
/********MAP***********/
/***********************************/

.map-filter {
  border: 2px solid #ffc451;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  background: black;
  overflow: hidden;
  display: block;
}

.leaflet-control-container,
.leaflet-popup-tip-container {
  display: none !important;
}

.map-container {
  padding: 10px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  max-height: 600px;
}

.custom-map {
  border-radius: 10px;
  height: 550px;
  margin: 15px;
  touch-action: pan-x pan-y;
}

@media (max-width: 768px) {
  .map-container {
    padding: 5px;
    margin: 5px;
  }

  .custom-map {
    height: 500px; /* Altura reducida para móviles */
  }
}

@media (pointer: coarse) {
  .custom-map {
    pointer-events: auto;
  }
}

/***********************************/
/********CARD***********/
/***********************************/

.category-section,
.description-section,
.price-section,
.rating-section,
.card-title-img,
.card-img-top-container {
  margin-bottom: 2px !important;
}

.card-img-top-container {
  margin-top: 30px;
}

.custom-tooltip-class {
  margin-top: 120px;
  background-color: #b3e0ff;
  color: white;
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
  background-size: contain;
  background-position: center;
  width: 250px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .custom-tooltip-class {
    margin-top: 80px !important;
    width: 210px;
    min-height: 80px;
    font-size: 12px;
    padding: 5px;
    margin-left: -100px !important;
  }
}

.card-title-img {
  margin: 0 auto;
  margin-top: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: black;
  padding: 5px 10px;
  width: auto;
  max-width: 80%;
  border-radius: 8px;
  box-sizing: border-box;
  display: block;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .card-title-img {
    font-size: 0.8rem;
    padding: 3px 8px;
    max-width: 90%;
  }
}

.card-img-top {
  max-width: 80%;
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .card-img-top {
    height: 60px;
    max-width: 90%;
  }
}

/*************titulos textos******************/
.card-text-title {
  color: brown !important;
  font-weight: bolder;
  display: block;
  text-align: center;
  margin-bottom: 2px;
}

.card-text-map {
  color: black !important;
  font-weight: bolder;
  display: block;
  text-align: center;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .card-text-title,
  .card-text-map {
    font-size: 0.8rem;
  }
}

/******BOTONES *******/

.google-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  cursor: pointer;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  height: 100%;
}

.tooltip-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  padding: 5px 10px;
  font-size: 18px;
  text-transform: capitalize;
}

.tooltip-button:hover {
  opacity: 0.8;
  cursor: pointer;
}

.custom-btn {
  background-color: #ff4500;
  border-color: #ff4500;
  color: #fff;
}

.custom-btn:hover {
  background-color: #e03e00;
  border-color: #e03e00;
}

@media (max-width: 768px) {
  .tooltip-button {
    font-size: 12px;
    padding: 6px 10px;
  }

  .custom-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/****estrellas***/

.rating-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.estrellas {
  margin-left: 5px;
}

.valoraciones i.fas.fa-star {
  color: #ffd700 !important;
}

.valoraciones i.far.fa-star {
  color: gray !important;
}

@media (max-width: 768px) {
  .rating-section {
    font-size: 0.8rem;
  }

  .estrellas {
    margin-left: 3px;
  }
}

/***********************/
/********leaflet*******/
/**********************/

/******tooltip****/
.custom-tooltip-marker {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-weight: bolder;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000 !important;
  text-align: center;
}

.tooltip-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tooltip-name {
  font-size: 16px;
  margin-bottom: 5px;
}

.tooltip-category {
  font-size: 14px;
}

@media (max-width: 768px) {
  .custom-tooltip-marker {
    font-size: 12px;
    padding: 3px 8px;
  }

  .tooltip-name {
    font-size: 14px;
  }

  .tooltip-category {
    font-size: 12px;
  }
}

/* Eliminar fondo, bordes y sombra del popup */
.leaflet-popup {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  position: absolute;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

@media (max-width: 768px) {
  .leaflet-popup {
    max-width: 90vw;
    max-height: 80vh;
    margin-left: 50px;
  }
}

/* Eliminar borde o margen en el contenido del popup */
.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Eliminar la sombra en el contenedor de la punta del popup */
.leaflet-popup-tip-container {
  background: transparent !important;
  box-shadow: none !important;
}

/******marcador cluster***/

.leaflet-marker-icon.marker-cluster span {
  color: #fff !important;
  font-weight: bold !important;
  font-size: 14px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
  background-color: #ff0000 !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
}

@media (max-width: 768px) {
  .leaflet-marker-icon.marker-cluster span {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }
}

/* Eliminar fondo blanco en el popup */
.leaflet-popup-content-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/******************************************/
/* Estilos para el botón de cierre del popup */
.leaflet-popup-close-button {
  background-color: #ff0000 !important;
  color: white !important;
  border: none !important;
  width: 25px !important;
  height: 25px !important;
  font-size: 18px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  margin-top: 130px !important;
  margin-right: 110px !important;
  position: absolute !important;
  border-radius: 6px !important; /* Bordes ligeramente redondeados */
}

@media (max-width: 768px) {
  .leaflet-popup-close-button {
    width: 20px !important;
    height: 20px !important;
    font-size: 14px !important;
    margin-right: 95px !important;
    margin-top: 90px !important;
    border-radius: 6px !important; /* Se mantiene el mismo redondeo en pantallas pequeñas */
  }
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* Eliminar el triángulo en el estado de hover */
.leaflet-marker-icon.marker-cluster:hover {
  background-image: none !important;
  box-shadow: none !important;
}

.marker-cluster-small:after,
.marker-cluster-medium:after,
.marker-cluster-large:after {
  display: none !important;
}
