/* ============================================
   ROUTO — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Syne:wght@400..800&family=Playfair+Display:wght@400;600&display=swap');

/* --- Tokens --- */
/* Routo — Main Styles v73 */
:root {
  --color-primary: #0D3D48;
  --color-accent: #14D49A;
  --color-accent-hover: #10b883;
  --color-secondary: #1A7A8A;
  --color-bg: #F7FBFA;
  --color-card: #FFFFFF;
  --color-border: rgba(13, 61, 72, 0.08);
  --color-overlay: rgba(13, 61, 72, 0.6);

  --text-primary: #0D3D48;
  --text-secondary: #3A6270;
  --text-muted: #7A9BA5;
  --text-on-accent: #FFFFFF;

  --radius-card: 18px;
  --radius-pill: 999px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(13, 61, 72, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 61, 72, 0.08);
  --shadow-lg: 0 8px 32px rgba(13, 61, 72, 0.1);

  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --transition-fast: 200ms ease;
  --transition-normal: 350ms ease;
  --transition-slow: 500ms ease;

  --max-width: 480px;
  --spacing-xs: 6px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--color-bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input {
  font-family: var(--font-body);
  border: none;
  outline: none;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

p {
  line-height: 1.55;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- App Shell --- */
#app {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100dvh;
  padding: var(--spacing-lg) var(--spacing-md);
  display: none;
  flex-direction: column;
  position: relative;
}

.screen-top {
  justify-content: flex-start;
  padding-top: var(--spacing-xl);
}

.screen-split {
  max-width: 1000px;
  gap: var(--spacing-xl);
  align-items: center;
}

.screen.screen-split.active {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .screen.screen-split.active {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.split-visual {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(13, 61, 72, 0.15);
  object-fit: cover;
  max-height: 600px;
}

.screen.active {
  display: flex;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--text-on-accent);
  box-shadow: 0 4px 16px rgba(20, 212, 154, 0.3);
}

.input-field:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(20, 212, 154, 0.1);
}

/* Smart Input Wrapper */
.input-wrap {
  position: relative;
  width: 100%;
}

.input-smart {
  width: 100%;
  padding: 18px 20px 18px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-smart::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.input-smart:focus {
  background: #ffffff;
  border-color: #00B87C;
  box-shadow: 0 4px 16px rgba(0, 184, 124, 0.1);
}

.ai-hint-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #00B87C;
  opacity: 0.8;
  pointer-events: none;
}

.progress-feedback {
  font-size: 0.95rem;
  color: #00B87C;
  font-weight: 500;
  text-align: center;
  min-height: 24px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-normal);
}

.progress-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* Decisive CTA Button */
.btn-decisive {
  background: #00B87C;
  color: #ffffff;
  font-size: 1.1rem;
  padding: 18px 24px;
  box-shadow: 0 8px 24px rgba(0, 184, 124, 0.25);
  transition: all var(--transition-normal);
}

.btn-decisive:disabled {
  background: rgba(0, 184, 124, 0.4);
  box-shadow: none;
}

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 184, 124, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 184, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 184, 124, 0); }
}

.btn-decisive.pulse {
  animation: ctaPulse 2s infinite;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 212, 154, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- AI Reasoning Layer --- */
.ai-reasoning-container {
  margin-top: 16px;
  padding: 16px;
  background: rgba(20, 212, 154, 0.05);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 500;
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-border);
  padding: 12px 24px;
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  background: rgba(26, 122, 138, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  color: var(--color-primary);
}

/* --- Pill Chips --- */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.pill:hover {
  border-color: var(--color-secondary);
  background: rgba(26, 122, 138, 0.04);
}

.pill.selected {
  background: var(--color-accent);
  color: var(--text-on-accent);
  border-color: var(--color-accent);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(20, 212, 154, 0.25);
}

/* Glass Pills (Redesign) */
.pill-glass {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
  opacity: 0.9;
}

.pill-glass:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

.pill-glass.selected {
  background: #00B87C;
  color: #ffffff;
  border-color: #00B87C;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 184, 124, 0.3);
  opacity: 1;
}

.pill-group.has-selection .pill-glass:not(.selected) {
  opacity: 0.5;
  transform: scale(0.98);
}

.subtle-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top right, rgba(20, 212, 154, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(26, 122, 138, 0.05), transparent 50%);
  pointer-events: none;
}

