/* ── Our Partners Farmers Page Styles ────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.revealed { opacity: 1; transform: translateY(0); }

.video-wrap { position: relative; overflow: hidden; border-radius: 8px; background: #1a1a1a; }
.video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.supply-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.supply-card-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 12px; line-height: 1; }
.supply-card-title { font-size: 14px; font-weight: 700; color: var( --navy-dark); margin-bottom: 8px; }
.supply-card-text { font-size: 13.5px; color: var(--ink-light); line-height: 1.75; }

.criteria-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.criteria-item:first-child { border-top: 1px solid var(--border); }
.criteria-num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.criteria-title { font-size: 14px; font-weight: 700; color: var( --navy-dark); margin-bottom: 5px; }
.criteria-text { font-size: 13.5px; color: var(--ink-light); line-height: 1.75; }

/* ── Kenya Sourcing Map Section ───────────────────────────────────────────── */

.kenya-map-section {
  background: #0c1d14;
  overflow: hidden;
}

.kenya-map-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 640px;
}

/* ── Map panel ── */
.kenya-map-visual {
  position: relative;
  background: #0c1d14;
}

#ssg-map {
  width: 100%;
  height: 100%;
  min-height: 580px;
}

/* Google Maps UI overrides */
#ssg-map .gm-style-iw-c {
  background: #0d1f2d !important;
  border: 1px solid #aa5c26 !important;
  border-radius: 6px !important;
  padding: 0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

#ssg-map .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

#ssg-map .gm-style-iw-t::after {
  background: #aa5c26 !important;
}

#ssg-map button.gm-ui-hover-effect {
  display: none !important;
}

/* Popup content */
.map-popup {
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  min-width: 140px;
}

.map-popup strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #aa5c26;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.map-popup span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Map legend */
.map-legend {
  position: absolute;
  bottom: 24px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 31, 45, 0.88);
  border: 1px solid rgba(184, 147, 42, 0.3);
  border-radius: 6px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  pointer-events: none;
  z-index: 10;
  gap: 20px;
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #163d28;
  border: 1.5px solid rgba(184,147,42,0.4);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.map-legend-dot--active {
  background: #1d6b38;
  border-color: #aa5c26;
  box-shadow: 0 0 6px rgba(184,147,42,0.4);
}

/* ── Info panel ── */
.kenya-map-info {
  background: var(--navy-dark);
  padding: 52px 44px 52px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid rgba(184,147,42,0.15);
}

.kenya-map-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aa5c26;
  margin-bottom: 12px;
}

.kenya-map-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 14px;
}

.kenya-map-subtitle {
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* Stats row */
.kenya-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  overflow: hidden;
}

.kenya-stat {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.kenya-stat:last-child { border-right: none; }

.kenya-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #aa5c26;
  line-height: 1;
}

.kenya-stat-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  line-height: 1.35;
}

/* County list */
.kenya-county-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kenya-county-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.kenya-county-item:hover,
.kenya-county-item--active {
  background: rgba(184,147,42,0.08);
}

.kci-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d6b38;
  flex-shrink: 0;
  border: 1.5px solid rgba(184,147,42,0.5);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.kenya-county-item:hover .kci-dot,
.kenya-county-item--active .kci-dot {
  background: #aa5c26;
  box-shadow: 0 0 8px rgba(184,147,42,0.55);
  border-color: #aa5c26;
}

.kci-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  flex: 1;
  transition: color 0.18s ease;
}

.kenya-county-item:hover .kci-name,
.kenya-county-item--active .kci-name {
  color: #fff;
}

.kci-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aa5c26;
  background: rgba(184,147,42,0.12);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .kenya-map-inner {
    grid-template-columns: 1fr 340px;
  }
  .kenya-map-info {
    padding: 40px 28px;
  }
}

@media (max-width: 860px) {
  .kenya-map-inner {
    grid-template-columns: 1fr;
  }
  #ssg-map {
    min-height: 420px;
  }
  .kenya-map-info {
    border-left: none;
    border-top: 1px solid rgba(184,147,42,0.15);
    padding: 40px 28px 48px;
  }
}

@media (max-width: 540px) {
  #ssg-map { min-height: 340px; }
  .kenya-map-info { padding: 32px 20px 40px; }
  .kenya-stat-num { font-size: 1.3rem; }
  .map-legend { font-size: 10px; padding: 8px 12px; bottom: 12px; left: 12px; }
}
