@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(30,58,138,0.8) 0%, rgba(15,23,42,0) 100%);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

header p {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* Trip Pills */
.trip-pills {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.trip-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(30,41,59,0.6);
  color: #94a3b8;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trip-pill:hover {
  border-color: var(--pill-color, #60a5fa);
  color: var(--pill-color, #60a5fa);
  background: rgba(30,41,59,0.9);
}

.trip-pill.active {
  border-color: var(--pill-color, #60a5fa);
  color: #fff;
  background: color-mix(in srgb, var(--pill-color, #60a5fa) 25%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pill-color, #60a5fa) 30%, transparent);
}

/* Map */
#map {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* Emoji markers */
.emoji-marker {
  background: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

/* Pulse active marker */
.pulse-icon {
  background: none !important;
  border: none !important;
}

.pulse-marker {
  position: relative;
  width: 24px;
  height: 24px;
}

.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 8px #fbbf24;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 2px solid #fbbf24;
  border-radius: 50%;
  animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Carousel */
.carousel-wrapper {
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  padding: 0 3.5rem;
}

.carousel {
  position: relative;
}

.carousel-item {
  min-height: 280px;
  display: none;
  background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,0.9));
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  backdrop-filter: blur(10px);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.carousel-item p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #cbd5e1;
  font-weight: 300;
}

.carousel-item p strong {
  color: #e2e8f0;
  font-weight: 600;
}

button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(30,41,59,0.8);
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 10;
}

button.prev:hover, button.next:hover {
  background: rgba(59,130,246,0.2);
  border-color: rgba(96,165,250,0.4);
  color: #60a5fa;
  transform: translateY(-50%) scale(1.05);
}

button.prev { left: 0; }
button.next { right: 0; }

.day-counter {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 1rem 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  min-width: 70px;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148,163,184,0.15) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
}
.leaflet-popup-tip { background: #1e293b !important; }
.leaflet-popup-content b { color: #fbbf24; }

/* Mobile */
@media (max-width: 600px) {
  .carousel-wrapper { padding: 0 2.5rem; }
  .carousel-item {
  min-height: 280px; padding: 1.5rem; }
  button.prev, button.next { width: 36px; height: 36px; font-size: 1rem; }
  .stats-bar { gap: 1rem; }
  .stat-num { font-size: 1.4rem; }
  #map { height: 300px !important; margin: 0 0.5rem 1rem; border-radius: 12px; }
  .trip-pills { gap: 0.35rem; }
  .trip-pill { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
}
