/* ============================================================
   Japan Babymoon 2026 — V2 Complete Design System
   Warm Editorial Minimalism × Kinfolk × Apple Design
   ============================================================ */

/* ── Tokens ── */
:root {
  --bg-primary: #FDF8F3;
  --bg-secondary: #F5EDE4;
  --bg-card: #FFFFFF;
  --text-primary: #2D2A26;
  --text-secondary: #6B6560;
  --text-tertiary: #9B9590;
  --accent-sakura: #E8A5A5;
  --accent-gold: #C9A86C;
  --accent-slate: #8FA8A8;
  --accent-matcha: #7A9E7E;
  --color-p0: #C97B7B;
  --color-warning: #D4A574;
  --border-light: rgba(45,42,38,0.08);
  --border-medium: rgba(45,42,38,0.15);
  --shadow-card: 0 1px 3px rgba(45,42,38,0.06), 0 4px 12px rgba(45,42,38,0.04);
  --shadow-elevated: 0 8px 24px rgba(45,42,38,0.10);
  --font-handwriting: 'Caveat', cursive;
  --font-sans: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-cjk: 'Noto Sans JP', 'Noto Serif SC', sans-serif;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;
  --radius-full: 9999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --touch-min: 48px;
  --touch-comfort: 56px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; border: none; outline: none; background: none; }
ul, ol { list-style: none; }

/* ── SVG Icon System ── */


/* ── Login Screen ── */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: #1a1410 !important;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

/* Override any other stylesheet that sets login background */
body .login-screen,
div.login-screen {
  background: #1a1410 !important;
}

/* ── Login Background Slideshow (Ken Burns) ── */
.login-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.login-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,20,16,0.15) 0%,
    rgba(26,20,16,0.05) 40%,
    rgba(26,20,16,0.35) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.login-bg-slide {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: loginKenBurns 24s ease-in-out infinite;
  will-change: transform, opacity;
}

.login-bg-slide:nth-child(1) {
  background-image: url('../img/login-bg-1.jpg');
  animation-delay: 0s;
  opacity: 1; /* Show first slide immediately */
}
.login-bg-slide:nth-child(2) {
  background-image: url('../img/login-bg-2.jpg');
  animation-delay: 8s;
}
.login-bg-slide:nth-child(3) {
  background-image: url('../img/login-bg-3.jpg');
  animation-delay: 16s;
}

@keyframes loginKenBurns {
  0%   { opacity: 0; transform: scale(1)   translate(0, 0); }
  2%   { opacity: 1; }
  30%  { opacity: 1; transform: scale(1.12) translate(-1.5%, -1%); }
  33%  { opacity: 0; transform: scale(1.15) translate(-2%, -1.5%); }
  100% { opacity: 0; transform: scale(1.15) translate(-2%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .login-bg-slide {
    animation: none;
    opacity: 1;
    inset: 0;
  }
  .login-bg-slide:nth-child(2),
  .login-bg-slide:nth-child(3) {
    opacity: 0;
  }
}

.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(26, 20, 16, 0.45);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-radius: 2px;
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.login-edition {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-xl);
}

.login-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.login-year {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-xl);
}

.login-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto var(--space-lg);
}

.login-subtitle {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-xl);
}



.user-select {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.user-btn {
  flex: 1;
  min-height: var(--touch-comfort);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: transparent;
  transition: all 0.3s var(--ease-out);
}

.user-btn:active { transform: scale(0.97); }

.user-btn.selected {
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
}

.password-field {
  position: relative;
  margin-bottom: var(--space-lg);
}

.password-input {
  width: 100%;
  min-height: var(--touch-comfort);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  background: transparent;
  transition: border-color 0.3s;
}

.password-input::placeholder { color: rgba(255,255,255,0.25); }

.password-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  outline: none;
}

