/* ==========================================================================
   ITERCARS — NOLEGGIO LUNGO & BREVE TERMINE (NLT / NBT) STYLES
   Estetica Premium Dark Mode, Glassmorphism e Micro-Animazioni WOW
   ========================================================================== */

/* Switcher NLT / NBT Hero */
.nlt-mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 6px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  margin-top: 24px;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.active-mode {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 146, 70, 0.4);
}

/* Barra dei Filtri Glass */
.nlt-filter-section {
  position: relative;
  z-index: 10;
  margin-top: -30px;
  margin-bottom: 50px;
}

.nlt-filter-bar {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.filter-row-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 992px) {
  .filter-row-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .filter-row-top {
    grid-template-columns: 1fr;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.filter-pill.active {
  background: rgba(0, 146, 70, 0.2);
  border-color: var(--accent-primary);
  color: #2ecc71;
}

.budget-slider-input {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.budget-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 146, 70, 0.8);
  border: 2px solid #fff;
}

.filter-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  gap: 14px;
}

/* Griglia Vetture NLT */
.nlt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.nlt-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  background: rgba(15, 20, 32, 0.7);
}

.nlt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 146, 70, 0.15);
  border-color: rgba(0, 146, 70, 0.4);
}

.nlt-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #06080e;
}

.nlt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nlt-card:hover .nlt-card-img {
  transform: scale(1.06);
}

.nlt-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.card-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-ready {
  background: rgba(46, 204, 113, 0.9);
  color: #0b0f19;
}

.badge-custom {
  background: rgba(245, 158, 11, 0.9);
  color: #0b0f19;
}

.badge-zero {
  background: rgba(0, 0, 0, 0.75);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.nlt-provider-tag {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(11, 15, 25, 0.85);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.nlt-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.nlt-brand-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 800;
  letter-spacing: 1px;
}

.nlt-model-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
  color: #fff;
}

.nlt-specs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 8px;
}

.nlt-specs-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interruttore Rapido Durata/Anticipo dentro la Card */
.card-interactive-selector {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
}

.card-selector-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.card-duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.card-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.card-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.card-tab.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.card-tab.active-zero {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
}

/* Box Rata */
.nlt-price-box {
  background: rgba(0, 146, 70, 0.08);
  border: 1px solid rgba(0, 146, 70, 0.25);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nlt-price-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.nlt-price-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.nlt-price-details {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.nlt-services-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.nlt-services-list div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-green {
  color: #2ecc71;
}

.nlt-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Category Pills Bar per Lungo Termine */
.category-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.category-pill i {
  font-size: 1.15rem;
  color: var(--accent-primary);
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.category-pill.active {
  background: rgba(0, 146, 70, 0.25);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 146, 70, 0.4);
}
@media (max-width: 640px) { .nlt-grid { grid-template-columns: 1fr !important; } }
