#msm-container {
  display: flex;
  width: 100%;
  height: 500px;
  margin: 0 auto;
}
#msm-sidebar {
  width: 350px;
  background: #fff;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  padding: 16px 8px 8px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
}
#msm-filter {
  margin-bottom: 16px;
}
.msm-adres {
    font-size: 13px;
    font-weight: bold;
}
#msm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
#msm-list li {
    padding: 15px 10px;
    border-bottom: 1px solid #ccc;
    transition: background 0.15s;
    cursor: pointer;
}
#msm-list li:hover {
    background: #f3f3f3;
}
#msm-list li:hover .leaflet-marker-icon {
    background: #ce2a01 !important;
    transition: background 0.15s;
}
#msm-list li.active, #msm-list li:active {
    background: #ffe5e0 !important;
}
#msm-list li.active .leaflet-marker-icon {
    background: #ce2a01 !important;
}
#msm-list .msm-title {
  font-size: 16px;
}
#msm-list .msm-rodzaj {
font-size: 14px;
    color: #555;
    font-weight: bold;
}
#msm-list .msm-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    color: #222;
    border: 1px solid;
}
#msm-list .msm-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
:root {
  --accent: #e74c3c;
}
#msm-map {
  flex: 1;
  height: 500px !important;
  min-width: 0;
  min-height: 400px;
  background: #eaeaea;
  position: relative;
}
.leaflet-container {
  height: 100% !important;
  width: 100% !important;
}
#msm-map .leaflet-marker-icon {
  background: var(--accent);
  border-radius: 50%;
  padding: 4px!important;
}
.marker-cluster {
  background: var(--accent) !important;
  border-radius: 50%;
  display: flex;
    justify-content: center;
}
.marker-cluster div {
  color: #fff !important;
  font-weight: bold;
  font-size: 1.1em;
      display: flex;
    justify-content: center;
    align-items: center;
}
.marker-cluster span {
  color: #fff !important;
}
.msm-marker-label span {
  font-size: 16px;
  color: #000;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff;
  font-weight: 600;
  margin-left: 8px;
  position: relative;
  top: 2px;
}
#msm-filter-rodzaj label {
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
#msm-filter-rodzaj input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  margin-right: 5px;
  background: #fff;
  position: relative;
  transition: border-color 0.2s;
}
#msm-filter-rodzaj input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
#msm-filter-rodzaj input[type="checkbox"]:checked:after {
  content: '';
  display: block;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  position: absolute;
  top: 1px;
  left: 5px;
  transform: rotate(45deg);
}
#msm-filter-rodzaj-container {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
#msm-map-loader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-marker-icon.msm-marker-active {
  box-shadow: 0 0 0 4px #ffe5e0, 0 2px 8px #ce2a0144;
  background: #ce2a01 !important;
  transition: box-shadow 0.2s, background 0.2s;
}
.marker-cluster.msm-cluster-hover {
  box-shadow: 0 0 0 4px #ce2a01, 0 2px 8px #ce2a0144;
  background: #ce2a01  !important;
  transition: box-shadow 0.2s, background 0.2s, border 0.2s;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  #msm-container {
    flex-direction: column;
    height: auto;
  }
  #msm-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    min-height: 120px;
    order: 2;
    height:auto!important;
  }
  #msm-map {
    height: 400px !important;
    min-height: 350px;
    border-left: none;
    border-top: none;
    order: 1;
  }
    #msm-list {
    max-height: 400px;
    overflow-y: auto;
    min-height: 0;
  }
}
@media (max-width: 600px) {
  #msm-container {
    flex-direction: column;
    height: auto;
  }
  #msm-sidebar {
    width: 100%;
    padding: 10px 2vw;
    order: 2;
    min-height: 80px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    box-sizing: border-box;
    border-bottom: 1px solid #ddd;
  }
  #msm-map {
    height: 400px !important;
    min-height: 400px;
    border-left: none;
    border-top: none;
    order: 1;
  }
  #msm-list {
    max-height: 360px;
    overflow-y: auto;
    min-height: 0;
  }
  #msm-list li {
    padding: 15px 10px;
    font-size: 16px;
  }
}
