/* ==========================================================================
   JAPAN TRAVEL PLANNER v2 - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Dark Slate, Sakura Pink, Neon Gold & Cyan accents
   Enhanced: micro-animations, improved mobile, new components
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --bg-glass: rgba(15, 23, 42, 0.75);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 71, 126, 0.3);

  --primary: #ff477e;
  --primary-hover: #ff2a66;
  --primary-glow: rgba(255, 71, 126, 0.25);

  --accent-gold: #ffb703;
  --accent-cyan: #00f5d4;
  --accent-purple: #9d4edd;
  --accent-blue: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --cat-food: #ff70a6;
  --cat-temple: #ff9770;
  --cat-shopping: #ffd670;
  --cat-nature: #70d6ff;
  --cat-culture: #9770ff;
  --cat-transport: #00f5d4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(255, 71, 126, 0.15);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 71, 126, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 245, 212, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, #090d16 100%);
  background-attachment: fixed;
}

/* ===== ANIMATIONS ===== */

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

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

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

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

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.anim-stagger {
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: calc(var(--stagger, 0) * 0.08s);
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */

.sidebar {
  width: 260px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: var(--transition-normal);
  overflow-y: auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #d62828);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #ff9ebb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  -webkit-text-fill-color: var(--primary);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 71, 126, 0.15), rgba(255, 71, 126, 0.05));
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

.nav-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-main);
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-sidebar:hover {
  background: rgba(255, 71, 126, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== MAIN CONTENT ===== */

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  width: calc(100% - 260px);
}

/* Top Header Bar */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  backdrop-filter: blur(16px);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-main), 0 0 25px rgba(255, 71, 126, 0.08);
}

.header-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trip-tag-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(255, 71, 126, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-highlight);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.btn-header-edit {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-header-edit:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.08);
}

.header-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #ff9ebb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.header-cities-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.city-pill-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.city-pill-tag:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.countdown-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 71, 126, 0.08);
  border: 1px solid var(--border-highlight);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  animation: countdownPulse 4s ease-in-out infinite;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1;
}

.countdown-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.countdown-sep {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: -6px;
}

/* ===== CONTENT VIEWS ===== */

.tab-view {
  display: none;
  animation: fadeIn 0.35s ease-out forwards;
}

.tab-view.active {
  display: block;
}

/* ===== CARDS & GRIDS ===== */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.text-center { text-align: center; }

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Stat Cards */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.stat-info .stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-info .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #e63946);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 71, 126, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #d62828);
  box-shadow: 0 6px 20px rgba(255, 71, 126, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ===== FILTER BAR & PILLS ===== */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pill-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 71, 126, 0.4);
}

/* ===== CATEGORY BADGES ===== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-food { background: rgba(255, 112, 166, 0.15); color: var(--cat-food); border: 1px solid rgba(255, 112, 166, 0.3); }
.badge-temple { background: rgba(255, 151, 112, 0.15); color: var(--cat-temple); border: 1px solid rgba(255, 151, 112, 0.3); }
.badge-shopping { background: rgba(255, 214, 112, 0.15); color: var(--cat-shopping); border: 1px solid rgba(255, 214, 112, 0.3); }
.badge-nature { background: rgba(112, 214, 255, 0.15); color: var(--cat-nature); border: 1px solid rgba(112, 214, 255, 0.3); }
.badge-culture { background: rgba(151, 112, 255, 0.15); color: var(--cat-culture); border: 1px solid rgba(151, 112, 255, 0.3); }
.badge-transport { background: rgba(0, 245, 212, 0.15); color: var(--cat-transport); border: 1px solid rgba(0, 245, 212, 0.3); }

/* ===== ITINERARY ===== */

.itinerary-day-card {
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.itinerary-day-card.drag-over {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.itinerary-day-card.drag-over-top {
  border-top: 3px solid var(--accent-cyan);
  margin-top: -2px;
}

.itinerary-day-card.drag-over-bottom {
  border-bottom: 3px solid var(--accent-cyan);
  margin-bottom: -2px;
}

.itinerary-day-card.dragging {
  opacity: 0.4;
  transform: scale(0.98);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.75rem;
}

.day-title-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.day-number {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.day-info {
  min-width: 0;
}

.day-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.day-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.drag-handle {
  cursor: grab;
  font-size: 1.1rem;
  color: var(--text-dim);
  padding: 0.3rem;
  transition: var(--transition-fast);
  user-select: none;
}

.drag-handle:hover { color: var(--text-main); }
.drag-handle:active { cursor: grabbing; }

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  gap: 0.5rem;
}

.activity-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.6);
}

