/* Viking-Inspired Modern Design System */

/* Import Logo-matched fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;800;900&family=Nunito+Sans:wght@200;300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

:root {
  /* Viking Grey Color Palette */
  --norse-black: #0A0A0B;
  --iron-grey: #1C1D20;
  --steel-grey: #2D2F33;
  --storm-grey: #3E4147;
  --mist-grey: #52565E;
  --silver-grey: #6B7280;
  --ash-grey: #9CA3AF;
  --smoke-grey: #D1D5DB;
  --frost-grey: #E5E7EB;
  --ice-grey: #F3F4F6;
  --snow-white: #FAFBFC;

  /* Photography Community Colors - Nomadict Inspired */
  --primary-blue: #289dcc;  /* Nomadict vibrant blue */
  --primary-blue-light: #4cb3d4;
  --primary-blue-dark: #1e7ba3;
  --accent-blue: #60A5FA;
  --glacier-blue: #93C5FD;

  /* Nordic Blue Theme Colors */
  --fjord-blue: #1e3a5f;  /* Deep fjord blue */
  --nordic-blue: #2c5282;  /* Medium nordic blue */
  --ice-blue: #4a90e2;  /* Light ice blue */

  /* Accent Colors - Earth Tones */
  --wood-brown: #92400E;
  --leather-brown: #78350F;
  --bronze: #B45309;
  --gold: #F59E0B;

  /* Semantic Colors */
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #0891B2;

  /* Typography - Logo-matched Brand System */
  --font-display: 'Montserrat', sans-serif;  /* For hero headings - matches logo exactly */
  --font-heading: 'Montserrat', sans-serif;  /* For subheadings - consistent branding */
  --font-body: 'Inter', sans-serif;  /* For body text - highly readable */
  --font-accent: 'Lora', serif;  /* For quotes and special text */
  --font-tech: 'Nunito Sans', sans-serif;  /* For UI elements - modern complement */

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Shadows - Subtle and modern */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: var(--norse-black);
  --bg-secondary: var(--iron-grey);
  --bg-tertiary: var(--steel-grey);
  --text-primary: var(--snow-white);
  --text-secondary: var(--smoke-grey);
  --text-tertiary: var(--ash-grey);
  --border-color: var(--storm-grey);
}

/* Light Mode Variables (default) */
body {
  --bg-primary: var(--snow-white);
  --bg-secondary: var(--ice-grey);
  --bg-tertiary: var(--frost-grey);
  --text-primary: var(--norse-black);
  --text-secondary: var(--steel-grey);
  --text-tertiary: var(--mist-grey);
  --border-color: var(--smoke-grey);
}

/* Base Typography */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #2C3E50;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);  /* Reduced by ~50%: 28px to 40px */
  font-weight: 700;
  color: #2C3E50;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);  /* Reduced proportionally: 24px to 32px */
  font-weight: 700;
  color: #2C3E50;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);  /* Reduced proportionally: 20px to 24px */
  font-weight: 600;
  color: #2C3E50;
}

h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);  /* Reduced proportionally: 18px to 20px */
  font-weight: 600;
  color: #2C3E50;
}

h5 {
  font-size: clamp(1rem, 1.25vw, 1.125rem);  /* 16px to 18px */
  font-weight: 600;
  color: #2C3E50;
}

h6 {
  font-size: clamp(0.875rem, 1vw, 1rem);  /* 14px to 16px */
  font-weight: 600;
  color: #2C3E50;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Base paragraph text sizing */
p {
  font-size: clamp(0.875rem, 1vw, 1rem);  /* 14px to 16px - readable on all devices */
  line-height: 1.7;
}

/* Lead paragraph text */
.lead, p.lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);  /* 16px to 18px */
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Hero Text Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      2px 2px 4px rgba(0,0,0,0.8),
      0 0 40px rgba(255,255,255,0.1),
      0 0 60px rgba(255,255,255,0.05);
  }
  50% {
    text-shadow:
      2px 2px 4px rgba(0,0,0,0.8),
      0 0 50px rgba(255,255,255,0.2),
      0 0 80px rgba(255,255,255,0.1);
  }
}

