/* ============================================================
   Adventures — Complete Stylesheet
   Design: egodevnull.com dark glassmorphism aesthetic
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #0d0d14;
  --bg2: #12121e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 106, 247, 0.4);
  --accent: #7c6af7;
  --accent-light: #a597ff;
  --accent2: #4fc3f7;
  --accent-glow: rgba(124, 106, 247, 0.25);
  --text: #e8e8f0;
  --text-muted: #9e9eb1;
  --text-faint: #888899;
  --nav-height: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --green: #34d399;
  --green-surface: rgba(52, 211, 153, 0.1);
  --blue: #4fc3f7;
  --blue-surface: rgba(79, 195, 247, 0.1);
  --danger: #ff4d4d;
}

/* --- Light Mode --- */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg2: #eeeef2;
  --surface: rgba(0, 0, 0, 0.04);
  --surface-hover: rgba(0, 0, 0, 0.07);
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(124, 106, 247, 0.5);
  --accent: #6c5ce7;
  --accent-light: #7c6af7;
  --accent-glow: rgba(108, 92, 231, 0.18);
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --text-faint: #8888a0;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --amber-glow: rgba(245, 158, 11, 0.15);
  --green-surface: rgba(52, 211, 153, 0.15);
  --blue-surface: rgba(79, 195, 247, 0.15);
  --danger: #d32f2f;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--accent-light);
}

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

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(13, 13, 20, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] .nav {
  background: rgba(245, 245, 247, 0.78);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  user-select: none;
  cursor: pointer;
  transition: color var(--transition);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Theme Toggle --- */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 9px;
  transition: all var(--transition);
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger:hover {
  background: var(--surface-hover);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

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

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

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tag-accent {
  background: rgba(124, 106, 247, 0.12);
  border-color: rgba(124, 106, 247, 0.25);
  color: var(--accent-light);
}

.tag-cyan {
  background: rgba(79, 195, 247, 0.1);
  border-color: rgba(79, 195, 247, 0.25);
  color: var(--accent2);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger, #f2761d);
}

.tag-wip {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--amber);
}

/* --- Orb Backgrounds --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -120px;
  right: -100px;
  background: var(--accent);
  opacity: 0.08;
  animation: drift 18s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
  background: var(--amber);
  opacity: 0.12;
  animation: drift 22s ease-in-out infinite reverse;
}

.orb-3 {
  width: 280px;
  height: 280px;
  top: 50%;
  left: 60%;
  background: var(--accent2);
  opacity: 0.06;
  animation: drift 25s ease-in-out infinite 3s;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -20px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 25px) scale(0.95);
  }

  75% {
    transform: translate(15px, 15px) scale(1.02);
  }
}

/* --- Project Hero --- */
.project-hero {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 0 60px;
  overflow: hidden;
}

.project-hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.project-hero-icon {
  font-size: 3.2rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: drift 6s ease-in-out infinite;
}

.project-hero h1 {
  margin-bottom: 14px;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-hero .desc {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 580px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.project-meta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-faint);
  font-weight: 500;
}

.meta-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  max-width: 75%;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-faint);
  margin-bottom: 32px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent);
}

/* --- Project Body --- */
.project-body {
  padding: 40px 0 80px;
}

/* --- Cost Summary Widget --- */
.cost-summary {
  margin-top: 32px;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.cost-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cost-summary-title span {
  font-size: 1.3rem;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cost-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.cost-currency-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.cost-row+.cost-row {
  border-top: 1px solid var(--border);
}

.cost-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 500;
}

.cost-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

.cost-row-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-hover) !important;
}

.cost-row-total .cost-label {
  color: var(--text);
  font-weight: 700;
}

.cost-row-total .cost-value {
  color: var(--accent-light);
  font-size: 1.05rem;
}

/* --- Itinerary Section --- */
.itinerary-section {
  padding: 0 24px 80px;
}

.itinerary-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.itinerary-title span {
  font-size: 1.5rem;
}

/* --- Itinerary Timeline --- */
.itinerary-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Day Card --- */
.itinerary-day-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.itinerary-day-card:hover {
  border-color: var(--amber-glow);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--amber-glow);
  transform: translateY(-2px);
}

.itinerary-day-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 12px;
  background: rgba(245, 158, 11, 0.06);
  border-right: 1px solid var(--border);
}

.itinerary-day-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.itinerary-day-date {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.3;
}

/* --- Day Content --- */
.itinerary-day-content {
  padding: 24px 28px;
  position: relative;
}

.itinerary-day-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  padding-right: 40px;
}

.itinerary-day-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* --- Highlights (Activities) --- */
.itinerary-day-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.itinerary-day-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: var(--text-muted);
  transition: all var(--transition);
}

.itinerary-day-highlight:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.itinerary-day-highlight-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* --- Itinerary Detailed Card Metadata --- */
.itinerary-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.itinerary-meta-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-muted);
  line-height: 1.5;
}

