#loading{
  position: absolute;
  color: #ffffff;
  font-size: 1.5rem;
  left: calc(50% - 800px);
  top: calc(50% + 0px);
  z-index: 25001;
  text-align: center;
}

.cover {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 25000;
}

#loader {
  border: 16px solid #f3f3f3;
  /* Light grey */
  border-top: 16px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
          animation: spin 2s linear infinite;
  position: fixed;
  z-index: 25002;
  left: calc(50% - 60px);
  top: calc(50% - 90px);
}


#harta {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}


#legenda {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: end;
  background: white;
  border-radius: 5%/5%;
  z-index: 20000;
}

.legenda .eticheta {
  position: relative;
  display: inline-block;
  text-align: center;
}

.fontsize {
  font-size: 12px;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  /* background: red; */
}


.circle {
  position: relative;
  top: 0;
  left: 0;
  height: 15px;
  width: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-block;
  /* display: table-cell; */
  vertical-align: middle;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}


.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: #cccccc;
  outline: none;
  -webkit-transition: .2s;
  transition: opacity .2s;

  /* https://stackoverflow.com/questions/56851845/how-to-change-the-input-slider-thumb-colour-depending-on-value */
  --SliderButtonColor: #cccccc;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--SliderButtonColor);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--SliderButtonColor);
}

/* Website integration; preserve the original map and control layout. */
body { margin: 0; }
.roda-view-tabs { display: flex; gap: 1rem; height: 48px; padding: 0 1rem; border-bottom: 1px solid #ccc; background: white; }
.roda-view-tabs button { padding: .5rem; border-bottom: 3px solid transparent; }
.roda-view-tabs button[aria-pressed="true"] { border-color: #0a7468; font-weight: 700; }
#harta { height: calc(100vh - 48px) !important; }
.roda-data-view { height: calc(100vh - 48px); overflow: auto; padding: 1rem; }
.roda-data-view[hidden], #harta[hidden] { display: none !important; }
.roda-data-view table { width: 100%; border-collapse: collapse; }
.roda-table-toolbar { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.roda-table-toolbar button { padding: .5rem .8rem; border: 1px solid #087166; border-radius: .25rem; background: #0a7468; color: white; cursor: pointer; }
.roda-table-toolbar button:disabled { border-color: #aaa; background: #ddd; color: #666; cursor: default; }
.roda-data-view th { position: sticky; top: -1rem; background: #eef0ee; text-align: left; }
.roda-data-view td, .roda-data-view th { padding: .5rem; border-bottom: 1px solid #ddd; }
.roda-data-view td:last-child { text-align: right; }
.roda-data-view dt { font-weight: 700; margin-top: 1rem; }
.roda-data-view dd { margin: .2rem 0 0; }
.roda-data-view dd, .roda-data-view h1 { overflow-wrap: anywhere; }
.roda-data-view h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
#roda-residence { display: grid; gap: .3rem; padding: .5rem; font-size: .9rem; }
#roda-residence select { width: 100%; padding: .4rem; border: 1px solid #ccc; }
.roda-data-view a { text-decoration: underline; color: #075e54; }
#meniu { overflow-y: auto; }
.roda-map-heading { padding: 1rem; font-size: .8rem; line-height: 1.4; }
.roda-map-heading h1 { font-size: 1.3rem; font-weight: 700; margin: .5rem 0; }
.roda-map-heading a { color: #075e54; text-decoration: underline; }
.leaflet-control-attribution { position: relative; z-index: 21000; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #0a7468; outline-offset: 2px; }
@media (max-width: 760px) {
    body > .grid { display: flex; flex-direction: column; }
    #meniu { height: auto !important; max-height: 45vh; }
    #harta { height: calc(55vh - 48px) !important; min-height: 320px; }
    .roda-data-view { height: 55vh; }
}
