.lugares-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 15px;
}

.lugares-container h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #b00000;
  margin-bottom: 15px;
  text-align: center;
}

.lugares-container p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-align: center;
  color: #555;
}

/* Barra de filtro */
.filter-bar {
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 15px;
}

.filter-bar label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.filter-bar select {
  border-radius: 8px;
}

/* Cards uniformes */
.promo-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.promo-card img {
  width: 100%;
  height: 200px;      /* altura fija para todas */
  object-fit: cover;  /* recorta proporcionalmente */
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.promo-card .card-body {
  padding: 12px;
  flex-grow: 1; /* iguala alturas */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.promo-card .card-text.categoria {
  font-size: 0.9rem;
  text-transform: capitalize; /* Primera letra mayúscula */
  color: #777;
}

/* Detalle */
#promo-detail {
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
}

#promo-detail h3 {
  color: #b00000;
  font-weight: 700;
  margin-bottom: 15px;
}

#promo-detail p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 8px;
}

#promo-detail a {
  display: inline-block;
  text-align: center;
  align-items: center;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #b00000;
  color: #b00000;
  text-decoration: none;
  transition: all 0.2s ease;
}

#promo-detail a:hover {
  background: #b00000;
  color: #fff;
}

/* Mapa */
.map-container {
  height: 450px;
  border-radius: 12px;
  margin-top: 30px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* [MOBILE FIX] Hacer el mapa 100% fluido y sin desbordes */
.map-container, #map { width: 100%; max-width: 100%; }
.map-container { overflow: hidden; }
#map, .leaflet-container { width: 100% !important; }

/* === Pines estilo marcador (con punta del mismo color) === */
.custom-pin .pin {
  position: relative;
  width: 36px;
  height: 36px;
  background: gray;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.custom-pin .pin i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: white;
}

/* Punta del marcador */
.custom-pin .pin::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid;
}

/* esta línea clave copia el color de fondo del pin hacia su pseudoelemento */
.custom-pin .pin {
  position: relative;
  width: 36px;
  height: 36px;
  background: gray;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  --pin-color: gray; /* ← variable propia */
}

.custom-pin .pin::after {
  border-top-color: var(--pin-color); /* usa la variable personalizada */
}


/* Ajuste móvil */
@media (max-width: 576px) {
  .custom-pin .pin {
    width: 26px;
    height: 26px;
  }

  .custom-pin .pin i {
    font-size: 14px;
  }

  .custom-pin .pin::after {
    bottom: -6px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid;
    border-top-color: inherit;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .lugares-container h1 {
    font-size: 2rem;
  }
  .promo-card img {
    height: 180px;
  }
  .map-container {
    height: 350px;
  }
  /* [MOBILE FIX] Respiro lateral en móviles */
  .lugares-container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 576px) {
  .lugares-container h1 {
    font-size: 1.6rem;
  }
  .promo-card img {
    height: 160px;
  }
  .map-container {
    height: 300px;
  }
  /* [MOBILE FIX] Evitar desbordes del mapa en móviles pequeños */
  .map-container, #map { width: 100%; }
}
