/* Safari Calendar & Wildlife Encyclopedia */
.sp-hero {
  background: linear-gradient(135deg, rgba(18, 62, 47, 0.92), rgba(10, 40, 30, 0.97)),
    url('../img/hero_tanzania_home.png') center/cover no-repeat;
  padding: 4rem 0 3rem;
  color: #fff;
}
.sp-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.sp-section { padding: 3rem 0; }
.sp-section-title {
  font-weight: 800;
  color: var(--ce-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--ce-accent);
  padding-left: 1rem;
}
.sp-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); }
#safariMap { height: 420px; border-radius: 16px; z-index: 1; }
.ce-map-pin-wrap { background: transparent !important; border: none !important; }
.ce-map-pin {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  border: 2px solid #fff;
}
.ce-map-pin span {
  transform: rotate(45deg);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0;
}
.ce-map-pin-beach { border-radius: 50%; transform: none; background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; }
.ce-map-pin-beach span { transform: none; font-size: 9px; }
.ce-map-pin-migration {
  width: 44px; height: 44px; border-radius: 50%;
  transform: none;
  background: linear-gradient(135deg, #c9a55b, #f59e0b) !important;
  border: 3px solid #fff;
  animation: ce-pulse 2s ease-in-out infinite;
}
.ce-map-pin-migration span { transform: none; font-size: 18px; line-height: 1; }
@keyframes ce-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 165, 91, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(201, 165, 91, 0); }
}
.ce-map-popup { min-width: 180px; }
.ce-map-popup p { margin: 0.35rem 0; font-size: 0.85rem; line-height: 1.45; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.month-grid-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.month-btn {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.9rem;
}
.month-btn:hover, .month-btn.active {
  border-color: var(--ce-primary);
  background: #f0fdf4;
  color: var(--ce-primary);
}
.month-detail-panel {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #86efac;
  margin-top: 1.5rem;
}
.crowd-bar { height: 8px; border-radius: 4px; background: #e5e7eb; overflow: hidden; }
.crowd-fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
.crowd-1 { background: #22c55e; width: 25%; }
.crowd-2 { background: #84cc16; width: 50%; }
.crowd-3 { background: #f59e0b; width: 75%; }
.crowd-4 { background: #ef4444; width: 100%; }
.price-badge { display: inline-block; font-weight: 700; letter-spacing: 0.1em; color: var(--ce-primary); }
.timeline-migration { position: relative; padding-left: 2rem; }
.timeline-migration::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--ce-primary), var(--ce-accent));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--ce-accent);
  border: 2px solid var(--ce-primary);
  border-radius: 50%;
}
.timeline-item.active::before { background: var(--ce-primary); box-shadow: 0 0 0 4px rgba(18, 62, 47, 0.2); }
.park-card-map { cursor: pointer; }
.park-card-map.active { border-color: var(--ce-primary); background: #f0fdf4; }
.weather-chart-bar { display: flex; align-items: flex-end; gap: 4px; height: 100px; }
.weather-chart-bar span {
  flex: 1;
  background: var(--ce-primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  min-height: 4px;
  transition: height 0.3s, opacity 0.3s;
}
.weather-chart-bar span.active { opacity: 1; background: var(--ce-accent); }
.wildlife-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.wildlife-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wildlife-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); color: inherit; }
.wildlife-card-img { height: 200px; position: relative; overflow: hidden; }
.wildlife-card-img-3d {
  background: linear-gradient(145deg, #e8f5e9 0%, #f0fdf4 40%, #ecfdf5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wildlife-3d-icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}
.wildlife-card:hover .wildlife-3d-icon { transform: scale(1.08); }
.wildlife-card-title-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(18,62,47,0.85));
  color: #fff;
}
.wildlife-animal-hero {
  background: linear-gradient(135deg, rgba(18,62,47,0.95), rgba(10,40,30,0.98));
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.wildlife-hero-3d {
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
}
.wildlife-article-wrap { clear: both; }
.wildlife-article-main { min-width: 0; }
.wildlife-article-sidebar { min-width: 0; }
.wildlife-article-section { margin-bottom: 2.5rem; clear: both; }
.wildlife-prose {
  color: #374151;
  line-height: 1.85;
  font-size: 1.02rem;
  margin-bottom: 0;
}
.wildlife-prose li { margin-bottom: 0.5rem; }
.wildlife-visit-card { background: #f0fdf4 !important; border-color: #86efac !important; text-align: center; }
.wildlife-more-section { clear: both; padding-bottom: 2rem; }
.wildlife-more-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.wildlife-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  text-decoration: none;
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 600;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.wildlife-pill:hover {
  border-color: var(--ce-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: var(--ce-primary);
}
.wildlife-pill img { flex-shrink: 0; }
.wildlife-pill-all {
  background: var(--ce-primary);
  color: #fff !important;
  border-color: var(--ce-primary);
}
.wildlife-pill-all:hover { background: #0a241b; color: #fff !important; }
.animal-map-box,
#animalMap {
  height: 260px;
  width: 100%;
  border-radius: 12px;
  z-index: 1;
  position: relative;
}
.wildlife-page .sp-card { height: auto; }
.wildlife-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}
.wildlife-article-wrap .row { align-items: flex-start !important; }
.wildlife-place-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--ce-primary);
}
.wildlife-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wildlife-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}
.wildlife-emoji-card { font-size: 5rem; }
.wildlife-emoji-hero { font-size: 6.5rem; }
.wildlife-emoji-pill { font-size: 1.4rem; }
.wildlife-card-img .wildlife-icon-wrap { width: 100%; height: 100%; }
.wildlife-pill-emoji { flex-shrink: 0; line-height: 1; }
.wildlife-pill-label { line-height: 1.2; }
.package-link-item:last-of-type { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 1rem !important; }
.wildlife-card-body { padding: 1.25rem; }
.wildlife-cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.animal-hero {
  min-height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.animal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(10, 40, 30, 0.95));
}
.animal-hero-content { position: relative; z-index: 2; color: #fff; padding: 3rem 0 2rem; }
.facts-table td:first-child { font-weight: 700; color: var(--ce-primary); width: 40%; }
.sighting-meter { height: 10px; border-radius: 5px; background: #e5e7eb; }
.sighting-meter-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #f59e0b, #22c55e); }
@media (max-width: 768px) {
  #safariMap { height: 300px; }
  .animal-map-box, #animalMap { height: 220px; }
}