.hero-title {
  /* Temporarily disable animation to debug visibility issue */
  /* animation: fadeInUp 1.2s ease-out, glowPulse 4s ease-in-out infinite; */
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-subtitle {
  /* Temporarily disable animation to debug visibility issue */
  /* animation: fadeInUp 1.4s ease-out 0.2s both; */
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-description {
  /* Temporarily disable animation to debug visibility issue */
  /* animation: fadeInUp 1.6s ease-out 0.4s both; */
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Ken Burns Effect for Hero Images */
@keyframes kenBurns {
  0% {
    transform: scale(1) translateX(0) translateY(0);
  }
  100% {
    transform: scale(1.1) translateX(-2%) translateY(-1%);
  }
}

.hero-ken-burns {
  animation: kenBurns 20s ease-in-out infinite alternate;
  transform-origin: center center;
}

/* Tour Card Ken Burns Effect */
@keyframes tourKenBurns {
  0% {
    transform: scale(1) translateX(0) translateY(0);
  }
  50% {
    transform: scale(1.15) translateX(-3%) translateY(-2%);
  }
  100% {
    transform: scale(1) translateX(0) translateY(0);
  }
}

@keyframes tourKenBurnsAlt {
  0% {
    transform: scale(1) translateX(0) translateY(0);
  }
  50% {
    transform: scale(1.15) translateX(3%) translateY(2%);
  }
  100% {
    transform: scale(1) translateX(0) translateY(0);
  }
}

/* Additional Image Effects for Variety */
@keyframes parallaxDrift {
  0% {
    transform: scale(1.05) translateY(0);
  }
  100% {
    transform: scale(1.1) translateY(-3%);
  }
}

@keyframes gentleRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1.08) rotate(1deg);
  }
}

@keyframes subtlePulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.1);
  }
}

@keyframes panoramicSweep {
  0% {
    transform: scale(1.2) translateX(-5%);
  }
  100% {
    transform: scale(1.2) translateX(5%);
  }
}

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

/* Image Effect Classes */
.image-parallax-drift {
  animation: parallaxDrift 25s ease-in-out infinite alternate;
  transform-origin: center center;
}

.image-gentle-rotate {
  animation: gentleRotate 30s ease-in-out infinite alternate;
  transform-origin: center center;
}

.image-subtle-pulse {
  animation: subtlePulse 18s ease-in-out infinite;
  transform-origin: center center;
}

.image-panoramic-sweep {
  animation: panoramicSweep 35s ease-in-out infinite alternate;
  transform-origin: center center;
}

.image-breathing {
  animation: breathingEffect 22s ease-in-out infinite;
  transform-origin: center center;
}

.tour-card-image {
  overflow: hidden;
}

.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: tourKenBurns 15s ease-in-out infinite;
  transform-origin: center center;
}

/* Alternate animation direction for every other card */
.tour-card:nth-child(even) .tour-card-image img {
  animation: tourKenBurnsAlt 15s ease-in-out infinite;
}

/* Speed up animation on hover */
.tour-card:hover .tour-card-image img {
  animation-duration: 8s;
  animation-name: tourKenBurns;
}

/* Parallax Scrolling Base */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-overlay {
  /* Glass Badge Component - For tour card badges */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);

  /* Usage: Replaces colored backgrounds with glassmorphism effect */
  /* Apply to: Tour card badges, overlay elements */
}

/* Enhanced Navigation with Scroll Transition */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled a {
  color: var(--steel-grey);
}

.navbar.scrolled a:hover {
  color: var(--primary-blue);
}

/* Photography-focused Grid Layouts */
.photo-grid {
  display: grid;
  gap: 1rem;
}

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

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.photo-grid-masonry {
  columns: 3;
  column-gap: 1rem;
}

.photo-grid-masonry .photo-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Mobile-optimized photo gallery */
@media (max-width: 768px) {
  .photo-grid-masonry {
    columns: 2;
  }

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

/* Mobile-optimized typography adjustments */
@media (max-width: 640px) {
  /* Ensure readable font sizes on mobile */
  body {
    font-size: 16px;  /* Prevent iOS zoom on form inputs */
  }

  /* Slightly smaller hero text on mobile for better fit */
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);  /* 28px to 40px */
    letter-spacing: 0.02em;  /* Tighter letter spacing on mobile */
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);  /* 16px to 20px */
  }

  /* Ensure minimum readable sizes */
  p {
    font-size: 1rem;  /* 16px minimum on mobile */
  }

  .btn-viking, .btn-viking-primary {
    font-size: 1rem !important;  /* Consistent button text size */
    padding: 0.75rem 1.5rem !important;  /* Adjust padding for mobile */
  }
}

