#panel-obywatelski-rekomendacje {
    margin-bottom: 8rem;
}

#panel-obywatelski-rekomendacje .recommendation {
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); /* 3D shadow effect */
  position: relative;
  margin-bottom: 4rem;
  overflow: hidden;
}

#panel-obywatelski-rekomendacje .empty .recommendation-visible-content {
  margin-bottom: 0rem;
}

#panel-obywatelski-rekomendacje .empty .row .column-2 {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

#panel-obywatelski-rekomendacje .empty #empty-cta-button {
  cursor: pointer;
  z-index: 3;
}

.recommendation.empty .row.name-row .column-name .row-2 {
  max-width: 53rem;
}

.small-container {
  display: flex;
  width: 100%;
  width: -webkit-fill-available;
  align-items: flex-end;
  justify-content: space-between;
}

.results {
  font-weight: 700;
  line-height: 1;
  display: flex;
}

#results-count {
  min-width: 2rem;
  text-align: end;
}

#panelContainer {
  scroll-margin-top: 10rem;
}

#panel-obywatelski-rekomendacje .recommendation-visible-content {
  margin-bottom: 4rem;
  padding: 4rem;
  border-radius: 5px;
  z-index: 3;
  position: relative;
  box-shadow: 0px -30px 50px 25px #00000030;
}

#panel-obywatelski-rekomendacje .recommendation.accordion-opened .recommendation-visible-content {
  border-radius: 0;
}

#panel-obywatelski-rekomendacje .spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

#panel-obywatelski-rekomendacje .spinner {
  border: 4px solid rgba(0, 0, 0, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

#panel-obywatelski-rekomendacje .recommendation-hidden-content a {
  color: #000;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
  overflow: hidden;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#buttonsContainerCategories, #buttonsContainerEvaluation {
    margin: 1rem;
}

#dropdownsContainer {
    display: flex;
    margin-bottom: 3rem;
}

#dropdownsContainer div {
    margin-right: 2rem;
}

#filters {
  margin: 1rem -5rem 3rem;
  padding: 2rem 5rem 1rem;
  background-color: #fcfcfce3;
}

.filter {
  display: flex;
  margin-bottom: 1rem;
}

.filter .title {
  min-width: 11rem;
  display: flex;
  justify-content: flex-end;
  padding-right: 1rem;
  padding-left: 2rem;
  align-items: center;
  font-weight: 600;
}

#filters button, #chartButtons button {
  margin-right: 1rem;
  border-radius: 3px;
  padding: 2px 7px;
  border: 1px solid #555;
  background-color: #ede9e9;
}

#filters button.active {
  background-color: #f90;
  color: #fff;
}

#chartButtons button.active {
  background-color: steelblue;
  color: #fff;
}

#filterToggle {
  position: absolute;
  top: 6rem;
  float: right;
  right: -14rem;
  cursor: pointer;
  background-color: gainsboro;
  padding: 0.2rem 1rem;
  opacity: 0;
  visibility: hidden;
  border-radius: 4px;
  transition: top 0.5s ease, opacity 0.3s ease, visibility 0.5s ease;
}

#filterToggle.isBlock {
  opacity: 1;
  visibility: visible;
}

#filterToggle.isBlock.isVisible {
  opacity: 1;
  visibility: visible;
  top: 11rem;
}

#filterToggle.isBlock.isVisible.moveUp {
  opacity: 1;
  visibility: visible;
  top: 6rem;
}

#filterToggle.isBlock.isVisible:not(.moveUp), #filterToggle.isBlock:not(.moveUp) {
  padding: 0.5rem 1.5rem;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  background-color: gold;
}

#filterToggle span {
  margin-left: 8px;
  display: inline-block;
  transform: rotate(270deg);
}

#filterToggle.isBlock.isVisible:not(.moveUp) span, #filterToggle.isBlock:not(.moveUp) span {
  transform: rotate(90deg);
}

div.stickytop {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: -4rem;
  z-index: 100;
  transition: top 0.3s ease;
}
/* #filters.stickyToTop {
  position: sticky;
  top: 0;
  z-index: 100;
} */

.row.name-row, .row.summary-row, .row.evaluation-row {
  display: flex;
  z-index: 2;
  position: relative;
}

.recommendation .row {
  margin: 2rem;
}

.svg-background {
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: top;
    position: absolute;
    width: 35rem;
    max-height: 30.5rem;
    /* height: -webkit-fill-available; */
    height: 100%;
    margin-top: 4rem;
    top: -0.5rem;

}

.recommendation p {
    margin-bottom: 8px;
}

.row .column-1 {
  height: 4rem;
  width: 17rem;
  font-weight: 600;
}

.row.hidden-content-row .column-1 {
    width: 30rem;
}

.row .column-2, .row .column-name {
  width: 100%;
}

