/* =========================
   VERDANT MAP SECTION
========================= */

.map-wrapper {
  position: relative;

  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  border-radius: 28px;
  overflow: visible;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.01)
    );

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 30px 80px rgba(0,0,0,0.45);
}

/* MAP IMAGE */
.verdant-map {
  width: 100%;
  display: block;
}

/* MARKER */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.map-marker:hover {
  z-index: 99999;
}

/* LABEL STACK */
.marker-label {
  display: flex;
  flex-direction: column;
  align-items: center;

  cursor: pointer;

  position: relative;
}

/* DOT */
.dot {
  width: 18px;
  height: 18px;

  border-radius: 999px;

  background:
    radial-gradient(
      circle at top left,
      #ef4444,
      #7f1d1d
    );

  border: 3px solid #fef3c7;

  box-shadow:
    0 0 15px rgba(239,68,68,0.45);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  
  opacity: 0;
}

/* LABEL */
.label-text {
  margin-top: 10px;

  color: white;

  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;

  text-shadow:
    0 2px 4px rgba(0,0,0,0.8);

  user-select: none;

  position: relative;
  z-index: 5;

  pointer-events: none;
}

/* =========================
   TOOLTIP
========================= */

.map-tooltip {
  position: absolute;

  left: 50%;
  bottom: calc(100% + 28px);

  transform:
    translateX(-50%)
    translateY(10px);

  width: 260px;

  padding: 18px;

  border-radius: 18px;

  background:
    rgba(5, 15, 9, 0.96);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(14px);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.45);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  z-index: 99999;

  pointer-events: none;
}

/* TOOLTIP ARROW */
.map-tooltip::after {
  content: "";

  position: absolute;

  top: 100%;
  left: 50%;

  transform: translateX(-50%);

  border-width: 10px;
  border-style: solid;

  border-color:
    rgba(5, 15, 9, 0.96)
    transparent
    transparent
    transparent;
}

/* TOOLTIP TITLE */
.map-tooltip h3 {
  font-size: 1.2rem;
  font-weight: 700;

  color: white;

  margin-bottom: 10px;
}

/* TOOLTIP TEXT */
.map-tooltip p {
  font-size: 0.95rem;
  line-height: 1.6;

  color: rgba(255,255,255,0.65);

  margin-bottom: 14px;
}

/* TOOLTIP BUTTON */
.map-tooltip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 11px 14px;

  border-radius: 12px;

  background:
    linear-gradient(
      to right,
      #16a34a,
      #15803d
    );

  color: white;
  text-decoration: none;

  font-size: 0.92rem;
  font-weight: 600;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.map-tooltip a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================
   TOOLTIP DIRECTIONS
========================= */

/* TOP (default) */
.tooltip-top .map-tooltip {
  left: 50%;
  bottom: calc(100% + 28px);
  top: auto;
  right: auto;

  transform:
    translateX(-50%)
    translateY(10px);
}

.tooltip-top:hover .map-tooltip {
  transform:
    translateX(-50%)
    translateY(0);
}

.tooltip-top .map-tooltip::after {
  content: "";

  position: absolute;

  top: 100%;
  left: 50%;

  transform: translateX(-50%);

  border-width: 10px;
  border-style: solid;

  border-color:
    rgba(5,15,9,0.96)
    transparent
    transparent
    transparent;
}

/* BOTTOM */
.tooltip-bottom .map-tooltip {
  left: 50%;
  top: calc(100% + 28px);
  bottom: auto;
  right: auto;

  transform:
    translateX(-50%)
    translateY(-10px);
}

.tooltip-bottom:hover .map-tooltip {
  transform:
    translateX(-50%)
    translateY(0);
}

.tooltip-bottom .map-tooltip::after {
  content: "";

  position: absolute;

  bottom: 100%;
  left: 50%;

  transform: translateX(-50%);

  border-width: 10px;
  border-style: solid;

  border-color:
    transparent
    transparent
    rgba(5,15,9,0.96)
    transparent;
}

/* LEFT */
.tooltip-left .map-tooltip {
  right: calc(100% + 28px);
  left: auto;

  top: 50%;
  bottom: auto;

  transform:
    translateY(-50%)
    translateX(10px);
}

.tooltip-left:hover .map-tooltip {
  transform:
    translateY(-50%)
    translateX(0);
}

.tooltip-left .map-tooltip::after {
  content: "";

  position: absolute;

  left: 100%;
  top: 50%;

  transform: translateY(-50%);

  border-width: 10px;
  border-style: solid;

  border-color:
    transparent
    transparent
    transparent
    rgba(5,15,9,0.96);
}

/* RIGHT */
.tooltip-right .map-tooltip {
  left: calc(100% + 28px);
  right: auto;

  top: 50%;
  bottom: auto;

  transform:
    translateY(-50%)
    translateX(-10px);
}

.tooltip-right:hover .map-tooltip {
  transform:
    translateY(-50%)
    translateX(0);
}

.tooltip-right .map-tooltip::after {
  content: "";

  position: absolute;

  right: 100%;
  top: 50%;

  transform: translateY(-50%);

  border-width: 10px;
  border-style: solid;

  border-color:
    transparent
    rgba(5,15,9,0.96)
    transparent
    transparent;
}

/* =========================
   HOVER
========================= */

.map-marker:hover .map-tooltip {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

.map-marker:hover .dot {
  transform: scale(1.15);

  box-shadow:
    0 0 25px rgba(239,68,68,0.7);
}



/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .label-text {
    font-size: 1rem;
  }

  .map-tooltip {
    width: 220px;

    bottom: calc(100% + 20px);
  }

}