/* Térképen megjelenő folyamkilométer jelölés */
@font-face {
    font-family: 'FKM';
    src: url('../fonts/fkm.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.rsd-fkm-marker-icon,
.rsd-fkm-leaflet-marker {
  background: transparent !important;
  border: 0 !important;
}

.rsd-fkm-marker-icon img,
.rsd-fkm-marker-icon svg,
.rsd-fkm-leaflet-marker img,
.rsd-fkm-leaflet-marker svg {
  display: none !important;
}

.rsd-fkm-html-marker {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 3px !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'FKM', sans-serif !important;
  font-size: 18px !important;
  font-weight: normal !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45) !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

/* Smart Filter lista alá beszúrt Rétegek blokk */
.rsd-fkm-layers-block {
  margin-top: 14px;
}

.rsd-fkm-separator {
  height: 1px;
  background: rgba(0, 0, 0, 0.16);
  margin: 12px 0 10px;
}

.rsd-fkm-layer-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: inherit;
}

.rsd-fkm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.rsd-fkm-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsd-fkm-checkbox-visual {
  width: 18px;
  height: 18px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.rsd-fkm-checkbox:checked + .rsd-fkm-checkbox-visual {
  background: #111;
  border-color: #111;
}

.rsd-fkm-checkbox:checked + .rsd-fkm-checkbox-visual::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.rsd-fkm-checkbox-text {
  font-size: inherit;
  color: inherit;
}


/* RSD FKM - Rétegek gomb kinézet a kategória gombokhoz igazítva */
.rsd-filter-buttons .rsd-fkm-layers-block {
  margin-top: 14px;
}

.rsd-filter-buttons .rsd-fkm-separator {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 14px 0 12px;
}

.rsd-filter-buttons .rsd-fkm-layer-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f2933;
}

.rsd-filter-buttons .rsd-fkm-checkbox-label {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.rsd-filter-buttons .rsd-fkm-checkbox {
  display: none !important;
}

.rsd-filter-buttons .rsd-fkm-checkbox-visual {
  display: none !important;
}

.rsd-filter-buttons .rsd-fkm-checkbox-text {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 16px 13px 48px;
  border-radius: 16px;
  background: #f7faf8;
  border: 1px solid #e0ebe4;
  font-weight: 600;
  color: #1f2933;
  position: relative;
  box-sizing: border-box;
}

.rsd-filter-buttons .rsd-fkm-checkbox-text::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background-image: url("/wp-content/uploads/icons/folyamkilometer.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.rsd-filter-buttons .rsd-fkm-checkbox:checked ~ .rsd-fkm-checkbox-text {
  background: #e7f8ef;
  border-color: #20b56b;
  color: #087f5b;
}

/* Ha még nincs külön SVG ikon feltöltve, legyen egy egyszerű fekete FKM jel */
.rsd-filter-buttons .rsd-fkm-checkbox-text::after {
  content: "km";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  text-transform: lowercase;
  box-shadow: 0 0 0 2px #fff inset;
}

/* Ha a folyamkilometer.svg létezik és betölt, ez a fallback felirat nem kell.
   Ezt később törölheted, ha saját ikont használsz. */
