/* ==========================================================================
   2026 九州蜜月自駕賞楓 - 專屬現代旅遊指南樣式表 (CSS)
   ========================================================================== */

:root {
  /* Autumn Warm Luxury Palette */
  --color-primary: #C2452D;       /* Maple Red */
  --color-primary-dark: #9A2F1B;
  --color-primary-light: #FDEEEB;
  --color-accent-gold: #DDA136;   /* Ginkgo Gold */
  --color-accent-amber: #E27B26;  /* Autumn Sunset */
  --color-forest: #2E5339;        /* Cedar Forest */
  
  /* Neutral / Background */
  --bg-page: #F6F4F0;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-light: rgba(214, 206, 196, 0.65);
  --border-focus: #C2452D;
  
  /* Text */
  --text-main: #25282A;
  --text-muted: #6B7280;
  --text-white: #FFFFFF;
  
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px rgba(194, 69, 45, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-base: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-family: var(--font-base);
  background-color: var(--bg-page);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 84px; /* Space for mobile sticky footer */
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Header & Banner */
.site-header {
  position: relative;
  background: linear-gradient(135deg, #1C1917 0%, #3B1E19 40%, #7B2A1B 100%);
  color: var(--text-white);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-banner {
  position: relative;
  padding: 38px 0 24px;
  background-image: radial-gradient(circle at 85% 20%, rgba(221, 161, 54, 0.22) 0%, transparent 50%),
                    radial-gradient(circle at 10% 80%, rgba(194, 69, 45, 0.3) 0%, transparent 60%);
}

.trip-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #FFE5D9;
  margin-bottom: 12px;
}

.main-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Stats Bar */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-bottom: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF275;
  line-height: 1.1;
}

.stat-num .unit {
  font-size: 0.8rem;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.8);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

/* Primary Tabs Nav */
.nav-tabs-wrapper {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #F4EFEB;
  color: var(--text-main);
}

.nav-btn.active {
  background: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(194, 69, 45, 0.25);
}

.nav-btn.highlight {
  border-color: #E2B772;
  color: #8C590E;
  background: #FFF8E7;
}

.nav-btn.highlight.active {
  background: #8C590E;
  color: #FFFFFF;
}

.nav-badge {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.07);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.nav-btn.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Main Container & Tab Panes */
.main-container {
  flex: 1;
  padding-top: 24px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

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

/* Section Titles */
.section-title-wrap {
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Overview Cards Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 12px;
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 6px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-flight { background: #E0F2FE; color: #0369A1; }
.badge-car { background: #FEF3C7; color: #92400E; }
.badge-hotel { background: #ECFDF5; color: #065F46; }

.flight-leg {
  padding: 6px 0;
}

.leg-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.leg-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

.leg-route b {
  color: #111827;
  margin-left: 4px;
}

.arrow {
  color: var(--color-accent-amber);
  font-weight: bold;
}

.flight-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 8px 0;
}

.card-tips {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #F9FAFB;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.detail-row {
  display: flex;
  font-size: 0.88rem;
  padding: 4px 0;
  border-bottom: 1px dashed #F0EEEA;
}

.detail-row .label {
  color: var(--text-muted);
  width: 95px;
  flex-shrink: 0;
}

.detail-row .value {
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
}

.font-highlight {
  color: #C2452D;
  font-weight: 700;
}

.hotel-desc {
  font-size: 0.86rem;
  color: #4B5563;
  margin-bottom: 10px;
  line-height: 1.45;
}

.action-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.btn-map {
  background: var(--color-primary);
  color: #FFFFFF;
  flex: 1;
}

.btn-map:hover {
  background: var(--color-primary-dark);
}

.btn-copy {
  background: #E5E7EB;
  color: #374151;
}

.btn-copy:hover {
  background: #D1D5DB;
}

/* Day Header Banners */
.day-header-banner {
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #FFFFFF;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.d1-theme { background: linear-gradient(135deg, #78291A 0%, #B8472B 100%); }
.d2-theme { background: linear-gradient(135deg, #224330 0%, #3B724D 100%); }
.d3-theme { background: linear-gradient(135deg, #26435C 0%, #3A698F 100%); }
.d4-theme { background: linear-gradient(135deg, #7C3725 0%, #C06132 100%); }
.d5-theme { background: linear-gradient(135deg, #6B3410 0%, #B57424 100%); }

.day-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.day-header-banner h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.day-route-summary {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-mileage {
  font-weight: 700;
  color: #FFF385;
}

/* Timeline Layout */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: #E5DCD3;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px rgba(194, 69, 45, 0.3);
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.item-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.tag-travel { background: #EEF2FF; color: #4338CA; }
.tag-car { background: #FEF3C7; color: #92400E; }
.tag-food { background: #FFF1F2; color: #BE123C; }
.tag-spot { background: #F3F4F6; color: #374151; }
.tag-scenic { background: #ECFDF5; color: #047857; }
.tag-drive { background: #F0FDF4; color: #15803D; }
.tag-hotel { background: #FAF5FF; color: #7E22CE; }
.tag-shopping { background: #FEF9C3; color: #854D0E; }
.tag-highlight { background: #FFE4E6; color: #E11D48; }
.tag-important { background: #FEE2E2; color: #B91C1C; }

.item-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.item-desc {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Callout Box */
.callout {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 10px 0;
}

.callout-important {
  background: #FFF1F0;
  border-left: 4px solid #F5222D;
  color: #820014;
}

.callout-tip {
  background: #FFFBE6;
  border-left: 4px solid #FAAD14;
  color: #874D00;
}

.mini-list {
  padding-left: 18px;
  margin-top: 6px;
}

.mini-list li {
  margin-bottom: 4px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 0.9rem;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  line-height: 1.45;
}

.check-list li::before {
  content: '🍁';
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* Spot Action Buttons */
.spot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #EDE8E2;
}

.meta-code {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4B5563;
  background: #F3F4F6;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--color-primary);
  color: #FFFFFF;
  transition: background 0.2s ease;
}

.btn-action:hover {
  background: var(--color-primary-dark);
}

.btn-action-copy {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: #E5E7EB;
  color: #374151;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-action-copy:hover {
  background: #D1D5DB;
}

/* Couple Food Cards */
.couple-recommendation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.rec-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
}

.rec-card.husband {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
}

.rec-card.wife {
  background: #FDF2F8;
  border: 1px solid #FBCFE8;
}

.rec-avatar {
  font-size: 1.3rem;
  line-height: 1;
}

/* Market Grid */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.market-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.text-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

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

/* Lunch Cards Grid in D4 */
.lunch-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 10px 0;
}

.lunch-card {
  background: #FAFAFA;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  transition: border-color 0.2s ease;
}

.lunch-card:hover {
  border-color: var(--color-primary);
}

.lunch-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.lunch-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.lunch-card p {
  font-size: 0.82rem;
  color: #4B5563;
  line-height: 1.4;
  margin-bottom: 6px;
}

.lunch-tel {
  font-size: 0.8rem;
  font-family: monospace;
  color: #6B7280;
}

/* Tables & Summary */
.table-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.summary-table th {
  background: #F8F6F2;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #EBE5DF;
  white-space: nowrap;
}

.summary-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F3EFE9;
  vertical-align: middle;
}

.summary-table tbody tr:hover {
  background: #FAF8F5;
}

.tag-day {
  display: inline-block;
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  margin-right: 4px;
}

.btn-sm {
  background: #F3EFE9;
  border: 1px solid #DDD5CB;
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tip-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.tip-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.tip-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.tip-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #4B5563;
}

.phrase {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 6px;
  border-radius: 4px;
  margin: 4px 0;
}

/* Driving Tools Tab */
.search-box-wrapper {
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid #DDD5CB;
  font-family: inherit;
  font-size: 0.95rem;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(194, 69, 45, 0.15);
}

.table-responsive {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 30px;
}

.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.tools-table th {
  background: #F8F6F2;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #EBE5DF;
  white-space: nowrap;
}

.tools-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #F3EFE9;
  vertical-align: middle;
}

.tools-table code {
  font-family: monospace;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.badge-d1 { background: #FDE8E8; color: #9B1C1C; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.badge-d2 { background: #DEF7EC; color: #03543F; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.badge-d3 { background: #E1EFFE; color: #1E429F; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.badge-d4 { background: #FEECDC; color: #903B0F; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.badge-d5 { background: #EDEBFE; color: #5521B5; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }

.btn-stack {
  display: flex;
  gap: 6px;
}

.btn-tool-map {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-tool-map:hover {
  background: var(--color-primary-dark);
}

.btn-tool-copy {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: #E5E7EB;
  color: #374151;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-tool-copy:hover {
  background: #D1D5DB;
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.bottom-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 6px 4px;
}

.bottom-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  min-width: 44px;
}

.bottom-bar-btn .btn-icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.bottom-bar-btn.active {
  color: var(--color-primary);
  font-weight: 800;
  transform: translateY(-2px);
}

.bottom-bar-btn.active .btn-icon {
  filter: drop-shadow(0 2px 4px rgba(194, 69, 45, 0.3));
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .main-title {
    font-size: 1.6rem;
  }
  
  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  
  .stat-num {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.68rem;
  }

  .couple-recommendation,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .nav-tabs-wrapper {
    display: none; /* Rely on mobile bottom bar */
  }
  
  .timeline {
    padding-left: 14px;
  }
  
  .timeline-dot {
    left: -14px;
    width: 12px;
    height: 12px;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none; /* Hide bottom bar on desktop */
  }
  
  body {
    padding-bottom: 40px;
  }
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 24px; }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   Auth Lock Screen Styles
   ========================================================================== */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.btn-lock {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lock:hover {
  background: rgba(255, 255, 255, 0.28);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #2B1810 0%, #150F0D 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: cardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.auth-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1F2421;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: #6B7280;
  margin-bottom: 22px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  padding: 13px 45px 13px 16px;
  border: 1.5px solid #DDD5CB;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: #FAFAF8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(194, 69, 45, 0.15);
  background: #FFFFFF;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #9CA3AF;
  padding: 4px;
}

.auth-error {
  display: none;
  color: #DC2626;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  padding: 4px 6px;
}

.auth-error.show {
  display: block;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.auth-remember-row {
  text-align: left;
  margin: 4px 0 6px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #4B5563;
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.auth-submit-btn {
  background: linear-gradient(135deg, #C2452D 0%, #A3331D 100%);
  color: #FFFFFF;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(194, 69, 45, 0.3);
}

.auth-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.auth-footer-hint {
  font-size: 0.78rem;
  color: #9CA3AF;
  margin-top: 18px;
}

.auth-footer-hint code {
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary);
  font-weight: bold;
}

