#cm-nearest-modal { position: fixed; inset: 0; display: none; z-index: 999999; }
#cm-nearest-modal.cm-open { display: block; }
#cm-nearest-modal .cm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
#cm-nearest-modal .cm-modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92vw, 520px); background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 22px;
  font-family: system-ui, sans-serif; text-align: left; animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
#cm-nearest-modal .cm-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 20px; color: #d00; cursor: pointer; }
.cm-list { list-style: none; margin: 12px 0 0; padding: 0; }
.cm-list li {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #eee; padding: 8px 0; flex-wrap: wrap;
}
.cm-list li span { font-weight: 600; color: #a00000; flex: 1 0 50%; }
.cm-actions { display: flex; gap: 8px; margin-top: 6px; }
.cm-small-btn, .cm-view {
  background: #0A6F3B; color: #fff; text-decoration: none;
  padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
}
.cm-view { background: #F3F3F3; color: #111; }
.cm-small-btn:hover { background: #094f2c; }
.cm-view:hover { background: #e7e7e7; }

.cm-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* ✅ Get Directions - Green Button */
.cm-cta {
  background-color: #0A6F3B; /* Green */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.cm-cta:hover {
  background-color: #07502A;
}

/* ✅ Explore Other Locations - Yellow Button (#FFD76B) */
.cm-explore {
  background-color: #FFD76B;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.cm-explore:hover {
  background-color: #eecb65;
  color: #000;
}

.cm-list li a:first-child {
  color: #000000;              /* Green color */
  text-decoration: underline;  /* Underline always visible */
  font-weight: 600;
  transition: all 0.2s ease;
}

.cm-list li a:first-child:hover {
  color: #07502A;              /* Slightly darker green on hover */
  text-decoration: underline;
}


/* ✅ Get Directions Button - Always white text */
.cm-small-btn,
.cm-cta {
  background-color: #0A6F3B; /* Green */
  color: #fff !important;    /* Force white text */
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-block;
}

.cm-small-btn:hover,
.cm-cta:hover,
.cm-small-btn:visited,
.cm-cta:visited {
  background-color: #07502A; /* Darker green hover */
  color: #fff !important;    /* Keep white text even when visited/hovered */
}

/* ✅ Explore Other Locations Button - Yellow (#FFD76B) */
.cm-explore {
  background-color: #FFD76B;
  color: #000 !important;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-block;
}

.cm-explore:hover,
.cm-explore:visited {
  background-color: #eecb65;
  color: #000 !important;
}

