.mapContainer{
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    height: auto;   /* albo po prostu usuń height: 600px */
    display: block;
}

.map{
    width: 100%;
    height: auto;   /* żeby SVG skalowało się proporcjonalnie */
}

.selectCities{
    margin: 0 auto;
    display: block;
    width: 400px;
    height: 150px;
    margin-bottom: 50px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.selectCities label{
    display: block;
    margin: 5px;
}

.voivodship{
    position: relative;
}

.voivodship:hover {
    fill: red;
}

.voivodship.obslugiwane:hover {
    fill: #28a745 !important;
}

.voivodship.active{
    fill: #green;
}


.voivodship.obslugiwane {
    fill: #28a745;
}
.voivodship.planowane {
    fill: #ffc107;
}

.city{
    fill: black;
    stroke: red;
}

.rangeContainer,
.searchContainer,
.checkContainer{
    width: 400px;
    margin: 0 auto;
    text-align: center;
}

.checkContainer input,
.checkContainer label{
    display: inline-block;
    vertical-align: middle;
}

.search{
    width: 50%;
}

.mapSize{
    display: inline-block;
    vertical-align: middle;
}



@media(max-width: 600px){
    .city:active + text{
        opacity: 1;
        visibility: visible;
    }
}


.rangeContainer {
    display: none;
}

.searchContainer {
    display: none;
}

.checkContainer {
    display: none;
}

.selectCities {
    display: none;
}

.city-label {
    opacity: 0;
    visibility: hidden;
    font-size: 30px;
    fill: black;
    stroke: black;
    pointer-events: none;      /* żeby nie łapać hove­rów na tekście */
    transition: opacity .3s linear;
}

.city-label.visible {
    opacity: 1;
    visibility: visible;
}

.search-city-wrapper {
  text-align: center; /* wyśrodkuj cały blok */
  margin-top: 1rem;
}

/* --- kontener --- */
.search-city-container {
  display: inline-flex; /* input i przycisk w jednej linii */
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* odstęp między nimi */
  max-width: 400px;
  width: 100%;
}

/* --- input --- */
#citySearchInput {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* --- przycisk --- */
#citySearchButton {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  background-color: #28a745;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#citySearchButton:hover {
  background-color: #218838;
}

/* --- wynik wyszukiwania --- */
.search-result-text {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}
.search-result-text.success {
  color: #28a745;
}
.search-result-text.warning {
  color: #d9534f;
}

.search-city-container input,
.search-city-container button,
.search-result-text {
  font-family: var(--font-family-poppins, 'Poppins', sans-serif);
}