.pill .pill-emoji {
  margin-right: 4px;
}

/* --- Cards --- */
.card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.card-body {
  padding: var(--spacing-md);
}

/* Best Pick Card */
.best-pick-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(20, 212, 154, 0.4);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(20, 212, 154, 0.15), 0 4px 12px rgba(13, 61, 72, 0.08);
  transform: translateY(-2px);
}

.best-pick-card .card-image {
  height: 280px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.best-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--color-accent), #10b883);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  position: relative;
  z-index: 2;
}

/* Alt Cards */
.alt-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alt-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 122, 138, 0.2);
}

.alt-card .alt-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
  flex-shrink: 0;
}

.alt-card .alt-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.alt-card .alt-info h3 {
  font-size: 1rem;
}

.alt-card .alt-info p {
  font-size: 0.82rem;
  line-height: 1.4;
}

.alt-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.alt-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Expandable section in alt cards */
.alt-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 var(--spacing-md);
}

.alt-card.expanded .alt-expand {
  max-height: 200px;
  padding: 0 var(--spacing-md) var(--spacing-md);
}

/* --- Confidence Badge --- */
.confidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.confidence-high {
  background: rgba(20, 212, 154, 0.12);
  color: #0a9d6e;
}

.confidence-medium {
  background: rgba(255, 183, 77, 0.12);
  color: #c77d00;
}

.confidence-low {
  background: rgba(239, 83, 80, 0.12);
  color: #c62828;
}

/* --- Input --- */
.input-field {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  border: 1.5px solid var(--color-border);
  background: var(--color-card);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: var(--color-secondary);
}

/* --- Progress Dots --- */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: var(--spacing-md) 0;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition-fast);
}

.progress-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

.progress-dot.done {
  background: var(--color-secondary);
}

/* --- Summary Grid --- */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.summary-item {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-md);
}

.summary-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.summary-item .value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* --- Section --- */
.section {
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

/* --- Itinerary --- */
.itinerary-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.itinerary-item:last-child {
  border-bottom: none;
}

.itinerary-day {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.85rem;
  min-width: 50px;
  font-family: var(--font-heading);
}

.itinerary-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Loading Screen --- */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: var(--spacing-md);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.loading-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 24px;
  transition: opacity 300ms ease;
}

/* Blurred BG for loading */
.loading-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #c3f5e2 0%, #b3e8f7 50%, #dff0e8 100%);
  filter: blur(40px);
  opacity: 0.5;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.anim-fade-in {
  animation: fadeIn var(--transition-slow) ease both;
}

.anim-slide-up {
  animation: slideUp var(--transition-slow) ease both;
}

.anim-slide-left {
  animation: slideLeft var(--transition-slow) ease both;
}

.anim-scale-in {
  animation: scaleIn var(--transition-slow) ease both;
}

/* Stagger delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }


/* --- Back Button --- */
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  margin-bottom: var(--spacing-sm);
}

.back-btn:hover {
  color: var(--text-primary);
}

/* --- Spacers --- */
.spacer { flex: 1; }
.gap-sm { height: var(--spacing-sm); }
.gap-md { height: var(--spacing-md); }
.gap-lg { height: var(--spacing-lg); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.mt-auto { margin-top: auto; }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* --- Post Decision --- */
.celebration {
  font-size: 3rem;
  text-align: center;
  animation: scaleIn 0.5s ease both;
}

.summary-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.summary-card .card-image {
  height: 180px;
}

.summary-card .card-body {
  padding: var(--spacing-md);
}

/* Action buttons row */
.action-row {
  display: flex;
  gap: var(--spacing-sm);
}

.action-row .btn {
  flex: 1;
}

/* --- Responsive (tablet+) --- */
@media (min-width: 600px) {
  .screen {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  h1 { font-size: 2rem; }
}

/* --- Quick-decide link --- */
.quick-decide {
  text-align: center;
  padding: var(--spacing-md) 0;
}

.quick-decide a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.quick-decide a:hover {
  color: var(--color-accent);
}

/* --- Smart action pills --- */
.smart-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--spacing-sm) 0;
}

.smart-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.smart-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Comparison block --- */
.compare-block {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Logo --- */
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-accent);
}

