.map {
  /* height: 100%; */
  width: 100%;
}

:root { --header-h: 60px; } 
#jsmap, #jsmapPatj, #jsmap3 {
  height: calc(100vh - var(--header-h));
}
.custom-map-tabs {
  border-bottom: 2px solid #012b7f;
}
  /* un accent subtil pe tabs */
  .custom-map-tabs .nav-link { font-weight: 350; border-bottom: 3px solid transparent; }
  .custom-map-tabs .nav-link.active { border-color: #012b7f; color: #012b7f; }

  .tab-content .tab-pane { padding: 0; }




#is_planurb {
  width: 100%;
  height: auto;
}

.ol-custom {
  z-index: 500;
  top: 4.5em;
  left: 3.5em;
}

/* 
.nowidth{
  width: 324px !important;
} */


.detail-card {
  font-family: 'Arial', sans-serif;
  /* width: 300px; */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.detail-card-header {
  top: 0;
  z-index: 1000;
  padding: 13px;
}

.detail-card-title {
  margin: 0px !important;
  font-size: 18px;
}

.detail-card-content {
  max-height: 400px;
  /* Adjust based on your needs */
}

.detail-card-info {
  overflow-y: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.detail-card-info p {
  margin: 10px 0;
}

.detail-card-info p strong {
  color: #3a5a7e;
}

.title-planurb {
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  color: #fff;
  font: 25px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: relative;
  z-index: 1;
  max-height: 600px;
  overflow-y: auto;
  left: 1%;
  width: 250px;
  margin-top: 1%;
}



@media screen and (max-width: 768px) {
  .title-planurb {
    font-size: 16px;
    width: 170px;
    max-height: 80vh;
    padding: 8px;
  }
}

.legend-home {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  bottom: 35px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #fff;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  right: 10px;
  z-index: 1;
  height: 200px;
}

.ol-attribution ul {
  margin: 0;
  padding: 1px 0.5rem;
  color: #000;
  position: fixed;
  /* float: left; */
  left: 19%;
  bottom: 6px;
  text-shadow: 0 0 2px #fff;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.4);
}

@media screen and (max-width: 768px) {
  @supports (bottom: env(safe-area-inset-bottom)) {
    .legend-home {
      bottom: calc(35px + env(safe-area-inset-bottom));
    }
    .legend-home-2{
      bottom: calc(35px + env(safe-area-inset-bottom));
    }
  }

  @supports not (bottom: env(safe-area-inset-bottom)) {
    .legend-home {
      bottom: 35px;
    }
      .legend-home-2{
      bottom: 35px;
    }
  }

  .ol-attribution ul {
    margin: 0;
    padding: 0px 0px;
    color: #000;
    position: fixed;
    /* float: left; */
    left: 0px;
    bottom: 6px;
    text-shadow: 0 0 2px #fff;
    font-size: 12px;
  }
}

.legend {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  bottom: 30px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #fff;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  right: 10px;
  z-index: 1;
  height: auto;
  width: 275px;
}

.legend-planurb {
  display: none;
  /* overflow-y: auto; */
}

.legend div span {
  /* border-radius: 50%; */
  display: inline-block;
  height: 15px;
  margin-right: 5px;
  width: 30px;
  font-size: 10px;
}

.legend-home div span {
  /* border-radius: 50%; */
  display: inline-block;
  height: 10px;
  margin-right: 5px;
  width: 20px;
  font-size: 10px;
}

.legend-planurb-header {
  display: none;
  height: 35px;
  overflow-x: auto;

}

.legendheader {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  bottom: 30%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #fff;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: relative;
  left: 80%;
  width: 300px;
  z-index: 2;
  height: 50px;
}

.legendheader h4 {
  margin: 0 0 10px;
}

.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 0px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  bottom: 12px;
  left: -40px;
  min-width: 110px;
  width: 325px;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.spinner:after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 56%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 50%;
  border: 5px solid rgba(180, 180, 180, 0.6);
  border-top-color: rgba(0, 0, 0, 0.6);
  animation: spinner 0.6s linear infinite;
}

.spinner2:after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 57%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 50%;
  border: 5px solid rgba(180, 180, 180, 0.6);
  border-top-color: rgba(0, 0, 0, 0.6);
  animation: spinner 0.6s linear infinite;
}

@media screen and (max-width: 767px) {

  .spinner2:after,
  .spinner:after {
    left: 69%;
  }
}

.toggleLegend {
  display: block;
  position: relative;
  color: #fff;
  text-align: center;
  margin-top: 0.5%;
  height: 35px;
  width: 35px;
  background-color: rgba(0, 60, 136, .5);
  border: #fff;
  border-radius: 2px;
  left: 1%;
  z-index: 1;
}



.color-zf01 {
  background-color: rgb(62, 95, 126);
}

.color-zf02 {
  background-color: rgb(19, 75, 0);
}

.color-zf03 {
  background-color: rgb(193, 162, 107);
}

.color-zf04 {
  background-color: rgb(0, 149, 149);
}

.color-zf05 {
  background-color: rgb(167, 188, 169);
}

.color-zf06 {
  background-color: rgb(76, 76, 76);
}

.color-zf07 {
  background-color: rgb(164, 0, 0);
}

.color-zf08 {
  background-color: rgb(168, 3, 79);
}

.color-zf09 {
  background-color: rgb(168, 3, 79);
}

.color-zf10 {
  background-color: rgb(237, 46, 56);
}

.color-zf11 {
  background-color: rgb(247, 227, 74);
}

.color-zf12 {
  background-color: rgb(148, 77, 3);
}

.color-zf13 {
  background-color: rgb(237, 194, 130);
}

.color-zf14 {
  background-color: rgb(160, 186, 77);
}

.color-zf15 {
  background-color: rgb(255, 127, 126);
}