.itinerary-meta-label {
  font-weight: 700;
  color: var(--text-faint);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.itinerary-meta-value {
  color: var(--text);
  word-break: break-word;
}

.itinerary-meta-value a {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 600;
}

.itinerary-meta-value a:hover {
  text-decoration: underline !important;
}

/* --- Price Badges --- */
.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}

.lodging-price {
  background: var(--green-surface);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--green);
}

.transit-price {
  background: var(--blue-surface);
  border: 1px solid rgba(79, 195, 247, 0.2);
  color: var(--blue);
}

/* --- Memories Section --- */
.memories-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--accent-glow);
}

.memories-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 10px rgba(165, 151, 255, 0.25);
  letter-spacing: 0.02em;
}

.memory-card {
  background: rgba(124, 106, 247, 0.12);
  border: 1px solid rgba(165, 151, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(124, 106, 247, 0.05);
}

.memory-card.editing {
  padding-right: 74px;
}

.memory-card:hover {
  border-color: rgba(165, 151, 255, 0.55);
  background: rgba(124, 106, 247, 0.2);
  box-shadow: 0 6px 20px rgba(124, 106, 247, 0.22);
  transform: translateY(-1.5px);
}

[data-theme="light"] .memory-card {
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
}

[data-theme="light"] .memory-card:hover {
  background: rgba(108, 92, 231, 0.14);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.12);
}

.memory-content {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}

.memory-time {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 6px;
}

.memory-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--accent-light);
  background: rgba(124, 106, 247, 0.15);
  border: 1px solid rgba(165, 151, 255, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}

.memory-location-badge:hover {
  background: rgba(124, 106, 247, 0.25);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 8px rgba(124, 106, 247, 0.2);
}

[data-theme="light"] .memory-location-badge {
  color: var(--accent);
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.2);
}

[data-theme="light"] .memory-location-badge:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--accent);
}

.memory-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 4px;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0.7;
}

.memory-delete:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.25);
}

.memory-edit {
  position: absolute;
  top: 10px;
  right: 38px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(124, 106, 247, 0.12);
  border-radius: 4px;
  color: var(--accent-light);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0.7;
}

.memory-edit:hover {
  opacity: 1;
  background: rgba(124, 106, 247, 0.25);
  color: var(--text);
}

}

/* --- Costs Section --- */
.costs-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(251, 191, 36, 0.2);
}

.costs-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
  letter-spacing: 0.02em;
}

.cost-item-card {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.03);
}

.cost-item-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.18);
  transform: translateY(-1.5px);
}

[data-theme="light"] .cost-item-card {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .cost-item-card:hover {
  background: rgba(245, 158, 11, 0.1);
}

.cost-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 4px;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0.7;
}

.cost-delete:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.25);
}

.cost-location-badge {
  font-size: 0.75rem;
  color: #fbbf24;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
  transition: all var(--transition);
}

.cost-location-badge:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  color: #ffffff;
}

[data-theme="light"] .cost-location-badge {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

[data-theme="light"] .cost-location-badge:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

/* --- Memory Form --- */
.memory-form {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.memory-form textarea {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  resize: vertical;
  min-height: 40px;
  max-height: 120px;
  transition: border-color var(--transition);
  outline: none;
}

.memory-form textarea::placeholder {
  color: var(--text-faint);
}

.memory-form textarea:focus {
  border-color: var(--border-hover);
}

/* --- Admin Banner --- */
.admin-banner {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 999;
  background: linear-gradient(135deg, var(--accent) 0%, #7c6af7 100%);
  background-color: var(--accent);
  padding: 6px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.admin-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-logout-btn {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  font-size: 0.75rem !important;
  padding: 3px 12px !important;
}

.admin-logout-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

/* --- Admin Modal --- */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.admin-modal-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  position: relative;
  animation: slideUp 0.3s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Custom scrollbar for modals */
.admin-modal-content::-webkit-scrollbar {
  width: 6px;
}

.admin-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.admin-modal-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.admin-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.admin-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.admin-modal-content .text-muted {
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.admin-modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* --- Starting Location Picker Custom Styles --- */
.origin-tab-btn {
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
}

.origin-tab-btn.active {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(124, 106, 247, 0.35);
}

.origin-tab-btn:hover:not(.active) {
  background: var(--surface);
  color: var(--text);
}

.search-result-item:hover {
  background: var(--surface-hover) !important;
  color: var(--accent-light) !important;
}

#origin-picker-map {
  z-index: 10;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.admin-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.admin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-input::placeholder {
  color: var(--text-faint);
}

/* --- Date Inputs Calendar Picker --- */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 4px;
  filter: invert(1); /* Invert standard dark icon to make it white/light in dark mode */
  opacity: 0.7;
  transition: all var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: var(--surface-hover);
  transform: scale(1.08);
}

/* In light mode, override to not invert (keep it dark/visible on light background) */
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0);
}

.admin-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #ef4444;
  margin-bottom: 16px;
}

.admin-submit-btn {
  width: 100%;
  margin-top: 16px;
}

/* --- Edit Button --- */
.edit-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.edit-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* --- Edit Form --- */
.edit-form {
  padding: 4px 0;
}

.edit-form .form-group {
  margin-bottom: 16px;
}

.edit-form .form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.edit-form input,
.edit-form textarea,
.edit-form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.edit-form input:focus,
.edit-form textarea:focus,
.edit-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.edit-form input::placeholder,
.edit-form textarea::placeholder {
  color: var(--text-faint);
}

.edit-form textarea {
  resize: vertical;
  min-height: 70px;
}

.edit-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9eb1' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

.edit-form select option {
  background: var(--bg2);
  color: var(--text);
}

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

.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* --- Activity Editor --- */
.activity-editor {
  margin-top: 4px;
}

.activity-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.activity-input {
  flex: 1;
}

.activity-delete-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
  border-radius: 6px;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.activity-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.add-activity-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  margin-top: 4px;
}

