/* ================================================================
   OrientScan Plan Builder v4.0 — Standalone CSS
   All classes prefixed with pb- to guarantee zero conflicts
   Loaded separately from style.css via <link> in page_planner.html
   ================================================================ */

/* ---- CSS Variable Fallbacks ---- */
:root {
  --pb-primary: var(--color-primary, oklch(56% 0.12 195));
  --pb-primary-pale: var(--color-primary-pale, oklch(95% 0.03 195));
  --pb-surface: var(--color-surface, #ffffff);
  --pb-bg: var(--color-bg, #f8f9fa);
  --pb-text: var(--color-text, #1a1a2e);
  --pb-text-body: var(--color-text-body, #4a4a5e);
  --pb-text-muted: var(--color-text-muted, #8a8a9a);
  --pb-border: var(--color-border, #d0d0db);
  --pb-border-subtle: var(--color-border-subtle, #e8e8f0);
  --pb-radius-sm: var(--radius-sm, 6px);
  --pb-radius-md: var(--radius-md, 10px);
  --pb-radius-lg: var(--radius-lg, 16px);
  --pb-font-heading: var(--font-heading, 'Playfair Display', Georgia, serif);
  --pb-font-body: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  --pb-ease: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

/* ================================================================
   1. Hero
   ================================================================ */
.pb-hero {
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}
.pb-hero-kicker {
  font-family: var(--pb-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pb-primary);
  margin-bottom: 0.75rem;
}
.pb-hero-title {
  font-family: var(--pb-font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--pb-text);
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 0.75rem;
}
.pb-hero-desc {
  font-size: 1rem;
  color: var(--pb-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================================================================
   2. Progress Bar
   ================================================================ */
.pb-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}
.pb-progress-track {
  flex: 1;
  height: 3px;
  background: var(--pb-border-subtle);
  border-radius: 100px;
  overflow: hidden;
}
.pb-progress-fill {
  height: 100%;
  background: var(--pb-primary);
  border-radius: 100px;
  transition: width 0.5s var(--pb-ease);
}
.pb-progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pb-text-muted);
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

/* ================================================================
   3. Chat Container & Question Block
   ================================================================ */
.pb-chat {
  padding-top: 1.5rem;
  padding-bottom: 120px;
  min-height: 60vh;
}
.pb-q {
  max-width: 960px;
  margin: 0 auto;
  animation: pbFadeIn 0.35s var(--pb-ease);
}
@keyframes pbFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pbPopIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes pbSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.pb-q-header { margin-bottom: 1.5rem; }
.pb-q-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.pb-q-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pb-primary);
}
.pb-q-optional {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  background: var(--pb-bg);
  border: 1px solid var(--pb-border-subtle);
  padding: 2px 8px;
  border-radius: 100px;
}
.pb-q-title {
  font-family: var(--pb-font-heading);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--pb-text);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.pb-q-sub {
  font-size: 1rem;
  color: var(--pb-text-muted);
  line-height: 1.5;
  margin: 0;
}
.pb-q-hint {
  font-size: 0.875rem;
  color: var(--pb-primary);
  background: var(--pb-primary-pale);
  padding: 0.75rem 1rem;
  border-radius: var(--pb-radius-md);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.pb-q-body { margin-top: 1rem; }

/* ================================================================
   4. Goal Cards (2x2 grid)
   ================================================================ */
.pb-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.pb-goal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 2px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
  background: var(--pb-surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  min-width: 0;
  transition: border-color 0.2s var(--pb-ease), background 0.2s var(--pb-ease);
}
.pb-goal-card:hover,
.pb-goal-card.is-selected {
  border-color: var(--pb-primary);
  background: var(--pb-primary-pale);
}
.pb-goal-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pb-bg);
  border-radius: var(--pb-radius-md);
  color: var(--pb-text-muted);
  transition: all 0.2s var(--pb-ease);
}
.pb-goal-card.is-selected .pb-goal-icon {
  background: var(--pb-primary);
  color: #fff;
}
.pb-goal-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pb-goal-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pb-text);
  line-height: 1.3;
}
.pb-goal-text small {
  font-size: 0.875rem;
  color: var(--pb-text-muted);
  line-height: 1.4;
}
.pb-goal-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--pb-primary);
  animation: pbPopIn 0.3s var(--pb-ease);
}

/* ================================================================
   5. Package Cards (4-column) + Duration Selector
   ================================================================ */
.pb-pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pb-pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 2px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
  background: var(--pb-surface);
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.2s var(--pb-ease), background 0.2s var(--pb-ease);
}
.pb-pkg-card:hover { border-color: var(--pb-primary); }
.pb-pkg-card.is-selected {
  border-color: var(--pb-primary);
  background: var(--pb-primary-pale);
}
.pb-pkg-card h3 {
  font-family: var(--pb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pb-text);
  margin: 0;
}
.pb-pkg-hotel {
  font-size: 0.75rem;
  color: var(--pb-text-body);
}
.pb-pkg-rec {
  display: inline;
  font-size: 10px;
  font-weight: 500;
  color: var(--pb-text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.pb-pkg-rec::before { content: '\00B7  '; }
.pb-pkg-tagline {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  line-height: 1.4;
}
.pb-pkg-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 0.5rem;
}
.pb-pkg-feats span {
  font-size: 11px;
  color: var(--pb-text-body);
  background: var(--pb-bg);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--pb-border-subtle);
}
.pb-pkg-price {
  font-family: var(--pb-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pb-text);
  white-space: nowrap;
}
.pb-pkg-price small {
  font-family: var(--pb-font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--pb-text-muted);
}
.pb-pkg-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--pb-primary);
  animation: pbPopIn 0.3s var(--pb-ease);
}