.color-zf16 {
  background-color: rgb(114, 96, 114);
}

.color-zf17 {
  background-color: rgb(186, 186, 186);
}

.color-zf18 {
  background-color: rgb(255, 127, 126);
}

.zona-supl {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255);
}

.swipe1 {
  -webkit-appearance: none;
  appearance: none;
  width: 50%;
  height: 25px;
  /* bottom: 50px;
left: 400px; */
  background: transparent;
}

.swipe2 {
  -webkit-appearance: none;
  appearance: none;
  width: 50%;
  height: 25px;
  /* bottom: 30px;
left: 400px; */
  background: transparent;
}

.swipe3 {
  -webkit-appearance: none;
  appearance: none;
  width: 50%;
  height: 25px;
  /* bottom: 50px;
left: 400px; */
  background: transparent;
}

.swipe2::-webkit-slider-thumb,
.swipe1::-webkit-slider-thumb,
.swipe3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  margin-top: -8px;
}

.swipe2::-webkit-slider-runnable-track,
.swipe1::-webkit-slider-runnable-track,
.swipe3::-webkit-slider-runnable-track {
  margin-top: -3px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 1);
  border-radius: 10%;
}


@media screen and (max-width: 767px) {
  .swipe1 {
    width: 50%;
    height: 25px;
    bottom: 40px;
    left: 50%;
  }

  .swipe2 {
    width: 50%;
    height: 25px;
    bottom: 20px;
    left: 50%;
  }

  .swipe3 {
    width: 50%;
    height: 25px;
    bottom: 20px;
    left: 50%;
  }


  .swipe2::-webkit-slider-thumb,
  .swipe1::-webkit-slider-thumb,
  .swipe3::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -4px;
  }

  .swipe2::-webkit-slider-runnable-track,
  .swipe1::-webkit-slider-runnable-track,
  .swipe3::-webkit-slider-runnable-track {
    border-width: 2px;
    margin-bottom: 2px;
  }
}


#info {
  display: block;
  position: relative;
  color: #fff;
  text-align: center;
  top: 10%;
  height: 35px;
  width: 35px;
  background-color: rgba(0, 60, 136, .5);
  border: #fff;
  border-radius: 2px;
  left: 1%;
  z-index: 1;
}

@media screen and (max-width: 767px) {

  #info {
    top: 7%;
  }

  #toggleLegend {
    margin-top: 2%;
    height: 35px;
    width: 35px;
    font-size: 20px;
  }

  .legend {
    font-size: 10px;
    padding: 5px;
    bottom: 20%;
    /* width: auto; */
  }

  .legend h4 {
    font-size: 18px;
  }

  .legend div span {
    width: 30px;
    height: 15px;
    margin-right: 3px;
  }
}

.opacity-container {
  display: flex;
  position: relative;
}

.checkbox-container {
  margin-bottom: 2px;
}


.opacity-container p {
  margin-right: 10px;
  font-size: 12px;
  margin-top: 1px;
}



.accordion-legend {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff' width='5' height='5'%3e%3cpath fill='%23ffffff' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
  --bs-accordion-btn-icon-transform: rotate(-180deg);
  --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff' width='5' height='5'%3e%3cpath fill='%23ffffff' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  max-height: 400px;
  overflow-x: auto;
}

.header {
  display: flex;
  color: #ffffff;
  padding-left: 6px;
  width: 110px;
}

.close-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  margin-top: -8px;
  color: #ffffff;
  position: relative;
  left: 110%;
}

@media screen and (max-width: 767px) {

  .close-button {
    left: 135%;
  }

  .header-legend {
    font-size: 16px;
  }

}

.fa-buffer,
.fa-info {
  font-size: 25px;
}

#layer-switch {
  font-size: 14px;
}

.header-legend {
  font-size: 20px;
}

.labelCheckbox {
  font-size: 14px;
}

.accordion-body {
  padding-left: 20px !important;
  margin-bottom: -10px;
}

.legend-fp {
  /* height: 200px; */
  overflow-y: auto;
}

.legend-fp::-webkit-scrollbar {
  width: 10px;
}

.legend-fp::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.legend-fp::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.4);
}

.legend-fp::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.6);
}

.popup h1 {
  font-size: 14px;

}

.popup {
  display: flex;
  flex-wrap: wrap;
}

.popup-details {
  font-size: 12px;
}

.popup-buttons {
  font-size: 12px;
  margin-top: 5px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.btn-details {
  margin-right: 3px;
  background-color: rgba(0, 60, 136, .5);
  border-radius: 4px;
  border: 1px solid rgba(0, 60, 136, .8);
  cursor: pointer;
  color: #000000;
}

.btn-details:hover {
  background-color: rgba(0, 60, 136, .8);
  border-color: rgba(0, 60, 136, 1);
}

.btn-details:active {
  background-color: rgba(0, 60, 136, 1);
  border-color: rgba(0, 60, 136, 1);
}

.btn-popup-opinion {
  font-size: 12px !important;
  padding: 1px !important;
  border: 1px solid rgba(168, 160, 0, 0.8);
  margin-right: 3px !important;
}

.btn-popup-opinion:hover {
  background-color: rgba(225, 214, 2, 0.8);
  border-color: rgba(225, 214, 2, 1);
}

.btn-popup-opinion:active {
  background-color: rgba(225, 214, 2, 1);
  border-color: rgba(225, 214, 2, 1);
}

#popupContent {
  display: none !important;
}