/* --- Step Label (D) --- */
.progress-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: var(--spacing-sm) 0 var(--spacing-md);
}

.step-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  min-width: 80px;
}

/* --- Welcome BG Enhancement (C) --- */
.welcome-scenic-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(20, 212, 154, 0.07), transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(26, 122, 138, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(195, 245, 226, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* --- De-emphasized Alt Cards (G) --- */
.alt-card-small {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.85;
}

.alt-card-small:hover {
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.alt-card-small .alt-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.alt-card-small .alt-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.alt-card-small .alt-info h3 {
  font-size: 0.9rem;
}

.alt-card-small .alt-info p {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.alt-rank-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* --- Micro-confirmation toast (A) --- */
.micro-confirm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--color-primary);
  color: white;
  padding: 16px 28px;
  border-radius: var(--radius-card);
  font-size: 1rem;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  transition: all 300ms ease;
  pointer-events: none;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.micro-confirm.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Location detecting spinner --- */
.location-detecting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.location-detecting .mini-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: spin 0.6s linear infinite;
  display: inline-block;
}


/* ============================================
   NEW WELCOME SCREEN OVERHAUL
   ============================================ */
.screen-welcome {
  --welcome-green: #00B87C;
  --welcome-dark: #07272D;
  background-color: #000;
  flex-direction: column;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.screen-welcome.active {
  display: flex;
}

/* Full Bleed Background */
.welcome-bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.welcome-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* Keep the house fully in frame on the right */
  transform: scale(1.02); /* Slight zoom for depth */
}

.welcome-bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    linear-gradient(to bottom,
      rgba(8, 22, 18, 0.72) 0%,
      rgba(8, 22, 18, 0.55) 25%,
      rgba(8, 22, 18, 0.20) 50%,
      rgba(8, 22, 18, 0.60) 75%,
      rgba(8, 22, 18, 0.95) 100%
    );
  z-index: 2;
}

.welcome-container {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 48px 28px 32px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  position: relative;
}

/* Logo sits at the very top */
.welcome-header {
  margin-bottom: 0;
}

.welcome-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.welcome-logo span {
  color: var(--welcome-green);
}

/* Spacer pushes headline to ~30% down */
.welcome-hero {
  margin-top: 14vh;
  margin-bottom: 0;
}

/* Spacer between subtext and CTA fills the rest */
.welcome-cta-wrap {
  margin-top: auto;
  margin-bottom: 20px;
  position: relative;
  z-index: 20;
}

.welcome-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 14vw, 4.4rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 20px;
  word-break: normal;
}

.text-primary-green {
  color: #00B87C;
  /* No glow — solid color on dark background reads perfectly */
}

.welcome-subtext {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.text-accent-match {
  color: #00B87C;
  position: relative;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: rgba(0, 184, 124, 0.5);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.text-accent-match::after {
  display: none;
}

.welcome-cta-wrap {
  margin-bottom: 32px;
  position: relative;
  z-index: 20;
}

.btn-welcome-primary {
  width: 100%;
  background: var(--welcome-green);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 999px;
  box-shadow: 
    0 8px 32px rgba(0, 184, 124, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
}

.btn-welcome-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 184, 124, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-welcome-primary:active {
  transform: scale(0.96);
}

.welcome-trust-micro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.trust-micro-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 184, 124, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--welcome-green);
}

.trust-micro-icon svg {
  width: 16px;
  height: 16px;
}

.trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.welcome-trust-micro p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.footer-icon.spark-icon {
  width: 14px;
  height: 14px;
  background: var(--welcome-green);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  flex-shrink: 0;
}

.footer-text p {
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
}

/* Animations */
@keyframes pulseSoft {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.8; }
}

