
/* Booking step 2 */

.booking-step-2 {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px; 
}
 
.booking-step-2 > .column-left {  
    flex: 2 1 0%;
    max-width: 66.666%;
}
.booking-step-2 > .column-right {
    flex: 1 1 0%;
    max-width: 33.333%;
}
.page-template-booking-step-2 .site-footer,
.otgs-development-site-front-end,
.page-template-booking-step-2 .header-menu-container{
    display:none !important;
}
.booking-step-2 h3 {
    font-size: 25px;
    font-family: var(--wp--preset--font-family--avenir);
    margin-bottom:10px;
    color:var(--wp--preset--color--accent)
}
.booking-step-2 section {
    position:relative;
    margin-bottom:26px;
}
.booking-step-2 .wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: stretch;
    gap:16px;
}
.booking-step-2 .wrapper .item{
    position:relative;
    display:inline-flex;
    border:1px solid var(--wp--preset--color--accent);
    flex: 1 1 0;
    min-width: 0;
    cursor:pointer;
}
/* Applica larghezza 1/3 solo se ci sono meno di 3 item nel wrapper */
.booking-step-2 .wrapper:has(> .item:nth-child(3)) > .item {
    width: auto;
    max-width: none;
}
.booking-step-2 .wrapper:has(> .item:nth-child(2)):not(:has(> .item:nth-child(3))) > .item,
.booking-step-2 .wrapper:has(> .item:only-child) > .item {
    width: calc((100% - 32px)/3);
    max-width: calc((100% - 32px)/3);
}
.booking-step-2 .item-container {
    position:relative;
    border:2px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    padding:30px;
    width:100%;
    box-sizing:border-box;
}
.booking-step-2 section[data-wrapper="vehicles"] .item-container {
    padding:30px 30px 90px 30px;
}
.booking-step-2 .item[data-item="option"]:hover .item-container,
.booking-step-2 .item[data-item="vehicle"]:hover .item-container,
.booking-step-2 .item.selected .item-container {
    border:2px solid var(--wp--preset--color--accent);
    background-color:#303030;
}
/* Dopo la deselezione: disabilita hover finché il puntatore non esce dall'item */
.booking-step-2 .item.item-just-deselected:hover .item-container {
    border-color: transparent;
    background-color: transparent;
}
/* X decorativa (stile popup-close): visibile solo quando l'item è selected */
.booking-step-2 .item-close-icon {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.booking-step-2 .item.selected .item-close-icon {
    display: inline-block;
}
.booking-step-2 .item-close-icon:hover {
    color: rgba(255, 255, 255, 1);
}
.booking-step-2 .item-image {
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.booking-step-2 .item-image img{
    width: auto;
    max-width:90px;
    height: auto;
    max-height: 50px;
}
.booking-step-2 section[data-wrapper=options] .item-image img {
    max-width:60px;
}
.booking-step-2 .item-name{
    position:relative;
    font-size:22px;
    font-weight:700;
    color:var(--wp--preset--color--text);
    letter-spacing:0.65px;
    line-height: 1.3;
    margin-bottom:10px;
}
/* Descrizione solo per seggiolini (options); nascosta su mobile */
.booking-step-2 .item-description {
    position:relative;
    font-size:12px;
    font-weight:400;
    color:var(--wp--preset--color--text);
    letter-spacing:0.65px;
}
.booking-step-2 .quantity-price-wrapper {
    position: absolute;
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    bottom: 30px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: flex-end;
    width: calc(100% - 60px);
    /* box-sizing: border-box; */
}
.booking-step-2 .item-quantity{
    position:relative;
    font-size:12px;
    display:inline-block;
}

/* Controllo quantità veicoli: stesso layout step 1 (passeggeri) */
.booking-step-2 .item-quantity .vehicle-qty-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.booking-step-2 .item-quantity .vehicle-qty-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}
.booking-step-2 .item-quantity .vehicle-qty-controls .icon-btn {
    background-color: transparent;
    width: 30px;
    height: 32px;
    border: 2px solid #b1b1b1;
    margin: 0 0 0 10px;
    font-size: 21px;
    line-height: 1;
    text-align: center;
    padding: 0;
    color: #b1b1b1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.booking-step-2 .item-quantity .vehicle-qty-controls .icon-btn:hover {
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
}
.booking-step-2 .item-quantity .vehicle-qty-controls .icon-btn:first-of-type {
    margin-left: 0;
}
.booking-step-2 .item-quantity .vehicle-qty-count {
    font-size: 25px;
    color: var(--wp--preset--color--accent);
    min-width: 20px;
    text-align: center;
}
.booking-step-2 .item-quantity .icon-vehicle {
    display: block;
    width: 50px;
    text-align: center;
}
.booking-step-2 .item-quantity .icon-vehicle img {
    max-width: 40px;
    max-height: 40px;
    vertical-align: middle;
}
.booking-step-2 .item-quantity .icon-vehicle-placeholder {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(206, 176, 78, 0.2);
    border: 1px dashed rgba(206, 176, 78, 0.5);
    border-radius: 4px;
}
.booking-step-2 .item-quantity .vehicle-qty-input.hidden {
    display: none !important;
}

.booking-step-2 .item-price .price-value{
    position: relative;
    font-size: 22px;
    display: inline-block;
    font-weight:700;
    line-height:22px;
}
/* Prezzo non calcolabile: nascondi tutto il blocco (label + valore) */
.booking-step-2 .item-price.item-price--no-price {
    display: none !important;
}
/* Totale summary (booking-summary__pricing): nascondi la riga se il prezzo non è calcolabile */
.booking-summary__pricing .booking-summary__row--total.booking-summary__total-row--no-price {
    display: none !important;
}
/* Placeholder icona veicolo: sostituire con asset quando disponibile */
.booking-step-2 h4{
    position:relative;
    font-size:20px;
    font-weight:400;
    margin-bottom: 15px;
}
.booking-step-2 section p{
    position:relative;
    font-size:12px;
    font-weight:400;
    margin-bottom: 10px;
    letter-spacing:0.65;
}
.booking-step-2 input[type=text],
.booking-step-2 textarea{
    width: 100%;
    padding: 8px;
    margin: 0 0 10px 0;
    font-size: 15px;
    background-color: var(--wp--preset--color--background-secondary);
    border: 1px solid rgba(206, 176, 78, 0.3);
    outline: none;
    transition:.3s border-color ease;
    box-sizing:border-box;
    font-family: var(--wp--preset--font-family--avenir);
}
.booking-step-2 input[type=text].filled,
.booking-step-2 input[type=text]:focus,
.booking-step-2 input[type=text]:hover,
.booking-step-2 input[type=text]:not(:placeholder-shown),
.booking-step-2 textarea.filled,
.booking-step-2 textarea:focus,
.booking-step-2 textarea:hover,
.booking-step-2 textarea:not(:placeholder-shown){
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--text);
}
.booking-step-2 input[type=text]:not(:placeholder-shown),
.booking-step-2 textarea:not(:placeholder-shown){
    font-weight: 700;
}
.booking-step-2 .back-link,
.booking-step-2 .booking-summary__proceed-btn {
    width: auto;
    padding: 10px 25px;
    background-color: var(--wp--preset--color--accent);
    opacity: 0.8;
    border: none;
    text-transform: uppercase;
    color: var(--wp--preset--color--text);
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 1.5;
    box-sizing:border-box
}
.booking-step-2 .booking-summary__proceed-btn {
    position:relative;
    display:block;
    text-align:center;
    width: 100%;
    margin-bottom:15px;
}
.booking-step-2 .back-link:hover,
.booking-step-2 .booking-summary__proceed-btn:hover {
    opacity: 1;
}
@media (max-width:1200px){
    .booking-step-2 .wrapper {
        flex-direction: column;
    }
    .booking-step-2 .wrapper .item {
        display: block;
    }
    .booking-step-2 .wrapper:has(> .item:nth-child(2)):not(:has(> .item:nth-child(3))) > .item,
    .booking-step-2 .wrapper:has(> .item:only-child) > .item {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width:992px){
    .booking-step-2 {
        flex-direction: column;
    }
    .booking-step-2 > .column-left {
        flex: none;
        max-width: none;
        width: 100%;
        display: block;
    }
    .booking-step-2 > .column-right {
        flex: none;
        max-width: none;
        width: 100%;
        display: block;
    }
}
@media (max-width: 578px) {
    .booking-step-2 section[data-wrapper="options"] .item-description {
        display: none;
    }
    .booking-step-2 section[data-wrapper="options"] .item-container{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding:10px;
    }
    .booking-step-2 section[data-wrapper="options"] .item-image {
        width: auto;
        margin-bottom: 0px;
        display: inline-block;
        align-items: flex-end;
        align-content: flex-end;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width:60px;
    }
    .booking-step-2 section[data-wrapper="options"] .item-name{
        margin-bottom:0;
    }
}

/* Note tecniche Step 2 (solo admin + ?noirline_step2_debug=1) */
.noirline-step2-debug {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 13px;
}
.noirline-step2-debug__title {
    margin: 0 0 0.5rem;
    font-size: 15px;
}
.noirline-step2-debug__intro {
    margin: 0 0 1rem;
    line-height: 1.45;
    opacity: 0.9;
}
.noirline-step2-debug__intro code {
    font-size: 11px;
}
.noirline-step2-debug__panel summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.noirline-step2-debug__pre {
    max-height: 480px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    background: #111;
    color: #e8e8e8;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}