#style-rte01 {
  background-color: rgba(0, 105, 133, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte02 {
  background-color: rgba(128, 61, 10, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte03 {
  background-color: rgba(51, 115, 33, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte04 {
  background-color: rgba(255, 0, 191, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte05 {
  background-color: rgba(227, 30, 36, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte06 {
  background-color: rgba(247, 209, 23, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte07 {
  background-color: rgba(252, 144, 142, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

/* #style-cc01{
  background-color: rgba(178, 179,179,1);
  height: 3px !important;
  margin-bottom: 3px;
}
#style-cc02{
  height: 3px !important;
  margin-bottom: 3px;
}
#style-cc03{
  background-color: rgba(252, 144, 142,1);
  height: 3px !important;
  margin-bottom: 3px;
} */

.feature-button {
  background-color: rgba(0, 60, 136, .5);
  border-radius: 4px;
  border: 1px solid rgba(0, 60, 136, .8);
  cursor: pointer;
  color: #000000;
  font-size: 12px;
}

.feature-button:hover {
  background-color: rgba(0, 60, 136, .8);
  border-color: rgba(0, 60, 136, 1);
}

.feature-button:active {
  background-color: rgba(0, 60, 136, 1);
  border-color: rgba(0, 60, 136, 1);
}

#style-cc01e {
  background-color: rgb(122, 28, 61, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc01p {
  height: 0;
  border-top: 3px dashed rgb(122, 28, 61);
  margin-bottom: 3px;
}

#style-cc02e {
  background-color: rgb(148, 16, 45, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc02p {
  height: 0;
  border-top: 3px dashed rgb(148, 16, 45, 1);
  margin-bottom: 3px;
}

#style-cc03e {
  background-color: rgb(236, 66, 72, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc03p {
  height: 0;
  border-top: 3px dashed rgb(236, 66, 72, 1);
  margin-bottom: 3px;
}

#style-cc04e {
  background-color: rgb(247, 163, 10, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc04p {
  height: 0;
  border-top: 3px dashed rgb(247, 163, 10, 1);
  margin-bottom: 3px;
}

#style-cc05e {
  background-color: rgb(247, 219, 23, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc05p {
  height: 0;
  border-top: 3px dashed rgb(247, 219, 23, 1);
  margin-bottom: 3px;
}

#style-cc06e {
  background-color: rgb(43, 42, 41, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc06p {
  height: 0;
  border-top: 3px dashed rgb(43, 42, 41, 1);
  margin-bottom: 3px;
}

#style-cc07e {
  background-color: rgb(91, 91, 91, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc07p {
  height: 0;
  border-top: 3px dashed rgb(91, 91, 91, 1);
  margin-bottom: 3px;
}

#style-cc08e {
  background-color: rgb(137, 137, 137, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc08p {
  height: 0;
  border-top: 3px dashed rgb(137, 137, 137, 1);
  margin-bottom: 3px;
}

#style-cc09e {
  background-color: rgb(178, 179, 179, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc09p {
  height: 0;
  border-top: 3px dashed rgb(178, 179, 179, 1);
  margin-bottom: 3px;
}

#style-cc10e {
  background-color: rgb(252, 144, 142, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc10p {
  height: 0;
  border-top: 3px dashed rgb(252, 144, 142, 1);
  margin-bottom: 3px;
}

#style-cc11e {
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc12e {
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc13e {
  background-color: rgb(252, 144, 142, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-cc13p {
  height: 0;
  border-top: 3px dashed rgb(252, 144, 142, 1);
  margin-bottom: 3px;
}

#propus {
  margin-left: 3px;
}

#existent {
  margin-left: -5px;
}

#style-rte01e {
  background-color: rgb(184, 0, 184, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte01p {
  height: 0;
  border-top: 3px dashed rgb(184, 0, 184);
  margin-bottom: 3px;
}

#style-rte02e {
  background-color: rgb(72, 185, 213, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte02p {
  height: 0;
  border-top: 3px dashed rgb(72, 185, 213, 1);
  margin-bottom: 3px;
}

#style-rte03e {
  background-color: rgb(35, 101, 117, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte03p {
  height: 0;
  border-top: 3px dashed rgb(35, 101, 117, 1);
  margin-bottom: 3px;
}

#style-rte04e {
  background-color: rgb(102, 165, 182, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte04p {
  height: 0;
  border-top: 3px dashed rgb(102, 165, 182, 1);
  margin-bottom: 3px;
}

#style-rte05e {
  background-color: rgb(128, 61, 10, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte05p {
  height: 0;
  border-top: 3px dashed rgb(128, 61, 10, 1);
  margin-bottom: 3px;
}

#style-rte06e {
  background-color: rgb(150, 99, 5, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte06p {
  height: 0;
  border-top: 3px dashed rgb(150, 99, 5, 1);
  margin-bottom: 3px;
}

#style-rte07e {
  background-color: rgb(186, 87, 0, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte07p {
  height: 0;
  border-top: 3px dashed rgb(186, 87, 0, 1);
  margin-bottom: 3px;
}

#style-rte08e {
  background-color: rgb(130, 61, 10, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte08p {
  height: 0;
  border-top: 3px dashed rgb(130, 61, 10, 1);
  margin-bottom: 3px;
}

#style-rte09e {
  border-bottom: 3px solid rgb(51, 115, 33, 1);
  color: rgb(51, 115, 33, 1);
  text-align: center;
  /* height: 3px !important; */
  margin-bottom: 3px;
}

#style-rte09p {
  border-bottom: 3px dashed rgb(51, 115, 33, 1);
  color: rgb(51, 115, 33, 1);
  text-align: center;
  margin-bottom: 3px;
}

#style-rte10e {
  border-bottom: 3px solid rgb(0, 99, 56, 1);
  color: rgb(0, 99, 56, 1);
  text-align: center;
  /* height: 3px !important; */
  margin-bottom: 3px;
}

#style-rte10p {
  /* height: 0;  */
  border-bottom: 3px dashed rgb(0, 99, 56, 1);
  color: rgb(0, 99, 56, 1);
  text-align: center;
  margin-bottom: 3px;
}

#style-rte11e {
  border-bottom: 3px solid rgb(0, 99, 56, 1);
  color: rgb(0, 99, 56, 1);
  text-align: center;
  /* height: 3px !important; */
  margin-bottom: 3px;
}

#style-rte11p {
  /* height: 0;  */
  border-bottom: 3px dashed rgb(0, 99, 56, 1);
  color: rgb(0, 99, 56, 1);
  text-align: center;
  margin-bottom: 3px;
}

#style-rte12e {
  background-color: rgb(252, 144, 142, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte12p {
  height: 0;
  border-top: 3px dashed rgb(252, 144, 142, 1);
  margin-bottom: 3px;
}

#style-rte13e {
  background-color: rgb(255, 0, 191, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte13p {
  height: 0;
  border-top: 3px dashed rgb(255, 0, 191, 1);
  margin-bottom: 3px;
}

#style-rte14e {
  background-color: rgb(255, 132, 11, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte14p {
  height: 0;
  border-top: 3px dashed rgb(255, 132, 11, 1);
  margin-bottom: 3px;
}

#style-rte15e {
  background-color: rgb(255, 0, 191, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte15p {
  height: 0;
  border-top: 3px dashed rgb(255, 0, 191, 1);
  margin-bottom: 3px;
}

#style-rte16e {
  border-bottom: 3px solid rgb(255, 132, 11, 1);
  color: rgb(255, 132, 11, 1);
  text-align: center;
  /* height: 3px !important; */
  margin-bottom: 3px;
}

#style-rte16p {
  border-bottom: 3px dashed rgb(255, 132, 11, 1);
  color: rgb(255, 132, 11, 1);
  text-align: center;
  margin-bottom: 3px;
}

#style-rte17e {
  border-bottom: 3px solid rgb(227, 30, 36, 1);
  color: rgb(227, 30, 36, 1);
  text-align: center;
  /* height: 3px !important; */
  margin-bottom: 3px;
}

#style-rte17p {
  border-bottom: 3px dashed rgb(227, 30, 36, 1);
  color: rgb(227, 30, 36, 1);
  text-align: center;
  margin-bottom: 3px;
}

#style-rte18e {
  background-color: rgb(277, 30, 36, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte18p {
  height: 0;
  border-top: 3px dashed rgb(277, 30, 36, 1);
  margin-bottom: 3px;
}

#style-rte19e {
  border-bottom: 3px solid rgb(247, 209, 23, 1);
  color: rgb(247, 209, 23, 1);
  text-align: center;
  /* height: 3px !important; */
  margin-bottom: 3px;
}

#style-rte19p {
  border-bottom: 3px dashed rgb(247, 209, 23, 1);
  color: rgb(247, 209, 23, 1);
  text-align: center;
  margin-bottom: 3px;
}

#style-rte20e {
  border-bottom: 3px solid rgb(255, 132, 11, 1);
  color: rgb(255, 132, 11, 1);
  text-align: center;
  /* height: 3px !important; */
  margin-bottom: 3px;
}

#style-rte20p {
  border-bottom: 3px dashed rgb(255, 132, 11, 1);
  color: rgb(255, 132, 11, 1);
  text-align: center;
  margin-bottom: 3px;
}

#style-rte21e {
  background-color: rgb(247, 209, 23, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte21p {
  height: 0;
  border-top: 3px dashed rgb(247, 209, 23, 1);
  margin-bottom: 3px;
}

#style-rte22e {
  background-color: rgb(252, 144, 142, 1);
  height: 3px !important;
  margin-bottom: 3px;
}

#style-rte22p {
  height: 0;
  border-top: 3px dashed rgb(252, 144, 142, 1);
  margin-bottom: 3px;
}

.toggleSwipe {
  display: block;
  position: relative;
  color: #fff;
  text-align: center;
  font-weight: bold;
  margin-top: 0.5%;
  height: 35px;
  width: 35px;
  background-color: rgba(0, 60, 136, .5);
  border: #fff;
  border-radius: 2px;
  left: 1%;
  z-index: 1;
}

#swipe-handle {
  position: absolute;
  top: 0;
  /* left: 60%; */
  /* transform: translateX(-50%);  */
  width: 8px;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  cursor: ew-resize;
  z-index: 1000;
  pointer-events: auto;
}

/* html, body{
  overflow: hidden;
} */

#existing-zone-title,
#proposed-zone-title {
  position: absolute;
  bottom: 25px;
  width: 100px !important;
  text-align: center;
  font-weight: bold;
  font-size: 16px !important;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  color: #ffffff;
}

#existing-zone-title {
  left: 40% !important;
}

#proposed-zone-title {
  right: 26.5% !important;
}

@media (max-width: 768px) {
  .toggleSwipe {
    margin-top: 2%;
  }

  #existing-zone-title {
    left: 41% !important;
    bottom: 8% !important;
    font-size: 14px !important;
  }

  #proposed-zone-title {
    right: 5% !important;
    bottom: 8% !important;
    font-size: 14px !important;
  }
}

#style-opiniiT svg,
#style-opiniiR svg {
  height: 25px;
  width: 25px;
  margin-left: 10px;
}

#style-opiniiR {
  padding-left: 20px;
}

#rezolvata {
  margin-left: 20px;
}

.container_jsplanurb {
  overflow: hidden;
}

.content-wrapper {
  display: flex;
  height: 93vh;
  position: relative;
  overflow: hidden;
}

.map2 {
  flex: 1;
  height: 100%;
  transition: margin-left 0.3s ease;
}

.control-panel {
  width: 300px;
  padding: 20px;
  background-color: #f9f9f9;
  border-right: 1px solid #ccc;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0);
}

.control-panel.hidden {
  transform: translateX(-100%);
}

.toggle-panel-btn {
  position: absolute;
  top: 20px;
  left: 310px;
  /* Positioned next to the visible control panel */
  z-index: 1000;
  background-color: rgba(0, 60, 136, .5);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: left 0.3s ease;
}

.toggle-panel-btn.hidden {
  left: 10px;
}

.toggle-panel-btn i {
  font-size: 18px;
}

@media (max-width: 992px) {
  .control-panel {
    width: 100vw;
    max-width: none;
    left: 225px !important;
    max-height: 50vh;
    margin-top: 44vh;
  }

  .toggle-panel-btn {
    position: fixed;
    top: 67px;
    left: 10px;
    z-index: 1050;
    background-color: rgba(0, 60, 136, .5);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
  }
}


.input-section label {
  display: block;
  margin-bottom: 5px;
}

.input-section input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.route-info {
  text-align: center;
  /* Ensures the button aligns in the center */
}

.route-info button {
  width: 80%;
  padding: 7px;
  margin: 5px auto;
  /* Centers the button horizontally */
  background-color: transparent;
  color: rgb(43, 43, 252);
  border: 1px solid rgb(43, 43, 252);
  border-radius: 15px;
  cursor: pointer;
  display: block;
  /* Ensures full-width respect */
}

.route-info button:hover {
  background-color: #a6d5f3;
}



.route-details {
  border: 1px solid rgba(165, 165, 165, 0.6);
  border-radius: 15px;
  padding: 5px;
  margin-top: 10px;
}

#elevation-profile {
  width: 100%;
  height: 150px;
  border-top: 1px solid #ccc;
  right: 0;
}




.context-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 8px;
  border-radius: 5px;
  min-width: 200px;
}

.context-menu-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  /* Aligns the icon and text properly */
  align-items: center;
  border-bottom: 1px solid #eee;
}

.context-menu-item img {
  margin-right: 8px;
  /* Adds space between the icon and the text */
  width: 20px;
  height: 20px;
}

.context-menu-item:last-child {
  border-bottom: none;
}

.context-menu-item:hover {
  background-color: #f0f0f0;
  /* Adds a hover effect */
}


.pin-icon {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  vertical-align: middle;
}

.pin-icon-big {
  width: 25px;
  height: 25px;
  margin-right: 8px;
  vertical-align: middle;
}

.icon {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  vertical-align: middle;
}

.no-display {
  display: none;
}

input {
  /* all: unset; */
  /* Removes all default browser styles */
  box-sizing: border-box;
  /* Ensures consistent box model */
}

.input-row {
  position: relative;
  display: flex;
  align-items: center;
  /* margin-bottom: 15px; */
}

.input-row img {
  flex-shrink: 0;
  margin-right: 10px;
  width: 25px;
  height: 25px;
}

.input-row input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  /* Removes blue outline on focus */
  box-shadow: none;
  /* Removes any shadow that may appear */
  margin: 0;
  /* Ensures there’s no unwanted margin */
}

.input-row input:focus {
  border-color: #007acc;
  /* Adds a custom border color on focus */
  outline: none;
  /* Ensures no outline on focus */
  box-shadow: none;
  /* Ensures no shadow on focus */
}

.input-row input::placeholder {
  color: #aaa;
}

.input-row input:focus::placeholder {
  color: transparent;
  /* Hides placeholder text when typing */
}

/* Suggestions dropdown styling */
.suggestions-container {
  position: absolute;
  background-color: white;
  /* border: 1px solid #ccc; */
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: calc(100% - 40px);
  /* Matches input field width */
  top: 100%;
  /* left: 35px; */
  /* Aligns with input */
  margin-top: 4px;
}

.suggestion-item {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f9f9f9;
}

.suggestion-title {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.suggestion-subtitle {
  font-size: 12px;
  color: #666;
}

.remove-btn {
  background-color: rgba(0, 0, 0, 0);
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

.remove-btn:hover {
  background-color: rgba(0, 0, 0, 0);
}

.remove-btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(127, 126, 126, 0.8);
}

.remove-btn:active {
  background-color: rgba(0, 0, 0, 0);
}


.input-row {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="text"] {
  width: 100%;
  padding-right: 2rem;
  /* Ensure space for the clear button */
  box-sizing: border-box;
}

.clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  display: none;
  /* Initially hidden */
}

input[type="text"]:not(:placeholder-shown)+.clear-btn {
  display: block;
  /* Show button when input is not empty */
}

.clear-btn:hover {
  color: #000;
  /* Darker color on hover */
}

.bold-detail {
  font-weight: bold;
}

.instruction-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

#instructions span {
  font-size: 14px;
  color: #555;
}

#instructions p {
  margin: 5px 0;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
}

#document-template {
  font-family: Arial, sans-serif;
  margin: 20px;
}

#map-image {
  width: 100%;
  max-height: 300px;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

table th {
  background-color: #f4f4f4;
}

.map-doc {
  max-width: 100%;
  height: 500px;
  border: 1px solid #ccc;
}

.icon-mini {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: middle;
}

#instructions img {
  max-width: 20px;
  max-height: 20px;
  vertical-align: middle;
}




.add-intermediate-btn {
  margin: 5px 0;
  margin-bottom: 5px;
  padding: 5px 7px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


.plus-btn {
  font-size: 16px;
}



.deviz-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 5px;
  /* Reduce spacing for compact look */
}

.deviz-input label {
  flex: 1;
  /* font-weight: bold; */
  font-size: 14px;
  /* Reduce font size slightly */
  white-space: nowrap;
  /* Prevents wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 5px;
  /* Space between label and input */
}

.deviz-input input {
  flex-shrink: 0;
  /* Prevents input from shrinking */
  width: 60px;
  /* Reduce input width to fit */
  padding: 3px;
  border: 1px solid rgba(82, 82, 82, 0.5);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
}


/* Ensures the button looks better */
.calculate-deviz-btn {
  margin-top: 10px;
  padding: 8px 10px;
  width: 100%;
  background-color: transparent;
  color: rgb(43, 43, 252);
  border: 1px solid rgb(43, 43, 252);
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;
}


.no-display {
  display: none;
}



.ol-control {
  right: 21px !important;
  left: auto !important;
}

.ol-zoom {
  /* top: 100px; */
}

.ol-full-screen {
  top: 50px;
}

.ol-scale-line {
  bottom: 10px;
  right: 10px;
  left: auto;
}


@media (max-width: 768px) {
  .ol-zoom {
    top: 10px;
  }

  .ol-control {
    left: 10px !important;
    right: auto !important;
  }

  .ol-touch .ol-control button {
    font-size: 1em;
  }
}

#route-summary p {
  margin-bottom: 0 !important;
}

.ds-h4 {
  font-size: 18px;
}

.route-instructions {
  margin-top: 10px;
  border: 1px solid rgba(165, 165, 165, 0.6);
  border-radius: 15px;
  padding: 5px;
}


#instructions-arrow {
  float: right;
}

.number-input {
  display: inline-flex;
  align-items: center;
}

.number-input button {
  background: #f0f0f000;
  border: none;
  cursor: pointer;
  height: 2rem;
}

.number-input input {
  width: 4rem;
  text-align: center;
  border: 1px solid #ccc;
  margin: 0 0.2rem;
  /* Ensure a consistent height with the buttons */
  height: 2rem;
}

@media (min-width: 768px) {

  .number-input .increment,
  .number-input .decrement {
    display: none;
  }
}

.deviz-section {
  border: 1px solid rgba(165, 165, 165, 0.6);
  border-radius: 15px;
  padding: 5px;
}

#points-container {
  position: relative;
}

#swap-btn {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 123, 255, 0);
  color: #000000;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
  transition: background-color 0.3s ease;
  z-index: 10;
}

#swap-btn:hover {
  background-color: rgba(194, 199, 203, 0.6);
}