.more_info-button {
  padding: 0.5rem 2rem;
  border-radius: 3px;
  background-color: darkseagreen;
  color: #fff;
  width: fit-content;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row-reverse;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  text-transform: uppercase;
  cursor: default;
}

.more_info-button i {
  margin-right: 1rem;
  font-weight: 700;
}

.recommendation .row.name-row {
  margin-bottom: 3rem;
}

.recommendation .row.name-row .row-3 {
  text-align: center;
  text-transform: uppercase;
  margin-top: .75rem;
}

.recommendation .row.name-row .column-name .row-1 {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    align-items: center;
    text-align: center;
}

.recommendation .row.name-row .column-name .row-1 .middle-text {
  margin: 0 2rem;
}

.recommendation .row.row.evaluation-row .column-1 {
    height: auto;
    align-items: center;
    display: flex;
}

.recommendation .row.name-row .column-name .row-2 {
    font-size: 24px;
    line-height: 34px;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
    margin: 0 auto;
    max-width: 58rem;
}

.recommendation .row.more_info-row {
display: flex;
    text-align: center;
    margin: -8rem 0 0 0;
    background-color: #f2f2f259;
    align-items: center;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    color: darkgrey;
    text-transform: uppercase;
    font-size: small;
    z-index: 3;
    position: relative;
    transition: background-color 0.3s, color 0.3s, border-radius 0.3s;
}

.recommendation.accordion-opened .row.more_info-row {
  border-radius: 0;
}

.row.more_info-row:hover {
    background-color: #f2f2f27a;
    color: #787878;
}

.row.more_info-row .column-1, .row.more_info-row .column-3 {
  width: 15%;
}

.row.more_info-row .column-2 {
  width: 70%;
}

.row.more_info-row .column-3 i {
  transition: transform 0.3s;
}

.recommendation.accordion-opened .row.more_info-row .column-3 i {
  transform: rotate(90deg);
}

.recommendation .hidden-content-row {
  overflow: hidden;
  margin: 0;
  padding: 2rem 6rem;
  background-color: rgba(255,255,255,.15);
  position: relative;
}


.recommendation .hidden-content-container {
  max-height: 0;
  margin: 0;
  transition: margin 0.3s ease-in-out, max-height 0.3s ease-in-out;
  z-index: 1;
  position: relative;
}

.recommendation.accordion-opened .hidden-content-container {
  z-index: 1;
  max-height: fit-content;
}

.recommendation .row.summary-row {
  margin-bottom: 4rem;
}

.recommendation .hidden-content-container .row.hidden-content-row:last-child .column-2 {
  padding-bottom: 3rem;
}

.recommendation .hidden-content-container .row.hidden-content-row:first-child {
  padding-top: 6rem;
}

select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  width: 200px;
  cursor: pointer; /* Change cursor on hover */
}

/* Style the option elements */
option {
  background-color: #fff;
  color: #333;
  padding: 5px;
  cursor: pointer;
}

/* Style the dropdown when it's focused or hovered */
select:focus, select:hover {
  border-color: #007bff; /* Change border color on hover or focus */
}

/* Style the dropdown arrow */
select::after {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none; /* Ignore clicks on the arrow */
}

/* Style the option elements on hover */
option:hover {
  background-color: #007bff;
  color: #fff;
}

.icons .wpb_wrapper {
  display: flex;
  justify-content: center;
  margin: 6rem 0 -2rem;
}

.wpb_wrapper .content-summary {
    font-family: 'Open Sans';
    line-height: 26px;
    letter-spacing: 0.08px;
    font-weight: 400;
    font-style: normal;
    color: #50485b;
    font-size: 17px;
    text-align: center;
    margin-bottom: 6rem;
}

.zrealizowane {
  background-color: #8BC34A; /* Kolor zielony */
}

.czesciowo-zrealizowane {
  background-color: #ffcb00; /* Kolor żółty */
}

.iniciatywa-nieudana {
  background-color: #ffcb00; /* Kolor pomarańczowy */
}

.nie-da-sie {
  background-color: #E91E63; /* Kolor czerwony */
}

.niezrealizowane {
  background-color: #E91E63; /* Kolor szary */
}

.nic-sie-nie-dzieje {
  background-color: #E91E63; /* Kolor fioletowy */
}

.zmiany-przeciwne {
  background-color: #E91E63; /* Kolor różowy */
}

.bg-zrealizowane {
  background-color: #e8f3db; /* Kolor zielony */
}

.bg-czesciowo-zrealizowane {
  background-color: #fff7cc; /* Kolor żółty */
}

.bg-iniciatywa-nieudana {
  background-color: #fff7cc; /* Kolor pomarańczowy */
}

.bg-nie-da-sie {
  background-color: #fbd2e0; /* Kolor czerwony */
}

