/* Corpo della pagina */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Contenitore principale */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sezione di ricerca */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-container input {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.search-container button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #45a049;
}

/* Contenitore dei pulsanti dei mezzi */
.mezzi-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Container per ogni singolo pulsante */
.mezzo-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pulsanti dei mezzi */
.mezzo-button {
    padding: 15px 25px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100px; /* Fixed height for all buttons */
    min-height: 100px; /* Ensure minimum height on all devices */
    max-height: 100px; /* Enforce maximum height */
    width: 150px; /* Fixed width for all buttons */
    box-sizing: border-box; /* Include padding in the height calculation */
    overflow: hidden; /* Hide overflow content */
}

.mezzo-button:hover {
    opacity: 0.8;
}

/* Stili per Codarti e Descrizione */
.mezzo-button .codarti {
    font-size: 18px;  /* Dimensione normale per il Codarti */
    font-weight: bold;
}

.mezzo-button .descrizione {
    font-size: 12px;  /* Font più piccolo per la Descrizione */
    margin-top: 5px;
    color: #f5f5f5;  /* Colore chiaro per il testo della descrizione */
}

/* Colori per i pulsanti */
.green {
    background-color: #4CAF50;  /* Disponibile */
}

.yellow {
    background-color: #FFEB3B;  /* Prenotato */
}

.red {
    background-color: #F44336;  /* Noleggiato */
}

.orange {
    background-color: #FF9800;  /* Rientro/Verifica */
}

.gray {
    background-color: #BDBDBD;  /* Default */
}

/* Rimuovi sottolineatura dai link */
a {
    text-decoration: none;
}

/* Stile per il pulsante di uscita */
.exit-btn {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.exit-icon {
    height: 38px; /* Stessa altezza del pulsante Cerca */
    width: 38px; /* Quadrato */
    border-radius: 4px;
    transition: transform 0.2s;
}

.exit-icon:hover {
    transform: scale(1.1);
}

/* Fix per dispositivi iOS */
@supports (-webkit-touch-callout: none) {
    .mezzo-button {
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        flex-basis: auto !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    .mezzo-button-container {
        height: 100px;
        display: flex;
        align-items: stretch;
    }
}