.intermediate-points-container {
  margin-top: 15px;
  margin-bottom: 15px;
  display: none;
}

.int-input {
  margin-bottom: 10px;
}

/* Adjusting control panel on the isochrone page */
#isochrone-control-panel {
  width: 300px;
  padding: 20px;
  background-color: #f9f9f9;
  border-right: 1px solid #ccc;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0);
}

/* Positioning the input field container relative so suggestions are placed below it */
.isochnone-input-section {
  position: relative;
  /* Important for positioning suggestions relative to this container */
}

/* Styling for the search input */
#search-input-isochrone {
  width: 80%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  position: relative;
  padding-right: 2rem;
}

#search-input-isochrone2 {
  width: 80%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  position: relative;
  padding-right: 2rem;
}

/* Clear button styling */
.clear-isc-btn {
  position: absolute;
  right: 0.5rem;
  top: 40%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  display: none;
  z-index: 1000;
  /* Initially hidden */
}

.clear-isc-btn2 {
  position: absolute;
  right: 0.5rem;
  top: 40%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  display: none;
  z-index: 1000;
  /* Initially hidden */
}

/* Make sure button appears when input is not empty */
#search-input-isochrone:not(:placeholder-shown)+.clear-isc-btn {
  display: block;
}

#search-input-isochrone2:not(:placeholder-shown)+.clear-isc-btn2 {
  display: block;
}


