/* kontener filtrów */
#ps-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  max-width: 1320px;
  margin:auto;
}
#ps-filters select {
  padding: 0.4em 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
}
#ps-filters select:focus {
  outline: none;
  border-color: #dd3333;
  box-shadow: 0 0 5px rgba(221, 51, 51, 0.3);
}

.gm-style-iw{
	min-width:300px !important;
}

/* mapa ma pełną szerokość i wysokość 600px */
#ps-map {
  width: 100%;
  height: 40.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* tooltip w InfoWindow możesz dodatkowo ostylować genealogicznie poprzez CSS inline w JS */

/* opcjonalnie ukryty „placeholder” w display inputach, jeśli używasz JS-owego przełączania */
.ps-display-field {
  cursor: pointer;
  color: #333;
  background: #f9f9f9;
  padding: 0.4em 0.6em;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.ps-display-field:hover {
  background: #fff;
}


.custom-marker {
  width: 40px;
  height: 40px;
  background: #be1522;
  /* teardrop shape via clip-path */
  clip-path: path('M12,0 C6,0 0,6 0,12 C0,21 12,36 12,36 C12,36 24,21 24,12 C24,6 18,0 12,0 Z');
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative; /* Dodajemy pozycjonowanie */
}

.marker-label {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: white;
	width: 23px;
  height: 20px;
}


@keyframes drop {
  0%   { transform: translateY(-200px); }
  80%  { transform: translateY(8px); }
  100% { transform: translateY(0); }
}

.custom-marker.drop-animation {
  animation: drop 0.6s ease-out forwards;
}


#city-list-container .marker-label {
    position: absolute;
    top: 4px;
    left: -10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    line-height: 1;

    background: #be1522;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 99px;
    border: 1px solid;

}

 .marker-label {
    position: absolute;
    top: 4px;
    left: 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    line-height: 1;

}


#voivodeship-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 1320px;
  margin:auto;
}

#city-list-container{
  max-width: 1320px;
  margin:auto;

}

.vo-box {
  position: relative;
  width: 100%;
  padding-bottom: 100%;      /* square aspect */
  background: #f9f9f9;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color .2s, background .2s;
}

.vo-box:hover {
  border-color: #be1522;
  background: #fff;
}

/* SVG container fills the box, sits behind text */
.vo-box svg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .2;
}

/* your label centered over the SVG */
.vo-box .vo-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 14px;
  text-align: center;
  padding: 0 4px;
  color: #333;
   white-space: normal;  /* Zmiana z nowrap na normal */
  
}


#voivodeship-grid .vo-box svg {
  width: 100%;
  height: auto;
  display: block;
}


/* pod koniec pliku css/ps-front.css */
#city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 3;
  -webkit-columns: 3;
  column-gap: 2em;
}

#city-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}

#city-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5em;
  height: 0.5em;
  background: #be1522;
  border-radius: 50%;
}


#ps-filters .nice-select{

  display: none;
}


@media only screen and (max-width: 1400px) {

#voivodeship-grid, #city-list-container {
  
    width: 95%;
}  


}




@media only screen and (max-width: 620px) {
#city-list {

    columns: 2;
    -webkit-columns: 2;

}

}

#city-list-container h2{
	margin-bottom:30px;
}


.tax-voivodeship .mc_void{
	padding-top:0;
} 


.tax-voivodeship #ps-filters{
	margin:0 !important;
} 


.mc_pin_container{
	display:flex;
	flex-direction:column;
}

.mc_pin_container strong{
	font-size:14px;
	margin-bottom:0px;
	font-weight:500;
}

.mc_pin_container a{
	font-size:14px;
	font-weight:500;
	margin-top:5px;
	color:#be1522;
}

.kc-kolorystyka-item img{
	max-height:200px;
}