/* Visit Cameroon Interactive Map
   Font controls: change these clamp() variables first. */
.vcm-widget {
  --vcm-max-width: 1500px;
  --vcm-title-size: clamp(2.25rem, 5.2vw, 5.4rem);
  --vcm-subtitle-size: clamp(1rem, 1.35vw, 1.35rem);
  --vcm-card-title-size: clamp(1.45rem, 2.2vw, 2.45rem);
  --vcm-section-title-size: clamp(1rem, 1.25vw, 1.2rem);
  --vcm-body-size: clamp(0.95rem, 1vw, 1.08rem);
  --vcm-small-size: clamp(0.76rem, 0.85vw, 0.95rem);
  --vcm-button-size: clamp(0.82rem, 0.9vw, 1rem);
  --vcm-map-label-size: clamp(0.58rem, 0.72vw, 0.9rem);

  --vcm-green: #176b43;
  --vcm-green-dark: #0b3f2a;
  --vcm-gold: #f2b632;
  --vcm-red: #ce1126;
  --vcm-black: #111827;
  --vcm-ink: #17202a;
  --vcm-muted: #667085;
  --vcm-line: rgba(17, 24, 39, 0.14);
  --vcm-bg: #f7f4ea;
  --vcm-card: #ffffff;
  --vcm-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);

  max-width: var(--vcm-max-width);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 52px);
  color: var(--vcm-ink);
  font-family: inherit;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 182, 50, 0.18), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(23, 107, 67, 0.16), transparent 30%),
    var(--vcm-bg);
  border-radius: clamp(18px, 2vw, 34px);
  overflow: hidden;
}

.vcm-widget * { box-sizing: border-box; }

.vcm-hero {
  display: grid;
  gap: clamp(10px, 1vw, 18px);
  max-width: 1050px;
  margin-bottom: clamp(22px, 2.4vw, 42px);
}

.vcm-eyebrow {
  margin: 0;
  width: fit-content;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  background: rgba(23, 107, 67, 0.1);
  color: var(--vcm-green-dark);
  font-size: var(--vcm-small-size);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.vcm-hero h1 {
  margin: 0;
  max-width: 1100px;
  font-size: var(--vcm-title-size);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--vcm-green-dark);
}

.vcm-hero p:not(.vcm-eyebrow) {
  margin: 0;
  max-width: 840px;
  color: var(--vcm-muted);
  font-size: var(--vcm-subtitle-size);
  line-height: 1.55;
}

.vcm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 1.6vw, 26px);
}

.vcm-status {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0.68em 1em;
  border: 1px solid var(--vcm-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--vcm-muted);
  font-size: var(--vcm-small-size);
}

.vcm-tool-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vcm-tool-buttons button,
.vcm-region-list button {
  appearance: none;
  border: 1px solid var(--vcm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vcm-black);
  cursor: pointer;
  font-size: var(--vcm-button-size);
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.vcm-tool-buttons button {
  min-height: 40px;
  padding: 0.72em 1em;
}

.vcm-tool-buttons button:hover,
.vcm-region-list button:hover,
.vcm-tool-buttons button:focus-visible,
.vcm-region-list button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(23, 107, 67, 0.35);
  outline: 3px solid rgba(242, 182, 50, 0.38);
  outline-offset: 2px;
}

.vcm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, 0.78fr);
  gap: clamp(18px, 2vw, 34px);
  align-items: stretch;
}

.vcm-map-panel,
.vcm-info-panel {
  min-width: 0;
}

.vcm-map-frame {
  position: relative;
  min-height: clamp(650px, 78vh, 960px);
  height: clamp(650px, 78vh, 960px);
  border: 1px solid var(--vcm-line);
  border-radius: clamp(18px, 1.6vw, 28px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.72)),
    radial-gradient(circle at 50% 20%, rgba(23, 107, 67, 0.12), transparent 36%);
  box-shadow: var(--vcm-shadow);
  overflow: hidden;
}

.vcm-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.vcm-region-path {
  fill-rule: evenodd;
  stroke: #ffffff;
  stroke-width: 1.65;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: opacity 160ms ease, filter 160ms ease;
}

.vcm-region-path:hover,
.vcm-region-path.is-active,
.vcm-region-path:focus {
  opacity: 1;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.25));
  outline: none;
}

.vcm-region-path:not(.is-active) { opacity: 0.88; }
.vcm-region-path.is-muted { opacity: 0.48; }