.password-hint {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.login-btn {
  width: 100%;
  min-height: var(--touch-comfort);
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
}

.login-btn:hover { color: #FFFFFF; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.login-error {
  color: #F5A5A5;
  font-size: 0.875rem;
  margin-top: var(--space-md);
  min-height: 1.25rem;
}

/* ── App Shell ── */
.app { display: none; min-height: 100dvh; flex-direction: column; }
.app.active { display: flex; }

/* ── Top Bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,243,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch-min);
}

.topbar-left { display: flex; align-items: center; gap: var(--space-sm); }

.topbar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: opacity 0.2s;
}
.topbar-back:hover { opacity: 0.6; }

.topbar-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.topbar-right {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

/* ── Content Area ── */
.content {
  flex: 1;
  padding: var(--space-md) var(--space-lg) calc(var(--touch-min) + var(--space-lg) + 60px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* ── Timeline View ── */
.timeline { position: relative; }

.timeline-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  box-shadow: none;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-card 0.5s var(--ease-out) forwards;
}

.timeline-day-card:hover {
  border-color: var(--accent-sakura);
  background: rgba(232,165,165,0.03);
}

@keyframes reveal-card {
  to { opacity: 1; transform: translateY(0); }
}

.timeline-day-card:nth-child(1) { animation-delay: 0.05s; }
.timeline-day-card:nth-child(2) { animation-delay: 0.1s; }
.timeline-day-card:nth-child(3) { animation-delay: 0.15s; }
.timeline-day-card:nth-child(4) { animation-delay: 0.2s; }
.timeline-day-card:nth-child(5) { animation-delay: 0.25s; }
.timeline-day-card:nth-child(6) { animation-delay: 0.3s; }
.timeline-day-card:nth-child(7) { animation-delay: 0.35s; }
.timeline-day-card:nth-child(8) { animation-delay: 0.4s; }
.timeline-day-card:nth-child(9) { animation-delay: 0.45s; }
.timeline-day-card:nth-child(10) { animation-delay: 0.5s; }

/* Day card header */
.day-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.day-card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.day-card-date {
  font-family: var(--font-handwriting);
  font-size: 1.125rem;
  color: var(--accent-sakura);
  line-height: 1;
}

.day-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.day-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.day-card-fatigue {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.fatigue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-medium);
}

.fatigue-dot.active { background: var(--accent-gold); }

.day-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.tag--p0 {
  background: rgba(201,123,123,0.12);
  color: var(--color-p0);
}

.tag--gdm {
  background: rgba(122,158,126,0.12);
  color: var(--accent-matcha);
}

.tag--shopping {
  background: rgba(201,168,108,0.12);
  color: var(--accent-gold);
}

/* ── Day Detail View ── */
.day-detail { display: none; }
.day-detail.active { display: block; }

.detail-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.detail-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

/* Event cards in detail */


.map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-sakura);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.map-link:hover { background: rgba(232,165,165,0.1); }

/* ── Brand Cards (Shopping) ── */
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: var(--space-md);
  transition: border-color 0.3s, opacity 0.3s;
  position: relative;
}
.brand-card:hover { border-color: var(--accent-sakura); }

.brand-card.purchased {
  opacity: 0.6;
}

.brand-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}
.brand-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.brand-info {
  padding: var(--space-sm) var(--space-md);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1px;
  line-height: 1.3;
}

.brand-product {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.brand-reason {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-store {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand-store .map-link {
  font-size: 0.6875rem;
}

/* ── Restaurant Cards ── */
.restaurant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid transparent;
  border-radius: 2px;
  padding: var(--space-lg);
  box-shadow: none;
  margin-bottom: var(--space-md);
  transition: border-color 0.3s;
}
.restaurant-card:hover { border-color: var(--accent-sakura); }
.restaurant-card.p0 { border-left-color: var(--color-p0); }
.restaurant-card.gdm { border-left-color: var(--accent-matcha); }

.restaurant-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.restaurant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.restaurant-gdm-notes {
  background: rgba(122,158,126,0.06);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  color: var(--accent-matcha);
  margin-top: var(--space-sm);
}

/* ── Flight Card ── */


/* ── Checklist ── */
.checklist-category {
  margin-bottom: var(--space-xl);
}

.checklist-category-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--border-light);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--touch-min);
  padding: var(--space-sm) 0;
  cursor: pointer;
}

.checklist-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--border-medium);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
}

.checklist-item.checked .checklist-checkbox {
  background: var(--accent-matcha);
  border-color: var(--accent-matcha);
}

.checklist-checkbox svg { opacity: 0; transition: opacity 0.2s; }
.checklist-item.checked .checklist-checkbox svg { opacity: 1; }

.checklist-text { flex: 1; }
.checklist-item.checked .checklist-text { color: var(--text-tertiary); text-decoration: line-through; }

.checklist-progress {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  height: 8px;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.checklist-progress-bar {
  height: 100%;
  background: var(--accent-matcha);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out);
}

/* ── Journal ── */
.journal-date-section {
  margin-bottom: var(--space-xl);
}

.journal-date-label {
  font-family: var(--font-handwriting);
  font-size: 1.25rem;
  color: var(--accent-sakura);
  margin-bottom: var(--space-sm);
}

.journal-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-md);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-card);
  resize: vertical;
  transition: border-color 0.3s;
}

.journal-textarea:focus {
  border-color: var(--accent-sakura);
}

.journal-save-indicator {
  font-family: var(--font-handwriting);
  font-size: 0.875rem;
  color: var(--accent-matcha);
  text-align: right;
  margin-top: var(--space-xs);
  opacity: 0;
  transition: opacity 0.3s;
}
.journal-save-indicator.show { opacity: 1; }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,248,243,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0;
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.nav-item:active { opacity: 0.6; }

.nav-item.active {
  color: var(--text-primary);
}