.isc-suggestion-container {
  width: 100%;
  left: 0;
}

.isc-suggestion-container2 {
  width: 100%;
  left: 0;
}


.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(165, 165, 165, 0.6);
  border-radius: 15px;
  padding: 5px;
  margin-bottom: 10px;
}

.slider-container input[type="number"] {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
  font-size: 14px;
  text-align: center;
  width: 60px;
}

.slider-container input[type="number"]:invalid {
  border-color: red;
}

#max-range-slider {
  width: 100%;
}

#interval-step-slider {
  width: 100%;
}

#max-range-slider2 {
  width: 100%;
}

#interval-step-slider2 {
  width: 100%;
}


.iso-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
}

.calculate-isochrone-btn {
  margin-top: 20px;
  padding: 8px 10px;
  width: 100%;
  background-color: transparent;
  color: rgb(43, 43, 252);
  border: 1px solid rgb(43, 43, 252);
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;

  /* Smooth transitions for hover/active changes */
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover state */
.calculate-isochrone-btn:hover {
  background-color: rgb(43, 43, 252);
  color: #fff;
}

/* Pressed (active) state */
.calculate-isochrone-btn:active {
  background-color: #fff;
  color: rgb(43, 43, 252);
}


.spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.legend-isochrone {
  margin-top: 10px;
  border: 1px solid rgba(165, 165, 165, 0.6);
  border-radius: 15px;
  padding: 5px;
  display: none;
}

.no-bottom-margin {
  margin-bottom: 0px !important;
}

.download-isochrone-btn {
  margin-top: 20px;
  padding: 5px 8px;
  width: 100%;
  background-color: transparent;
  color: rgb(43, 43, 252);
  border: 1px solid rgb(43, 43, 252);
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: none;
}

.download-isochrone-btn:hover {
  background-color: rgb(43, 43, 252);
  color: #fff;
}

.download-isochrone-btn:active {
  background-color: #fff;
  color: rgb(43, 43, 252);
}

.fa-download {
  margin-right: 5px;
}



@media (max-width: 600px) {

  /* Adjusted control panel for mobile */
  #isochrone-control-panel {
    width: 260px;
    /* Reduced from 300px */
    padding: 15px;
    /* Reduced from 20px */
  }

  /* Adjust input styles for mobile */
  #search-input-isochrone {
    width: 75%;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  #search-input-isochrone2 {
    width: 75%;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .clear-isc-btn {
    right: 0.5rem;
    top: 40%;
    font-size: 0.8rem;
  }

  .clear-isc-btn2 {
    right: 0.5rem;
    top: 40%;
    font-size: 0.8rem;
  }

  /* Adjust slider container for mobile */
  .slider-container {
    gap: 5px;
    /* Smaller gap between items */
    padding: 4px;
    /* Reduced padding */
  }

  .slider-container input[type="number"] {
    padding: 4px;
    font-size: 12px;
    width: 50px;
  }

  .calculate-isochrone-btn {
    padding: 6px 8px;
    font-size: 14px;
  }

  .download-isochrone-btn {
    padding: 4px 6px;
    font-size: 12px;
  }

  .iso-tooltip {
    font-size: 12px;
    padding: 4px 8px;
  }

  #max-range-slider {
    font-size: 16px;
  }

  #interval-step-slider {
    font-size: 16px;
  }

  #max-range-slider2 {
    font-size: 16px;
  }

  #interval-step-slider2 {
    font-size: 16px;
  }
}