/* Animated Logo Styles */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(40, 157, 204, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(40, 157, 204, 0.6));
  }
}

@keyframes foxBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.animated-logo {
  animation: logoFadeIn 1s ease-out;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.animated-logo:hover {
  animation: logoGlow 2s ease-in-out infinite;
  transform: scale(1.05);
}

/* Modern logo responsive styles */
.modern-logo {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modern-logo:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Logo responsive breakpoints */
@media (max-width: 768px) {
  .modern-logo {
    height: 2rem !important; /* 32px on mobile */
  }

  .navbar .modern-logo {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .modern-logo {
    height: 1.75rem !important; /* 28px on small mobile */
  }

  .navbar .modern-logo {
    max-width: 160px;
  }
}

/* Duplicate heading styles removed - see lines 105-120 for h2, h3, h4 definitions */

/* Navigation Updates */
.navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  color: var(--steel-grey);
  transition: color var(--transition-base);
}

.navbar a:hover {
  color: var(--primary-blue);
}

/* Viking-Style Buttons */
.btn-viking {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--steel-grey) 0%, var(--iron-grey) 100%);
  color: var(--snow-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-viking::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-slow);
}

.btn-viking:hover::before {
  left: 100%;
}

.btn-viking:hover {
  /* Removed transform to prevent z-index stacking issues */
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--storm-grey) 0%, var(--steel-grey) 100%);
}

.btn-viking-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-color: var(--primary-blue);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(40, 157, 204, 0.3);
}

.btn-viking-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  box-shadow: 0 6px 20px rgba(40, 157, 204, 0.4);
  /* Removed transform to prevent z-index stacking issues */
}

/* Ensure buttons are visible but stay below navbar */
.btn-viking, .btn-viking-primary {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  position: relative !important;
  z-index: 1 !important; /* Force low z-index to stay below navbar */
  min-width: 150px !important;
  min-height: 50px !important;
  color: white !important;
  background-color: #289dcc !important;
  border: 2px solid #289dcc !important;
  text-decoration: none !important;
  padding: 12px 32px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* Ensure flex container doesn't hide buttons */
.flex.flex-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  justify-content: center !important;
  align-items: center !important;
}

@media (min-width: 640px) {
  .sm-flex-row {
    flex-direction: row !important;
  }
}

/* Card Styles */
.card-viking {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card-viking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fjord-blue), var(--nordic-blue), var(--ice-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card-viking:hover::before {
  transform: scaleX(1);
}

.card-viking:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--nordic-blue);
}

/* Hero Section Styles */
.hero-viking {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-viking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(28, 29, 32, 0.3) 0%,
    rgba(28, 29, 32, 0.5) 50%,
    rgba(28, 29, 32, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--snow-white);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);  /* Reduced: 32px to 56px - still prominent but reasonable */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);  /* Reduced: 18px to 24px - readable on all devices */
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tour Card Component - Design System */
.tour-card {
  /* Base Styles */
  background: white;
  border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  cursor: pointer;

  /* Transitions & Animations */
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);

  /* Border */
  border: 1px solid transparent;
}

.tour-card:hover {
  /* Enhanced Hover State */
  transform: translateY(-8px); /* hover:-translate-y-2 equivalent */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
  border-color: var(--primary-blue);
}

.tour-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

/* Image styles moved to Ken Burns section above */

.tour-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(28, 29, 32, 0.9);
  color: var(--snow-white);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.tour-card-content {
  padding: 1.5rem;
}

.tour-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tour-card-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tour-card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--nordic-blue);
}

/* Remove all purple/indigo colors and replace with greys */
.bg-gradient-to-br {
  background: linear-gradient(135deg, var(--iron-grey) 0%, var(--steel-grey) 100%) !important;
}

.from-indigo-50, .from-purple-50 {
  --tw-gradient-from: var(--ice-grey) !important;
}

.to-purple-50 {
  --tw-gradient-to: var(--frost-grey) !important;
}

.text-indigo-600, .text-purple-600 {
  color: var(--nordic-blue) !important;
}

.bg-indigo-600, .bg-purple-600 {
  background-color: var(--fjord-blue) !important;
}

.hover\:bg-indigo-700:hover, .hover\:bg-purple-700:hover {
  background-color: var(--nordic-blue) !important;
}

