/* ==========================================================================
   Mausflug PWA - Stitch "Terra & Tide" Design System
   Plus Jakarta Sans • Warm Nordic & Tropical Clean Pastel Palette
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Light Theme - Stitch Warm Pastel / Terra & Tide */
  --bg-primary: #FBF9F5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-secondary: #F4F7F2;
  --bg-tertiary: #E8EDE6;

  --border-subtle: rgba(30, 34, 32, 0.08);
  --border-medium: rgba(30, 34, 32, 0.15);
  --border-strong: rgba(30, 34, 32, 0.28);

  --text-primary: #1E2220;
  --text-secondary: #4A534E;
  --text-muted: #717974;
  --text-faint: #9FA7A2;

  /* Stitch Brand CI: Deep Earthy Terracotta, Tide Sage & Warm Sands */
  --brand-primary: #895031;
  --brand-primary-hover: #724126;
  --brand-primary-subtle: #ffdbcb;
  --brand-primary-container: #eca47f;
  --brand-text: #FFFFFF;

  --brand-secondary: #3c6750;
  --brand-secondary-container: #bbebcd;
  --brand-secondary-fixed: #beedd0;
  --brand-on-secondary-fixed: #002112;

  --brand-terracotta: #895031;
  --brand-terracotta-subtle: #ffdbcb;
  --brand-sand: #F4A261;
  --brand-sand-subtle: #FEF3C7;
  --brand-sage: #3C6750;
  --brand-sage-light: #EDF5EE;
  --brand-peach: #ECA47F;
  --brand-peach-light: #FFF3ED;

  /* Semantics */
  --accent-blue: #2563EB;
  --accent-blue-subtle: #EFF6FF;
  --accent-amber: #D97706;
  --accent-amber-subtle: #FFFBEB;
  --accent-emerald: #0D9488;
  --accent-emerald-subtle: #CCFBF1;

  /* Elevations - Soft Ambient Luminescence */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px -2px rgba(13, 148, 136, 0.04), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(30, 34, 32, 0.08);
  --shadow-xl: 0 20px 30px -10px rgba(30, 34, 32, 0.12);

  /* 8-Point Grid Spacing System (Apple HIG / Linear / Material 3) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii - Soft Rounded Discipline */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --header-height: 64px;
  --bottom-bar-height: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

[data-theme="dark"] {
  --bg-primary: #0F131D;
  --bg-surface: #171B26;
  --bg-surface-elevated: #1E2333;
  --bg-secondary: #1A1F2C;
  --bg-tertiary: #262D3D;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);

  --text-primary: #F1F4F9;
  --text-secondary: #C2C8D6;
  --text-muted: #8C95A6;
  --text-faint: #626A7A;

  /* Stitch Dark Palette: Warm Coral/Terracotta & Tide Sage */
  --brand-primary: #ECA47F;
  --brand-primary-hover: #FFB691;
  --brand-primary-subtle: rgba(236, 164, 127, 0.18);
  --brand-primary-container: #895031;
  --brand-text: #341100;

  --brand-secondary: #81C784;
  --brand-secondary-container: #244F39;
  --brand-secondary-fixed: #3C6750;
  --brand-on-secondary-fixed: #E8F5E9;

  --brand-terracotta: #FF8A65;
  --brand-terracotta-subtle: rgba(255, 138, 101, 0.18);
  --brand-sand: #FFB74D;
  --brand-sand-subtle: rgba(245, 158, 11, 0.15);
  --brand-sage: #81C784;
  --brand-sage-light: rgba(129, 199, 132, 0.18);
  --brand-peach: #FFAB91;
  --brand-peach-light: rgba(255, 171, 145, 0.18);

  --accent-blue: #60A5FA;
  --accent-blue-subtle: rgba(96, 165, 250, 0.2);
  --accent-amber: #FBBF24;
  --accent-amber-subtle: rgba(251, 191, 36, 0.2);
  --accent-emerald: #34D399;
  --accent-emerald-subtle: rgba(52, 211, 153, 0.2);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.9);
}

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

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Custom Minimal Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   App Shell Layout (Stitch Clean Pastel Centered Shell & Frame)
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #FBF9F5;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* On large screens / Desktop: Elegant centered Stitch preview frame */
@media (min-width: 768px) {
  body {
    background-color: #F0EDE6;
  }

  .app-shell {
    max-width: 36rem; /* 576px (md:max-w-xl) */
    margin: 1.5rem auto 3rem auto;
    min-height: calc(100vh - 3rem);
    border-radius: 2rem;
    box-shadow: 0 16px 48px -12px rgba(30, 34, 32, 0.12), 0 2px 12px rgba(30, 34, 32, 0.04);
    border: 1px solid rgba(229, 234, 228, 0.9);
    position: relative;
    background-color: #FBF9F5;
  }
}