/* Duration selector */
.pb-dur-block {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--pb-surface);
  border: 1px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
}
.pb-dur-block h4 {
  font-family: var(--pb-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pb-text);
  margin-bottom: 0.75rem;
}
.pb-dur-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.pb-dur-pill {
  padding: 10px 20px;
  border: 1.5px solid var(--pb-border-subtle);
  border-radius: 100px;
  background: var(--pb-surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text-body);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: all 0.2s var(--pb-ease);
}
.pb-dur-pill:hover {
  border-color: var(--pb-primary);
  color: var(--pb-primary);
}
.pb-dur-pill.is-active {
  background: var(--pb-primary);
  border-color: var(--pb-primary);
  color: #fff;
}
.pb-dur-perks {
  background: var(--pb-bg);
  border-radius: var(--pb-radius-md);
  padding: 1rem;
}
.pb-dur-perks-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text);
  margin-bottom: 0.5rem;
}
.pb-perks-minilist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
.pb-perks-minilist li {
  font-size: 0.875rem;
  color: var(--pb-text-body);
  padding: 2px 0;
}
.pb-perks-minilist li::before {
  content: '\2713  ';
  color: var(--pb-primary);
  font-weight: 700;
}

/* ================================================================
   6. Health Check Cards (3-column)
   ================================================================ */
.pb-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pb-check-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 2px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
  background: var(--pb-surface);
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.2s var(--pb-ease), background 0.2s var(--pb-ease);
}
.pb-check-card:hover { border-color: var(--pb-primary); }
.pb-check-card.is-selected {
  border-color: var(--pb-primary);
  background: var(--pb-primary-pale);
}
.pb-check-card h4 {
  font-family: var(--pb-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pb-text);
  margin-bottom: 4px;
}
.pb-check-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: oklch(45% 0.12 160);
  background: oklch(94% 0.04 160);
  padding: 1px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 6px;
}
.pb-check-card p {
  font-size: 0.875rem;
  color: var(--pb-text-muted);
  line-height: 1.5;
  margin: 0 0 0.5rem;
  flex: 1;
}
.pb-check-price {
  font-family: var(--pb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pb-text);
  margin-bottom: 0.5rem;
}
.pb-check-toggle {
  border: 1px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-md);
  background: var(--pb-bg);
  overflow: hidden;
  margin-top: auto;
}
.pb-check-toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s var(--pb-ease);
}
.pb-check-toggle summary:hover { background: var(--pb-primary-pale); }
.pb-check-toggle summary::-webkit-details-marker { display: none; }
.pb-check-toggle summary svg {
  transition: transform 0.2s var(--pb-ease);
  flex-shrink: 0;
}
.pb-check-toggle[open] summary svg { transform: rotate(180deg); }
.pb-check-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px;
  font-size: 0.875rem;
  color: var(--pb-text-body);
  line-height: 1.5;
  border-top: 1px solid var(--pb-border-subtle);
}
.pb-ci-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pb-ci-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--pb-primary);
}