.add-activity-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  to {
    opacity: 1;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Loading --- */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 16px;
}

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

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

.loading-text {
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* --- Error --- */
.error-container {
  text-align: center;
  padding: 80px 24px;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.error-container h2 {
  margin-bottom: 8px;
}

/* --- Success Toast --- */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg2);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 3000;
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 0;
}

.footer-inner {
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-accent {
  color: var(--accent);
  font-weight: 600;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 6px;
}

.itinerary-tabs-wrapper {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hamburger {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  #hamburger-wrapper.is-logged-out {
    display: block !important;
  }

  #nav-logo.is-logged-out .logo-text {
    display: none !important;
  }

  .create-trip-placeholder-card {
    display: none !important;
  }

  #mobile-create-trip-btn.is-logged-in {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .trips-section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
  }

  .trips-section-title {
    justify-content: space-between;
    width: 100%;
  }

  .project-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-hero h1 {
    font-size: 1.85rem;
  }

  .project-meta-box {
    width: 100%;
  }

  .itinerary-day-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .itinerary-day-number {
    flex-direction: row;
    padding: 10px 16px;
    justify-content: flex-start;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .itinerary-day-content {
    padding: 20px;
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-modal-content {
    margin: 16px;
    padding: 28px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  /* --- Itinerary Tab Navigation UX (Mobile Carousel Only) --- */
  .itinerary-tabs-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .itinerary-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .itinerary-day-tab {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition);
  }

  .itinerary-day-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 10px rgba(124, 106, 247, 0.25);
  }

  /* --- Itinerary Timeline Carousel Adaptations --- */
  .itinerary-timeline {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding: 12px 4px;
    margin-top: 8px;
    align-items: stretch;
  }

  .itinerary-timeline::-webkit-scrollbar {
    display: none;
  }

  .itinerary-day-card {
    grid-template-columns: 1fr;
    flex: 0 0 85vw;
    max-width: 400px;
    scroll-snap-align: center;
    margin: 0;
    align-self: stretch;
    height: auto;
  }

  .timeline-add-day-divider {
    flex: 0 0 160px;
    height: auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(124, 106, 247, 0.2);
    background: rgba(124, 106, 247, 0.01);
    border-radius: var(--radius);
    margin: 0;
    padding: 24px;
    transition: all var(--transition);
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  .timeline-add-day-divider::before {
    display: none !important;
  }

  .timeline-add-day-divider:hover {
    border-color: var(--accent);
    background: rgba(124, 106, 247, 0.03);
    box-shadow: 0 0 15px rgba(124, 106, 247, 0.1);
  }

  .timeline-add-day-btn {
    opacity: 1;
    font-size: 0.8rem;
    padding: 8px 14px;
    border-style: solid;
  }

  /* Responsive Circular actions bar buttons on Mobile to prevent page horizontal overflow */
  .trip-actions-right .btn-text,
  .trip-actions-right #action-edit-text {
    display: none !important;
  }
  .trip-actions-right .btn {
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .trip-actions-right {
    gap: 8px !important;
  }

  /* Collapse all side-by-side grid columns inside admin modals on mobile to prevent horizontal overflow */
  .admin-modal-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .admin-modal-content {
    padding: 20px !important;
    margin: 12px !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 16px;
  }

  .project-hero {
    padding: calc(var(--nav-height) + 32px) 0 40px;
  }

  .project-hero-icon {
    font-size: 2.4rem;
  }

  .project-hero .desc {
    font-size: 0.95rem;
  }

  .tech-stack {
    gap: 6px;
  }

  .tag {
    font-size: 0.73rem;
    padding: 4px 10px;
  }

  .cost-summary {
    padding: 20px;
  }

  .itinerary-day-content h3 {
    font-size: 1rem;
  }

  .itinerary-day-highlights {
    gap: 6px;
  }

  .memory-form {
    flex-direction: column;
    align-items: stretch;
  }

  .memory-form .btn {
    width: 100%;
  }
}

/* --- Interactive Journey Map --- */
#journey-map-section {
  margin-top: 16px;
  margin-bottom: 48px;
}

