/* ============================================================
   rv-smart.css  -  Rentalvetrina smart search
   (1) launch buttons on Rentalvetrina  (2) guided wizard page
   (3) natural-language search page
   ============================================================ */

/* ---------- (1) Launch buttons on Rentalvetrina hero (dark) ---------- */
.rv-smart-launch {
  display: flex; gap: 12px; width: 100%; max-width: 820px;
  margin: 12px auto 0; flex-wrap: wrap;
}
.rv-smart-btn {
  flex: 1 1 0; min-width: 260px; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  text-decoration: none; color: #fff; position: relative;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s;
}
.rv-smart-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.34); }
.rv-smart-btn--wizard:hover { border-color: rgba(255, 107, 0,0.55); }
.rv-smart-btn--nl:hover { border-color: rgba(45,212,191,0.55); }
.rv-smart-btn-ic { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.28); }
.rv-smart-btn--wizard .rv-smart-btn-ic { background: linear-gradient(135deg, #2d8cff, #ff6b00); }
.rv-smart-btn--nl .rv-smart-btn-ic { background: linear-gradient(135deg, #14d2bf, #2d8cff); }
.rv-smart-btn-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.32; text-align: left; flex: 1; min-width: 0; }
.rv-smart-btn-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.rv-smart-btn-sub {
  display: block; font-size: 0.78rem; color: rgba(240,244,255,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
.rv-smart-btn-arrow { flex: 0 0 auto; color: rgba(255,255,255,0.62); transition: transform .25s, color .25s; }
.rv-smart-btn:hover .rv-smart-btn-arrow { transform: translateX(3px); color: rgba(255,255,255,0.9); }
@media (max-width: 600px) { .rv-smart-btn { min-width: 0; flex-basis: 100%; } }

/* ============================================================
   Shared shell for the two dedicated pages
   ============================================================ */
.rvw-page, .rvn-page {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #080808;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(255, 107, 0,0.10), transparent 60%),
    radial-gradient(800px 520px at 100% 0%, rgba(255, 107, 0,0.10), transparent 55%),
    linear-gradient(180deg, #f6f8fc 0%, #ffffff 60%);
  min-height: 100vh;
}
.rvw-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 20px;
  background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 12, 14,0.07);
}
.rvw-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #080808; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.rvw-brand svg { color: #ff6b00; }
.rvw-exit { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #8a8a90; text-decoration: none; transition: background .2s, color .2s; }
.rvw-exit:hover { background: rgba(12, 12, 14,0.06); color: #080808; }

/* ============================================================
   (2) Guided wizard
   ============================================================ */
.rvw-main { max-width: 680px; margin: 0 auto; padding: 0 20px 48px; }
.rvw-progress { height: 4px; border-radius: 999px; background: rgba(12, 12, 14,0.08); margin: 18px 0 6px; overflow: hidden; }
.rvw-progress-fill { display: block; height: 100%; width: 16%; border-radius: 999px; background: linear-gradient(90deg, #ff6b00, #ff6b00); transition: width .4s cubic-bezier(.22,1,.36,1); }
.rvw-stage { padding-top: 6px; }
.rvw-step { display: none; width: 100%; text-align: center; padding: 18px 0 8px; }
.rvw-step.is-active { display: block; animation: rvwIn .38s cubic-bezier(.22,1,.36,1); }
@keyframes rvwIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rvw-step-num { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #ff6b00; background: rgba(255, 107, 0,0.09); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.rvw-step-num b { font-weight: 800; }
.rvw-q { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.1; }
.rvw-sub { font-size: 1rem; color: #8a8a90; margin: 0 auto 26px; max-width: 460px; line-height: 1.5; }

.rvw-input {
  width: 100%; max-width: 440px; box-sizing: border-box; margin: 0 auto; display: block;
  padding: 15px 18px; font-size: 1.05rem; border-radius: 14px;
  border: 1.5px solid rgba(12, 12, 14,0.14); background: #fff; color: #080808; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.rvw-input:focus { border-color: #ff6b00; box-shadow: 0 0 0 4px rgba(255, 107, 0,0.12); }
.rvw-citychips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 18px; }
.rvw-citychip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(12, 12, 14,0.12); background: #fff; color: #3a3a40; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: all .18s; }
.rvw-citychip:hover { border-color: rgba(255, 107, 0,0.5); color: #ff6b00; }
.rvw-citychip.is-active { background: #ff6b00; border-color: #ff6b00; color: #fff; }

.rvw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; max-width: 560px; margin: 0 auto; }
.rvw-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border-radius: 16px; border: 1.5px solid rgba(12, 12, 14,0.12); background: #fff; color: #3a3a40; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all .2s cubic-bezier(.22,1,.36,1); }
.rvw-card svg { color: #8a8a90; transition: color .2s; }
.rvw-card:hover { transform: translateY(-3px); border-color: rgba(255, 107, 0,0.4); box-shadow: 0 10px 26px rgba(12, 12, 14,0.08); }
.rvw-card.is-active { border-color: #ff6b00; background: rgba(255, 107, 0,0.06); color: #080808; box-shadow: 0 0 0 3px rgba(255, 107, 0,0.12); }
.rvw-card.is-active svg { color: #ff6b00; }

.rvw-budget { max-width: 460px; margin: 0 auto; }
.rvw-budget-val { font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px; transition: opacity .2s; }
.rvw-budget-val.is-dim { opacity: 0.32; }
.rvw-budget-cur { color: #ff6b00; }
.rvw-budget-per { font-size: 1rem; font-weight: 600; color: #8a8a90; letter-spacing: 0; }
.rvw-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #ff6b00, #ff6b00); outline: none; }
.rvw-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #ff6b00; box-shadow: 0 3px 10px rgba(255, 107, 0,0.4); cursor: pointer; }
.rvw-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #ff6b00; box-shadow: 0 3px 10px rgba(255, 107, 0,0.4); cursor: pointer; }
.rvw-range-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: #8a8a90; margin-top: 8px; }
.rvw-anycheck { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 0.95rem; color: #3a3a40; cursor: pointer; }
.rvw-anycheck input { width: 18px; height: 18px; accent-color: #ff6b00; }

.rvw-field { margin: 0 auto 22px; max-width: 460px; }
.rvw-field-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #8a8a90; margin-bottom: 10px; }
.rvw-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.rvw-chips button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(12, 12, 14,0.12); background: #fff; color: #3a3a40; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: all .18s; }
.rvw-chips button:hover { border-color: rgba(255, 107, 0,0.5); color: #ff6b00; }
.rvw-chips button.is-active { background: #ff6b00; border-color: #ff6b00; color: #fff; }
.rvw-chips--feat { max-width: 520px; margin: 0 auto; }

.rvw-step--summary .rvw-done-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; background: linear-gradient(135deg, #ff8a3d, #ff6b00); box-shadow: 0 12px 30px rgba(255, 138, 61,0.35); }
.rvw-summary { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 540px; margin: 6px auto 0; }
.rvw-sum-chip { padding: 9px 16px; border-radius: 999px; background: rgba(255, 107, 0,0.08); border: 1px solid rgba(255, 107, 0,0.18); color: #0a3a72; font-size: 0.92rem; font-weight: 600; }

.rvw-foot { display: flex; align-items: center; gap: 10px; padding: 18px 0 30px; }
.rvw-foot-spacer { flex: 1; }
.rvw-nav-btn[hidden] { display: none; }
.rvw-nav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: all .2s cubic-bezier(.22,1,.36,1); }
.rvw-nav-btn--ghost { background: transparent; color: #8a8a90; }
.rvw-nav-btn--ghost:hover { background: rgba(12, 12, 14,0.06); color: #080808; }
.rvw-skip { font-weight: 600; }
.rvw-nav-btn--primary { background: linear-gradient(135deg, #ff6b00, #ff6b00); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 0,0.32); }
.rvw-nav-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 107, 0,0.42); }
.rvw-go { background: linear-gradient(135deg, #ff8a3d, #ff6b00); box-shadow: 0 8px 22px rgba(255, 138, 61,0.34); }

/* ============================================================
   (3) Natural-language search
   ============================================================ */
.rvn-main { max-width: 760px; margin: 0 auto; padding: 0 20px 40px; }
.rvn-hero { width: 100%; text-align: center; padding: 40px 0 60px; }
.rvn-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #ff6b00; background: rgba(255, 107, 0,0.10); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.rvn-title { font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 700; letter-spacing: -0.035em; margin: 0 0 12px; line-height: 1.08; }
.rvn-sub { font-size: 1.08rem; color: #8a8a90; margin: 0 auto 30px; max-width: 520px; line-height: 1.5; }
.rvn-box { position: relative; max-width: 620px; margin: 0 auto; background: #fff; border: 1.5px solid rgba(12, 12, 14,0.12); border-radius: 22px; padding: 8px; box-shadow: 0 16px 44px rgba(12, 12, 14,0.10); transition: border-color .2s, box-shadow .2s; }
.rvn-box:focus-within { border-color: #ff6b00; box-shadow: 0 16px 50px rgba(255, 107, 0,0.20); }
.rvn-textarea { width: 100%; box-sizing: border-box; border: none; outline: none; resize: none; font: inherit; font-size: 1.12rem; line-height: 1.5; color: #080808; padding: 14px 16px 56px; background: transparent; }
.rvn-textarea::placeholder { color: #6e7b94; }
.rvn-actions { display: flex; justify-content: center; margin-top: 18px; }
.rvn-go { display: inline-flex; align-items: center; gap: 10px; padding: 15px 36px; border: none; border-radius: 999px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; cursor: pointer; background: linear-gradient(135deg, #ff6b00, #ff6b00); box-shadow: 0 10px 28px rgba(255, 107, 0,0.32); transition: transform .2s, box-shadow .2s; }
.rvn-go:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 107, 0,0.44); }
.rvn-examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 22px; }
.rvn-ex-label { font-size: 0.85rem; color: #8a8a90; font-weight: 600; }
.rvn-ex-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rvn-ex { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(12, 12, 14,0.10); background: rgba(255,255,255,0.7); color: #8a8a90; font-size: 0.86rem; cursor: pointer; transition: all .18s; }
.rvn-ex:hover { color: #ff6b00; border-color: rgba(255, 107, 0,0.45); background: #fff; }

.rvn-understood { max-width: 580px; margin: 30px auto 0; background: #fff; border: 1px solid rgba(12, 12, 14,0.10); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(12, 12, 14,0.07); animation: rvwIn .35s cubic-bezier(.22,1,.36,1); }
.rvn-understood-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #8a8a90; }
.rvn-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 14px 0 4px; }
.rvn-chip { padding: 9px 16px; border-radius: 999px; background: rgba(255, 107, 0,0.08); border: 1px solid rgba(255, 107, 0,0.20); color: #4a2da8; font-size: 0.92rem; font-weight: 600; }
.rvn-empty { font-size: 0.92rem; color: #8a8a90; margin: 10px 0 0; }
.rvn-see { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 13px 28px; border-radius: 999px; font-size: 1rem; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(135deg, #ff8a3d, #ff6b00); box-shadow: 0 8px 22px rgba(255, 138, 61,0.34); transition: transform .2s, box-shadow .2s; }
.rvn-see:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 138, 61,0.44); }

@media (max-width: 560px) {
  .rvw-foot { flex-wrap: wrap; }
  .rvn-go { width: 100%; justify-content: center; }
  .rvn-textarea { padding-bottom: 14px; }
}


/* Step Lavoro: autocomplete indirizzo + pillole tempo/mezzo */
.rvw-work-wrap { position: relative; max-width: 520px; margin: 0 auto; }
.rvw-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1.5px solid rgba(12, 12, 14,0.10); border-radius: 16px; box-shadow: 0 18px 44px rgba(12, 12, 14,0.16); text-align: left; }
.rvw-suggest li { padding: 11px 14px; border-radius: 10px; font-size: 0.93rem; color: #3a3a40; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvw-suggest li:hover { background: rgba(255, 107, 0,0.08); color: #ff6b00; }
.rvw-seg-label { margin: 26px auto 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #6e7b94; }
.rvw-seg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; margin: 0 auto; }
.rvw-seg button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(12, 12, 14,0.12); background: #fff; color: #3a3a40; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: all .18s; }
.rvw-seg button:hover { border-color: rgba(255, 107, 0,0.5); color: #ff6b00; }
.rvw-seg button.is-active { background: #ff6b00; border-color: #ff6b00; color: #fff; }

.rvw-city-wrap { position: relative; max-width: 440px; margin: 0 auto; }

/* Icone POI premium nelle chips del wizard */
.rvw-chips button { display: inline-flex; align-items: center; gap: 8px; }
.rvw-chips button .rd-poi-svg { width: 22px; height: 22px; flex-shrink: 0; filter: drop-shadow(0 1px 3px rgba(12, 12, 14,0.18)); }


/* Parcheggi granulari nella ricerca guidata (stessa granularita del pannello filtri) */
.rv-park-rows { display: flex; flex-direction: column; gap: 9px; width:100%; }
.rv-park-row { display: flex; align-items: center; gap: 10px; }
.rv-park-row .rd-poi-svg { width: 24px; height: 24px; flex-shrink: 0; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }
.rv-park-label { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: rgba(240,244,255,0.85); text-align:left; }
.rv-park-seg { display: flex; gap: 4px; }
.rv-park-seg button { min-width: 46px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: rgba(240,244,255,0.7); font-size: 12px; font-weight: 650; cursor: pointer; transition: all .15s ease; }
.rv-park-seg button:hover { border-color: rgba(255,107,0,0.4); }
.rv-park-seg button.is-active { background: rgba(255,107,0,0.2); border-color: rgba(255,107,0,0.55); color: #ff9d5c; }
.rv-park-bike { margin-top: 4px; align-self: flex-start; }


/* ── TEMA SCURO ricerca guidata (coerente col sito nero) ── */
.rvw-page, .rvn-page { color: #f5f5f7 !important;
  background: radial-gradient(900px 500px at 12% -8%, rgba(255,107,0,0.14), transparent 60%),
             radial-gradient(800px 520px at 100% 0%, rgba(255,107,0,0.10), transparent 55%), #000 !important; }
.rvw-top { background: rgba(10,10,12,0.72) !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
.rvw-brand { color: #f5f5f7 !important; }
.rvw-exit { color: #a1a1a8 !important; }
.rvw-exit:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }
.rvw-progress { background: rgba(255,255,255,0.10) !important; }
.rvw-q { color: #f5f5f7 !important; }
.rvw-sub, .rvw-range-scale, .rvw-budget-per, .rvw-anycheck { color: #a1a1a8 !important; }
.rvw-input { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.14) !important; color: #f5f5f7 !important; }
.rvw-citychip, .rvw-card, .rvw-chips button { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.14) !important; color: #d0d0d6 !important; }
.rvw-card svg, .rvw-chips button svg:not(.rd-poi-svg) { color: #a1a1a8; }
.rvw-citychip.is-active, .rvw-chips button.is-active { background: #ff6b00 !important; border-color: #ff6b00 !important; color: #fff !important; }
.rvw-card.is-active { background: rgba(255,107,0,0.12) !important; border-color: #ff8a3d !important; color: #fff !important; }
.rvw-card.is-active svg { color: #ff8a3d; }
.rvw-sum-chip { background: rgba(255,107,0,0.10) !important; border-color: rgba(255,107,0,0.22) !important; color: #ffc299 !important; }
.rvw-nav-btn--ghost { color: #a1a1a8 !important; }
.rvw-nav-btn--ghost:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }
.rvw-seg-label { color: #ff8a3d !important; }
.rv-park-label { color: rgba(245,245,247,0.88) !important; }