/* ================================================================
   7. Toggle Rows (Health Needs, Tours, Add-ons)
   ================================================================ */
.pb-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1.5px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-md);
  background: var(--pb-surface);
  cursor: pointer;
  transition: border-color 0.2s var(--pb-ease), background 0.2s var(--pb-ease);
  margin-bottom: 4px;
}
.pb-toggle-row:hover { border-color: var(--pb-primary); }
.pb-toggle-row.is-active {
  border-color: var(--pb-primary);
  background: var(--pb-primary-pale);
}
.pb-toggle-row input[type="checkbox"] { display: none; }
.pb-toggle-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--pb-border);
  border-radius: 6px;
  background: var(--pb-surface);
  position: relative;
  transition: all 0.2s var(--pb-ease);
}
.pb-toggle-row.is-active .pb-toggle-box {
  background: var(--pb-primary);
  border-color: var(--pb-primary);
}
.pb-toggle-row.is-active .pb-toggle-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pb-toggle-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pb-toggle-info strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text);
}
.pb-toggle-info small {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  line-height: 1.4;
}
.pb-toggle-price {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pb-text);
  white-space: nowrap;
}
.pb-toggle-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--pb-text-muted);
}

/* ================================================================
   8. Collapsible Categories
   ================================================================ */
.pb-collapse {
  margin-bottom: 1rem;
  border: 1px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-md);
  background: var(--pb-surface);
  overflow: hidden;
}
.pb-collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text);
  transition: background 0.15s var(--pb-ease);
  user-select: none;
}
.pb-collapse summary:hover { background: var(--pb-bg); }
.pb-collapse summary::-webkit-details-marker { display: none; }
.pb-collapse summary svg {
  transition: transform 0.2s var(--pb-ease);
  flex-shrink: 0;
  color: var(--pb-text-muted);
}
.pb-collapse[open] summary svg { transform: rotate(180deg); }
.pb-collapse-body {
  padding: 0.25rem 1rem 1rem;
}

/* ================================================================
   9. Info Banners & Badges
   ================================================================ */
.pb-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--pb-radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}
.pb-banner svg { flex-shrink: 0; margin-top: 2px; }
.pb-banner--warning {
  background: oklch(96% 0.02 85);
  border: 1px solid oklch(88% 0.06 85);
  color: oklch(40% 0.05 80);
}
.pb-banner--warning svg { color: oklch(55% 0.08 75); }
.pb-banner--info {
  background: oklch(96% 0.02 240);
  border: 1px solid oklch(88% 0.04 240);
  color: oklch(40% 0.04 240);
}
.pb-banner--info svg { color: oklch(55% 0.06 240); }
.pb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  margin-bottom: 0.75rem;
  background: var(--pb-primary-pale);
  border: 1px solid var(--pb-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pb-primary);
}

/* ================================================================
   10. TCM Therapy Rows
   ================================================================ */
.pb-tcm-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pb-tcm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1.5px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-md);
  background: var(--pb-surface);
  min-width: 0;
  transition: border-color 0.2s var(--pb-ease), background 0.2s var(--pb-ease);
}
.pb-tcm-row.is-active {
  border-color: var(--pb-primary);
  background: var(--pb-primary-pale);
}
.pb-tcm-info { flex: 1; min-width: 0; }
.pb-tcm-info h4 {
  font-family: var(--pb-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text);
  margin-bottom: 2px;
}
.pb-tcm-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pb-primary);
  background: var(--pb-primary-pale);
  padding: 1px 8px;
  border-radius: 100px;
  vertical-align: middle;
}
.pb-tcm-info p {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}
.pb-tcm-meta {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
}
.pb-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.pb-counter button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pb-border);
  border-radius: var(--pb-radius-md);
  background: var(--pb-surface);
  font-size: 16px;
  font-weight: 600;
  color: var(--pb-text-body);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: all 0.15s var(--pb-ease);
}
.pb-counter button:hover:not(:disabled) {
  border-color: var(--pb-primary);
  color: var(--pb-primary);
}
.pb-counter button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pb-counter span {
  min-width: 28px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pb-text);
}