.map-card-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.map-header-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.map-header-title span {
  font-size: 1.6rem;
}

.map-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.map-body {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-element {
  width: 100%;
  height: 650px;
  background: var(--bg2);
  z-index: 1;
}

/* Custom styles for Leaflet elements inside dark mode - removed for clean white background */

.leaflet-container {
  font-family: inherit !important;
  background-color: #e4e8eb !important; /* prevents dark/white flashing during zoom-out tile reloads */
}

.leaflet-bar {
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}

.leaflet-bar a {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: all var(--transition) !important;
}

.leaflet-bar a:hover {
  background-color: var(--surface-hover) !important;
  color: var(--accent-light) !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(18, 18, 30, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 4px;
}

[data-theme="light"] .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1a1a2e !important;
}

.leaflet-popup-tip {
  background: rgba(18, 18, 30, 0.92) !important;
  border: 1px solid var(--border) !important;
}

[data-theme="light"] .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.92) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  line-height: 1.6 !important;
  font-size: .98333em;
}

.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  top: 8px !important;
  right: 8px !important;
}

.leaflet-popup-close-button:hover {
  color: var(--accent) !important;
}

/* Custom Marker Styling */
.custom-leaflet-icon {
  background: transparent !important;
  border: none !important;
}

.marker-pin-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-ping-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  opacity: 0.25;
  animation: marker-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.marker-inner-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 11px;
  transition: transform var(--transition);
}

.marker-inner-dot:hover {
  transform: scale(1.15);
}

@keyframes marker-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.25;
  }

  50% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Map Legend Overlay */
.map-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(18, 18, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  z-index: 1000;
  font-size: 0.8rem;
  max-width: 260px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

[data-theme="light"] .map-legend {
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a2e;
}

/* Elegant Minimized State */
.map-legend.minimized {
  width: 44px;
  height: 44px;
  max-width: 44px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  bottom: 20px;
  right: 20px;
  left: auto !important;
  /* Prevents spanning the whole bottom width on mobile */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-legend.minimized:hover {
  transform: scale(1.1);
  background: var(--accent);
  border-color: var(--accent-light);
}

.map-legend.minimized:hover .legend-title i {
  color: #fff !important;
  transform: rotate(15deg);
}

.map-legend.minimized .legend-header {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.map-legend.minimized .legend-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 0 !important;
  /* Collapses any anonymous text/whitespace nodes to 0 */
  line-height: 0 !important;
}

.map-legend.minimized .legend-title-text {
  display: none !important;
}

.map-legend.minimized .legend-title i {
  font-size: 1.1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  transition: all 0.3s ease;
}

.map-legend.minimized .legend-toggle-btn {
  display: none !important;
}



.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  cursor: pointer;
}

.legend-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
}

.legend-toggle-btn:hover {
  color: var(--text);
}

.legend-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: max-height var(--transition), opacity var(--transition);
  overflow: hidden;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.legend-line {
  width: 20px;
  display: inline-block;
  vertical-align: middle;
}

.legend-line.line-solid {
  height: 3px;
  border-radius: 2px;
}