.mapisc {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 300px;
  z-index: 0;
}

@media (max-width: 992px) {
  .mapisc {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
  }
}

/* map deplasari test styles*/

.panel-left {
  width: 300px;
  padding: 20px;
  background-color: #f9f9f9;
  border-right: 1px solid #ccc;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0);
}

.mapDeplasari {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 300px;
  z-index: 0;
}

.point-placeholder-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  /* If you want the entire container to be draggable, keep cursor: move.
     If you want ONLY the handle to initiate drag, remove cursor: move here
     and rely on .drag-handle. */
  cursor: move;
  /* touch-action: none; */
}

.drag-handle {
  font-size: 12px;
  color: rgba(135, 131, 131, 0.6);
  cursor: move;
  margin-right: 8px;
  /* spacing between handle and pin */
}

.point-pin {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.input-wrapper {
  flex: 1;
  /* so the input expands to fill available space */
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.point-input {
  flex: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding-right: 0 !important;
}


/* The trash button (far right) */
.trash-btn {
  font-size: 14px;
  color: #555;
  cursor: pointer;
  border: 1px solid gray;
  border-radius: 15px;
}

#return-route-check {
  display: none;
}

@media (max-width: 992px) {
  .mapDeplasari {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
  }

  .panel-left {
    width: 100vw;
    max-width: none;
    left: 225px !important;
    max-height: 50vh;
    margin-top: 44vh;
    padding: 20px;
    background-color: #f9f9f9;
    border-right: 1px solid #ccc;
    position: absolute;
    top: 0;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.3sease-in-out;
    transform: translateX(0);
  }

}

.panel-left.hidden {
  transform: translateX(-100%);
}







.iso-type-selection {
  padding: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(165, 165, 165, 0.6);
  border-radius: 15px;
}



.message-bubble {
  position: fixed;
  top: 50%;
  /* left: 57.5%; */
  left: calc(50% + 150px);
  transform: translateX(-50%);
  background-color: #ffffffe8;
  color: #000;
  padding: 30px 15px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  min-width: 250px;
  max-width: 400px;
  z-index: 9999;
  opacity: 1;
}

/* Paragraph inside bubble */
.message-bubble p {
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
}

.bubble-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  color: #000000;
  font-size: 22px;
  cursor: pointer;
}