.nav-label {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Section Headers ── */
.section-header {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-md);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

/* ── Tier badges ── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tier-badge--jdm {
  background: rgba(201,123,123,0.1);
  color: var(--color-p0);
}

.tier-badge--global {
  background: rgba(122,158,126,0.1);
  color: var(--accent-matcha);
}

/* ── Sakura Rain ── */
.sakura-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.25rem;
  animation: sakura-fall linear forwards;
}

@keyframes sakura-fall {
  0% { opacity: 1; transform: translateY(0) translateX(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) translateX(var(--drift)) rotate(720deg); }
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .content { padding-left: var(--space-xl); padding-right: var(--space-xl); }
  .brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .restaurant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}

@media (min-width: 1200px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Print ── */
@media print {
  .bottom-nav, .topbar { display: none; }
  .content { padding-bottom: 0; max-width: 100%; }
  .timeline-day-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Hotel Card ── */
.hotel-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
}

.hotel-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

.hotel-info { padding: var(--space-md); }
.hotel-name { font-family: var(--font-serif); font-weight: 600; margin-bottom: var(--space-xs); }
.hotel-dates { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-gold); margin-bottom: var(--space-sm); }
.hotel-amenities { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.hotel-amenity { font-size: 0.75rem; padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-secondary); color: var(--text-tertiary); }

/* ── Shinkansen Card ── */
.shinkansen-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.shinkansen-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.shinkansen-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-gold);
}

/* ── Taxi Table ── */
.taxi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.taxi-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.taxi-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.taxi-table td:first-child { font-weight: 500; }

.taxi-price {
  font-family: var(--font-mono);
  color: var(--accent-gold);
}

/* ── View transitions ── */
.view { display: none; }
.view.active { display: block; animation: fade-in 0.3s var(--ease-out); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ── Purchased Button ── */
.purchased-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
}

.purchased-btn:hover {
  background: var(--accent-matcha);
  border-color: var(--accent-matcha);
  color: #FFFFFF;
}

.purchased-btn:active {
  transform: scale(0.95);
}

.brand-card.purchased .purchased-btn {
  background: var(--accent-matcha);
  border-color: var(--accent-matcha);
  color: #FFFFFF;
}

.purchased-section {
  opacity: 0.8;
}

/* ── Person Filter (Shopping) ── */
.person-filter {
  cursor: pointer;
  transition: color 0.2s;
}

.person-filter:hover {
  color: var(--text-primary);
}

.person-filter.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Event icons */
.event-icon {
  width: 20px;
  height: 20px;
  margin-right: var(--space-sm);
  flex-shrink: 0;
  opacity: 0.6;
}

/* Event card with image (magazine layout) */
.event-card {
  display: grid;
  grid-template-columns: 80px 60px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.event-image {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.event-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding-top: 4px;
  text-transform: uppercase;
}

.event-body {
  padding-top: 2px;
}

.event-summary {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

/* Event image fallback styling */
.event-image {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

/* ── Brand Card Tactical Badges ── */
.brand-tier-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.5625rem; font-weight: 600;
  padding: 1px 6px; border-radius: 2px; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tier-jdm .brand-tier-badge, .brand-tier-badge.tier-jdm { background: #c0392b; color: #fff; }
.brand-tier-badge.tier-global { background: #27ae60; color: #fff; }
.brand-tier-badge.tier-dad { background: #2c3e50; color: #fff; }
.brand-tier-badge.tier-baby { background: #e8a5a5; color: #2d2a26; }
.brand-tier-badge.tier-mom { background: #8e44ad; color: #fff; }
.brand-qty-badge {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.65rem;
  padding: 2px 6px; border-radius: 2px;
  background: rgba(0,0,0,0.6); color: #fff;
  backdrop-filter: blur(4px);
}

.brand-card[data-tier="jdm"] { border-left: 3px solid #c0392b; }
.brand-card[data-tier="global"] { border-left: 3px solid #27ae60; }
.brand-card[data-tier="dad"] { border-left: 3px solid #2c3e50; }
.brand-card[data-tier="baby"] { border-left: 3px solid #e8a5a5; }
.brand-card[data-tier="mom"] { border-left: 3px solid #8e44ad; }

/* ── Flight Card Magazine Style ── */
.flight-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  position: relative;
  border-left: 3px solid var(--accent-sakura);
}
.flight-card .flight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}
.flight-card .flight-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.flight-card .flight-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--accent-sakura);
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.flight-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding: var(--space-md) 0;
}
.flight-city {
  text-align: center;
  flex: 1;
}
.flight-city-code {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}
.flight-city-time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.flight-line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 var(--space-md);
  position: relative;
}
.flight-line::after {
  content: var(--content, '✈');
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  color: var(--accent-sakura);
  background: var(--bg-card);
  padding: 0 var(--space-sm);
}
.flight-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}
.flight-confirmation {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(201,168,108,0.08);
  padding: 2px 8px;
  border-radius: 2px;
}
.shinkansen-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--accent-matcha);
}
.shinkansen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}
.shinkansen-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.shinkansen-card .flight-line::after {
  content: var(--content, '🚄');
}
