/* URBANPOS — Carte des références */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#map {
  background: #f0f4f5;
}

/* Filter chips */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #f0f4f5;
  color: #142a2e;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover {
  background: #e5e9eb;
}
.filter-chip[data-filter]:not([data-filter="all"])::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--chip-color);
}
.filter-chip-active {
  background: #7B133C;
  color: white;
  border-color: #7B133C;
}
.filter-chip-active:hover {
  background: #310818;
}
.filter-chip-active[data-filter]:not([data-filter="all"])::before {
  background: white;
}

/* Custom marker (a colored disc with white border, sized as a Leaflet divIcon) */
.urbanpos-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.urbanpos-marker svg {
  width: 14px;
  height: 14px;
  fill: white;
}

/* Popup */
.leaflet-popup-content-wrapper {
  border-radius: 0.5rem;
  padding: 0;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0;
  width: 260px !important;
}
.popup-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: #f0f4f5;
}
.popup-body {
  padding: 0.75rem 0.9rem;
}
.popup-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #142a2e;
  line-height: 1.2;
  margin: 0 0 0.15rem;
}
.popup-meta {
  font-size: 0.75rem;
  color: #142a2e99;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.popup-type {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  background: #f0f4f5;
  color: #142a2e;
}
.popup-type::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--type-color, #7B133C);
}
.popup-testimonial {
  font-size: 0.78rem;
  font-style: italic;
  color: #142a2eb0;
  border-left: 2px solid #D4A853;
  padding-left: 0.55rem;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.35;
}
.popup-testimonial-author {
  font-size: 0.7rem;
  color: #142a2e80;
  font-style: normal;
  display: block;
  margin-top: 0.2rem;
}
.popup-website {
  display: inline-block;
  font-size: 0.72rem;
  color: #7B133C;
  text-decoration: none;
  margin-top: 0.35rem;
}
.popup-website:hover {
  text-decoration: underline;
}

/* Leaflet marker cluster: brand colors */
.marker-cluster-small {
  background-color: rgba(123, 19, 60, 0.4);
}
.marker-cluster-small div {
  background-color: rgba(123, 19, 60, 0.8);
  color: white;
}
.marker-cluster-medium {
  background-color: rgba(123, 19, 60, 0.5);
}
.marker-cluster-medium div {
  background-color: rgba(123, 19, 60, 0.85);
  color: white;
}
.marker-cluster-large {
  background-color: rgba(49, 8, 24, 0.5);
}
.marker-cluster-large div {
  background-color: rgba(49, 8, 24, 0.9);
  color: white;
}

#loading.hidden {
  opacity: 0;
}