.bubble-close-btn:hover {
  color: #f0f0f0;
}

.hidden {
  display: none;
}

@media (max-width: 992px) {
  .message-bubble {
    top: 20% !important;
    left: 50%;
  }

}

#swap-btn img {
  width: 16px;
  /* Adjust size as needed */
  height: 16px;
  /* Adjust size as needed */
  object-fit: contain;
}






/* Tab Buttons */
.tab-buttons {
  display: flex;
  border-bottom: 2px solid #ccc;
}

.tab-button {
  padding: 10px 20px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
  transition: background 0.3s ease;
}

.tab-button.active {
  font-weight: bold;
  border-bottom: 2px solid #007bff;
}

.tab-button:hover {
  background: #f1f1f1;
}

/* Tab Content */
.tab-content {
  margin-top: 20px;
}


.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.panel-auto {
  width: auto !important;
}

@media (max-width: 992px) {
  .panel-auto {
    width: 100vw !important;
  }
}



.listItem {
  cursor: pointer;
  margin-bottom: 8px;
  border: 1px solid gray;
  border-radius: 10px;
  padding: 10px;
  /* Make it a flex container so we can put an arrow on the right */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* When active, change the border color (and anything else) */
.listItem.active {
  border-color: blue;
  border-width: 2px;
}

.legend-isochrone-analize {
  display: none;
  margin-top: 10px;
  border: 1px solid rgba(165, 165, 165, 0.6);
  border-radius: 15px;
  padding: 5px;
  padding-left: 17px;
}

.span-inline {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border: 1px solid #000;
}

.span-inline-2 {
  margin-left: 10px;
  font-size: 20px;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  /* background will be set via JS */
}





/************************************************************
  SEARCH BAR STYLES
************************************************************/

.search-container {
  position: fixed;
  top: 125px;
  /* left: 22%; */
  width: 25vw;
  max-width: 400px;
  min-width: 300px;
  z-index: 2;
  padding: 10px;
  box-sizing: border-box;
}

/* On smaller screens, let the container expand or shrink more flexibly */
@media (max-width: 768px) {
  .search-container {
    top: 130px;
    left: 0;
    width: 90%;
    max-width: none;
    min-width: 0;
    margin-left: 20px;
  }
}

/* The text input */
#search-input {
  width: 100%;
  padding: 8px 50px 8px 8px;
  /* Extra right padding for clear & search icons */
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#search-input-j {
  width: 100%;
  padding: 8px 50px 8px 8px;
  /* Extra right padding for clear & search icons */
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}



