/* Global Variables & Theme */
:root {
  --primary: #2d3748;
  --accent: #5569a8;
  --accent-alt: #4a7455;
  --bg-color: #faf6f0;
  --text-main: #2d3748;
  --text-light: #718096;
  --card-bg: #ffffff;
  --shadow-sm: 0 2px 4px rgba(45, 55, 72, 0.04);
  --shadow-md: 0 4px 12px rgba(45, 55, 72, 0.08);
  --radius: 12px;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Libre Baskerville', serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navigation */
nav {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(45, 55, 72, 0.08);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  margin-left: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-links button.active {
  color: var(--accent);
  font-weight: 700;
}

/* Hero Section */
.hero {
  padding: 80px 20px;
  background: linear-gradient(160deg, #faf6f0 0%, #f0ebe0 100%);
  border-bottom: 1px solid rgba(45, 55, 72, 0.06);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.hero-invite-img {
  width: 280px;
  max-width: 35vw;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 25px 70px rgba(45, 55, 72, 0.18), 0 8px 20px rgba(45, 55, 72, 0.1);
}

.hero-text {
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-style: italic;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-invite-img {
    width: 220px;
    max-width: 70vw;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

/* Schedule */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #ddd;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50px;
  position: relative;
  margin-bottom: 40px;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 50px;
  padding-right: 0;
  margin-left: 50%;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 50%;
  position: absolute;
  right: -10px;
  top: 0;
  border: 4px solid #fff;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
}

.timeline-content {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

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

/* Maps */
.map-container {
  height: 500px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.filters {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

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

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto;
  }
}

/* View Switcher */
.view-toggle {
  display: flex;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 4px;
}

.view-toggle button {
  background: none;
  border: none;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all 0.2s;
}

.view-toggle button.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* Map Markers */
.marker-number-icon {
  background: var(--accent);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  /* 30px container - 4px border */
  font-weight: bold;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
}

/* Photo View */
.timeline.photo-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  border: none;
  padding: 0;
}

.timeline.photo-view::after {
  content: none;
  /* Remove vertical line */
}

/* Hide the vertical line in photo view */
.timeline.photo-view::before {
  display: none;
}

.photo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
}

.photo-card:hover {
  transform: translateY(-5px);
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  height: 200px;
}

.photo-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  scrollbar-width: none;
  /* Firefox */
  height: 100%;
  background: #f4f4f4;
}

.photo-carousel::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.photo-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.photo-card-content {
  padding: 20px;
}

.photo-card-content h3 {
  margin: 5px 0;
  color: var(--primary);
}

.photo-card-content .time {
  background: var(--accent);
  color: white;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Compact View */
.timeline.compact-view {
  border: none;
  padding: 0;
}

/* Hide the vertical line in compact view */
.timeline.compact-view::before {
  display: none;
}

.compact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: white;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.compact-item .details {
  flex-grow: 1;
}

.compact-item h3 {
  margin: 0;
  font-size: 1.1rem;
}

.compact-item .time {
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
}

.compact-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}
  .compact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Playlist Section */
.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.spotify-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #1db954;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.spotify-link-inline:hover {
  background: #1ed760;
  transform: scale(1.05);
}

.spotify-link-inline svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .playlist-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.song-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.song-card:hover {
  transform: translateY(-5px);
}

/* Guide Layout - Google Maps Style */
.guide-layout {
  display: flex;
  gap: 20px;
  height: 600px;
  margin-top: 20px;
}

.guide-listings {
  flex: 0 0 380px;
  overflow-y: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px;
}

.guide-map {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 500px;
}

.listing-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.listing-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
  transform: translateX(3px);
}

.listing-card.selected {
  border-color: var(--accent);
  background: #eef1f8;
  box-shadow: 0 2px 8px rgba(85, 105, 168, 0.2);
}

.listing-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.listing-card.event-listing .listing-number {
  background: var(--accent-alt);
}

.listing-content {
  flex: 1;
  min-width: 0;
}

.listing-content h3 {
  font-size: 1rem;
  margin: 0 0 5px 0;
  color: var(--primary);
}

.listing-category {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 5px 0;
}

.listing-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

/* Custom Map Markers for Guide */
.listing-marker {
  background: none;
  border: none;
}

.marker-pin {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
}

.marker-pin.event-marker {
  background: var(--accent-alt);
}

.listing-marker.highlighted .marker-pin {
  background: var(--primary);
  transform: scale(1.3);
  z-index: 1000 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.listing-marker.highlighted .marker-pin.event-marker {
  background: var(--accent-alt);
}

/* Heart Markers for Schedule */
.heart-marker .marker-heart {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.2s ease;
}

.heart-marker .marker-heart svg {
  width: 100%;
  height: 100%;
}

.heart-marker.highlighted .marker-heart {
  transform: scale(1.3);
  z-index: 1000 !important;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

/* Schedule Listing Styles */
.listing-card.schedule-listing {
  border-left: 3px solid #dc143c;
}

.listing-card.schedule-listing:hover,
.listing-card.schedule-listing.selected {
  border-color: #dc143c;
  background: #fff5f5;
}

.listing-card.event-listing {
  border-left: 3px solid var(--accent-alt);
}

.listing-card.event-listing:hover,
.listing-card.event-listing.selected {
  border-color: var(--accent-alt);
  background: #edf3ef;
}

.heart-badge {
  background: transparent !important;
  font-size: 24px;
  line-height: 1;
}

.time-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.listing-address {
  font-size: 0.8rem;
  color: #999;
  margin: 5px 0 0 0;
  font-style: italic;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #4caf50;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.directions-link:hover {
  color: #2e7d32;
  gap: 7px;
}

.directions-link svg {
  flex-shrink: 0;
}

/* Responsive Guide Layout */
@media (max-width: 1024px) {
  .guide-layout {
    flex-direction: column;
    height: auto;
  }

  .guide-listings {
    flex: none;
    max-height: 400px;
  }

  .guide-map {
    height: 400px;
  }
}