.vcm-boundary-outline {
  fill: none;
  stroke: rgba(11, 63, 42, 0.7);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.vcm-region-label {
  pointer-events: none;
  font-size: var(--vcm-map-label-size);
  font-weight: 900;
  letter-spacing: 0.015em;
  fill: rgba(17, 24, 39, 0.86);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
  text-anchor: middle;
  dominant-baseline: middle;
}

.vcm-user-marker circle:first-child {
  fill: rgba(206, 17, 38, 0.20);
  stroke: rgba(206, 17, 38, 0.28);
}
.vcm-user-marker circle:last-child {
  fill: var(--vcm-red);
  stroke: #fff;
  stroke-width: 2;
}

.vcm-tooltip {
  position: absolute;
  z-index: 5;
  max-width: min(300px, 72vw);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.24);
  font-size: var(--vcm-small-size);
  line-height: 1.42;
  pointer-events: none;
}

.vcm-tooltip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--vcm-gold);
  font-size: 1.05em;
}

.vcm-map-note {
  margin: 14px 4px 0;
  color: var(--vcm-muted);
  font-size: var(--vcm-small-size);
}

.vcm-info-panel {
  display: grid;
  gap: clamp(16px, 1.4vw, 24px);
  align-content: start;
}

.vcm-selected-card,
.vcm-region-list-wrap {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--vcm-line);
  border-radius: clamp(18px, 1.5vw, 26px);
  padding: clamp(18px, 2vw, 30px);
  box-shadow: var(--vcm-shadow);
}

.vcm-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.46em 0.75em;
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.22);
  color: #83520d;
  font-size: var(--vcm-small-size);
  font-weight: 900;
}

.vcm-selected-card h2 {
  margin: 12px 0 8px;
  font-size: var(--vcm-card-title-size);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--vcm-green-dark);
}

.vcm-selected-card h3,
.vcm-region-list-wrap h3 {
  margin: clamp(16px, 1.2vw, 22px) 0 8px;
  color: var(--vcm-black);
  font-size: var(--vcm-section-title-size);
  line-height: 1.15;
}

.vcm-selected-card p {
  margin: 0;
  color: var(--vcm-muted);
  font-size: var(--vcm-body-size);
  line-height: 1.55;
}

.vcm-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: clamp(16px, 1.5vw, 22px) 0;
}

.vcm-meta-grid div {
  padding: 12px;
  border: 1px solid var(--vcm-line);
  border-radius: 16px;
  background: #fff;
}

.vcm-meta-grid strong,
.vcm-meta-grid span {
  display: block;
}

.vcm-meta-grid strong {
  margin-bottom: 5px;
  color: var(--vcm-muted);
  font-size: calc(var(--vcm-small-size) * 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vcm-meta-grid span {
  color: var(--vcm-black);
  font-size: var(--vcm-small-size);
  font-weight: 900;
}

.vcm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(16px, 1.3vw, 24px);
}

.vcm-tags span {
  display: inline-flex;
  padding: 0.48em 0.72em;
  border-radius: 999px;
  background: rgba(23, 107, 67, 0.09);
  color: var(--vcm-green-dark);
  font-size: var(--vcm-small-size);
  font-weight: 800;
}

.vcm-region-list-wrap h3 {
  margin-top: 0;
}

.vcm-region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vcm-region-list button {
  width: 100%;
  min-height: 42px;
  padding: 0.85em 0.9em;
  text-align: left;
}

.vcm-region-list button.is-active {
  background: var(--vcm-green-dark);
  border-color: var(--vcm-green-dark);
  color: #fff;
}

@media (max-width: 1080px) {
  .vcm-layout {
    grid-template-columns: 1fr;
  }
  .vcm-info-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .vcm-widget {
    padding: 18px;
    border-radius: 0;
  }
  .vcm-map-frame {
    min-height: clamp(520px, 74vh, 760px);
    height: clamp(520px, 74vh, 760px);
  }
  .vcm-info-panel,
  .vcm-meta-grid,
  .vcm-region-list {
    grid-template-columns: 1fr;
  }
}

.vcm-map-error {
  position: absolute;
  inset: clamp(20px, 4vw, 60px);
  z-index: 6;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(206, 17, 38, 0.22);
  border-radius: clamp(18px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.92);
  color: var(--vcm-ink);
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.vcm-map-error strong {
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--vcm-red);
}

.vcm-map-error span {
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--vcm-body-size);
  line-height: 1.55;
  color: var(--vcm-muted);
}