.legend-line.line-dashed {
  height: 0;
  border-top: 3px dashed var(--line-color, #f59e0b);
}

.legend-line.line-dotted {
  height: 0;
  border-top: 3px dotted var(--line-color, #4fc3f7);
}

/* Animations UI classes */
.btn-animation-stop {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

.btn-animation-stop:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

@media (max-width: 768px) {
  .map-card-wrapper {
    padding: 16px;
  }

  .map-element {
    height: 580px;
  }

  .map-legend {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Active day card selection styling */
.itinerary-day-card {
  cursor: pointer;
}

.itinerary-day-card.active-day {
  border-color: var(--accent) !important;
  background: rgba(124, 106, 247, 0.06) !important;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent) !important;
}

/* --- Split-Screen Map Explorer Sidebar --- */
.map-explorer-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.map-sidebar {
  display: none;
  /* Hidden by default on mobile/tablet */
}

/* On Desktop Screens */
@media (min-width: 992px) {
  .map-explorer-layout {
    flex-direction: row;
    align-items: stretch;
    height: 720px;
  }

  .map-sidebar {
    display: block;
    width: 320px;
    flex-shrink: 0;
    background: rgba(18, 18, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  [data-theme="light"] .map-sidebar {
    background: rgba(255, 255, 255, 0.6);
  }

  .map-sidebar-timeline {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
  }

  /* Scrollbar for Map Sidebar */
  .map-sidebar-timeline::-webkit-scrollbar {
    width: 5px;
  }

  .map-sidebar-timeline::-webkit-scrollbar-track {
    background: transparent;
  }

  .map-sidebar-timeline::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }

  .map-sidebar-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
  }

  .map-body {
    flex: 1;
    height: 100%;
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .map-element {
    height: 100% !important;
  }
}

/* Mini Day Card styling */
.mini-day-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mini-day-card:hover {
  border-color: var(--accent) !important;
  background: #f8fafc !important;
  transform: translateX(4px);
}

.mini-day-card.active-mini-day {
  border-color: var(--accent) !important;
  border-left: 4px solid var(--accent) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px var(--accent-glow) !important;
}

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

.mini-day-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(124, 106, 247, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mini-day-date {
  font-size: 0.72rem;
  color: #64748b !important;
}

.mini-day-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b !important;
  margin: 0;
  line-height: 1.35;
}

/* Mini Day Card Meta details */
.mini-day-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.74rem;
}

.mini-meta-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #475569;
  line-height: 1.4;
}

.mini-meta-label {
  font-weight: 700;
  color: #1e293b;
  flex-shrink: 0;
}

.mini-meta-value {
  color: #334155;
  word-break: break-word;
}

.mini-card-link {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 600;
}

.mini-card-link:hover {
  text-decoration: underline !important;
}

.mini-card-ticket-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  font-weight: 700;
  color: var(--accent) !important;
  background: rgba(124, 106, 247, 0.08);
  border: 1px solid rgba(124, 106, 247, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  text-decoration: none !important;
  transition: all var(--transition);
}

.mini-card-ticket-link:hover {
  background: rgba(124, 106, 247, 0.15);
  transform: translateY(-0.5px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mini Day Card Highlights/Activities */
.mini-day-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mini-day-highlight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309 !important;
  transition: all var(--transition);
}

.mini-day-highlight:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.mini-day-highlight-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}

/* Elegant App Footer */
.app-footer {
  width: 100%;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 30, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 80px;
  text-align: center;
  position: relative;
  z-index: 10;
}

[data-theme="light"] .app-footer {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.app-footer span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-faint) !important;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  display: inline-block;
  cursor: pointer;
}

.app-footer span:hover {
  color: var(--accent) !important;
  transform: scale(1.03) translateY(-1px);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Premium Map Header Replication */
.custom-map-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
}

.map-header-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-header-badge {
  background: var(--accent);
  /* Premium brand accent blue/violet */
  color: #ffffff !important;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(124, 106, 247, 0.2);
  display: inline-block;
}

.map-header-dates {
  font-size: 0.88rem;
  color: var(--text-faint);
  font-weight: 500;
}

.map-header-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 0 0 !important;
  letter-spacing: -0.02em;
}

.map-header-path {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 !important;
  letter-spacing: 0.02em;
}

/* Full-width elegant play button */
.btn-animate-route {
  width: 100%;
  max-width: 420px;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(124, 106, 247, 0.25);
  transition: all var(--transition);
}

.btn-animate-route:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 106, 247, 0.35);
}

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

.btn-animate-route i {
  font-size: 0.85rem;
}

.map-popup-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.map-popup-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.map-popup-toggle:hover {
  color: var(--text);
}

@media (min-width: 992px) {
  .map-popup-toggle {
    display: inline-flex;
  }
}

/* --- Map Re-center Button --- */
.map-recenter-btn {
  position: absolute;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] .map-recenter-btn {
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a2e;
}

.map-recenter-btn i {
  font-size: 1.1rem;
  color: var(--accent-light);
  transition: color var(--transition);
}

.map-recenter-btn:hover {
  background: var(--accent);
  border-color: var(--accent-light);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(124, 106, 247, 0.4);
}

.map-recenter-btn:hover i {
  color: #ffffff;
}

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

/* Sibling positioning relative to Legend minimized/maximized state */
.map-legend.minimized+.map-recenter-btn {
  bottom: 78px;
  /* Offset just above the minimized circle (20px + 44px + 14px padding) */
}

.map-legend:not(.minimized)+.map-recenter-btn {
  bottom: 270px;
  /* Offset just above the maximized card (20px + 236px + 14px padding) */
}

.map-legend.minimized+.map-recenter-btn+.map-gps-btn {
  bottom: 136px;
  /* Offset 58px above the recenter button in minimized state */
}

.map-legend:not(.minimized)+.map-recenter-btn+.map-gps-btn {
  bottom: 328px;
  /* Offset 58px above the recenter button in maximized state */
}

/* Responsive override for mobile */
@media (max-width: 768px) {
  .map-legend.minimized+.map-recenter-btn {
    bottom: 78px;
  }

  .map-legend:not(.minimized)+.map-recenter-btn {
    bottom: 270px;
  }

  .map-legend.minimized+.map-recenter-btn+.map-gps-btn {
    bottom: 136px;
  }

  .map-legend:not(.minimized)+.map-recenter-btn+.map-gps-btn {
    bottom: 328px;
  }
}

/* --- Pulsing GPS Location Dot --- */
.gps-custom-icon {
  background: transparent !important;
  border: none !important;
}

.gps-pulsing-dot {
  width: 14px;
  height: 14px;
  background-color: #007aff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
  position: relative;
}

.gps-pulsing-dot::after {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 122, 255, 0.25);
  position: absolute;
  top: -11px;
  left: -11px;
  animation: gpsPulse 2s infinite ease-out;
}

