.lily-mapa {
  width: 100%;
  max-width: 100%;
  background: #e8e8e8;
  position: relative;
  z-index: 0;
}

.lily-mapa .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: #f0f0f0;
}

/* B/N sobre tiles OSM (detalle de calle sin API key) */
.lily-mapa .leaflet-tile-pane {
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}

/* Hide default attribution clutter a bit but keep credit readable */
.lily-mapa .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.75);
}

/* Zoom controls — black squares like reference */
.lily-mapa .leaflet-bar {
  border: none;
  box-shadow: none;
}

.lily-mapa .leaflet-bar a {
  background: #000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 18px;
  border-radius: 0;
}

.lily-mapa .leaflet-bar a:hover,
.lily-mapa .leaflet-bar a:focus {
  background: #222;
  color: #fff;
}

.lily-mapa .leaflet-bar a.leaflet-disabled {
  background: #666;
  color: #ccc;
}

/* Clusters — black circles with white count */
.lily-mapa .lily-mapa-cluster {
  background: #000;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.lily-mapa .lily-mapa-cluster span {
  line-height: 1;
}

.lily-mapa .marker-cluster-small .lily-mapa-cluster,
.lily-mapa .marker-cluster-medium .lily-mapa-cluster,
.lily-mapa .marker-cluster-large .lily-mapa-cluster {
  background: #000;
}

.lily-mapa .marker-cluster-small,
.lily-mapa .marker-cluster-medium,
.lily-mapa .marker-cluster-large {
  background: transparent !important;
}

.lily-mapa .marker-cluster-small div,
.lily-mapa .marker-cluster-medium div,
.lily-mapa .marker-cluster-large div {
  background: transparent !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Popup */
.lily-mapa .leaflet-popup-content-wrapper {
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.lily-mapa .leaflet-popup-content {
  margin: 0;
  min-width: 200px;
  max-width: 260px;
}

.lily-mapa .leaflet-popup-content p {
  margin: 0;
  margin-top: 10px;
}

.lily-mapa .leaflet-popup-tip {
  box-shadow: none;
}

.lily-mapa .leaflet-popup-close-button {
  width: 28px !important;
  height: 28px !important;
  top: 6px !important;
  right: 6px !important;
  padding: 0 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 26px !important;
  color: #000 !important;
  text-align: center;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 2px;
  opacity: 1 !important;
}

.lily-mapa .leaflet-popup-close-button:hover,
.lily-mapa .leaflet-popup-close-button:focus {
  color: #000 !important;
  background: #fff !important;
  opacity: 1 !important;
}

.lily-mapa-popup {
  font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  color: #111;
}

.lily-mapa-popup__thumb {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #ddd;
}

.lily-mapa-popup__body {
  padding: 6px 10px 12px 10px;
}

.lily-mapa-popup__title {
  margin: 0 0 8px;
  padding: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.lily-mapa-popup__actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

/* !important: el tema (Elementor) fuerza color azul en <a> */
.lily-mapa a.lily-mapa-popup__details,
.lily-mapa-popup a.lily-mapa-popup__details {
  color: #000 !important;
  font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  letter-spacing: 0.01em;
}

.lily-mapa a.lily-mapa-popup__details::after,
.lily-mapa-popup a.lily-mapa-popup__details::after {
  content: " »";
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1;
  vertical-align: -0.05em;
  color: #000 !important;
}

.lily-mapa a.lily-mapa-popup__details:hover,
.lily-mapa a.lily-mapa-popup__details:focus,
.lily-mapa-popup a.lily-mapa-popup__details:hover,
.lily-mapa-popup a.lily-mapa-popup__details:focus {
  color: #000 !important;
  opacity: 0.65;
}

.lily-mapa a.lily-mapa-popup__dir,
.lily-mapa-popup a.lily-mapa-popup__dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 0;
}

.lily-mapa a.lily-mapa-popup__dir:hover,
.lily-mapa a.lily-mapa-popup__dir:focus,
.lily-mapa-popup a.lily-mapa-popup__dir:hover,
.lily-mapa-popup a.lily-mapa-popup__dir:focus {
  background: #222 !important;
  color: #fff !important;
}

.lily-mapa a.lily-mapa-popup__dir svg,
.lily-mapa-popup a.lily-mapa-popup__dir svg {
  width: 20px;
  height: 20px;
  fill: #fff !important;
  color: #fff !important;
}

.lily-mapa a.lily-mapa-popup__dir svg path,
.lily-mapa-popup a.lily-mapa-popup__dir svg path {
  fill: #fff !important;
}

.lily-mapa-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: #444;
  font-size: 14px;
}
