.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(133, 77, 0, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(133, 77, 0, 0.9);
  color: #f3e3c2;
  font-size: 16px;
}

/* Disable hover jump on map page */
body.mappage .tile:hover,
body.mappage .county-grid a:hover,
body.mappage .action-tile:hover,
body.mappage .az-nav a:hover,
body.mappage .searchbox button:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Leaflet popup card */
.leaflet-popup-content-wrapper {
  padding: 0;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
}

.leaflet-popup-content {
  width: auto !important;
  margin: 0;
}

.leaflet-popup-tip {
  background: var(--cream);
  border: 2px solid var(--gold-border);
}

.marker-popup {
  position: relative;
  width: 250px;
  max-width: 250px;
}

.marker-popup .cmarker-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "number title"
    "location location"
    "text text";
  gap: 2px 6px;
  align-items: start;
  margin: 0;
  padding: 34px 12px 12px;
  text-align: left;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.marker-popup-center .cmarker-card {
  display: block;
}

.marker-popup a.cmarker-card {
  color: inherit;
  text-decoration: none;
}

.marker-popup .cmarker-card:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.marker-popup .cmarker-number,
.marker-popup .cmarker-title,
.marker-popup .cmarker-location,
.marker-popup .cmarker-text,
.marker-popup-courthouse .cmarker-title {
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.marker-popup .cmarker-number {
  margin-bottom: 4px;
  padding: 2px 8px;
  font-size: 14px;
  line-height: 1;
  align-self: start;
}

.marker-popup .cmarker-title,
.marker-popup-courthouse .cmarker-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
}

.marker-popup .cmarker-location {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.15;
}

.marker-popup .cmarker-text {
  margin-top: 3px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.marker-popup .popup-close,
.marker-popup-courthouse .popup-close {
  position: absolute;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0 0.5px 0.5px 0;
  font-size: 24px;
  line-height: 1;
  color: var(--gold-2);
  cursor: pointer;
  background: var(--cream);
  border: 2px solid var(--gold-border);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.marker-popup .popup-close {
  right: -28px;
}

.marker-popup-center .popup-close,
.marker-popup-courthouse .popup-close {
  right: 0;
}

.leaflet-marker-icon:focus,
.leaflet-interactive:focus {
  outline: none;
}

.cmarker-geocenter {
  display: block;
  margin-top: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  color: var(--text-soft);
  top: 5px;
}

.marker-popup-courthouse {
  position: relative;
  width: 210px;
  max-width: 210px;
}

.marker-popup-courthouse .cmarker-card {
  display: block;
  margin: 0;
  padding: 18px 12px 12px;
  text-align: left;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