.anim-welcome-0 { opacity: 0; animation: fadeUpCustom 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards; }
.anim-welcome-1 { opacity: 0; animation: fadeUpCustom 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; }
.anim-welcome-2 { opacity: 0; animation: fadeInCustom 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.anim-welcome-3 { opacity: 0; transform: scale(0.96); animation: fadeScaleUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }
.anim-welcome-4 { opacity: 0; animation: fadeUpCustom 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards; }
.anim-welcome-5 { opacity: 0; animation: fadeUpCustom 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards; }
.anim-welcome-6 { opacity: 0; animation: fadeUpCustom 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards; }
.anim-welcome-7 { opacity: 0; animation: fadeZoomIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards; }
.anim-welcome-8 { opacity: 0; animation: fadeInCustom 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards; }

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

@keyframes fadeInCustom {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeScaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeZoomIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

/* ==================== SCREEN 1 V2: VIBE PICKER ==================== */
.screen-entry-v2 {
  position: relative;
  padding: 0;
  display: none;
  flex-direction: column;
  background: linear-gradient(to bottom, #E8F4F1 0%, #F7FBFA 100%);
  min-height: 100dvh;
  width: 100%;
}

.screen-entry-v2.active {
  display: flex;
}

.entry-bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 45vh;
  z-index: 0;
}

.entry-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.3;
}

.entry-bg-gradient {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, #F7FBFA 100%);
}

.entry-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.entry-header {
  margin-bottom: 32px;
}

.logo-dark {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0D3D48;
  letter-spacing: -0.04em;
}
.logo-dark span {
  color: #00B87C;
}

.entry-hero {
  margin-bottom: 8px;
}

.entry-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 10vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
  color: #0D3D48;
  margin-bottom: 6px;
}

.entry-subtext {
  font-size: 1.05rem;
  color: #3A6270;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sparkle-text {
  font-size: 0.9rem;
}

.entry-main-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px 12px;
  box-shadow: 0 12px 40px rgba(13, 61, 72, 0.04), 0 4px 12px rgba(13, 61, 72, 0.02);
  margin-bottom: 8px;
  border: 1px solid rgba(13, 61, 72, 0.03);
}

.entry-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-wrap.green-light {
  background: rgba(0, 184, 124, 0.1);
  color: #00B87C;
}
.icon-wrap.outline {
  background: transparent;
  border: 1px solid rgba(0, 184, 124, 0.2);
  color: #00B87C;
}
.icon-wrap svg {
  width: 20px; height: 20px;
}

.text-wrap h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  color: #0D3D48;
  font-weight: 600;
  margin-bottom: 2px;
}
.text-wrap p {
  font-size: 0.8rem;
  color: #7A9BA5;
}

.vibe-cards {
  display: flex;
  gap: 12px;
}

.vibe-card {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid rgba(13, 61, 72, 0.06);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vibe-card:hover {
  border-color: rgba(0, 184, 124, 0.3);
  transform: translateY(-2px);
}

.vibe-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 61, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.vibe-check svg {
  width: 12px; height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vibe-emoji {
  font-size: 2.8rem;
  margin-bottom: 12px;
  margin-top: 8px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.08));
}

.vibe-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0D3D48;
  margin-bottom: 4px;
}
.vibe-card p {
  font-size: 0.7rem;
  color: #7A9BA5;
  line-height: 1.3;
}

.vibe-card.selected {
  background: #E8F7F3;
  border-color: #00B87C;
}
.vibe-card.selected .vibe-check {
  background: #00B87C;
  border-color: #00B87C;
}
.vibe-card.selected .vibe-check svg {
  opacity: 1;
}

.section-divider {
  height: 1px;
  background: rgba(13, 61, 72, 0.05);
  margin: 24px 0;
}

.smart-input-wrap {
  position: relative;
  width: 100%;
}
.smart-input-wrap .input-smart {
  width: 100%;
  padding: 16px 16px;
  padding-right: 90px;
  border-radius: 12px;
  border: 1.5px solid rgba(13, 61, 72, 0.06);
  background: #ffffff;
  font-size: 0.95rem;
  color: #0D3D48;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}
.smart-input-wrap .input-smart:focus {
  border-color: #00B87C;
  box-shadow: 0 4px 16px rgba(0, 184, 124, 0.08);
}
.ai-helps {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #00B87C;
  font-weight: 600;
  pointer-events: none;
}
.ai-helps svg {
  width: 14px; height: 14px;
}

.entry-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-entry-cta {
  width: 100%;
  background: linear-gradient(135deg, #00B87C, #0a9d6e);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 184, 124, 0.35);
}
.btn-entry-cta svg {
  width: 20px; height: 20px;
}
.btn-entry-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 184, 124, 0.45);
}
.btn-entry-cta:disabled {
  background: #a0d8c4;
  box-shadow: none;
  cursor: not-allowed;
}