/* Update gradient borders */
.card-gradient-border {
  background: linear-gradient(135deg, var(--fjord-blue), var(--nordic-blue));
  padding: 2px;
  border-radius: 0.75rem;
}

/* View Toggle Styles */
.view-toggle-container {
  background: rgba(243, 244, 246, 1);
  border-radius: 0.5rem;
  padding: 0.25rem;
  display: inline-flex;
}

.view-toggle-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  outline: none;
}

.view-toggle-btn.active {
  background: white;
  color: rgb(17, 24, 39);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.view-toggle-btn.inactive {
  color: rgb(107, 114, 128);
  background: transparent;
}

.view-toggle-btn.inactive:hover {
  color: rgb(17, 24, 39);
}

/* Map and Card View Transitions */
#card-view, #map-view {
  transition: opacity 0.3s ease-in-out;
}

#card-view.hidden, #map-view.hidden {
  display: none !important;
}

/* Ensure map container has proper sizing */
#tours-map {
  min-height: 700px;
  width: 100%;
  position: relative;
}

/* Custom world map animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(-1deg);
  }
  66% {
    transform: translateY(5px) rotate(1deg);
  }
}

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

@keyframes pinGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-map-pulse {
  animation: mapPulse 3s ease-in-out infinite;
}

.tour-pin:hover .pin-marker {
  animation: pinGlow 1s ease-in-out infinite;
}

/* Tour pin styling */
.tour-pin {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-pin:hover {
  z-index: 50;
}

.tour-pin:hover .pin-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.pin-marker {
  position: relative;
}

.pin-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0.9;
}

/* Map continent hover effects */
.text-blue-300:hover {
  fill: rgba(147, 197, 253, 0.6);
  transition: fill 0.3s ease;
}

.text-green-300:hover {
  fill: rgba(134, 239, 172, 0.6);
  transition: fill 0.3s ease;
}

.text-purple-300:hover {
  fill: rgba(196, 181, 253, 0.6);
  transition: fill 0.3s ease;
}

.text-yellow-300:hover {
  fill: rgba(253, 224, 71, 0.6);
  transition: fill 0.3s ease;
}

.text-red-300:hover {
  fill: rgba(252, 165, 165, 0.6);
  transition: fill 0.3s ease;
}

.text-pink-300:hover {
  fill: rgba(248, 180, 217, 0.6);
  transition: fill 0.3s ease;
}

/* Tour popup styling improvements */
.mapboxgl-popup-content {
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border: none !important;
  padding: 0 !important;
}

.mapboxgl-popup-tip {
  border-top-color: white !important;
}

.mapboxgl-popup-close-button {
  font-size: 20px !important;
  padding: 5px !important;
  color: rgb(107, 114, 128) !important;
}

.mapboxgl-popup-close-button:hover {
  background: rgba(243, 244, 246, 1) !important;
  color: rgb(17, 24, 39) !important;
}

/* Role Switcher Component Styles */
.role-switcher-component {
  position: relative;
}

/* Role badge gradient backgrounds */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-fjord-blue { --tw-gradient-from: var(--fjord-blue); }
.to-nordic-blue { --tw-gradient-to: var(--nordic-blue); }
.from-bronze { --tw-gradient-from: var(--bronze); }
.to-gold { --tw-gradient-to: var(--gold); }
.from-success { --tw-gradient-from: var(--success); }
.to-info { --tw-gradient-to: var(--info); }
.from-steel-grey { --tw-gradient-from: var(--steel-grey); }
.to-silver-grey { --tw-gradient-to: var(--silver-grey); }
.from-ice-blue { --tw-gradient-from: var(--ice-blue); }
.to-glacier-blue { --tw-gradient-to: var(--glacier-blue); }

/* Role badge colors */
.text-ice-blue { color: var(--ice-blue); }
.text-fjord-blue { color: var(--fjord-blue); }
.text-bronze { color: var(--bronze); }
.text-success { color: var(--success); }
.text-steel-grey { color: var(--steel-grey); }

.border-ice-blue { border-color: var(--ice-blue); }
.border-fjord-blue { border-color: var(--fjord-blue); }
.border-bronze { border-color: var(--bronze); }
.border-success { border-color: var(--success); }
.border-steel-grey { border-color: var(--steel-grey); }

/* Role switcher animations */
.role-switcher-dropdown {
  animation: slideDown var(--transition-base);
}

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

