/* ==========================================================================
   GREEN HORIZON — Interactive Components (Light Booklet Style)
   ========================================================================== */

/* ==========================================================================
   1. Interactive Consortium Map (Light Theme)
   ========================================================================== */
.map-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  background: #FFFFFF;
}

#consortium-map {
  width: 100%;
  height: 520px;
  background: #E8ECE9;
  z-index: 10;
}

/* Leaflet Light Customizations */
.leaflet-container {
  background-color: #E8ECE9 !important;
  font-family: var(--font-body) !important;
}

.leaflet-popup-content-wrapper {
  background: #FFFFFF !important;
  color: var(--text-main) !important;
  border: 1.5px solid var(--primary) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-hover) !important;
}

.leaflet-popup-tip {
  background: #FFFFFF !important;
  border: 1.5px solid var(--primary) !important;
}

.leaflet-popup-content {
  margin: 1.2rem !important;
  line-height: 1.5 !important;
}

.map-partner-popup h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
}

.map-partner-popup .popup-role {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--leaf-green-light);
  border: 1px solid var(--leaf-green-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.map-partner-popup a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: underline;
}

.map-partner-popup a:hover {
  color: var(--leaf-green);
}

.map-pulse-marker {
  position: relative;
}

.marker-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: absolute;
  top: 3px;
  left: 3px;
}

.marker-pulse {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(67, 160, 71, 0.4);
  animation: pulse-pin 2s infinite ease-out;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes pulse-pin {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   2. Booklet Chapter Cards & Field Checklist
   ========================================================================== */

.booklet-poster-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.booklet-poster-card:hover {
  transform: translateY(-6px);
  border-color: var(--leaf-green);
  box-shadow: var(--shadow-hover);
}

.booklet-poster-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.booklet-poster-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.booklet-chapter-pill {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.pill-ch1 {
  background: var(--leaf-green-light);
  color: var(--primary);
  border: 1px solid var(--leaf-green-border);
}

.pill-ch2 {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.pill-ch3 {
  background: var(--sky-blue-light);
  color: var(--sky-blue);
  border: 1px solid var(--sky-blue-border);
}

.pill-safety {
  background: var(--warm-orange-light);
  color: var(--warm-orange);
  border: 1px solid var(--warm-orange-border);
}

/* Interactive Checklist from Page 97 */
.field-checklist-box {
  background: #FFFFFF;
  border: 2px solid var(--leaf-green-border);
  border-radius: var(--radius-card);
  padding: 2.2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
}

.checklist-group {
  margin-bottom: 2rem;
}

.checklist-group:last-child {
  margin-bottom: 0;
}

.checklist-group-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checklist-item.checked {
  color: var(--text-light);
  text-decoration: line-through;
}

/* ==========================================================================
   3. Chronological Gantt & Timeline (Light Style)
   ========================================================================== */

.timeline-roadmap {
  position: relative;
  padding: 2rem 0;
}

.timeline-roadmap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 4px;
  background: var(--leaf-green-border);
  border-radius: var(--radius-full);
}

.timeline-milestone {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2.5rem;
}

.timeline-milestone:last-child {
  margin-bottom: 0;
}

.timeline-milestone-marker {
  position: absolute;
  top: 0;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.timeline-milestone-content {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-milestone-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   4. Documentary Series Slots & Virtual Exhibition Link Cards
   ========================================================================== */

.media-embed-slot {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.media-embed-placeholder-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1F2937;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.media-embed-placeholder-screen .play-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.media-embed-placeholder-screen .play-icon-badge svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

.media-slot-body {
  padding: 1.5rem;
  flex: 1;
}

/* Exhibition Embed Box */
.exhibition-frame-box {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.exhibition-frame-placeholder {
  min-height: 480px;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 60%, #43A047 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}