#search-input-3 {
  width: 100%;
  padding: 8px 50px 8px 8px;
  /* Extra right padding for clear & search icons */
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Clear button: inside the input, to the right */
#clear-button {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  padding: 3px;
  cursor: pointer;
  display: none;
  /* shown by JS when user types */
  font-size: 16px;
  color: #aaa;
}
#clear-button-j {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  padding: 3px;
  cursor: pointer;
  display: none;
  /* shown by JS when user types */
  font-size: 16px;
  color: #aaa;
}

#clear-button-3 {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  padding: 3px;
  cursor: pointer;
  display: none;
  /* shown by JS when user types */
  font-size: 16px;
  color: #aaa;
}

#clear-button:hover {
  color: #4881c3d6;
}
#clear-button-j:hover {
  color: #4881c3d6;
}

#clear-button-3:hover {
  color: #4881c3d6;
}
/* Search button: also inside the input, on the far right */
#search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

#search-button-j {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}


#search-button-3 {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

/************************************************************
  SUGGESTIONS DROPDOWN
************************************************************/

#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
}

#suggestions-j {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
}


#suggestions-3 {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
}

#suggestions div {
  padding: 8px;
  cursor: pointer;
}

#suggestions-j div {
  padding: 8px;
  cursor: pointer;
}

#suggestions-3 div {
  padding: 8px;
  cursor: pointer;
}

#suggestions div:hover {
  background-color: #f0f0f0;
}

#suggestions-j div:hover {
  background-color: #f0f0f0;
}

#suggestions-3 div:hover {
  background-color: #f0f0f0;
}

.modal {
  z-index: 9999;
  /* Default z-index for Bootstrap modals */
}

.tab-content-chestionar {
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 1rem;
  background-color: #fff;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

.h-max-500{
  max-width: 500px;
}

.justify-self-center{
  justify-self: center;
}

.display-grid{
  display: grid;
}

.h-600 {
  height: 600px;
  overflow: auto;
}

.color-publicat{
  background-color: rgba(45, 204, 82,0.8);
}

.color-nepublicat{
  background-color: rgba(251, 128, 114,0.8);
}

.legend-home-2 {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  /* bottom: 35px; */
  bottom: calc(35px + env(safe-area-inset-bottom));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #fff;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  right: 10px;
  z-index: 1;
  height: 150px;
}

@media screen and (max-width: 768px) {
  .legend-home-2 {
    bottom: 61px;
  }
}


.legend-home-2 div span {
  /* border-radius: 50%; */
  display: inline-block;
  height: 10px;
  margin-right: 5px;
  width: 20px;
  font-size: 10px;
}

.map {
  position: relative;
  width: 100%;
  height: 80vh;
}

/* container pentru search + taburi */
.map-controls {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* search bar */
.search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.search-container input {
  border: none;
  outline: none;
  padding: 5px 8px;
  border-radius: 6px;
  width: 200px;
}

.search-container button {
  background: #007bff;
  border: none;
  color: black;
  border-radius: 6px;
  padding: 6px 8px;
  margin-left: 5px;
  cursor: pointer;
}

.search-container button:hover {
  background: #0056b3;
}

/* tab-urile orizontale sub search */
.map-tabs-horizontal {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.map-tabs-horizontal .nav-link {
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  font-weight: 500;
  padding: 6px 10px;
  transition: 0.2s;
}

.map-tabs-horizontal .nav-link:hover {
  background: #e9ecef;
}

.map-tabs-horizontal .nav-link.active {
  background: #007bff;
  color: #fff;
}

@media (max-width: 768px) {
  .map-tabs-horizontal {
  display: flex;
  gap: 6px;
  padding: 2px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.map-tabs-horizontal .nav-link {
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  padding: 2px 6px;
  font-weight: 500;
  transition: 0.2s;
}
.map-controls {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

}


#slider-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
.accordion-body.p-3 {
  padding: 0 !important;
}
}
#pug-puz-planurb {
  position: relative;
}

.map-container {
  margin: 0 !important;
  width: 100%;
  position: relative;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mapP {
  width: 100%;
  height: 700px;
  margin: 0 auto;
  display: block;
}

.toggleLegendPugPuz{
   display: block;
  position: absolute;
  color: #fff;
  text-align: center;
  top: 200px;
  height: 35px;
  width: 35px;
  background-color: rgba(0, 60, 136, .5);
  border: #fff;
  border-radius: 2px;
  left: 1%;
  z-index: 1;
}

.title-planurb-pugpuz{
    background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  color: #fff;
  font: 25px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  z-index: 1;
  max-height: 600px;
  overflow-y: auto;
  left: 1%;
  width: 250px;
  margin-top: 1%;
}

.toggleSwipePugPuz {
  display: block;
  position: absolute;
  color: #fff;
  text-align: center;
  font-weight: bold;
  top: 250px;
  height: 35px;
  width: 35px;
  background-color: rgba(0, 60, 136, .5);
  border: #fff;
  border-radius: 2px;
  left: 1%;
  z-index: 1;
}

#swipe-handle-pugpuz {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-left: 1px solid black;
  border-right: 1px solid black;
  z-index: 1000;
  cursor: ew-resize;
}

#popupContentPugPuz {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  padding: 0;
  min-width: 350px;
  max-height: 500px;
  transform: translate(-50%, -100%);
  overflow-y: scroll;
  z-index: 999;
}

#popupContentPugPuz .popup-closer {
  position: absolute;
  top: 5px;
  right: 8px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

#popupContentPugPuz .popup-closer:hover {
  color: #000;
}

.accordion-item-2{
   background-color:transparent !important;
   border: 0px !important;
   color: white !important;
}

.recenterMap{
   display: block;
  position: absolute;
  color: #fff;
  text-align: center;
  top: 150px;
  height: 35px;
  width: 35px;
  background-color: rgba(0, 60, 136, .5);
  border: #fff;
  border-radius: 2px;
  left: 1%;
  z-index: 1;
}