.activity-item.drag-over {
  border-color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.05);
}

.activity-item.dragging { opacity: 0.4; }

.activity-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.activity-time {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  min-width: 50px;
  flex-shrink: 0;
}

.activity-details {
  min-width: 0;
}

.activity-details h4 {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.activity-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.activity-cost {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.85rem;
  white-space: nowrap;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--primary);
  background: rgba(255, 71, 126, 0.1);
}

/* ===== SPOTS ===== */

.spot-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.spot-img-wrapper {
  position: relative;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.spot-card:hover .spot-img {
  transform: scale(1.05);
}

.spot-city-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid var(--border-color);
}

.spot-status-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.spot-status-btn.visited {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.spot-edit-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-fast);
  font-size: 0.8rem;
  opacity: 0;
}

.spot-card:hover .spot-edit-btn { opacity: 1; }
.spot-edit-btn:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

.spot-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spot-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.spot-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}

/* ===== TRANSPORT ===== */

.pass-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.pass-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  position: relative;
}

.pass-card.recommended {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.15);
}

.pass-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pass-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0.5rem 0;
}

.pass-price span {
  font-size: 0.9rem;
  color: var(--accent-gold);
}

/* ===== WEATHER WIDGET ===== */

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.weather-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  transition: var(--transition-fast);
}

.weather-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.weather-city {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.weather-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin: 0.25rem 0;
}

.weather-temp {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.weather-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.weather-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 1rem;
  animation: pulse 1.5s infinite;
}

/* ===== BUDGET CHART ===== */

.budget-chart-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== JOURNAL ===== */

.journal-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.journal-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition-fast);
  animation: fadeInUp 0.4s ease-out both;
}

.journal-entry:hover {
  border-color: var(--border-highlight);
}

.journal-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.journal-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.journal-mood {
  font-size: 1.5rem;
}

