/*file: index.css*/
#destination {
    cursor: pointer;
    max-width: 230px;
    min-width: 220px;
    height: 42px;

    border: 1px solid black;
    background-color: white;
    background-image: url('../img/posizione.png');
    background-size: 13%;
    background-position: 2px 4px;
    background-repeat: no-repeat;
    padding-left: 30px;
}

#destination:hover {
    color: blue;
}

#filterButton {
    cursor: pointer;
    text-align: center;
    width: 230px;
    min-width: 220px;
    height: 42px;
    border: 1px solid black;
    background-color: white;
    background-image: url('../img/AdultieBambini.png');
    background-size: 34%;
    background-position: 2px 2px;
    background-repeat: no-repeat;
    font-size: clamp(.6rem, 1rem, 1.2rem);
}

#filterButton:hover {
    color: black;
}

#filter-box {
    position: absolute;
    top:50px;
    display: none;
    border: 1px solid blue;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    z-index: 1000;
    width: 230px;
}

#img-adulti {
    width: 54px;
    height: 38px;
}

#num-adulti {
    width: 60px;
}

#img-bambini {
    width: 26px;
    height: 38px;
}

#num-bambini {
    width: 60px;
    
    }

#img-animali {
    width: 32px;
    height: 38px;
}

#checkBox-animali {
    height: 30px;
    width: 30px;
}


/* Solo per il campo Tipo soggiorno */
.select-marcato {
    border: 1px solid black !important;
    border-radius: 8px;
    padding: 8px 12px;
    background-color: #fff;
    font-weight: 500;
    max-width: 300px;
    width: 100%;
}

@media (max-width: 576px) {
    .col-auto.text-center {
        display: flex;
        justify-content: center;
    }

    .select-marcato {
        max-width: 300px;
        min-width: 210px;
    }
}

@keyframes lampeggio {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.coming-soon {
    animation: lampeggio 1.5s ease-in-out infinite;
    color: #ff6b6b;
}

#find {
    background-image: url("../img/sfondo_ricerca.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-size: 100% 600px;
    border-radius: 10px;
    /* border: 1px solid black; */
    width: 100%;
}

#find::after {
    /* content: ""; */
    position: absolute;
    /* inset: 0; */
    background: linear-gradient(to left,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 20%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 70%);
}


#picker {
    cursor: pointer;
    width: 230px;
    min-width: 220px;
    height: 42px;
    border: 1px solid black;
    border-radius: 8px;
    background-color: white;
}

#tipo_soggiorno {
    width: 230px;
    min-width: 220px;
    height: 42px;

}



#btnSearch {
    width: 230px;
    min-width: 220px;
    height: 42px;
    background-color: rgb(38, 119, 185);
    color: white;
    border-radius: 10px;
    font-size: clamp(.6rem, 1rem, 1.2rem);
    padding: 6px;
}

#btnSearch:hover {
    background-color: aquamarine;
    color: blue;
}

#btnSearch:disabled {
    background-color: white;
    color: black;
    cursor: not-allowed;
    opacity: 0.8;
    border-color: black;
}

#btnSearch:enabled {
    background-color: #4f61e6;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#btnSearch:enabled:hover {
    background-color: #4f61e6;
}

/* Nasconde la checkbox originale */
.switch input {
    display: none;
  }
  
  /* Contenitore principale dell'interruttore */
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 24px;
  }
  
  /* Binario o sfondo dello switch */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  
  /* Cerchio mobile dello switch */
  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  /* Colore di sfondo quando attivo */
  .switch input:checked + .slider {
    background-color: #34c759; /* Verde stile iOS */
  }
  
  /* Spostamento del cerchio quando attivo */
  .switch input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  @media (max-width: 767px) {
    .flatpickr-calendar {
        width: 307px !important; /* Larghezza esatta del singolo mese Flatpickr */
        margin: 0 auto;
    }
}