/* Marker on the map */
.mcd-closure-marker-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  border: 2px solid #fff;
}

.mcd-closure-popup {
  min-width: 180px;
  font-size: 14px;
}
.mcd-closure-popup-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.mcd-closure-popup-desc {
  margin-bottom: 4px;
  white-space: pre-wrap;
}
.mcd-closure-popup-meta {
  color: #666;
  font-size: 12px;
  margin-bottom: 6px;
}
.mcd-closure-popup-delete {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}
.mcd-closure-popup-delete:hover {
  background: #b91c1c;
}

/* Floating action button: fixed to the viewport, vertically centered on the
   right edge, well clear of top speed/distance badges and any bottom
   turn-by-turn navigation panel. */
.mcd-closure-fab {
  position: fixed;
  top: 50%;
  right: calc(16px + env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
  z-index: 999999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #fbbf24;
  color: #1f2937;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.mcd-closure-fab:active {
  transform: translateY(-50%) scale(0.94);
}
.mcd-closure-fab:disabled {
  cursor: default;
}
.mcd-closure-fab.mcd-fab-success {
  background: #22c55e;
  color: #fff;
}
.mcd-closure-fab.mcd-fab-error {
  background: #ef4444;
  color: #fff;
}

.mcd-fab-icon {
  line-height: 1;
}

.mcd-fab-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(31, 41, 55, 0.3);
  border-top-color: #1f2937;
  border-radius: 50%;
  display: inline-block;
  animation: mcd-fab-spin 0.7s linear infinite;
}
@keyframes mcd-fab-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Bottom sheet */
.mcd-closure-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1000000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.2s ease;
  pointer-events: none;
}
.mcd-closure-sheet-backdrop.mcd-closure-sheet-visible {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.mcd-closure-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.mcd-closure-sheet-backdrop.mcd-closure-sheet-visible .mcd-closure-sheet {
  transform: translateY(0);
}

.mcd-closure-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mcd-closure-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}
.mcd-closure-sheet-close {
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mcd-closure-sheet-close:hover {
  background: #e5e7eb;
}

.mcd-closure-sheet-grid {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}
.mcd-closure-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 4px;
}
.mcd-closure-sheet-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.mcd-closure-sheet-item:active .mcd-closure-sheet-icon {
  transform: scale(0.92);
}
.mcd-closure-sheet-label {
  font-size: 12px;
  color: #374151;
  text-align: center;
  font-weight: 500;
}
