/* ─── JustPlan จัดแพลน — Shared Styles ─────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root {
  --primary: #39c5bb;
  --primary-dark: #2ba79d;
  --primary-light: #e0f8f5;
  --secondary: #5eb2ec;
  --secondary-dark: #4196d2;
  --secondary-light: #e2f2fc;
  --accent: #e87ca5;
  --accent-light: #fae1eb;
  --warning: #e39c74;
  --warning-light: #fae8de;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans Thai', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ──────────────────────────────────────────── */
h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .75rem; }
.text-center { text-align: center; }

/* ─── Layout ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 20px; }
.container-md { max-width: 800px; margin: 0 auto; padding: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ─── Header ──────────────────────────────────────────────── */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.header-inner #user-header {
  margin-left: auto;
}
.header h1 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.header h1 a { color: #fff; text-decoration: none; }
.header h1 span { font-size: 1.6rem; }
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
}
.user-name {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px 12px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: .78rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-google {
  background: #fff;
  color: #333;
  border: 2px solid var(--border);
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn-google:hover { background: #f8fafc; border-color: #4285f4; box-shadow: var(--shadow-md); }
.btn-google img { width: 22px; height: 22px; }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─── Landing / Login Page ────────────────────────────────── */
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 20px;
}
.landing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}
.landing-logo { font-size: 4rem; margin-bottom: 8px; }
.landing-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.landing-subtitle { color: var(--text-secondary); margin-bottom: 32px; font-size: .95rem; }
.landing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  text-align: left;
}
.landing-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-secondary);
}
.landing-feature .feat-icon { font-size: 1.2rem; flex-shrink: 0; }
.landing-feature strong { color: var(--text); display: block; font-size: .85rem; }

/* ─── Trips List ──────────────────────────────────────────── */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.trip-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.trip-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.trip-card-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  flex-shrink: 0;
}
.trip-card-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; }
.trip-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.trip-card-dates { font-size: .82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.trip-card-route { font-size: .85rem; color: var(--text-secondary); margin-top: 4px; }
.trip-card-route .iata { font-weight: 700; color: var(--primary); }
.trip-card-footer { padding: 12px 20px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.trip-card-budget { font-size: .82rem; font-weight: 600; color: var(--accent); }
.trip-card-days { font-size: .78rem; color: var(--text-light); background: var(--border-light); padding: 3px 10px; border-radius: 12px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state .emoji { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; }

/* ─── Wizard ──────────────────────────────────────────────── */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  margin-bottom: 8px;
}
.wizard-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  border: 3px solid var(--border);
  color: var(--text-light);
  background: var(--card);
  transition: all .3s;
}
.wizard-step-dot.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.wizard-step-dot.done { border-color: var(--accent); color: #fff; background: var(--accent); }
.wizard-step-line { width: 40px; height: 3px; background: var(--border); border-radius: 2px; transition: background .3s; }
.wizard-step-line.done { background: var(--accent); }
.wizard-step-label { font-size: .7rem; color: var(--text-light); text-align: center; margin-top: 4px; }

.step { display: none; animation: fadeIn .3s ease; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.step-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: .9rem;
}

/* Input Mode Tabs */
.input-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.input-tab {
  padding: 20px 16px;
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--card);
}
.input-tab:hover { border-color: var(--primary); background: var(--primary-light); }
.input-tab.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
.input-tab .tab-icon { font-size: 2rem; margin-bottom: 8px; }
.input-tab .tab-title { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.input-tab .tab-desc { font-size: .75rem; color: var(--text-secondary); }

.input-area { display: none; }
.input-area.active { display: block; animation: fadeIn .3s ease; }

/* File Drop Zone */
.drop-zone {
  border: 3px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--border-light);
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: var(--primary-light); }
.drop-zone .dz-icon { font-size: 3rem; margin-bottom: 12px; }
.drop-zone .dz-text { font-size: .9rem; color: var(--text-secondary); }
.drop-zone .dz-hint { font-size: .75rem; color: var(--text-light); margin-top: 4px; }
.drop-zone img.preview { max-width: 100%; max-height: 300px; border-radius: var(--radius-sm); margin-top: 12px; }

/* Attachment Toggle Buttons */
.attach-toggle-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.attach-toggle-btn {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  color: var(--text-secondary);
}
.attach-toggle-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--text);
}
.attach-toggle-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Attachment Area */
.attach-area {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--card);
  animation: fadeIn .3s ease;
}
.attach-area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: .9rem;
}
.attach-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all .15s;
}
.attach-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Image Previews Grid */
.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.img-preview-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}
.img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.img-preview-remove:hover {
  background: var(--danger);
}

