/* =============================
   LONGRENT HOME SEARCH - OVERRIDES
   ============================= */

/* ===== CONTAINER ===== */
.longrent-search-container {
  width: 100%;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* ombra più marcata */
  margin-bottom: 20px;
}

/* .longrent-search-container.auto{
  overflow-y: auto !important;
  max-height: 90vh !important;
} */

/* Highlight campi attivi */
.longrent-search-filters select.filter-active,
.longrent-search-filters input.filter-active {
    border-color: #4da3ff !important;
    background: #e9f3ff !important;
    box-shadow: 0 0 0 2px rgba(77,163,255,0.25) !important;
}



/* ===== TABS SUPERIORI =====
   - nessun bordo
   - testo nero
   - underline solo per active
*/
.longrent-search-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  border-bottom: 2px solid #eee;
  margin-bottom: 15px;
  padding-bottom: 8px;
  /*overflow-x: auto; */
  /*-webkit-overflow-scrolling: touch;*/
}

/* Tab generici */
.longrent-search-tabs .tab {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  color: #000 !important;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all .2s ease;
  outline: none !important;
}

/* Focus pulito */
.longrent-search-tabs .tab:focus,
.longrent-search-tabs .tab:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Tab attivo */
.longrent-search-tabs .tab.active {
  border-bottom-color: #fcb040 !important; /* colore evidenziato coerente con bottone risultati */
  color: #000 !important;
  font-weight: 600;
  background: #fcb040 !important; /* leggero contrasto per distinguere */
  position: relative;
}

/* Hover o Active → sfondo grigio */
.longrent-search-tabs .tab:hover,
.longrent-search-tabs .tab:active {
  background: #f2f2f2 !important;
  border-bottom-color: #ccc !important;
  color: #000 !important;
}





/* ============================================ FILTRI =====  */
.longrent-search-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}


/* Select base */
.longrent-search-filters select,
.longrent-search-filters input,
.longrent-search-filters .search-input{
  flex: 1 1 0 !important;
  min-width: 200px !important;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd !important;
  font-size: 14px !important;
  background: #f5f5f5 !important;
  /*-webkit-appearance: none;
  appearance: none;*/
}

/* Focus sui select */
.longrent-search-filters select:focus,
.longrent-search-filters input:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: #cfcfcf !important;
}


/*
.search-input .currency {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #555;
  pointer-events: none;
}
  */

.search-input {
  width: 100%;
  padding: 12px; /* spazio per CHF */
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  font-size: 14px;
}

/* Focus */
.search-input:focus {
  outline: none !important;
  border-color: #cfcfcf !important;
}


/* Bottone risultati */
.btn-risultati, .btn-risultati-auto {
  flex: 0 0 200px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #fcb040 !important;
  color: #000 !important;
  font-weight: 700;
  border: 1px solid #FCA652 !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all .2s ease;
}

/* Hover del bottone */
.btn-risultati:hover, .btn-risultati-auto:hover {
  background: #fcb040 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}


/* ===== FOOTER ===== */
.longrent-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin-top: 2px;
}

.longrent-search-footer .ultima-ricerca {
  color: #555;
}

.longrent-search-footer .ricerca-avanzata {
  color: #0056b3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none !important;
  gap: 6px;
}

/* Hover link ricerca avanzata */
.longrent-search-footer .ricerca-avanzata:hover,
.longrent-search-footer .ricerca-avanzata:focus {
  text-decoration: underline;
  background-color: #fff !important;
}

 .search-advanced-fields{
    display:none;
  }

/* ===== RESPONSIVE RULES ===== */