/* ================================================================
   11. Cultural Experience Rows
   ================================================================ */
.pb-cult-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pb-cult-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-md);
  background: var(--pb-surface);
  min-width: 0;
  transition: border-color 0.2s var(--pb-ease), background 0.2s var(--pb-ease);
}
.pb-cult-row.is-active {
  border-color: var(--pb-primary);
  background: var(--pb-primary-pale);
}
.pb-cult-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text);
  min-width: 0;
}
.pb-cult-meta {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  white-space: nowrap;
}
.pb-cult-row .pb-counter button {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.pb-cult-row .pb-counter span {
  min-width: 24px;
  font-size: 0.875rem;
}

/* ================================================================
   12. Navigation Buttons
   ================================================================ */
.pb-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.pb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border: 1.5px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-md);
  background: var(--pb-surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text-body);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s var(--pb-ease), color 0.15s var(--pb-ease);
}
.pb-back-btn:hover {
  border-color: var(--pb-primary);
  color: var(--pb-primary);
}
.pb-continue-btn {
  min-width: 160px;
  padding: 12px 32px;
  font-size: 1rem;
}
.pb-continue-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pb-skip-btn {
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pb-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s var(--pb-ease);
}
.pb-skip-btn:hover { color: var(--pb-text-body); }

/* ================================================================
   13. Floating Price Bar
   ================================================================ */
.pb-floatbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--pb-surface);
  border-top: 1px solid var(--pb-border-subtle);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  animation: pbSlideUp 0.4s var(--pb-ease);
}
.pb-floatbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pb-floatbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pb-floatbar-price {
  font-family: var(--pb-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pb-text);
}
.pb-floatbar-sel {
  font-size: 0.875rem;
  color: var(--pb-text-body);
  white-space: nowrap;
}

/* ================================================================
   14. Summary Page
   ================================================================ */
.pb-summary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.pb-summary-main { min-width: 0; }
.pb-summary-rows {
  display: flex;
  flex-direction: column;
}
.pb-sr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--pb-border-subtle);
}
.pb-sr-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text-muted);
  min-width: 110px;
  flex-shrink: 0;
}
.pb-sr-value {
  font-size: 0.875rem;
  color: var(--pb-text-body);
  text-align: right;
  line-height: 1.5;
}
.pb-sr-value em {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
}
.pb-si-selected { font-weight: 600; color: var(--pb-text); }
.pb-si-included {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  margin-left: 4px;
}
.pb-si-included em {
  font-style: normal;
  font-weight: 600;
}

/* Summary sidebar */
.pb-summary-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pb-brk-block {
  background: var(--pb-surface);
  border: 1px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
  padding: 1.5rem;
}
.pb-brk-block h4 {
  font-family: var(--pb-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text);
  margin-bottom: 0.75rem;
}
.pb-brk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
}
.pb-brk-label { color: var(--pb-text-body); }
.pb-brk-label small {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
}
.pb-brk-val {
  font-weight: 600;
  color: var(--pb-text);
  white-space: nowrap;
}
.pb-brk-divider {
  border-top: 1px solid var(--pb-border-subtle);
  margin: 8px 0;
}
.pb-brk-total {
  font-size: 1rem;
  font-weight: 700;
  padding-top: 8px;
}
.pb-brk-total span:first-child {
  font-size: 0.875rem;
  color: var(--pb-text);
}
.pb-brk-total span:last-child {
  font-family: var(--pb-font-heading);
  font-size: 1.25rem;
  color: var(--pb-primary);
}
.pb-cny-est {
  font-size: 0.8em;
  color: var(--pb-text-muted);
  font-weight: 400;
}
.pb-brk-cny-note {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* Perks block */
.pb-perks-block {
  border: 1px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
  background: var(--pb-surface);
  overflow: hidden;
}
.pb-perks-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.pb-perks-block summary::-webkit-details-marker { display: none; }
.pb-perks-block summary h4 {
  font-family: var(--pb-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pb-text);
  margin: 0;
}
.pb-perks-block summary svg {
  transition: transform 0.2s var(--pb-ease);
  flex-shrink: 0;
}
.pb-perks-block[open] summary svg { transform: rotate(180deg); }
.pb-perks-list {
  list-style: none;
  padding: 0 1.5rem 1rem;
  margin: 0;
}
.pb-perks-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--pb-text-body);
}
.pb-perks-list li::before {
  content: '\2713  ';
  color: var(--pb-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.pb-perk-val {
  font-size: 11px;
  font-weight: 600;
  color: oklch(55% 0.15 160);
  white-space: nowrap;
  margin-left: 12px;
}
.pb-perks-total {
  padding: 8px 16px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pb-primary);
  border-top: 1px solid var(--pb-border-subtle);
  margin: 0;
  text-align: right;
}
.pb-consult-btn {
  width: 100%;
  text-align: center;
}
.pb-restart-link {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--pb-text-muted);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s var(--pb-ease);
}
.pb-restart-link:hover { color: var(--pb-primary); }