.entry-trust-micro {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-shield {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #E8F7F3;
  color: #00B87C;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-shield svg {
  width: 14px; height: 14px;
  background: #00B87C;
  color: white;
  border-radius: 50%;
  padding: 2px;
}
.entry-trust-micro p {
  font-size: 0.85rem;
  color: #3A6270;
  margin: 0;
}

/* ==================== SCREEN 2: CONTEXT V2 ==================== */
.step-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7A9BA5;
  background: rgba(13, 61, 72, 0.05);
  padding: 6px 12px;
  border-radius: 999px;
}

.btn-detect-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #0D3D48;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 8px 0;
  transition: opacity 0.2s;
}
.btn-detect-location:hover {
  opacity: 0.7;
}
.btn-detect-location svg {
  width: 18px; height: 18px;
  color: #00B87C;
}

.recent-searches {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7A9BA5;
  margin-bottom: 4px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid rgba(13, 61, 72, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-item:hover {
  border-color: rgba(0, 184, 124, 0.3);
  transform: translateX(4px);
}

.recent-city {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0D3D48;
}

.recent-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 61, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.recent-check svg {
  width: 12px; height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.recent-item.selected {
  background: #E8F7F3;
  border-color: #00B87C;
}
.recent-item.selected .recent-check {
  background: #00B87C;
  border-color: #00B87C;
}
.recent-item.selected .recent-check svg {
  opacity: 1;
}

/* --- Pill V2 (Duration, Budget, etc) --- */
.pill-v2 {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(13, 61, 72, 0.08);
  background: #ffffff;
  color: #0D3D48;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.pill-v2:hover {
  border-color: rgba(0, 184, 124, 0.4);
  transform: translateY(-1px);
}

.pill-v2.selected {
  background: #00B87C;
  color: #ffffff;
  border-color: #00B87C;
  box-shadow: 0 8px 24px rgba(0, 184, 124, 0.25);
  transform: translateY(-2px);
}

/* ==================== SCREEN 3: DURATION RICH CARDS ==================== */
.duration-cards {
  display: flex;
  gap: 12px;
}

.duration-card {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid rgba(13, 61, 72, 0.06);
  border-radius: 16px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.duration-card:hover {
  border-color: rgba(0, 184, 124, 0.3);
  transform: translateY(-2px);
}

.duration-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 61, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.duration-check svg {
  width: 12px; height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.duration-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(13, 61, 72, 0.04);
  color: #7A9BA5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.duration-icon-wrap svg {
  width: 24px; height: 24px;
}

.duration-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0D3D48;
  margin-bottom: 4px;
}
.duration-card p {
  font-size: 0.75rem;
  color: #7A9BA5;
  line-height: 1.2;
}

.duration-card.selected {
  background: #E8F7F3;
  border-color: #00B87C;
}
.duration-card.selected .duration-check {
  background: #00B87C;
  border-color: #00B87C;
}
.duration-card.selected .duration-check svg {
  opacity: 1;
}
.duration-card.selected .duration-icon-wrap {
  background: #ffffff;
  color: #00B87C;
  box-shadow: 0 4px 12px rgba(0, 184, 124, 0.1);
}
.duration-card.selected p {
  color: #00B87C;
}

.bottom-hint-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px;
  padding: 0 16px;
  position: relative;
  overflow: hidden;
}

.hint-text {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  padding: 16px 0;
}

.hint-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0D3D48;
  margin-bottom: 2px;
}
.hint-text p {
  font-size: 0.75rem;
  color: #7A9BA5;
}

.hint-illustration {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-right: -10px;
  margin-bottom: -10px;
  z-index: 1;
}

/* ==================== SCREEN 4: BUDGET RICH ROWS ==================== */
.budget-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.budget-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(13, 61, 72, 0.06);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.budget-row:hover {
  border-color: rgba(0, 184, 124, 0.3);
  transform: translateX(4px);
}

.budget-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(13, 61, 72, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.budget-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.budget-title-row {
  display: flex;
  flex-direction: column;
}

.budget-title-row h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0D3D48;
  margin: 0;
}

.budget-title-row p {
  font-size: 0.8rem;
  color: #7A9BA5;
  margin: 0;
}

.budget-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: #E8F7F3;
  color: #00B87C;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  width: fit-content;
}