@keyframes gpsPulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* --- Memories Leaflet Pins --- */
.memory-leaflet-icon {
  background: transparent !important;
  border: none !important;
}

.memory-pin-wrapper {
  transform: scale(0.9);
  transition: all var(--transition);
}

.memory-pin-wrapper:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.memory-inner-dot {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 0 10px var(--amber-glow) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.memory-inner-dot i {
  font-size: 0.65rem !important;
  color: #ffffff !important;
}

/* --- Homepage View & Trips Grid --- */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

.trip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  height: 100%;
  cursor: pointer;
}

.trip-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--accent-glow);
}

.trip-card-image-wrapper {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trip-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.trip-card:hover .trip-card-image {
  transform: scale(1.05);
}

.trip-card-image-fallback {
  text-align: center;
  color: var(--accent-light);
  font-size: 3.5rem;
  opacity: 0.65;
  transition: transform var(--transition);
}

.trip-card:hover .trip-card-image-fallback {
  transform: scale(1.1);
}

.trip-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(11, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trip-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.trip-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
  transition: color var(--transition);
}

.trip-card:hover .trip-card-title {
  color: var(--accent-light);
}

.trip-card-dates {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trip-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.trip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.trip-card-origin {
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Support Page Components --- */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-glow);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--accent-glow);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  transition: color var(--transition);
}

.project-card:hover h3 {
  color: var(--accent-light);
}

.project-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.project-card .arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.1rem;
  color: var(--text-faint);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.3s ease;
}

.project-card:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent-light);
}

.project-card-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Premium Auth & Sharing UI --- */
.auth-container {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  box-shadow: 0 0 10px rgba(124, 106, 247, 0.25);
  transition: all var(--transition);
}

.user-avatar:hover {
  transform: scale(1.08);
  border-color: var(--accent2);
}

.user-profile-menu .logout-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  height: 28px;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.user-profile-menu .logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.private-barrier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 500px;
  margin: 120px auto;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.private-barrier-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}

.pulse-icon {
  display: inline-block;
  animation: pulse-grow 2s infinite;
}

@keyframes pulse-grow {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.share-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.share-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-faint);
}

/* Floating Actions & Buttons UI fixes */
.admin-banner-actions .btn {
  font-size: 0.72rem;
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.btn-xs {
  font-size: 0.72rem;
  height: 28px;
  padding: 0 10px;
}

/* --- Hamburger Action Dropdown --- */
.dropdown-menu-list {
  animation: slideDownMenu 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted) !important;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(124, 106, 247, 0.1) !important;
  color: var(--text) !important;
  padding-left: 18px;
  /* Micro-interaction reveal */
}

.dropdown-item .icon {
  font-size: 0.95rem;
  opacity: 0.8;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* --- Edit Mode Exit Button Style --- */
#exit-edit-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 6px 18px !important;
  height: 32px !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#exit-edit-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5), 0 0 12px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.04);
}

#exit-edit-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

#hamburger-wrapper.is-logged-out {
  display: none;
}

#mobile-create-trip-btn {
  display: none !important;
}

/* --- Trips Section Header & Title styling --- */
.trips-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}

.trips-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.trip-count-badge {
  font-size: 0.9rem;
  color: var(--text-faint);
  font-weight: 400;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  white-space: nowrap;
}

/* --- Trip Card Role Badges --- */
.trip-card-role-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all var(--transition);
  background: #11111b !important;
  /* Completely opaque dark base to prevent clashing with background images */
}

.role-owner {
  border: 1px solid #7c6af7 !important;
  color: #a597ff !important;
  box-shadow: 0 0 12px rgba(124, 106, 247, 0.25) !important;
}

.role-collaborator {
  border: 1px solid #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2) !important;
}

.role-viewer {
  border: 1px solid #4fc3f7 !important;
  color: #4fc3f7 !important;
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.2) !important;
}

.role-public {
  border: 1px solid #f59e0b !important;
  color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
}

/* --- Dynamic Hero Badges & Action Buttons --- */
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 24px;
  align-items: center;
}

.hero-dates-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent-light);
  background: rgba(124, 106, 247, 0.12);
  border: 1px solid rgba(124, 106, 247, 0.35);
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(124, 106, 247, 0.08);
}

.hero-dates-pill i {
  font-size: 0.95rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Visibility status pills */
.hero-pill.pill-public {
  background: rgba(52, 211, 153, 0.1) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  color: #34d399 !important;
}

.hero-pill.pill-private {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #ef4444 !important;
}

/* Route type pills */
.hero-pill.pill-round {
  background: rgba(79, 195, 247, 0.1) !important;
  border: 1px solid rgba(79, 195, 247, 0.35) !important;
  color: #4fc3f7 !important;
}

.hero-pill.pill-oneway {
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #f59e0b !important;
}

/* Custom Select Pill style for interactive visibility dropdown */
.hero-pill.hero-pill-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2334d399' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 16px !important;
  padding-right: 24px !important;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
}