/* Desktop >= 1025px */
@media (min-width: 1025px) {
  .longrent-search-filters {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .marca-modello,
  .carrozzeria {
    width: 100%;
  }

  .search-input-group {
    display: flex;
    gap: 10px;
  }

  .btn-risultati, .btn-risultati-auto {
    flex: 0 0 220px;
  }

  .longrent-search-footer {
    justify-content: space-between;
    text-align: left;
  }

}

/* Tablet & Mobile <= 1024px */
@media (max-width: 1024px) {
  .longrent-search-container.auto {
    max-height: none !important;
    overflow-y: visible !important;
  }

  .lr-mobile-w-100{
    width: 100% !important;
  }
  .longrent-search-tabs {
    flex-direction: column !important;
    width: 100%;
    gap: 6px;
    padding-bottom: 6px;
    overflow-x: auto ;
  }

  .longrent-search-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .longrent-search-filters .search-select,
  .longrent-search-filters select,
  .longrent-search-filters input,
  .btn-risultati, .btn-risultati-auto {
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .btn-risultati, .btn-risultati-auto {
    margin-top: 6px;
  }

  .longrent-search-footer {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .longrent-search-footer .ricerca-avanzata {
    justify-content: center;
  }
}

/* Mobile piccoli <= 480px */
@media (max-width: 480px) {
  .longrent-search-container.auto {
    max-height: none !important;
    overflow-y: visible !important;
  }

  .lr-mobile-w-100{
    width: 100% !important;
  }

  .longrent-search-tabs {
    flex-direction: column !important;
    width: 100%;
    gap: 6px;
    padding-bottom: 6px;
    overflow-x: auto ;
  }

  .longrent-search-tabs .tab {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ===== Sicurezza extra: neutralizza stili di errore ===== */
.longrent-search-container *:focus {
  outline: none !important;
  box-shadow: none !important;
}

.longrent-search-container select.error,
.longrent-search-container select.invalid,
.longrent-search-container .tab.error,
.longrent-search-container .tab.invalid {
  border-color: #ddd !important;
  color: #000 !important;
  background: #f5f5f5 !important;
}
.longrent-search-notes{
    margin: 10px 0px;
    font-size: 15px;
    color: #333;
}

.disabled {
    background: #e5e5e5 !important;
    color: #999 !important;
    border-color: #dcdcdc !important;

    cursor: not-allowed !important;
    opacity: 0.6;

    pointer-events: none !important; /* NON cliccabile */
}




/* ==========================================================
   VERSIONE VERTICALE SIDEBAR – SOLO PER .longrent-search-container.auto
   ========================================================== */

/* Layout verticale del contenitore */
.longrent-search-container.auto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* Tabs in verticale */
.longrent-search-container.auto .longrent-search-tabs {
  flex-direction: column;
  border-bottom: none;
  gap: 4px;
  padding-bottom: 0;
}

.longrent-search-container.auto .longrent-search-tabs .tab,
.longrent-search-container .longrent-search-tabs .tab {
  width: 100%;
  text-align: left;
  border-radius: 6px;
  border: 1px solid #eee !important;
  border-bottom-width: 1px !important;
  background: #fafafa !important;
}

/* Tab active in verticale */
.longrent-search-container.auto .longrent-search-tabs .tab.active,
.longrent-search-container .longrent-search-tabs .tab.active {
  background: #fcb040 !important;
  border-color: #fcb040 !important;
  color: #000 !important;
  border-bottom-color: #fcb040 !important;
}

/* Hover in verticale */
.longrent-search-container.auto .longrent-search-tabs .tab:hover,
.longrent-search-container .longrent-search-tabs .tab:hover {
  background: #f2f2f2 !important;
}

/* Filtri in colonna */
.longrent-search-container.auto .longrent-search-filters {
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
}

/* Select a larghezza piena */
.longrent-search-container.auto .search-select,
.longrent-search-container.auto select {
  width: 100%;
}

/* Range prezzo impilato */
.longrent-search-container.auto .search-input-group {
  flex-direction: column;
  gap: 12px;
}

/* Bottone risultati */
.longrent-search-container.auto .btn-risultati, 
.longrent-search-container.auto .btn-risultati-auto {
  width: 100%;
  flex: none !important;
  margin-top: 10px;
}

/* Footer in verticale */
.longrent-search-container.auto .longrent-search-footer {
  flex-direction: column;
  text-align: center;
  gap: 6px;
}