/* Role switch notification styles */
.role-switch-notification {
  animation: slideInRight var(--transition-base);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Role suggestion banner */
.role-suggestion-banner {
  animation: slideUp var(--transition-slow);
}

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

/* Hover effects for role items */
.role-switcher-item:hover {
  transform: translateX(4px);
  transition: transform var(--transition-fast);
}

/* Active role indicator */
.role-active-indicator {
  position: relative;
}

.role-active-indicator::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: currentColor;
  border-radius: 2px;
}

/* ========== Profile Form Styling ========== */

/* Profile form layout */
.photographer-profile-form {
  font-family: var(--font-body);
  color: var(--iron-grey);
}

/* Profile form sections */
.profile-section {
  background: var(--snow-white);
  border: 1px solid var(--frost-grey);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.profile-section:hover {
  border-color: var(--ice-blue);
  box-shadow: var(--shadow-sm);
}

.section-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--iron-grey);
  margin: 0;
}

.section-header p {
  color: var(--silver-grey);
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
}

/* Form field styling */
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--frost-grey);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--iron-grey);
  background-color: var(--snow-white);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(40, 157, 204, 0.1);
}

.form-input:hover, .form-textarea:hover, .form-select:hover {
  border-color: var(--ice-blue);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--ash-grey);
}

/* Form group styling */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-tech);
  font-weight: 500;
  color: var(--steel-grey);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.form-group label .required {
  color: var(--danger);
  font-weight: 600;
}

/* Multi-select grids */
.specialization-grid, .software-grid, .language-grid {
  display: grid;
  gap: var(--space-sm);
}

.specialization-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.software-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.language-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Checkbox and radio button containers */
.specialization-grid label,
.software-grid label,
.language-grid label {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--frost-grey);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: var(--snow-white);
  font-weight: 400;
  margin-bottom: 0;
}

.specialization-grid label:hover,
.software-grid label:hover,
.language-grid label:hover {
  border-color: var(--ice-blue);
  background-color: var(--ice-grey);
}

.specialization-grid input:checked + label,
.software-grid input:checked + label,
.language-grid input:checked + label,
.specialization-grid label.selected,
.software-grid label.selected,
.language-grid label.selected {
  border-color: var(--primary-blue);
  background-color: rgba(40, 157, 204, 0.1);
  color: var(--primary-blue-dark);
}

/* Custom checkbox styling */
.form-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary-blue);
  border-radius: var(--radius-sm);
  border: 2px solid var(--ash-grey);
  transition: all var(--transition-fast);
}

.form-checkbox:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.form-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 157, 204, 0.2);
}

/* Radio button styling */
.experience-radio label {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  border: 2px solid var(--frost-grey);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-sm);
}

.experience-radio label:hover {
  border-color: var(--ice-blue);
  background-color: var(--ice-grey);
}

.experience-radio input:checked + .radio-content,
.experience-radio label.selected {
  border-color: var(--primary-blue);
  background-color: rgba(40, 157, 204, 0.1);
}

/* Dynamic field lists */
.dynamic-field-list {
  border: 1px solid var(--frost-grey);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background-color: var(--ice-grey);
}

.dynamic-field-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.dynamic-field-item:last-child {
  margin-bottom: 0;
}

.dynamic-field-item input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--smoke-grey);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* Button styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-tech);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 2.5rem;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 157, 204, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--steel-grey);
  border-color: var(--ash-grey);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--ice-grey);
  border-color: var(--silver-grey);
}

.btn-icon {
  padding: var(--space-sm);
  min-height: auto;
  width: 2rem;
  height: 2rem;
}

.btn-icon-sm {
  width: 1.5rem;
  height: 1.5rem;
  padding: var(--space-xs);
}

/* Progress indicator */
.progress-indicator {
  background-color: var(--ice-grey);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: var(--frost-grey);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--ice-blue) 100%);
  border-radius: var(--radius-sm);
  transition: width var(--transition-slow);
}

/* Profile photo section */
.profile-photo-section {
  background: linear-gradient(135deg, rgba(40, 157, 204, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
  border: 2px solid rgba(40, 157, 204, 0.2);
}

/* Form actions */
.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--frost-grey);
}

/* Collapsible sections */
.collapsible-header {
  cursor: pointer;
  user-select: none;
}

.collapsible-header:hover .collapsible-icon {
  color: var(--primary-blue);
}