/* ================================================================
   15. Daily Itinerary
   ================================================================ */
.pb-itinerary {
  background: var(--pb-bg);
  padding: 3rem 1rem;
}
.pb-iti-day {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  background: var(--pb-surface);
  border: 1px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
  padding: 1.5rem;
}
.pb-iti-day-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pb-iti-day-num {
  font-family: var(--pb-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pb-primary);
  line-height: 1;
  flex-shrink: 0;
}
.pb-iti-day-header h3 {
  font-family: var(--pb-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pb-text);
  margin-bottom: 2px;
}
.pb-iti-day-header p {
  font-size: 0.875rem;
  color: var(--pb-text-muted);
  margin: 0;
}
.pb-iti-timeline {
  position: relative;
  padding-left: 48px;
}
.pb-iti-item {
  display: grid;
  grid-template-columns: 52px 24px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 1rem;
  position: relative;
  font-size: 0.875rem;
}
.pb-iti-item::before {
  content: '';
  position: absolute;
  left: 64px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--pb-border-subtle);
}
.pb-iti-item:last-child::before { display: none; }
.pb-iti-time {
  font-size: 0.75rem;
  color: var(--pb-text-muted);
  font-weight: 500;
  text-align: right;
}
.pb-iti-dot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pb-primary-pale);
  color: var(--pb-primary);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.pb-iti-content strong {
  font-weight: 600;
  color: var(--pb-text);
}

/* ================================================================
   16. Partner Hospitals (2x2 grid)
   ================================================================ */
