/* ======================= START OF LICENSE NOTICE ======================= */
/* Copyright (C) 2025 Alessandro Battistini. All Rights Reserved */
/* NO WARRANTY. THE PRODUCT IS PROVIDED BY DEVELOPER "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DEVELOPER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE PRODUCT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* ======================== END OF LICENSE NOTICE ======================== */
/* This file was developed for the framework AB_WEBMAP by Alessandro Battistini on behalf of Comune Firenze, please do not edit, use, modify or change without permission of the developer */

#filtri_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(195, 12, 38);
  color: white;
  font: 600 14px/18px "Titillium Web";
  padding: 10px 10px;
  border-bottom: 4px solid #000;
}

#toggle_lista,
#toggle_informazioni {
  width: 40px;
  min-width: 40px;
  display: flex;
  justify-content: center;
  align-self: flex-end; /* allinea il blocco stesso in basso rispetto al contenitore */
  font-size: 20px;
  cursor: pointer;
  height: 100%; /* opzionale, per garantire allineamento con altri */
}

#toggle_lista {
  align-items: flex-start; /* allinea il contenuto interno in basso */
}

#toggle_informazioni {
  align-items: flex-end; /* allinea il contenuto interno in basso */
}

#filtri_centrali {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.top_filtro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.top_filtro label {
  font-weight: bold;
  font-size: 13px;
}

.top_filtro select,
.top_filtro input[type="text"] {
  width: 180px;
  padding: 4px 8px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: black;
  background-color: #ccc;
}

#block-filtro-disp form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#flip-checkbox-disp {
  margin-top: 4px;
}

#ui-datepicker-div {
  z-index: 9000 !important;
}

.filtro_switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  margin-top: 5px;
}

.filtro_switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.filtro_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}

.filtro_slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.filtro_switch input:checked + .filtro_slider {
  background-color: #333;
}

.filtro_switch input:checked + .filtro_slider:before {
  transform: translateX(22px);
}
