/* WayToB AI Itinerary Builder — style.css v2.0.0 */
.wib-wrap *, .wib-wrap *::before, .wib-wrap *::after { box-sizing: border-box; }
.wib-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px; color: #1a1a2e; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 16px;
    overflow: hidden; max-width: 760px; margin: 0 auto 32px; line-height: 1.5;
}
/* Header */
.wib-header { background: #0d1f3c; padding: 22px 28px; display: flex; align-items: center; gap: 16px; }
.wib-header-icon { font-size: 34px; line-height: 1; }
.wib-header h2 { font-size: 18px !important; font-weight: 700 !important; color: #fff !important; margin: 0 0 4px !important; padding: 0 !important; border: none !important; line-height: 1.2 !important; }
.wib-header p  { font-size: 13px; color: #8fafc8; margin: 0; }

/* Progress */
.wib-progress { display: flex; align-items: center; padding: 16px 28px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.wib-prog-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #9ca3af; white-space: nowrap; }
.wib-prog-item.wib-prog-active { color: #0d1f3c; }
.wib-prog-item.wib-prog-done   { color: #239e8a; }
.wib-prog-dot { width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.wib-prog-dot span { font-size: 12px; font-weight: 700; color: #9ca3af; }
.wib-prog-item.wib-prog-active .wib-prog-dot { background: #0d1f3c; }
.wib-prog-item.wib-prog-active .wib-prog-dot span { color: #fff; }
.wib-prog-item.wib-prog-done   .wib-prog-dot { background: #239e8a; }
.wib-prog-item.wib-prog-done   .wib-prog-dot span { color: #fff; }
.wib-prog-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 8px; transition: background 0.2s; }
.wib-prog-line.wib-line-done { background: #239e8a; }
.wib-prog-lbl { font-size: 12px; }

/* Steps */
.wib-step { display: none; padding: 26px 28px 28px; }
.wib-step.wib-step-active { display: block; }
.wib-step-title { font-size: 15px; font-weight: 700; color: #0d1f3c; margin-bottom: 20px; }

/* Fields */
.wib-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.wib-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.wib-field-full { grid-column: 1/-1; }
.wib-label { font-size: 13px; font-weight: 600; color: #0d1f3c; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wib-lbl-icon { font-size: 16px; line-height: 1; }
.wib-optional { font-size: 11px; font-weight: 400; color: #9ca3af; }

.wib-input {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; color: #1a1a2e; background: #fff; outline: none; transition: border-color 0.15s;
}
.wib-input:focus { border-color: #239e8a; }
.wib-input.wib-input-err { border-color: #ef4444; }

/* Destination hint */
.wib-dest-hint {
    font-size: 12px; color: #6b7280; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 12px; line-height: 1.7;
}

/* Counter */
.wib-counter { display: flex; align-items: center; gap: 8px; }
.wib-cnt-btn {
    width: 36px; height: 36px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    background: #fff; font-size: 20px; cursor: pointer; color: #0d1f3c;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0;
    transition: border-color 0.15s, background 0.15s;
}
.wib-cnt-btn:hover { border-color: #239e8a; background: #e8f7f5; }
.wib-cnt-input { width: 54px; text-align: center; padding: 8px 4px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 16px; font-weight: 700; color: #0d1f3c; background: #fff; outline: none; }
.wib-cnt-input::-webkit-outer-spin-button, .wib-cnt-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wib-cnt-input[type=number] { -moz-appearance: textfield; }
.wib-cnt-lbl { font-size: 13px; color: #6b7280; }

/* Pills */
.wib-style-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wib-style-pill { border: 1.5px solid #e5e7eb; border-radius: 20px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: #374151; cursor: pointer; white-space: nowrap; transition: border-color 0.15s, background 0.15s; user-select: none; }
.wib-style-pill:hover, .wib-style-pill.wib-selected { border-color: #239e8a; background: #e8f7f5; color: #0d5c52; }

.wib-who-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wib-who-pill { border: 1.5px solid #e5e7eb; border-radius: 20px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; white-space: nowrap; transition: border-color 0.15s, background 0.15s; user-select: none; }
.wib-who-pill:hover, .wib-who-pill.wib-selected { border-color: #239e8a; background: #e8f7f5; color: #0d5c52; }

.wib-interests-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.wib-interest { border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 600; color: #374151; cursor: pointer; transition: border-color 0.15s, background 0.15s; user-select: none; }
.wib-interest:hover, .wib-interest.wib-selected { border-color: #239e8a; background: #e8f7f5; color: #0d5c52; }

/* Errors */
.wib-err { font-size: 12px; color: #ef4444; display: none; margin-top: 2px; }
.wib-err.wib-show { display: block; }

/* Buttons */
.wib-btn-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.wib-btn-row-split { justify-content: space-between; }
.wib-btn-next, .wib-btn-generate { background: #0d1f3c; color: #fff; border: none; border-radius: 10px; padding: 13px 28px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.wib-btn-next:hover, .wib-btn-generate:hover { background: #162d50; }
.wib-btn-back { background: transparent; color: #6b7280; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 13px 20px; font-size: 14px; cursor: pointer; transition: border-color 0.15s; }
.wib-btn-back:hover { border-color: #9ca3af; }
.wib-mt { margin-top: 16px; display: inline-block; }

/* Not Found */
.wib-notfound { text-align: center; padding: 36px 24px; }
.wib-nf-icon  { font-size: 40px; margin-bottom: 12px; }
.wib-nf-title { font-size: 16px; font-weight: 700; color: #0d1f3c; margin-bottom: 8px; }
.wib-nf-msg   { font-size: 13px; color: #6b7280; margin-bottom: 16px; line-height: 1.6; }
.wib-nf-list  { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.wib-nf-dest  { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 5px 12px; font-size: 12px; color: #374151; cursor: pointer; transition: background 0.15s; }
.wib-nf-dest:hover { background: #e8f7f5; border-color: #239e8a; color: #0d5c52; }

/* Result Header */
.wib-result-header { background: linear-gradient(135deg,#0d1f3c,#1a3a5c); padding: 24px 28px; margin-bottom: 20px; border-radius: 12px; }
.wib-result-title  { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.wib-result-overview { font-size: 13px; color: #aec8e0; line-height: 1.7; margin-bottom: 14px; }
.wib-result-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.wib-meta-pill { font-size: 11px; background: #ffffff18; color: #cde0f0; border: 1px solid #ffffff22; border-radius: 20px; padding: 4px 12px; display: flex; align-items: center; gap: 5px; }

/* Days */
.wib-days-out { margin-bottom: 20px; }
.wib-day { border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.wib-day-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; user-select: none; background: #f9fafb; transition: background 0.15s; }
.wib-day-header:hover { background: #f1f5f9; }
.wib-day-header-left { display: flex; align-items: center; gap: 12px; }
.wib-day-num { background: #0d1f3c; color: #fff; font-size: 12px; font-weight: 700; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wib-day-title { font-size: 14px; font-weight: 700; color: #0d1f3c; }
.wib-day-theme { font-size: 12px; color: #6b7280; margin-top: 2px; }
.wib-day-toggle { font-size: 18px; color: #9ca3af; transition: transform 0.2s; }
.wib-day-toggle.wib-collapsed { transform: rotate(-90deg); }
.wib-day-body { padding: 0; }
.wib-day-body.wib-hidden { display: none; }

/* Periods */
.wib-period { display: flex; border-top: 1px solid #f3f4f6; }
.wib-period-icon-col { width: 52px; min-width: 52px; display: flex; flex-direction: column; align-items: center; padding: 16px 0 0; }
.wib-period-icon { font-size: 22px; line-height: 1; }
.wib-period-line { width: 2px; flex: 1; background: #e5e7eb; margin-top: 8px; }
.wib-period:last-child .wib-period-line { display: none; }
.wib-period-content { flex: 1; padding: 16px 18px 16px 8px; }
.wib-period-time { font-size: 11px; color: #9ca3af; font-weight: 600; margin-bottom: 3px; }
.wib-period-activity { font-size: 14px; font-weight: 700; color: #0d1f3c; margin-bottom: 6px; }
.wib-period-desc { font-size: 13px; color: #374151; line-height: 1.6; margin-bottom: 8px; }
.wib-period-footer { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.wib-period-tip { font-size: 11px; background: #e8f7f5; color: #0d6b5e; border-radius: 6px; padding: 5px 10px; line-height: 1.5; flex: 1; }
.wib-period-tip::before { content: '💡 '; }
.wib-period-cost { font-size: 11px; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; border-radius: 6px; padding: 5px 10px; white-space: nowrap; font-weight: 600; }

/* Tips */
.wib-tips-box { background: #e8f7f5; border: 1px solid #239e8a44; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.wib-tips-title { font-size: 14px; font-weight: 700; color: #0d5c52; margin-bottom: 10px; }
.wib-tips-list { list-style: none; margin: 0; padding: 0; }
.wib-tips-list li { font-size: 13px; color: #0d5c52; padding: 4px 0 4px 20px; position: relative; line-height: 1.5; }
.wib-tips-list li::before { content: '✓'; position: absolute; left: 0; color: #239e8a; font-weight: 700; }

/* Actions */
.wib-result-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
.wib-act-btn { background: #fff; color: #374151; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 9px 18px; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; white-space: nowrap; }
.wib-act-btn:hover { border-color: #239e8a; background: #e8f7f5; }
.wib-act-reset:hover { border-color: #ef4444; background: #fff5f5; color: #ef4444; }

/* Print */
@media print {
    .wib-progress, .wib-result-actions { display: none !important; }
    .wib-header { background: #0d1f3c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .wib-result-header { background: #0d1f3c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .wib-day-body.wib-hidden { display: block !important; }
    .wib-day { break-inside: avoid; }
    .wib-wrap { border: none; max-width: 100%; }
    body > *:not(.wib-wrap) { display: none !important; }
}

/* Responsive */
@media (max-width: 580px) {
    .wib-header, .wib-step { padding: 18px 16px 22px; }
    .wib-progress { padding: 12px 16px; }
    .wib-prog-lbl { display: none; }
    .wib-row-2 { grid-template-columns: 1fr; }
    .wib-btn-row-split { flex-direction: column-reverse; gap: 10px; }
    .wib-btn-next, .wib-btn-generate, .wib-btn-back { width: 100%; text-align: center; }
    .wib-result-header { padding: 18px 16px; margin-bottom: 14px; }
    .wib-result-actions { flex-direction: column; }
    .wib-act-btn { width: 100%; text-align: center; }
    .wib-period-icon-col { width: 40px; min-width: 40px; }
    .wib-period-content { padding: 14px 12px 14px 6px; }
    .wib-period-footer { flex-direction: column; }
}