/* Hide legacy desktop header completely (Stitch integrates navigation into View-Header & Bottom-Bar) */
.app-header {
  display: none !important;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: calc(72px + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .app-header {
  background: rgba(15, 19, 29, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.app-header-inner {
  max-width: 1400px;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.brand-badge-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--brand-secondary-fixed, #beedd0);
  color: var(--brand-on-secondary-fixed, #002112);
  box-shadow: 0 2px 8px rgba(60, 103, 80, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-badge-circle:hover {
  transform: rotate(12deg) scale(1.05);
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.status-pill-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--brand-secondary-container, #bbebcd);
  color: var(--brand-on-secondary-container, #406b54);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .status-pill-active {
  background: rgba(60, 103, 80, 0.3);
  color: #a3d1b4;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-sage, #3c6750);
}

[data-theme="dark"] .status-dot {
  background: #a3d1b4;
}

/* Desktop App Navigation Tabs (Stitch Pill Style) */
.app-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .nav-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.travelers-badge-group {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-left: -8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.2s ease;
  position: relative;
}

.avatar-circle:first-child {
  margin-left: 0;
}

.avatar-circle:hover {
  transform: translateY(-2px) scale(1.08);
  z-index: 5;
}

.avatar-marcus {
  background: #d3e7dc;
  color: #0e1f18;
}

.avatar-alexa {
  background: #beedd0;
  color: #002112;
}

.avatar-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.avatar-add-btn:hover {
  background: var(--border-medium);
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.08);
  z-index: 5;
}

.icon-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.icon-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

/* ==========================================================================
   Main Content Canvas (Stitch Clean Pastel Centered Container)
   ========================================================================== */
.main-canvas {
  width: 100%;
  max-width: 36rem; /* md:max-w-xl (576px) */
  margin: 0 auto;
  padding: env(safe-area-inset-top, 16px) 1rem 7rem 1rem;
  flex: 1;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 767px) {
  .main-canvas {
    width: 100%;
    padding: env(safe-area-inset-top, 16px) 1rem 7rem 1rem;
  }
}

.main-content-flow {
  width: 100%;
}


/* Left Sidebar Feed */
.app-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
  z-index: 10;
}

.sidebar-header-bar {
  padding: 0.65rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--brand-primary);
  color: var(--brand-text);
  border-color: var(--brand-primary);
}

/* Scroll Area */
.feed-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem 3rem 1rem;
}

/* ==========================================================================
   THE UNIFORM CARD PATTERN (Das einheitliche Muster für jeden Eintrag!)
   ========================================================================== */
.entry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  position: relative;
}

.entry-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-medium);
}

.entry-card.is-active-highlight {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary-subtle);
}

/* Top Line: Category & Status */
.entry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.entry-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--brand-primary);
}