.bg-niezrealizowane {
  background-color: #fbd2e0; /* Kolor szary */
}

.bg-nic-sie-nie-dzieje {
  background-color: #fbd2e0; /* Kolor fioletowy */
}

.bg-zmiany-przeciwne {
  background-color: #fbd2e0; /* Kolor różowy */
}

.bg-zrealizowane-hidden {
  background-color: #e8f3db7a; /* Kolor zielony */
}

.bg-czesciowo-zrealizowane-hidden {
  background-color: #fff7cc7a; /* Kolor żółty */
}

.bg-iniciatywa-nieudana-hidden {
  background-color: #fff7cc7a; /* Kolor pomarańczowy */
}

.bg-nie-da-sie-hidden {
  background-color: #fbd2e07a; /* Kolor czerwony */
}

.bg-niezrealizowane-hidden {
  background-color: #fbd2e07a; /* Kolor szary */
}

.bg-nic-sie-nie-dzieje-hidden {
  background-color: #fbd2e07a; /* Kolor fioletowy */
}

.bg-zmiany-przeciwne-hidden {
  background-color: #fbd2e07a; /* Kolor różowy */
}

.background-bike {
  background-image: url('icons/noun-bicycle-4303819.svg');
}

.background-train {
  background-image: url('icons/noun-train-4303211-FFFFFF.svg');
}

.background-center {
  background-image: url('icons/noun-crosswalk-1222620-FFFFFF.svg');
}

.background-tram {
  background-image: url('icons/noun-tram-367186-FFFFFF.svg');
}

.background-other {
  background-image: url('icons/noun-bus-stop-1408700-FFFFFF.svg');
}

.background-energy {
  background-image: url('icons/noun-car-charge-1222663-FFFFFF.svg');
}

.background-walk-bike {
  background-image: url('icons/noun-bicycle-4303819.svg');
}

.background-space {
  background-image: url('icons/noun-park-1408695-FFFFFF.svg');
}

.background-paring {
  background-image: url('icons/noun-parking-lot-4303214-FFFFFF.svg');
}

.background-tram-train {
  background-image: url('icons/noun-bicycle-4303819.svg');
}

.chart {
  display: none
}

#chartjs {
  display: block;
  max-width: 850px;
  margin: 0 auto;
}

#chartButtons {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

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

.chart {
  display: block
}

#chartjs {
  display: none
}

#panelContainer {
  position: relative;
  overflow: hidden;
}

#filters {
  margin: 0;
  padding: 5rem 2rem 1rem;
  position: fixed;
  top: 5rem;
  right: -100%;
  width: 100%;
  transition: right 0.5s ease-in-out;
  background-color: #fcfcfc;
}

#filters.moveLeft{
  right: 0; /* Initially off-screen */
}

#filterToggle {
  top: -2rem;
  position: fixed;
  right: 3px;
  display: flex;
  flex-direction: row-reverse;
}

#filterToggle.isBlock.isVisible {
  top: 51px;
  padding: 0.75rem 1.5rem!important;
}

.moveLeft #filterToggle {
  flex-direction: row;
  top: 51px!important;
  opacity: 1!important;
  visibility: visible!important;
  padding: 0.75rem 1.5rem!important;
  background-color: gold!important;
}

.moveLeft #filterToggle span {
  transform: rotate(0deg)!important;
}

#filters:not(.moveLeft) #filterToggle span {
  margin-right: 8px!important;
  transform: rotate(180deg)!important;
}

.filter {
  margin-bottom: 2rem;
  flex-direction: column;
  align-items: flex-start;
}

.filter .title {
  justify-content: flex-start;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.small-container {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
}

.results {
  margin-top: 1rem;
  justify-content: flex-end;
  width: 90%;
}

#filters button {
  margin-bottom: 0.75rem;
  border: 1px solid #fff;
  border-radius: 15px;
  padding: 0 12px;
}


  #panel-obywatelski-rekomendacje {
      margin-bottom: 6rem;
      margin-left: -2rem;
      margin-right: -2rem;
  }

  #panel-obywatelski-rekomendacje .recommendation-visible-content {
    padding: 2rem;
  }

  .row.name-row, .row.summary-row, .row.evaluation-row {
    display: block;
  }

  .recommendation .row.row.evaluation-row .column-1, .recommendation .row.summary-row .column-1 {
    height: 4rem;
  }

  .recommendation .row.evaluation-row {
    margin-bottom: 3rem;
  }

  .recommendation .row.summary-row {
    margin-bottom: 5rem;
  }

  .recommendation .hidden-content-row {
    padding: 2rem 4rem;
  }

  .svg-background {
    background-position-x: center;
    background-position-y: center;
    margin-top: 0;
    top: 20rem;
}
}