.hero-pill.hero-pill-select.pill-private {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ef4444' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
}

.hero-pill.hero-pill-select option {
  background: var(--bg2);
  color: var(--text);
  font-weight: normal;
}

/* Interactive checkbox switches inside the hero edit mode */
.hero-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(124, 106, 247, 0.1);
  border: 1px solid rgba(124, 106, 247, 0.35);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
}

.hero-pill-toggle:hover {
  background: rgba(124, 106, 247, 0.18);
  border-color: rgba(124, 106, 247, 0.5);
  transform: scale(1.03);
}

.hero-pill-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
  margin: 0;
}

/* --- Glassmorphic Hero Action Buttons --- */
.btn-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  height: 34px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all var(--transition) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.btn-glass-active {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  height: 34px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all var(--transition) !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3) !important;
}

.btn-glass-active:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5) !important;
}

/* Custom color modifiers for glass buttons */
.btn-glass-edit {
  background: rgba(124, 106, 247, 0.12) !important;
  border: 1px solid rgba(124, 106, 247, 0.4) !important;
  color: #c3baff !important;
  box-shadow: 0 4px 15px rgba(124, 106, 247, 0.1) !important;
}

.btn-glass-edit:hover {
  background: rgba(124, 106, 247, 0.22) !important;
  border-color: rgba(124, 106, 247, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(124, 106, 247, 0.25) !important;
}

.btn-glass-share {
  background: rgba(52, 211, 153, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  color: #34d399 !important;
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.1) !important;
}

.btn-glass-share:hover {
  background: rgba(52, 211, 153, 0.22) !important;
  border-color: rgba(52, 211, 153, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.25) !important;
}

.btn-glass-memory {
  background: rgba(253, 121, 168, 0.12) !important;
  border: 1px solid rgba(253, 121, 168, 0.4) !important;
  color: #ff9fb8 !important;
  box-shadow: 0 4px 15px rgba(253, 121, 168, 0.1) !important;
}

.btn-glass-cost {
  background: rgba(251, 191, 36, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  color: #fcd34d !important;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1) !important;
}

.btn-glass-cost:hover {
  background: rgba(251, 191, 36, 0.22) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25) !important;
}

/* --- Google Sign-In Container Polish --- */
#google-signin-btn,
#error-google-signin-btn,
#welcome-google-signin-btn {
  display: inline-block;
  min-height: 40px;
  vertical-align: middle;
  transition: all var(--transition) !important;
  color-scheme: dark !important;
}

#google-signin-btn:hover,
#error-google-signin-btn:hover,
#welcome-google-signin-btn:hover {
  transform: translateY(-1px) !important;
}

/* Force browser to render Google iframe background transparently under dark-mode user-agent */
#google-signin-btn iframe,
#error-google-signin-btn iframe,
#welcome-google-signin-btn iframe,
iframe {
  background: transparent !important;
  color-scheme: light !important;
}

#google-signin-btn.is-logged-in {
  display: none !important;
}

/* Crew Members in Hero */
.crew-member:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px rgba(124, 106, 247, 0.15);
  border-color: var(--accent) !important;
}

/* --- Logged Out Home View Scroll & Centering Optimization --- */
body.logged-out-home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.logged-out-home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Fallback scrolling for exceptionally small/landscape screens */
  justify-content: center;
}

body.logged-out-home #homepage-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--nav-height) + 12px) !important;
  padding-bottom: 24px !important;
  min-height: min-content;
}

body.logged-out-home .homepage-trips-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.logged-out-home .app-footer {
  margin-top: auto !important;
  padding: 16px 0 !important;
  background: transparent !important;
  border-top: none !important;
}

/* ============================================================
   Day Management UI Styles
   ============================================================ */

/* Location Selector Card Buttons in Modal */
.location-select-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.location-select-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.location-select-box.active {
  background: rgba(124, 106, 247, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(124, 106, 247, 0.25);
}

.location-select-indicator {
  font-size: 1.25rem;
}

.location-select-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.location-select-box.active .location-select-label {
  color: var(--accent-light);
}

.location-select-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Sidebar Mini Add Day Floating Connector Divider */
.mini-add-day-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin: 6px 0;
  position: relative;
  cursor: pointer;
  opacity: 0.65;
  transition: all var(--transition);
  z-index: 10;
}

.mini-add-day-btn::after {
  content: '';
  position: absolute;
  left: 32px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  transform: scaleY(1.0);
  transition: transform var(--transition);
}

.mini-add-day-btn:hover {
  opacity: 1;
}

.mini-add-day-btn i {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(124, 106, 247, 0.4);
  transform: scale(0.85);
  transition: transform var(--transition);
}

.mini-add-day-btn:hover i {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(124, 106, 247, 0.7);
}

.mini-add-day-btn:hover::after {
  transform: scaleY(1.5);
}

