/* ==========================================================
   WIZARD VISITATORE (Turista)
   ========================================================== */
.sb-wiz {
    max-width: 950px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2c3e50;
    min-height: 70vh;
}
.sb-wiz * { box-sizing: border-box; }

/* Progress sticky in alto */
.sb-wiz-progress {
    height: 5px;
    background: #f0f3f7;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    position: sticky;
    top: 10px;
    z-index: 10;
}
.sb-wiz-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00b4d8, #0077b6);
    transition: width 0.5s cubic-bezier(.4,.0,.2,1);
}

/* Step */
.sb-wiz-step {
    display: none;
    animation: sbWizFadeIn 0.4s ease-out;
}
.sb-wiz-step.active { display: block; }

@keyframes sbWizFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Head */
.sb-wiz-head {
    text-align: center;
    margin-bottom: 36px;
}
.sb-wiz-num {
    display: inline-block;
    padding: 4px 14px;
    background: #f0f3f7;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #7e8a99;
    margin-bottom: 14px;
}
.sb-wiz-head h1 {
    font-size: 36px;
    margin: 0 0 10px;
    color: #1a1a1a;
    line-height: 1.15;
}
.sb-wiz-head p {
    font-size: 17px;
    color: #7e8a99;
    margin: 0;
}

/* Grid */
.sb-wiz-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 30px;
}
.sb-wiz-grid-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sb-wiz-grid-3 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Card scelta */
.sb-wiz-card {
    background: #fff;
    border: 2px solid #e4e8f0;
    border-radius: 16px;
    padding: 24px 18px;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s cubic-bezier(.4,.0,.2,1);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sb-wiz-card:hover {
    border-color: #0077b6;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,119,182,0.14);
}
.sb-wiz-card.selected {
    border-color: #0077b6;
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    box-shadow: 0 6px 20px rgba(0,119,182,0.18);
}
.sb-wiz-card-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 4px;
}
.sb-wiz-card strong {
    font-size: 16px;
    color: #1a1a1a;
}
.sb-wiz-card small {
    color: #7e8a99;
    font-size: 13px;
    line-height: 1.3;
}
.sb-wiz-card-special {
    background: linear-gradient(135deg, #fff8e1, #fffdf5);
    border-color: #f4d03f;
}
.sb-wiz-card-special:hover {
    border-color: #f39c12;
    box-shadow: 0 12px 28px rgba(243,156,18,0.18);
}

/* Multi-select */
.sb-wiz-multi-card.selected::after {
    content: '✓';
    position: absolute;
}
.sb-wiz-multi-card {
    position: relative;
}
.sb-wiz-multi-card.selected::after {
    top: 8px;
    right: 12px;
    background: #0077b6;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Back / Next row */
.sb-wiz-back-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.sb-wiz-back {
    background: transparent;
    border: none;
    color: #7e8a99;
    cursor: pointer;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.15s;
    font-family: inherit;
}
.sb-wiz-back:hover {
    background: #f0f3f7;
    color: #34495e;
}

/* Generic Button */
.sb-wiz-btn {
    padding: 12px 26px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.15s;
}
.sb-wiz-btn-primary {
    background: #0077b6;
    color: #fff;
}
.sb-wiz-btn-primary:hover {
    background: #005f92;
    transform: translateY(-1px);
}
.sb-wiz-btn-ghost {
    background: #fff;
    color: #34495e;
    border: 1.5px solid #d8dee8;
}
.sb-wiz-btn-ghost:hover { background: #f7f9fc; }

/* Loading */
.sb-wiz-loading {
    text-align: center;
    padding: 80px 20px;
}
.sb-wiz-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e3f2fd;
    border-top-color: #0077b6;
    border-radius: 50%;
    animation: sbWizSpin 1s linear infinite;
    margin: 0 auto 24px;
}
@keyframes sbWizSpin {
    to { transform: rotate(360deg); }
}
.sb-wiz-loading h2 { font-size: 24px; margin: 0 0 8px; }
.sb-wiz-loading p { color: #7e8a99; margin: 0; }

/* Risultati */
.sb-wiz-results-head {
    text-align: center;
    margin-bottom: 26px;
}
.sb-wiz-results-head h1 {
    font-size: 32px;
    margin: 0 0 8px;
    color: #1a1a1a;
}
.sb-wiz-results-head h1 span { color: #0077b6; }
.sb-wiz-results-head p { color: #7e8a99; margin: 0 0 16px; }
.sb-wiz-results-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards risultati */
.sb-wiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.sb-wiz-result-card {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.18s;
    display: block;
    position: relative;
}
.sb-wiz-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}
.sb-wiz-result-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f0f3f7;
    position: relative;
}
.sb-wiz-result-thumb-empty {
    background: linear-gradient(135deg, #74c0fc, #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #fff;
}
.sb-wiz-result-match {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sb-wiz-result-match.high { color: #2ecc71; }
.sb-wiz-result-match.mid  { color: #f39c12; }
.sb-wiz-result-body {
    padding: 14px 16px;
}
.sb-wiz-result-body h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #1a1a1a;
}
.sb-wiz-result-meta {
    font-size: 13px;
    color: #7e8a99;
    margin: 3px 0;
}
.sb-wiz-result-services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}
.sb-wiz-result-tag {
    background: #e3f2fd;
    color: #0077b6;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
}
.sb-wiz-result-price {
    margin-top: 10px;
    font-weight: 700;
    color: #0077b6;
    font-size: 15px;
}

/* Empty state */
.sb-wiz-empty {
    text-align: center;
    padding: 60px 20px;
}
.sb-wiz-empty-icon { font-size: 70px; margin-bottom: 16px; }
.sb-wiz-empty h2 { margin: 0 0 8px; }
.sb-wiz-empty p { color: #7e8a99; margin: 0 0 18px; }

/* Mobile */
@media (max-width: 600px) {
    .sb-wiz-head h1 { font-size: 28px; }
    .sb-wiz-grid-2 { grid-template-columns: 1fr; }
    .sb-wiz-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .sb-wiz-card { padding: 18px 12px; }
    .sb-wiz-card-icon { font-size: 36px; }
}