.journal-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.journal-entry h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.journal-entry-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.journal-tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.journal-tag {
  background: rgba(255, 71, 126, 0.1);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.journal-actions {
  display: flex;
  gap: 0.3rem;
}

/* Mood Selector */
.mood-selector {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mood-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: rgba(15, 23, 42, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mood-btn:hover { border-color: var(--text-muted); }
.mood-btn.active { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); background: rgba(255, 71, 126, 0.1); }

/* ===== FORMS & MODALS ===== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: scaleIn 0.25s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card-sm { max-width: 400px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 71, 126, 0.3);
}

.form-control::placeholder { color: var(--text-dim); }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* ===== CHECKLIST ===== */

.check-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 0.5rem;
}

.check-item:hover { background: rgba(30, 41, 59, 0.5); }

.check-item.completed span {
  text-decoration: line-through;
  color: var(--text-dim);
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.check-item.completed .custom-checkbox {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000;
}

/* Progress bar */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.4rem 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

/* ===== PHRASE CARDS ===== */

.phrase-card {
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.phrase-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ===== SHARE LINK ===== */

.share-link-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-link-box .form-control {
  flex: 1;
}

/* ===== TOAST ===== */

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideInLeft 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.success { border-color: var(--accent-cyan); }
.toast.error { border-color: #ef4444; }

/* ===== RESPONSIVE ===== */

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

@media (max-width: 1024px) {
  .sidebar {
    width: 70px;
    padding: 1.25rem 0.4rem;
    align-items: center;
  }
  .brand-title, .nav-text, .btn-sidebar span { display: none; }
  .brand-logo { justify-content: center; margin-bottom: 1.25rem; }
  .main-content { margin-left: 70px; width: calc(100% - 70px); padding: 1.25rem; }
  .nav-item { justify-content: center; padding: 0.7rem; }
  .nav-icon { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .app-container { flex-direction: column; }

  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100vw;
    height: 60px;
    flex-direction: row;
    padding: 0 0.5rem;
    border-right: none;
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.65rem;
    min-width: 0;
  }

  .nav-icon { font-size: 1.2rem; }
  .nav-text { display: block; font-size: 0.55rem; white-space: nowrap; }

  .brand-logo, .sidebar-footer { display: none; }
  .main-content { margin-left: 0; width: 100%; padding: 1rem 0.75rem 75px 0.75rem; }

  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .header-title-group h1 { font-size: 1.2rem; }
  .countdown-badge { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-bar .btn { width: 100%; }

  .stat-card { gap: 0.75rem; }
  .stat-info .stat-value { font-size: 1.3rem; }

  .day-header { flex-direction: column; align-items: flex-start; }
  .day-actions { width: 100%; justify-content: flex-end; }

  .activity-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .activity-right { width: 100%; justify-content: space-between; }

  .form-row { grid-template-columns: 1fr; }

  .modal-card { padding: 1.25rem; }

  .pass-comparison-grid { grid-template-columns: 1fr; }

  .spot-img-wrapper { height: 140px; }

  .weather-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .budget-chart-container { flex-direction: column; }

  .desktop-only-nav { display: none !important; }
  .mobile-more-trigger { display: flex !important; }

  .sidebar {
    height: 65px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
  }

  .nav-item {
    flex: 1;
    justify-content: center;
  }
}

/* Mobile Navigation & Bottom Sheet */
.desktop-only-nav { display: flex; }
.mobile-more-trigger { display: none !important; }

.mobile-more-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1500;
  display: none;
  align-items: flex-end;
}

.mobile-more-sheet.active {
  display: flex;
}

.sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.sheet-card {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1rem 1.25rem 2.5rem 1.25rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: slideUpSheet 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 0 auto 1rem auto;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.sheet-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
}

.sheet-item:hover, .sheet-item:active {
  background: rgba(255, 71, 126, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.sheet-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== LEAFLET OVERRIDES ===== */

.leaflet-container {
  background: var(--bg-dark) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Dark theme for layer control */
.leaflet-control-layers {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
.leaflet-control-layers label { color: #f8fafc; cursor: pointer; }
.leaflet-control-layers-separator { border-color: rgba(255,255,255,0.1) !important; }

/* Dark theme for zoom control */
.leaflet-bar a {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.leaflet-bar a:hover {
  background: rgba(255, 71, 126, 0.2) !important;
  color: #ff477e !important;
}

/* Fullscreen control */
.leaflet-control-fullscreen a {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #f8fafc !important;
}

/* ===== MAP SEARCH BAR ===== */

.map-search-container {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.map-search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}
.map-search-input::placeholder { color: var(--text-dim); }
.map-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 126, 0.15);
}

.map-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.map-search-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-main);
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.map-search-item:hover {
  background: rgba(255, 71, 126, 0.1);
}
.map-search-item:last-child { border-bottom: none; }
.search-result-icon { font-size: 1rem; flex-shrink: 0; }
.search-result-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== MAP CATEGORY FILTERS ===== */

.map-category-filters {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.map-category-filters::-webkit-scrollbar { display: none; }

.map-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.map-filter-btn:hover {
  background: rgba(255, 71, 126, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 71, 126, 0.3);
}
.map-filter-btn.active {
  background: linear-gradient(135deg, rgba(255, 71, 126, 0.2), rgba(255, 71, 126, 0.1));
  color: #ff477e;
  border-color: rgba(255, 71, 126, 0.4);
  box-shadow: 0 0 12px rgba(255, 71, 126, 0.15);
}

/* ===== CLUSTER MARKERS ===== */

.custom-cluster-icon { background: none !important; }

.cluster-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.cluster-marker span { position: relative; z-index: 1; }
.cluster-small {
  width: 36px; height: 36px; font-size: 0.85rem;
  background: linear-gradient(135deg, #ff477e, #ff70a6);
  border: 2px solid rgba(255,255,255,0.7);
}
.cluster-medium {
  width: 44px; height: 44px; font-size: 1rem;
  background: linear-gradient(135deg, #ff477e, #ffb703);
  border: 2px solid rgba(255,255,255,0.8);
}
.cluster-large {
  width: 52px; height: 52px; font-size: 1.1rem;
  background: linear-gradient(135deg, #ff477e, #9d4edd);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 25px rgba(255, 71, 126, 0.4);
}

/* Bounce animation for search results */
@keyframes markerBounce {
  0% { transform: translateY(-20px); opacity: 0; }
  60% { transform: translateY(4px); opacity: 1; }
  100% { transform: translateY(0); }
}

.custom-marker-popup {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.custom-marker-popup h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.custom-marker-popup p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

/* ===== MAP STEP MARKERS & LEGEND ===== */

.custom-step-marker {
  background: none !important;
  border: none !important;
}

.step-marker-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  pointer-events: auto;
}

.step-badge {
  min-width: 32px;
  width: auto;
  padding: 0 8px;
  height: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff477e, #ffb703);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 71, 126, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.step-label {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 71, 126, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.step-city {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.1;
}

.step-days {
  color: var(--accent-cyan);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
}

.map-step-legend {
  margin-top: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.legend-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.legend-steps-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.legend-step-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.legend-step-btn:hover {
  background: rgba(255, 71, 126, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.legend-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-step-city {
  font-weight: 700;
}

.legend-step-days {
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

/* Animated Route Line */
.animated-route-line {
  stroke-dasharray: 10, 10;
  animation: routeDashFlow 25s linear infinite;
}

@keyframes routeDashFlow {
  from { stroke-dashoffset: 300; }
  to { stroke-dashoffset: 0; }
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== MOBILE NAVIGATION (BOTTOM BAR) ===== */
.mobile-more-trigger { display: none; }
.mobile-more-overlay { display: none; }
.mobile-more-sheet { display: none; }

@media (max-width: 768px) {
  .desktop-only-nav { display: none !important; }
  .mobile-more-trigger { display: flex !important; }

  /* Reset Main Content */
  .main-content {
    margin-left: 0;
    padding: 1rem;
    padding-bottom: 90px;
  }

  /* Bottom Tab Bar */
  .sidebar {
    position: fixed;
    width: 100%;
    height: 70px;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    padding: 0.5rem;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b1120;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 1000;
  }
  .brand-logo { display: none; }

  .nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem;
    flex: 1;
    justify-content: center;
    align-items: center;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-item.active .nav-icon,
  .nav-item.active .nav-text {
    color: #ff477e;
  }

  .nav-icon { font-size: 1.3rem; }
  .nav-text { font-size: 0.65rem; }

  /* ---- Mobile Overlay (dark background) ---- */
  .mobile-more-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-more-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* ---- Mobile Bottom Sheet ---- */
  .mobile-more-sheet {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #131c31;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 1.5rem;
    padding-bottom: 2rem;
    z-index: 2001;
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-more-sheet.active {
    transform: translateY(0);
    -webkit-transform: translateY(0);
  }

  .mobile-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-more-header h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
  }

  .close-more-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    padding: 1rem;
    margin: -1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
    color: #f8fafc;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-item-mobile:active {
    background: rgba(255, 71, 126, 0.15);
  }

  .nav-item-mobile .nav-icon { font-size: 1.5rem; }
  .nav-item-mobile .nav-text { font-size: 0.8rem; color: #cbd5e1; }

  .mobile-more-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-more-actions .btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.6);
    color: #f8fafc;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Sticky Header/Filter Bar for mobile Add Actions */
  .filter-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.95);
    margin: -1rem -1rem 1.5rem -1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}


/* ========== OFFLINE BANNER ========== */

.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

.offline-banner.visible {
  transform: translateY(0);
}

.offline-banner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Shift app content when offline banner is visible */
.offline-banner.visible ~ .app-container {
  padding-top: 2.2rem;
}

/* ========== FLIP ANIMATION SUPPORT ========== */

.itinerary-day-card {
  will-change: transform;
}

.activity-item {
  will-change: transform;
}

/* Toast info style (for offline notifications) */
.toast.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* ========== PRINT STYLES ========== */

@media print {
  /* Hide UI elements */
  .sidebar, .top-header, .filter-bar, .toast, #mobile-nav, 
  .btn, .icon-btn, .drag-handle, .spot-edit-btn, .spot-status-btn,
  .activity-right button {
    display: none !important;
  }

  /* Reset layout */
  body, html {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-container {
    display: block !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: white !important;
  }

  /* Only show the active tab (which should be itinerary if they clicked print there) */
  .tab-view:not(.active) {
    display: none !important;
  }

  /* Format Cards */
  .card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    color: black !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 15px !important;
  }

  h1, h2, h3, h4, p {
    color: black !important;
  }
  
  .day-header {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ccc !important;
  }
  
  .day-number {
    background: #ddd !important;
    color: black !important;
  }

  .activity-item {
    border-color: #ddd !important;
    background: white !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
  .activity-time {
    color: #333 !important;
    font-weight: bold !important;
  }
  
  .badge {
    border: 1px solid #999 !important;
    color: #333 !important;
    background: transparent !important;
  }
}