/* Timeline Horizontal Add Day Connector Divider */
.timeline-add-day-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 14px 0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-add-day-divider::before {
  content: '';
  position: absolute;
  left: 60px;
  right: 0;
  height: 1px;
  border-top: 1px dashed var(--border);
  opacity: 0.5;
  transition: all var(--transition);
}

.timeline-add-day-divider:hover::before {
  border-top: 1px solid var(--accent);
  opacity: 0.9;
}

.timeline-add-day-btn {
  position: relative;
  background: rgba(18, 16, 35, 0.9);
  border: 1px dashed var(--accent);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  transform: scale(1.0);
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.timeline-add-day-divider:hover {
  height: 44px;
  margin: 14px 0;
}

.timeline-add-day-divider:hover .timeline-add-day-btn {
  opacity: 1;
  border-style: solid;
  color: var(--text);
  box-shadow: 0 0 15px rgba(124, 106, 247, 0.4);
}

.timeline-add-day-btn:hover {
  background: var(--accent);
  color: #fff;
  border-style: solid;
}

@media (max-width: 768px) {
  .mini-add-day-btn {
    display: none !important;
  }
}

/* Sticky Action Header Bar below Main Nav */
.trip-actions-bar {
  position: sticky;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(18, 16, 35, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 990;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}

/* Light theme support */
[data-theme="light"] .trip-actions-bar {
  background: rgba(245, 245, 247, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.trip-actions-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 576px) {
  .trip-actions-bar {
    height: 48px;
  }
}

/* Multi-Transit Edit Mode Row Styles */
.modal-transit-row {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.modal-transit-row:hover {
  border-color: rgba(124, 106, 247, 0.25);
  background: rgba(124, 106, 247, 0.02);
}

.btn-delete-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-delete-row:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  transform: scale(1.1);
}

[data-theme="light"] .modal-transit-row {
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .modal-transit-row:hover {
  border-color: rgba(124, 106, 247, 0.2);
  background: rgba(124, 106, 247, 0.03);
}

/* Modal Activity Rows */
.modal-activity-row:hover {
  border-color: rgba(124, 106, 247, 0.25) !important;
  background: rgba(124, 106, 247, 0.02) !important;
}

[data-theme="light"] .modal-activity-row {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  background: rgba(0, 0, 0, 0.01) !important;
}

[data-theme="light"] .modal-activity-row:hover {
  border-color: rgba(124, 106, 247, 0.2) !important;
  background: rgba(124, 106, 247, 0.03) !important;
}

/* Position leaflet popups at the top center of the map container to prevent obscuring markers */
.leaflet-popup-top-fixed {
  position: absolute !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: auto !important;
  margin: 0 !important;
  z-index: 1000 !important;
}

.leaflet-popup-top-fixed .leaflet-popup-tip-container {
  display: none !important;
}

/* --- Active Travel Awareness Styles --- */
.trip-card-active-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 0;
  z-index: 15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.active-pulse-dot-white {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse-active-white 1.5s infinite ease-in-out;
}

@keyframes pulse-active-white {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Push role badge and duration badge down to avoid overlap with the top banner overlay */
.trip-card.is-active .trip-card-role-badge,
.trip-card.is-active .trip-card-badge {
  top: 38px !important;
}

.active-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-active 1.5s infinite ease-in-out;
}

@keyframes pulse-active {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* --- Active Trip Banner --- */
.trip-active-banner {
  background: rgba(13, 13, 20, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 10px 0;
  display: flex;
  align-items: center;
  z-index: 980;
  transition: all var(--transition);
  position: sticky;
  top: calc(var(--nav-height) + 52px);
  cursor: pointer;
}

.trip-active-banner:hover {
  background: rgba(13, 13, 20, 0.85);
  border-bottom-color: rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .trip-active-banner {
  background: rgba(245, 245, 247, 0.85);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .trip-active-banner:hover {
  background: rgba(240, 240, 243, 0.95);
  border-bottom-color: rgba(16, 185, 129, 0.25);
}

.active-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

.active-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-banner-text {
  font-size: 0.88rem;
  color: #a7f3d0; /* Soft green */
}

[data-theme="light"] .active-banner-text {
  color: #065f46; /* Dark green for readability in light mode */
}

.btn-active-banner-action {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1) !important;
  cursor: pointer;
}

.btn-active-banner-action:hover,
.trip-active-banner:hover .btn-active-banner-action {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2) !important;
}

@media (max-width: 576px) {
  .active-banner-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .active-banner-left {
    justify-content: center;
    width: 100%;
  }
  .btn-active-banner-action {
    width: 100%;
    justify-content: center;
  }
}

#active-day-card-container .itinerary-day-card {
  cursor: default;
  margin-top: 10px;
}

#active-day-card-container .itinerary-day-card:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

/* Fix double padding in trip details view where sticky actions bar and active banner push the hero down */
#trip-view .project-hero {
  padding-top: 60px;
}

@media (max-width: 768px) {
  #trip-view .project-hero {
    padding-top: 32px;
  }
  .trip-active-banner {
    position: relative !important;
    top: auto !important;
  }
}

