/**
 * YACHT CHARTER - Stili CSS
 * =========================
 * 
 * Aggiungi questo CSS al tuo tema per:
 * 1. Nascondere i selettori orario (orario fisso 08:00-18:00)
 * 2. Stile del popup richiesta preventivo
 * 
 * INSTALLAZIONE:
 * 1. Aggiungi al file style.css del tuo tema
 * 2. OPPURE aggiungi tramite Customizer > CSS Aggiuntivo
 */

/* ============================================
   1. NASCONDI SELETTORI ORARIO
   ============================================ */

/* Nascondi completamente i campi orario nel booking form */
.crbs-form-field-pickup-time,
.crbs-form-field-return-time,
.crbs .crbs-form-field[data-field="pickup_time"],
.crbs .crbs-form-field[data-field="return_time"],
.crbs-step-1 .crbs-form-field:has(input[name="crbs_pickup_time"]),
.crbs-step-1 .crbs-form-field:has(input[name="crbs_return_time"]),
.crbs-step-1 .crbs-form-field:has(select[name="crbs_pickup_time"]),
.crbs-step-1 .crbs-form-field:has(select[name="crbs_return_time"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Fallback per browser che non supportano :has() */
.crbs-time-field,
.crbs-timepicker-wrap,
input[name="crbs_pickup_time"],
input[name="crbs_return_time"],
select[name="crbs_pickup_time"],
select[name="crbs_return_time"] {
    /* Uncomment se necessario */
    /* display: none !important; */
}

/* Label orario */
label[for="crbs_pickup_time"],
label[for="crbs_return_time"] {
    /* display: none !important; */
}


/* ============================================
   2. STILI POPUP RICHIESTA PREVENTIVO
   ============================================ */

#yacht-quote-popup-overlay {
    animation: yachtFadeIn 0.3s ease;
}

@keyframes yachtFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#yacht-quote-popup {
    animation: yachtSlideIn 0.3s ease;
}

@keyframes yachtSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#yacht-quote-popup input:focus,
#yacht-quote-popup textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

#yacht-quote-popup button[type="submit"]:hover {
    background: #333 !important;
}

#yacht-quote-popup button[type="submit"]:disabled {
    background: #999 !important;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    #yacht-quote-popup {
        padding: 25px !important;
        margin: 15px;
    }
    
    #yacht-quote-popup h2 {
        font-size: 22px !important;
    }
}


/* ============================================
   3. STILI YACHT CHARTER GENERAL
   ============================================ */

/* Aggiungi badge "Charter" ai veicoli yacht */
.yacht-charter-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1a1a1a;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

/* Stile card veicoli yacht */
.crbs-vehicle-yacht .crbs-vehicle-card {
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.crbs-vehicle-yacht .crbs-vehicle-card:hover {
    border-color: #1a1a1a;
}

/* Messaggio disponibilità */
.yacht-availability-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #1a1a1a;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.yacht-availability-notice strong {
    color: #1a1a1a;
}


/* ============================================
   4. OVERRIDE CRBS DEFAULT STYLES
   ============================================ */

/* Rendi il form più elegante per yacht charter */
.crbs.yacht-mode .crbs-button-step-next {
    background: #1a1a1a !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px 40px !important;
    font-size: 12px !important;
    transition: all 0.3s ease;
}

.crbs.yacht-mode .crbs-button-step-next:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Select più eleganti */
.crbs.yacht-mode select,
.crbs.yacht-mode .ui-selectmenu-button {
    border-radius: 0 !important;
    border: 1px solid #ddd !important;
}

/* Datepicker più elegante */
.crbs.yacht-mode .ui-datepicker {
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.crbs.yacht-mode .ui-datepicker-header {
    background: #1a1a1a;
    border: none;
    border-radius: 0;
}

.crbs.yacht-mode .ui-datepicker td a.ui-state-active {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
}


/* ============================================
   5. PREZZI STAGIONALI - INDICATORI VISIVI
   ============================================ */

/* Badge stagione nel calendario */
.season-low {
    background-color: #28a745 !important;
}

.season-mid {
    background-color: #ffc107 !important;
    color: #333 !important;
}

.season-high {
    background-color: #dc3545 !important;
}

/* Legenda stagioni */
.yacht-season-legend {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 13px;
}

.yacht-season-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yacht-season-legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.yacht-season-legend .dot.low { background: #28a745; }
.yacht-season-legend .dot.mid { background: #ffc107; }
.yacht-season-legend .dot.high { background: #dc3545; }


/* FILTRI - NASCONDI YACHT - FORZA */
.crbs-main .crbs-vehicle.ycf-hidden,
.crbs-main .crbs-vehicle-list li.ycf-hidden,
.crbs-main li.ycf-hidden,
.crbs-vehicle.ycf-hidden,
li.ycf-hidden,
.ycf-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}