/* ─── CPTS Directory typography ─── */
.cpts-directory { font-family: 'DM Sans', system-ui, sans-serif; }
.cpts-directory h1, .cpts-directory h2 { font-family: 'DM Serif Display', Georgia, serif; }

/* ─── CPTS Directory scrollbar ─── */
.cpts-list-scroll::-webkit-scrollbar { width: 4px; }
.cpts-list-scroll::-webkit-scrollbar-track { background: transparent; }
.cpts-list-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.cpts-list-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
@media (prefers-color-scheme: dark) {
  .cpts-list-scroll::-webkit-scrollbar-thumb { background: #475569; }
  .cpts-list-scroll::-webkit-scrollbar-thumb:hover { background: #64748b; }
}

/* ─── Floating mobile toggle ─── */
.cpts-mobile-toggle {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── CPTS Map Marker ─── */
.cpts-marker-container {
  background: transparent !important;
  border: none !important;
}

.cpts-marker {
  width: 28px;
  height: 28px;
  background: #0d9488;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4), 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpts-marker:hover {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cpts-marker-inner {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ─── Leaflet popup overrides ─── */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 220px;
}

.leaflet-popup-tip {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ─── Cluster markers ─── */
.marker-cluster {
  border-radius: 50%;
  color: white;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.marker-cluster:hover {
  transform: scale(1.1);
}

.marker-cluster-small {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.marker-cluster-medium {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  width: 48px;
  height: 48px;
  font-size: 13px;
}

.marker-cluster-large {
  background: linear-gradient(135deg, #0f766e, #115e59);
  width: 56px;
  height: 56px;
  font-size: 15px;
}

.marker-cluster div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-cluster span {
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ─── Popup content ─── */
.cpts-popup {
  padding: 16px 18px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.cpts-popup-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.cpts-popup-uai {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 4px 0;
}

.cpts-popup-uai-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cpts-popup-address {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.cpts-popup-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.cpts-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #0d9488;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.cpts-popup-link:hover {
  background: #0f766e;
}