.budget-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 61, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.budget-check svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.budget-row.selected {
  background: #E8F7F3;
  border-color: #00B87C;
}

.budget-row.selected .budget-icon-wrap {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 184, 124, 0.1);
}

.budget-row.selected .budget-check {
  background: #00B87C;
  border-color: #00B87C;
}

.budget-row.selected .budget-check svg {
  opacity: 1;
  color: white;
}

.budget-footer-hint {
  margin-top: 16px;
  background: rgba(0, 184, 124, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.budget-footer-hint p {
  font-size: 0.85rem;
  color: #0D3D48;
  margin: 0;
  font-weight: 500;
}

/* ==================== SCREEN 5: TRAVEL RICH GRID ==================== */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.travel-card {
  background: #ffffff;
  border: 1.5px solid rgba(13, 61, 72, 0.06);
  border-radius: 20px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.travel-card:hover {
  border-color: rgba(0, 184, 124, 0.3);
  transform: translateY(-4px);
}

.travel-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 61, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.travel-check svg {
  width: 12px; height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.travel-img-wrap {
  width: 100%;
  height: 72px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.travel-emoji-3d {
  font-size: 2.8rem;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

.travel-asset-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* Fallback logic: hide image if broken and show emoji */
.travel-asset-img:not([src]), 
.travel-asset-img[src=""] {
  display: none;
}

.travel-emoji-3d.fallback {
  display: none;
}

.travel-asset-img:not([src]) + .travel-emoji-3d.fallback,
.travel-asset-img[src=""] + .travel-emoji-3d.fallback {
  display: block;
}

.travel-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0D3D48;
  margin-bottom: 4px;
}

.travel-card p {
  font-size: 0.75rem;
  color: #7A9BA5;
  line-height: 1.2;
}

.travel-badge {
  margin-top: 8px;
  padding: 4px 10px;
  background: #E8F7F3;
  color: #00B87C;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
}

.travel-card.selected {
  background: #E8F7F3;
  border-color: #00B87C;
}

.travel-card.selected .travel-check {
  background: #00B87C;
  border-color: #00B87C;
}

.travel-card.selected .travel-check svg {
  opacity: 1;
  color: white;
}

.travel-footer-hint {
  margin-top: 16px;
  background: rgba(0, 184, 124, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.travel-footer-hint .hint-text {
  display: flex;
  flex-direction: column;
}

.travel-footer-hint p {
  font-size: 0.85rem;
  color: #0D3D48;
  margin: 0;
  font-weight: 500;
}


/* ==================== SCREEN 5: DETAIL ENHANCEMENTS ==================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  margin-top: 8px;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.hero-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4));
}

.hero-floating-pills {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-pill.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detail-container {
  padding: 24px;
}

.detail-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0D3D48;
  margin: 12px 0 4px;
}

.detail-header .tagline {
  font-size: 1rem;
  color: #7A9BA5;
  font-weight: 500;
}

.detail-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-badge {
  background: #E8F7F3;
  color: #00B87C;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.glass-plate {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 184, 124, 0.05);
}

.reason-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334E55;
  margin: 12px 0 0;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  background: white;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #7A9BA5;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D3D48;
}

.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.itinerary-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.itinerary-item {
  display: flex;
  gap: 16px;
  position: relative;
}

.itinerary-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: -20px;
  width: 2px;
  background: #E2E8F0;
}

.itinerary-item:last-child::before {
  display: none;
}

.itinerary-day {
  width: 42px;
  height: 42px;
  background: #E8F7F3;
  color: #00B87C;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

.itinerary-desc {
  padding-top: 10px;
  font-size: 0.92rem;
  color: #334E55;
  line-height: 1.4;
}

/* ==================== BEST PICK CARD ENHANCEMENTS ==================== */
.best-pick-badge-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  max-width: calc(100% - 24px); /* Prevent cutoff on small screens */
}

.best-pick-badge {
  background: #0D3D48;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  justify-content: flex-end;
}

.confidence-pill {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00B87C;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-reasoning {
  background: #F8FAFC;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.card-reasoning p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334E55;
  margin: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 4px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #7A9BA5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0D3D48;
}

.meta-divider {
  width: 1px;
  height: 24px;
  background: #E2E8F0;
}