.collapsible-icon {
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.collapsible-content {
  overflow: hidden;
}

/* Conditional fields (Alpine.js) */
[x-cloak] {
  display: none !important;
}

/* Auto-save status */
.auto-save-status {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--silver-grey);
}

.auto-save-status.saving {
  color: var(--info);
}

.auto-save-status.saved {
  color: var(--success);
}

.auto-save-status.error {
  color: var(--danger);
}

/* Tooltips */
.tooltip {
  position: absolute;
  z-index: 50;
  max-width: 250px;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--iron-grey);
  color: var(--snow-white);
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

/* Error messaging */
.error-message {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: var(--space-xs);
  font-weight: 500;
}

/* Help text */
.help-text {
  color: var(--silver-grey);
  font-size: 0.8125rem;
  margin-top: var(--space-xs);
  line-height: 1.4;
}

/* Field validation states */
.field-valid input, .field-valid textarea, .field-valid select {
  border-color: var(--success);
}

.field-invalid input, .field-invalid textarea, .field-invalid select {
  border-color: var(--danger);
}

.field-warning input, .field-warning textarea, .field-warning select {
  border-color: var(--warning);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .specialization-grid, .software-grid {
    grid-template-columns: 1fr;
  }

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

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .profile-section {
    margin-bottom: var(--space-md);
  }
}

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

  .dynamic-field-item {
    flex-direction: column;
    align-items: stretch;
  }

  .dynamic-field-item input {
    margin-bottom: var(--space-xs);
  }
}

/* Loading states */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid var(--frost-grey);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 1s ease-in-out infinite;
}

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

/* Drag and drop styling */
.file-upload-area {
  border: 2px dashed var(--ash-grey);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-fast);
}

.file-upload-area.drag-over {
  border-color: var(--primary-blue);
  background-color: rgba(40, 157, 204, 0.05);
}

/* Notification styling */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 24rem;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-weight: 500;
  animation: slideInNotification var(--transition-normal) ease-out;
}

@keyframes slideInNotification {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.success {
  background-color: var(--success);
  color: white;
}

.notification.error {
  background-color: var(--danger);
  color: white;
}

.notification.info {
  background-color: var(--info);
  color: white;
}

/* ==========================================================================
   Dashboard Specific Styles
   ========================================================================== */

/* Dashboard Cards */
.dashboard-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.dashboard-card:hover::before {
    left: 100%;
}

/* Metric Cards Animation */
.metric-card {
    animation: slideInUp 0.5s ease-out;
}

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

/* Progress Bars */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Status Badges */
.status-badge {
    animation: fadeIn 0.3s ease-out;
}

/* Role-Specific Colors */
.role-traveler {
    background: linear-gradient(135deg, var(--fjord-blue), var(--nordic-blue));
}
.role-organizer {
    background: linear-gradient(135deg, var(--nordic-blue), #2563eb);
}
.role-photographer {
    background: linear-gradient(135deg, #9333ea, #a855f7);
}
.role-guide {
    background: linear-gradient(135deg, #059669, #10b981);
}
.role-crew {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
}

/* Dashboard Grid Animations */
.dashboard-grid > * {
    animation: fadeInUp 0.5s ease-out backwards;
}

.dashboard-grid > *:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid > *:nth-child(2) { animation-delay: 0.2s; }
.dashboard-grid > *:nth-child(3) { animation-delay: 0.3s; }
.dashboard-grid > *:nth-child(4) { animation-delay: 0.4s; }

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

/* Interactive Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Availability Calendar Styles */
.availability-day {
    transition: all 0.2s ease;
}

.availability-day:hover {
    transform: scale(1.1);
    z-index: 10;
}

.availability-day.available {
    background-color: #10b981;
    color: white;
}

.availability-day.booked {
    background-color: #ef4444;
    color: white;
}

.availability-day.partial {
    background-color: #f59e0b;
    color: white;
}

/* Dashboard Sidebar Cards */
.dashboard-sidebar .card {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dashboard-sidebar .card:hover {
    border-left-color: var(--fjord-blue);
    transform: translateX(5px);
}

/* Quick Action Cards */
.quick-action {
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-action:hover {
    background: linear-gradient(135deg, var(--ice-blue), var(--snow-white));
    transform: translateX(5px);
}

/* Tour Performance Cards */
.tour-performance-card {
    position: relative;
    overflow: hidden;
}

.tour-performance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fjord-blue), var(--nordic-blue), var(--ice-blue));
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}