.entry-type-chip.type-hotel { color: #0284c7; }
.entry-type-chip.type-transit { color: #0f766e; }
.entry-type-chip.type-activity { color: #d97706; }
.entry-type-chip.type-flight { color: #2563eb; }

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.status-badge.confirmed {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.status-badge.onsite {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

.status-badge.pending {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber);
}

.status-badge.planned {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

/* Entry Title */
.entry-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

/* Transit Card Special Styling (Lambus Transit Bridges) */
.entry-card.entry-card-transit {
  border-left: 3.5px solid var(--brand-primary);
  background: linear-gradient(to right, rgba(15, 118, 110, 0.05), var(--bg-surface) 18%);
}

.entry-card.entry-card-transit.type-plane {
  border-left-color: #2563eb;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.05), var(--bg-surface) 18%);
}

.entry-card.entry-card-transit.type-train {
  border-left-color: #d97706;
  background: linear-gradient(to right, rgba(217, 119, 6, 0.06), var(--bg-surface) 18%);
}

.transit-route-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.transit-route-arrow {
  color: var(--brand-primary);
  font-weight: 800;
  padding: 0 0.15rem;
  user-select: none;
}

.type-plane .transit-route-arrow {
  color: #2563eb;
}

.type-train .transit-route-arrow {
  color: #d97706;
}

.highlight-val {
  color: var(--brand-primary) !important;
  font-weight: 700;
}

/* Card Property & Destination Media */
.entry-card-media {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: var(--bg-secondary);
}

.entry-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.entry-card:hover .entry-card-img {
  transform: scale(1.03);
}

.modal-media-banner {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: var(--bg-secondary);
}

.modal-media-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* THE 4-KEY-FACTS GRID (Muster!) */
.entry-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  background: var(--bg-secondary);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.fact-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fact-item.price-fact .fact-value {
  color: var(--brand-primary);
  font-weight: 700;
}

/* Short Teaser */
.entry-teaser-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Action Bar */
.entry-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

.btn-detail-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}

.btn-detail-link:hover {
  text-decoration: underline;
}

.btn-map-jump {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.btn-map-jump:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ==========================================================================
   Right Column: Map Pane
   ========================================================================== */
.app-map-pane {
  height: 100%;
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

#leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Floating Station Bar on Map */
.map-floating-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.map-station-scroll {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .map-station-scroll {
  background: rgba(16, 23, 38, 0.88);
}

.map-station-scroll::-webkit-scrollbar {
  display: none;
}

.map-station-chip {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.map-station-chip:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.map-station-chip.active {
  background: var(--brand-primary);
  color: var(--brand-text);
}

.map-floating-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}

.map-action-btn {
  height: 34px;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .map-action-btn {
  background: rgba(16, 23, 38, 0.92);
}

.map-action-btn:hover {
  background: var(--bg-surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Floating Active Station Badge on Map */
.map-info-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90%;
  transition: all 0.2s ease;
}

.map-info-badge.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.info-badge-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

/* Custom Leaflet Marker Pins */
.custom-pin-wrapper {
  background: transparent;
  border: none;
}

.custom-station-pin {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.custom-station-pin.camp {
  background: #3b82f6;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);
}

.custom-station-pin.booked {
  background: #059669;
}

.custom-station-pin.airport {
  background: #2563eb;
}

.custom-station-pin:hover {
  transform: scale(1.15);
}

.custom-poi-pin {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease;
}

.custom-poi-pin:hover {
  transform: scale(1.2);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   Budget & Financial Ledger View
   ========================================================================== */
.budget-cockpit-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ledger-summary-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.ledger-total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ledger-main-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}

.ledger-per-pers {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ledger-progress-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: 0.85rem;
}

.bar-segment.paid { background: #059669; }
.bar-segment.onsite { background: #2563eb; }
.bar-segment.open { background: #d97706; }

.ledger-three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ledger-mini-card {
  background: var(--bg-secondary);
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.mini-card-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mini-card-val {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.mini-card-val.paid-val { color: #059669; }
.mini-card-val.onsite-val { color: #2563eb; }
.mini-card-val.open-val { color: #d97706; }

/* ==========================================================================
   Vault & Boarding Passes View
   ========================================================================== */
.vault-cockpit-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.boarding-pass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pass-flight-number {
  font-weight: 700;
  color: var(--brand-primary);
}

.pass-airports-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.pass-time-col {
  display: flex;
  flex-direction: column;
}

.pass-time-col.right {
  text-align: right;
}

.pass-big-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pass-airport-code {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pass-transit-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.7rem;
}

/* Checklist Items */
.checklist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.checklist-content {
  flex: 1;
}

.checklist-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checklist-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* ==========================================================================
   DETAIL MODAL / POPUP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.2s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalScaleUp 0.2s ease-out;
}

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

.modal-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-type-chip {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-fact-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.modal-fact-col {
  display: flex;
  flex-direction: column;
}

.modal-fact-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-fact-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-detail-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-block-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.modal-block-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-medium);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
}

.btn-copy-code {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  cursor: pointer;
}

.modal-actions-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-modal-action {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-modal-action.primary {
  background: var(--brand-primary);
  color: var(--brand-text);
  border-color: var(--brand-primary);
}

.btn-modal-action:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   Stitch Clean Pastel Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-bar,
#stitch-bottom-nav {
  display: block !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 40 !important;
  padding-bottom: env(safe-area-inset-bottom, 16px) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(229, 234, 228, 0.7) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03) !important;
}

@media (min-width: 768px) {
  .mobile-bottom-bar,
  #stitch-bottom-nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 36rem !important; /* md:max-w-xl */
    bottom: 1.25rem !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(229, 234, 228, 0.85) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding-bottom: 0 !important;
  }
}

.mobile-tab-btn,
.stitch-tab-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.35rem 0.5rem !important;
  color: #717974 !important;
  background-color: transparent !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  min-width: 44px;
}

.mobile-tab-btn:hover,
.stitch-tab-btn:hover {
  color: #1E2220 !important;
}

.mobile-tab-btn .tab-label,
.mobile-tab-btn .mobile-tab-label,
.stitch-tab-btn .tab-label {
  font-size: 10px !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
  line-height: 1 !important;
}

.mobile-tab-btn.active,
.stitch-tab-btn.active {
  flex-direction: row !important;
  gap: 0.375rem !important;
  padding: 0.375rem 0.85rem !important;
  background-color: #EDF5EE !important; /* accent-sage-light */
  color: #3C6750 !important; /* accent-sage-deep */
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(60, 103, 80, 0.08) !important;
}

.mobile-tab-btn.active .tab-label,
.mobile-tab-btn.active .mobile-tab-label,
.stitch-tab-btn.active .tab-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
}

[data-theme="dark"] .mobile-bottom-bar,
[data-theme="dark"] #stitch-bottom-nav {
  background: rgba(23, 27, 38, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .mobile-tab-btn.active,
[data-theme="dark"] #stitch-bottom-nav .stitch-tab-btn.active {
  background-color: rgba(60, 103, 80, 0.35) !important;
  color: #BEEDD0 !important;
}

/* Touch Action & Tap Highlight Reset */
button, .filter-pill, .entry-card, .mobile-tab-btn, .map-action-btn, .btn-modal-action {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.filter-pill:active, .btn-modal-action:active, .map-action-btn:active, .icon-action-btn:active {
  transform: scale(0.96);
}

@media (max-width: 960px) {
  .app-viewport {
    display: block;
    height: calc(100vh - var(--header-height) - var(--bottom-bar-height) - var(--safe-bottom));
    height: calc(100dvh - var(--header-height) - var(--bottom-bar-height) - var(--safe-bottom));
  }

  .app-sidebar {
    width: 100%;
    height: 100%;
    border-right: none;
  }

  .app-map-pane {
    width: 100%;
    height: 100%;
    display: none;
  }

  /* When Map Tab is Active on Mobile/Tablet */
  .app-shell.view-map-active .app-sidebar {
    display: none;
  }
  .app-shell.view-map-active .app-map-pane {
    display: block;
  }

  .app-nav-tabs {
    display: none;
  }

  .header-left .brand-subline {
    display: none;
  }

  .feed-scroll-area {
    padding: 0.85rem 1rem calc(var(--bottom-bar-height) + var(--safe-bottom) + 1.25rem) 1rem;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
  }

  .entry-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait (641px - 960px) Enhancement */
@media (min-width: 641px) and (max-width: 960px) {
  .entry-facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .header-left .brand-subline {
    display: flex;
  }

  .brand-title {
    font-size: 1.08rem;
  }

  .feed-scroll-area {
    padding: 1.25rem 1.5rem calc(var(--bottom-bar-height) + var(--safe-bottom) + 1.5rem) 1.5rem;
  }
}

/* ==========================================================================
   STITCH "TERRA & TIDE" ENHANCEMENTS: Multi-Trip, Vouchers, Hero, PIN Lock
   ========================================================================== */

/* Trip Selector Dropdown */
.trip-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.trip-selector-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.trip-selector-trigger:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-primary);
}

.trip-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.2s ease;
}

.trip-dropdown-menu.show {
  display: block;
}

.trip-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.trip-dropdown-item:hover {
  background: var(--bg-secondary);
}

.trip-dropdown-item.active {
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
  font-weight: 700;
}

.trip-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

/* Stitch Hero Banner */
.stitch-hero {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
  margin-bottom: 1.5rem;
}

.stitch-hero-bg {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #FFFFFF;
}

.stitch-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%);
  backdrop-filter: blur(1.5px);
  z-index: 1;
}

.stitch-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 1.25rem;
}

.stitch-hero-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stitch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.stitch-pill-glass {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
}

.stitch-pill-sage {
  background: var(--brand-sage-light);
  color: var(--brand-sage);
}

.stitch-pill-peach {
  background: var(--brand-peach-light);
  color: var(--brand-primary);
}

.stitch-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.stitch-hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.45;
  max-width: 600px;
}

/* Day Carousel */
.stitch-day-carousel {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.85rem 0;
  margin-bottom: 1.25rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.stitch-day-carousel::-webkit-scrollbar {
  display: none;
}

.stitch-day-btn {
  flex-shrink: 0;
  min-width: 82px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.stitch-day-btn:hover {
  border-color: var(--brand-primary);
}

.stitch-day-btn.active {
  background: var(--brand-sage);
  color: #FFFFFF;
  border-color: var(--brand-sage);
  box-shadow: 0 4px 14px rgba(60, 103, 80, 0.28);
}

.stitch-day-btn.active .day-meta-text {
  color: rgba(255, 255, 255, 0.85);
}

.stitch-day-btn .day-meta-text {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.stitch-day-btn .day-title-text {
  font-size: 1rem;
  font-weight: 800;
  margin: 0.15rem 0;
}

/* Conflict & Time Warning Alert */
.stitch-alert-card {
  background: var(--brand-peach-light);
  border: 1px solid var(--brand-peach);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

/* PIN Lock Screen Modal */
.pin-lock-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: var(--font-sans);
}

.pin-lock-overlay.hidden {
  display: none !important;
}

.pin-brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.35rem;
}

.pin-dots-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  background: transparent;
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background: var(--brand-primary);
  transform: scale(1.15);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  max-width: 280px;
  width: 100%;
}

.pin-key-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.15s ease;
  user-select: none;
}

.pin-key-btn:active {
  transform: scale(0.92);
  background: var(--bg-secondary);
}

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

/* ==========================================================================
   GOOGLE STITCH "TERRA & TIDE" DESKTOP & RESPONSIVE DESIGN SYSTEM
   Full 1400px Desktop Grid • Split Workspaces • Sticky Route Map
   ========================================================================== */

/* 1. Hero Section (Sigiriya Sunrise / Mist) */
.stitch-hero-banner {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 36px -6px rgba(14, 26, 20, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
  background-color: var(--bg-secondary);
  margin-bottom: 2rem;
}

.stitch-hero-image-box {
  width: 100%;
  min-height: 440px;
  background-size: cover;
  background-position: center 38%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: #ffffff;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .stitch-hero-image-box {
    padding: 1.5rem;
    min-height: 480px;
  }
}

.stitch-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 20, 0.1) 0%, rgba(14, 26, 20, 0.45) 50%, rgba(14, 26, 20, 0.92) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
}

.stitch-hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stitch-pill-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stitch-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-terracotta);
  box-shadow: 0 0 8px var(--brand-terracotta);
  animation: stitchPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes stitchPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

.stitch-hero-main {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 2rem;
  max-width: 820px;
}

.stitch-hero-subtag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffb691;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stitch-hero-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.65rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.stitch-hero-intro {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 1.5rem;
  max-width: 680px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stitch-hero-frosted-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(14, 26, 20, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1.15rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .stitch-hero-frosted-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.stitch-progress-wrap {
  flex: 1;
  max-width: 440px;
}

.stitch-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stitch-progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.stitch-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-secondary-fixed, #beedd0), #81c784);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stitch-btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--brand-peach);
  color: #341100;
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.stitch-btn-share:hover {
  background: #ffdbcb;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

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

/* 2. Bento Key Metric Highlight Cards */
.stitch-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .stitch-kpi-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stitch-kpi-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 24px -4px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  min-height: 140px;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.stitch-kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 14px 28px -4px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.stitch-kpi-card > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stitch-kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  line-height: 1.2;
}

.stitch-kpi-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  margin: 0.3rem 0 0.2rem 0;
}

.stitch-kpi-sub {
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0.2rem 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.35;
}

.stitch-kpi-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 3. 12-Column Split Workspace Layout */
.stitch-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }

@media (max-width: 960px) {
  .col-8, .col-7, .col-6, .col-5, .col-4 {
    grid-column: span 12;
  }
}

/* Force clean single column inside the compact Stitch container */
.main-canvas .stitch-grid-12 {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}
.main-canvas .stitch-grid-12 > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* 4. Voucher Card (Nordic Soft Ticket Pass) */
.stitch-voucher-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 24px -4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
  box-sizing: border-box;
}

.stitch-voucher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stitch-badge-pill {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stitch-voucher-inner {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 640px) {
  .stitch-voucher-inner {
    flex-direction: row;
  }
}

.stitch-voucher-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .stitch-voucher-photo {
    width: 175px;
    height: 135px;
    aspect-ratio: auto;
  }
}

.stitch-voucher-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stitch-voucher-barcode-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .stitch-voucher-barcode-row {
    flex-direction: row;
    align-items: center;
  }
}

.stitch-btn-ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--brand-peach);
  color: #341100;
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.stitch-btn-ticket:hover {
  background: #ffdbcb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 5. Reiseroute Milestone Cards */
.stitch-milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .stitch-milestones-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stitch-milestone-card {
  background: var(--bg-surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 24px -4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stitch-milestone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 16px 32px -4px rgba(0, 0, 0, 0.05);
}

.stitch-milestone-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.stitch-milestone-body {
  padding: 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

/* 6. Routenkarte Preview Card with Leaflet Mount */
.stitch-side-card,
.stitch-map-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 24px -4px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.75rem;
  box-sizing: border-box;
}

.stitch-map-frame,
#dashboard-map-container {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  border-radius: 1.75rem !important; /* rounded-2xl */
  overflow: hidden !important;
  margin: 1rem 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  background-color: #F7FAF5 !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
  border: 1px solid rgba(229, 234, 228, 0.8) !important;
}

.stitch-map-frame #leaflet-map,
#dashboard-map-container #leaflet-map {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

.stitch-map-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  z-index: 500;
}

[data-theme="dark"] .stitch-map-badge {
  background: rgba(23, 27, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

.stitch-distance-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.stitch-distance-pill {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-subtle);
}

/* Leaflet Modern State-of-the-Art Controls */
.leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .leaflet-bar {
  background: rgba(23, 27, 38, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.leaflet-bar a {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.leaflet-bar a:last-child {
  border-bottom: none !important;
}

.leaflet-bar a:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--brand-primary) !important;
}

[data-theme="dark"] .leaflet-bar a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Hide default chunky zoom in mini dashboard preview map */
.stitch-map-frame .leaflet-control-zoom {
  display: none !important;
}

.leaflet-control-attribution {
  font-size: 0.65rem !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  border-radius: 6px 0 0 0 !important;
  color: var(--text-muted) !important;
}

[data-theme="dark"] .leaflet-control-attribution {
  background: rgba(15, 19, 29, 0.75) !important;
  color: var(--text-faint) !important;
}

.leaflet-control-attribution a {
  color: var(--text-muted) !important;
}

/* 7. Accommodations & Stays Grid Cards (Stitch Screens 7 & 8 Parity) */
.stitch-milestones-grid > .stitch-voucher-card,
.stitch-stay-card {
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 24px -4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stitch-milestones-grid > .stitch-voucher-card:hover,
.stitch-stay-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 16px 32px -4px rgba(0, 0, 0, 0.05);
}

.stitch-milestones-grid > .stitch-voucher-card > div[style*="background-image"],
.stitch-stay-card > div[style*="background-image"],
.stitch-stay-img {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  min-height: 190px;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
  overflow: hidden;
}

.stitch-milestones-grid > .stitch-voucher-card > div:last-child,
.stitch-stay-card > div:last-child {
  padding: 1.25rem !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

/* Status Badges */
.stitch-badge-status-paid {
  background: var(--brand-secondary-fixed, #beedd0);
  color: var(--brand-on-secondary-fixed, #002112);
  font-weight: 800;
}

.stitch-badge-status-booked {
  background: #d3e7dc;
  color: #0e1f18;
  font-weight: 800;
}

.stitch-badge-status-open {
  background: var(--brand-primary-subtle, #ffdbcb);
  color: #6c391c;
  font-weight: 800;
}

/* 7. Timeline Day Navigation Strip */
.stitch-day-strip {
  width: 100%;
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .stitch-day-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.stitch-day-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.stitch-day-scroll::-webkit-scrollbar {
  display: none;
}

.stitch-day-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.stitch-day-pill-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--brand-secondary);
  box-shadow: 0 2px 8px rgba(60, 103, 80, 0.15);
  font-weight: 700;
}

.stitch-timeline-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stitch-timeline-rail::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: var(--border-medium);
}

.stitch-timeline-event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stitch-timeline-event-icon {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border-subtle);
}

.stitch-timeline-event-card {
  flex: 1;
  background: var(--bg-surface);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.stitch-timeline-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.stitch-sticky-map-wrapper {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stitch-route-map-canvas {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: var(--bg-secondary);
}

/* 8. Budget Tracker (Desktop Split & Table) */
.stitch-budget-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .stitch-budget-toolbar {
    flex-direction: row;
    align-items: flex-end;
  }
}

.stitch-currency-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.stitch-curr-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stitch-curr-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.stitch-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
}

.stitch-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.stitch-table th {
  padding: 0.85rem 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.stitch-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.stitch-table tr:hover td {
  background: var(--bg-secondary);
}

/* ==========================================================================
   Stitch Mobile & Parity Polish
   ========================================================================== */
@media (max-width: 768px) {
  .stitch-hero-image-box {
    min-height: 250px !important;
    padding: 1.25rem !important;
  }
  .stitch-hero-heading {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
  .stitch-hero-intro {
    display: none !important;
  }
  .stitch-kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }
  .stitch-kpi-card {
    padding: 0.65rem 0.5rem !important;
    border-radius: 14px !important;
  }
  .stitch-kpi-val {
    font-size: 1.15rem !important;
  }
  .stitch-kpi-lbl {
    font-size: 0.65rem !important;
  }
  .stitch-main-layout {
    gap: 1.5rem !important;
  }
}

@media (max-width: 540px) {
  .stitch-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .stitch-kpi-card {
    padding: 1rem 1.15rem !important;
  }
  .stitch-kpi-val {
    font-size: 1.45rem !important;
  }
}

@media (max-width: 960px) {
  .main-canvas {
    padding-bottom: 7rem !important;
    padding-left: max(1rem, var(--safe-left)) !important;
    padding-right: max(1rem, var(--safe-right)) !important;
  }
}

/* Touch Targets Apple HIG & Material Design (>= 44px) */
.stitch-day-pill-btn {
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

.filter-pill {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

.stitch-curr-btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
}

.icon-action-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stitch-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Fullscreen Mobile & Desktop Map View */
.stitch-map-view-container {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .stitch-map-view-container {
    height: calc(100vh - 145px);
    border-radius: 16px;
  }
}

.stitch-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stitch-map-floating-panel {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
}

.stitch-map-station-chip {
  flex-shrink: 0;
  width: 240px;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stitch-map-station-chip:hover,
.stitch-map-station-chip.active {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: 0 12px 28px rgba(137, 80, 49, 0.18);
}

/* Hotel Editorial Luxury Detail Page (Stitch Screens 7 & 8) */
.stitch-hotel-editorial {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

.stitch-hotel-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 175px);
  gap: 0.75rem;
  border-radius: 24px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .stitch-hotel-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
  }
  .stitch-hotel-gallery-grid > div:not(:first-child) {
    display: none;
  }
}

.stitch-hotel-main-img {
  grid-row: span 2;
  background-size: cover;
  background-position: center;
  position: relative;
}

.stitch-hotel-sub-img {
  background-size: cover;
  background-position: center;
  position: relative;
}

.stitch-editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .stitch-editorial-split {
    grid-template-columns: 1.6fr 1fr;
  }
}

.stitch-voucher-panel {
  background: var(--bg-surface);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

/* Modal Form Styles */
.stitch-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.stitch-modal-box {
  background: var(--bg-surface);
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 1px solid var(--border-subtle);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

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

.stitch-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.stitch-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.stitch-form-input:focus {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
}

/* --- Stitch Toast Notification Engine --- */
.stitch-toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.stitch-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: rgba(22, 28, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.35);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  animation: stitchToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.stitch-toast.toast-fadeout {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

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