.pb-hospitals {
  padding: 3rem 1rem;
}
.pb-hosp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.pb-hosp-card {
  background: var(--pb-surface);
  border: 1px solid var(--pb-border-subtle);
  border-radius: var(--pb-radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s var(--pb-ease);
}
.pb-hosp-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.pb-hosp-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pb-primary);
  background: var(--pb-primary-pale);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.pb-hosp-card h3 {
  font-family: var(--pb-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pb-text);
  margin-bottom: 0.5rem;
}
.pb-hosp-card p {
  font-size: 0.875rem;
  color: var(--pb-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.pb-hosp-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pb-hosp-spec {
  font-size: 0.75rem;
  color: var(--pb-text-body);
  background: var(--pb-bg);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--pb-border-subtle);
}

/* ================================================================
   17. Bottom CTA
   ================================================================ */
.pb-cta {
  background: var(--pb-primary-pale);
  padding: 3rem 1rem;
  text-align: center;
}
.pb-cta h2 {
  font-family: var(--pb-font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--pb-text);
  margin-bottom: 0.75rem;
}
.pb-cta p {
  font-size: 1rem;
  color: var(--pb-text-muted);
  margin-bottom: 1.5rem;
}
.pb-cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ================================================================
   18. Dark Mode
   ================================================================ */
[data-theme="dark"] .pb-hero {
  background: linear-gradient(135deg, oklch(20% 0.02 195) 0%, var(--pb-bg) 60%);
}
[data-theme="dark"] .pb-goal-card,
[data-theme="dark"] .pb-pkg-card,
[data-theme="dark"] .pb-check-card,
[data-theme="dark"] .pb-tcm-row,
[data-theme="dark"] .pb-cult-row,
[data-theme="dark"] .pb-toggle-row,
[data-theme="dark"] .pb-iti-day,
[data-theme="dark"] .pb-hosp-card {
  background: var(--pb-surface);
  border-color: var(--pb-border);
}
[data-theme="dark"] .pb-goal-card.is-selected,
[data-theme="dark"] .pb-pkg-card.is-selected,
[data-theme="dark"] .pb-check-card.is-selected,
[data-theme="dark"] .pb-tcm-row.is-active,
[data-theme="dark"] .pb-cult-row.is-active,
[data-theme="dark"] .pb-toggle-row.is-active {
  background: oklch(25% 0.03 195);
}
[data-theme="dark"] .pb-goal-icon {
  background: oklch(22% 0.02 230);
}
[data-theme="dark"] .pb-goal-card.is-selected .pb-goal-icon {
  background: var(--pb-primary);
}
[data-theme="dark"] .pb-pkg-feats span,
[data-theme="dark"] .pb-hosp-spec {
  background: oklch(22% 0.02 230);
  border-color: var(--pb-border);
}
[data-theme="dark"] .pb-check-toggle {
  background: oklch(22% 0.02 230);
  border-color: var(--pb-border);
}
[data-theme="dark"] .pb-check-toggle summary:hover {
  background: oklch(25% 0.03 200);
}
[data-theme="dark"] .pb-check-items {
  background: var(--pb-surface);
  border-color: var(--pb-border);
}
[data-theme="dark"] .pb-banner--warning {
  background: oklch(22% 0.02 85);
  border-color: oklch(30% 0.04 80);
  color: oklch(75% 0.04 80);
}
[data-theme="dark"] .pb-banner--warning svg {
  color: oklch(65% 0.05 75);
}
[data-theme="dark"] .pb-banner--info {
  background: oklch(22% 0.02 240);
  border-color: oklch(30% 0.04 240);
  color: oklch(75% 0.04 240);
}
[data-theme="dark"] .pb-banner--info svg {
  color: oklch(65% 0.05 240);
}
[data-theme="dark"] .pb-q-hint {
  background: oklch(25% 0.03 195);
}
[data-theme="dark"] .pb-floatbar {
  background: var(--pb-surface);
  border-color: var(--pb-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .pb-dur-block,
[data-theme="dark"] .pb-brk-block,
[data-theme="dark"] .pb-perks-block {
  background: var(--pb-surface);
  border-color: var(--pb-border);
}
[data-theme="dark"] .pb-dur-perks {
  background: oklch(22% 0.02 230);
}
[data-theme="dark"] .pb-collapse {
  background: var(--pb-surface);
  border-color: var(--pb-border);
}
[data-theme="dark"] .pb-collapse summary:hover {
  background: oklch(22% 0.02 230);
}
[data-theme="dark"] .pb-collapse summary svg {
  color: oklch(65% 0.02 230);
}
[data-theme="dark"] .pb-badge {
  background: oklch(25% 0.03 195);
  border-color: var(--pb-primary);
}
[data-theme="dark"] .pb-cta {
  background: oklch(22% 0.02 195);
}
[data-theme="dark"] .pb-toggle-box {
  background: var(--pb-surface);
}

/* ================================================================
   19. Responsive
   ================================================================ */
@media (max-width: 1100px) {
  .pb-pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pb-hero {
    padding: 2rem 1rem 1.5rem;
  }
  .pb-chat {
    padding-bottom: 100px;
  }
  .pb-q {
    max-width: 100%;
  }
  .pb-pkg-grid,
  .pb-check-grid,
  .pb-hosp-grid {
    grid-template-columns: 1fr;
  }
  .pb-actions {
    max-width: 100%;
  }
  .pb-continue-btn {
    min-width: 120px;
  }
  .pb-summary-layout {
    grid-template-columns: 1fr;
  }
  .pb-sr {
    flex-direction: column;
    gap: 2px;
  }
  .pb-sr-value {
    text-align: left;
  }
  .pb-sr-label {
    min-width: auto;
  }
  .pb-check-items {
    grid-template-columns: 1fr 1fr;
  }
  .pb-toggle-row {
    flex-wrap: wrap;
  }
  .pb-toggle-price {
    flex-direction: row;
    gap: 4px;
    align-items: baseline;
  }
  .pb-perks-minilist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pb-hero {
    padding: 1.5rem 1rem;
  }
  .pb-goal-grid {
    grid-template-columns: 1fr;
  }
  .pb-check-items {
    grid-template-columns: 1fr;
  }
}