/* Preferences */
.pref-section { margin-bottom: 24px; }
.pref-section h4 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

.intensity-options, .budget-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pref-option {
  padding: 14px 12px;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--card);
}
.pref-option:hover { border-color: var(--primary); }
.pref-option.active { border-color: var(--primary); background: var(--primary-light); }
.pref-option .po-icon { font-size: 1.5rem; margin-bottom: 4px; }
.pref-option .po-title { font-weight: 700; font-size: .85rem; }
.pref-option .po-desc { font-size: .72rem; color: var(--text-secondary); margin-top: 2px; }

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interest-chip {
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  background: var(--card);
  user-select: none;
}
.interest-chip:hover { border-color: var(--secondary); }
.interest-chip.active { border-color: var(--secondary); background: var(--secondary-light); color: var(--secondary-dark); }

/* Plan Preview */
.plan-preview { margin-top: 20px; }
.plan-day {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plan-day-header {
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: background .15s;
}
.plan-day-header:hover { background: var(--border-light); }
.plan-day-header::after { content: '▲'; margin-left: auto; font-size: .7rem; color: var(--text-light); transition: transform .2s; }
.plan-day-header.collapsed::after { transform: rotate(180deg); }
.plan-day-body { padding: 0 20px 16px; }
.plan-day-body.collapsed { display: none; }

.plan-place {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.plan-place:last-child { border-bottom: none; }
.plan-place-time {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 50px;
  padding-top: 2px;
}
.plan-place-icon { font-size: 1.3rem; flex-shrink: 0; }
.plan-place-info { flex: 1; min-width: 0; }
.plan-place-name { font-weight: 700; font-size: .9rem; }
.plan-place-name-th { font-size: .78rem; color: var(--text-secondary); }
.plan-place-desc { font-size: .8rem; color: var(--text-secondary); margin-top: 2px; }
.plan-place-cost { font-size: .75rem; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* Budget Summary */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.budget-item {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.budget-item .bi-icon { font-size: 1.5rem; margin-bottom: 4px; }
.budget-item .bi-label { font-size: .72rem; color: var(--text-secondary); }
.budget-item .bi-amount { font-size: 1rem; font-weight: 800; margin-top: 2px; }
.budget-total {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 12px;
}
.budget-total .bt-label { font-size: .85rem; color: var(--text-secondary); }
.budget-total .bt-amount { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.budget-total .bt-per-person { font-size: .85rem; color: var(--text-secondary); margin-top: 4px; }

/* Weather Strip */
.weather-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px; }
.weather-card-sm {
  flex-shrink: 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 90px;
  text-align: center;
  box-shadow: var(--shadow);
}
.weather-card-sm .wdate { font-size: .7rem; font-weight: 600; color: var(--text-secondary); }
.weather-card-sm .wicon { font-size: 1.5rem; margin: 2px 0; }
.weather-card-sm .wtemp { font-size: .85rem; font-weight: 700; }

/* Booking Links */
.booking-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.booking-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--border-light);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
  text-decoration: none;
}
.booking-link:hover { background: var(--primary-light); color: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
.booking-link .bl-icon { font-size: 1.2rem; }

/* Tags / Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 600;
}
.tag-attraction { background: #dbeafe; color: #1d4ed8; }
.tag-nature { background: #dcfce7; color: #166534; }
.tag-food { background: #fff7ed; color: #c2410c; }
.tag-shopping { background: var(--warning-light); color: #92400e; }
.tag-activity { background: #f3e8ff; color: #7c3aed; }
.tag-transport { background: #fce7f3; color: #be185d; }
.tag-accommodation { background: var(--accent-light); color: #065f46; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--text-secondary); }
.loading::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Confirm Section */
.confirm-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.confirm-field:last-child { border-bottom: none; }
.confirm-label { font-size: .82rem; color: var(--text-secondary); min-width: 100px; flex-shrink: 0; padding-top: 2px; }
.confirm-value { font-weight: 600; font-size: .92rem; }

/* Flight Display */
.flight-route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.flight-route .code { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.flight-route .arrow { color: var(--text-light); font-size: 1.2rem; }
.flight-leg {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: .85rem;
}

/* Wizard Nav */
.wizard-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* Dashboard Specific */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .header h1 { font-size: 1.1rem; }
  .header h1 span { font-size: 1.3rem; }
  h1 { font-size: 1.4rem; }
  .container, .container-sm, .container-md { padding: 12px; }
  .input-tabs { grid-template-columns: 1fr; }
  .intensity-options, .budget-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .landing-card { padding: 32px 24px; }
  .landing-features { grid-template-columns: 1fr; }
  .trips-grid { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-links { grid-template-columns: 1fr; }
  .user-name { display: none; }
  .wizard-step-line { width: 20px; }
}
@media (max-width: 480px) {
  .header-inner { flex-direction: row; align-items: center; }
}

/* Logout button bright style */
.header .btn-logout-bright {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.header .btn-logout-bright:hover {
  background: rgba(255,255,255,.35);
  border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   Landing Page Styles
   ═══════════════════════════════════════════════════════════════ */

.lp-body { background: #fff; }

/* ─── Navbar ──────────────────────────────────────────────── */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all .3s;
}
.lp-nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 10px rgba(0,0,0,.06); }
.lp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.lp-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lp-logo:hover { text-decoration: none; }
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.lp-nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}
.lp-nav-links a:hover { color: var(--text); text-decoration: none; }
.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  color: var(--text);
}
.lp-lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.lp-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text);
}
.lp-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px 16px;
}
.lp-mobile-menu.open { display: flex; }
.lp-mobile-menu a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ─── Hero Section ────────────────────────────────────────── */
.lp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 40%, #f3e8ff 100%);
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 80%, rgba(14,165,233,.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 20%, rgba(139,92,246,.08) 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-content {
  position: relative;
  max-width: 700px;
  flex: 1;
  z-index: 1;
}
.lp-hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.lp-highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Hero search box */
.lp-search-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  padding: 8px;
  margin-bottom: 20px;
}
.lp-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-search-icon { font-size: 1.2rem; padding: 0 4px 0 12px; flex-shrink: 0; }
.lp-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 14px 8px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.lp-search-input::placeholder { color: var(--text-light); }
.lp-search-btn {
  border-radius: var(--radius-lg) !important;
  padding: 12px 24px !important;
  flex-shrink: 0;
  font-size: .92rem !important;
  white-space: nowrap;
}
.lp-search-tags {
  display: flex;
  gap: 6px;
  padding: 8px 12px 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-tag-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
}
.lp-tag-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.lp-tag-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.lp-hero-hint {
  text-align: center;
  font-size: .85rem;
  color: var(--text-light);
  animation: floatHint 2s ease-in-out infinite;
}
@keyframes floatHint { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.lp-hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-hero-img-card {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: 0 20px 60px rgba(14,165,233,.25);
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ─── Stats Section ───────────────────────────────────────── */
.lp-stats {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  padding: 64px 24px;
}
.lp-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.lp-stats-text { flex: 1; min-width: 280px; }
.lp-stats-text h2 { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; color: #fff; }
.lp-stats-text p { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 24px; line-height: 1.6; }
.lp-stats-numbers {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.lp-stat-item { text-align: center; }
.lp-stat-value { font-size: 2.8rem; font-weight: 900; letter-spacing: -.02em; }
.lp-stat-suffix { font-size: 1.8rem; }
.lp-stat-label { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ─── Sections ────────────────────────────────────────────── */
.lp-section { padding: 80px 24px; }
.lp-section-alt { background: #f8fafc; }
.lp-container { max-width: 1200px; margin: 0 auto; }
.lp-container-sm { max-width: 720px; }
.lp-section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.lp-section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ─── Destinations ────────────────────────────────────────── */
.lp-dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.lp-dest-card {
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.lp-dest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
  z-index: 1;
}
.lp-dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.lp-dest-card > * { position: relative; z-index: 2; }
.lp-dest-emoji { font-size: 3rem; margin-bottom: 12px; }
.lp-dest-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.lp-dest-card p { font-size: .88rem; opacity: .85; margin-bottom: 12px; }
.lp-dest-action { font-size: .85rem; font-weight: 700; opacity: .9; }
.lp-dest-action:hover { opacity: 1; }

/* ─── Features Grid ───────────────────────────────────────── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.lp-feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all .2s;
  border: 2px solid transparent;
}
.lp-feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lp-feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.lp-feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.lp-feature-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Steps ───────────────────────────────────────────────── */
.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  position: relative;
}
.lp-step-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.lp-step-number {
  position: absolute;
  top: 0;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(14,165,233,.08);
  line-height: 1;
}
.lp-step-icon { font-size: 3rem; margin-bottom: 16px; }
.lp-step-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.lp-step-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Travel Styles ───────────────────────────────────────── */
.lp-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.lp-style-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all .2s;
  cursor: default;
  border: 2px solid transparent;
}
.lp-style-chip:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-style-chip > span { font-size: 2rem; flex-shrink: 0; }
.lp-style-chip strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.lp-style-chip small { font-size: .8rem; color: var(--text-secondary); }

/* ─── Testimonials ────────────────────────────────────────── */
.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.lp-testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all .2s;
}
.lp-testimonial:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lp-testimonial-stars { font-size: .9rem; margin-bottom: 12px; }
.lp-testimonial p { font-size: .92rem; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.lp-testimonial-author { font-size: .85rem; color: var(--text-secondary); }
.lp-testimonial-author strong { color: var(--text); }

/* ─── FAQ ─────────────────────────────────────────────────── */
.lp-faq-list { display: flex; flex-direction: column; gap: 8px; }
.lp-faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.lp-faq-item.open { border-color: var(--primary); }
.lp-faq-q {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform .2s;
}
.lp-faq-item.open .lp-faq-q::after { content: '−'; color: var(--primary); }
.lp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 0 24px;
}
.lp-faq-item.open .lp-faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ─── CTA Section ─────────────────────────────────────────── */
.lp-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}
.lp-cta h2 { font-size: 2.4rem; font-weight: 900; margin-bottom: 12px; color: #fff; }
.lp-cta p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }
.lp-cta-btn {
  background: #fff !important;
  color: var(--text) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  padding: 16px 40px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.lp-cta-btn:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 30px rgba(0,0,0,.2) !important; }

/* ─── Footer ──────────────────────────────────────────────── */
.lp-footer {
  background: #1e293b;
  color: rgba(255,255,255,.7);
  padding: 48px 24px 0;
}
.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.lp-footer-brand { max-width: 300px; }
.lp-footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.lp-footer-brand p { font-size: .88rem; line-height: 1.5; }
.lp-footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.lp-footer-links h4 { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.lp-footer-links a { display: block; font-size: .88rem; color: rgba(255,255,255,.6); text-decoration: none; padding: 4px 0; transition: color .15s; }
.lp-footer-links a:hover { color: #fff; text-decoration: none; }
.lp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── LP Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp-hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .lp-hero-title { font-size: 2.4rem; }
  .lp-hero-image { margin-top: 40px; }
  .lp-hero-img-card { width: 240px; height: 240px; font-size: 6rem; }
}
@media (max-width: 767px) {
  .lp-nav-links { display: none; }
  .lp-nav-actions .lp-login-btn { display: none; }
  .lp-nav-actions #btn-try-nav { display: none; }
  .lp-nav-actions .lp-lang-toggle { display: none; }
  .lp-hamburger { display: block; margin-left: auto; }
  .lp-hero-title { font-size: 2rem; }
  .lp-hero-subtitle { font-size: 1rem; }
  .lp-search-input-wrap { flex-direction: column; }
  .lp-search-btn { width: 100%; border-radius: var(--radius) !important; }
  .lp-section-title { font-size: 1.5rem; }
  .lp-section { padding: 48px 16px; }
  .lp-stats { padding: 40px 16px; }
  .lp-stats-inner { flex-direction: column; text-align: center; }
  .lp-stats-numbers { justify-content: center; }
  .lp-stats-text h2 { font-size: 1.5rem; }
  .lp-stat-value { font-size: 2rem; }
  .lp-cta h2 { font-size: 1.6rem; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-dest-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lp-dest-card { min-height: 160px; padding: 20px 16px; }
  .lp-dest-emoji { font-size: 2rem; margin-bottom: 8px; }
  .lp-dest-card h3 { font-size: 1.1rem; }
  .lp-dest-card p { font-size: .78rem; margin-bottom: 8px; }
  .lp-styles-grid { grid-template-columns: 1fr; }
  .lp-testimonials-grid { grid-template-columns: 1fr; }
  .lp-steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .lp-hero-img-card { width: 180px; height: 180px; font-size: 5rem; }
}

/* ─── Place Photos (plan preview & dashboard) ─────────────── */
.plan-place-photo {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.plan-place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
